manywarnings: Don't enable -Wjump-misses-init warnings by default.
[gnulib.git] / ChangeLog
blob40abb3fce38134265b860c011787c2dda1220d9e
1 2018-06-25  Bruno Haible  <bruno@clisp.org>
3         manywarnings: Don't enable -Wjump-misses-init warnings by default.
4         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
5         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
6         -Wjump-misses-init.
8 2018-06-25  Jim Meyering  <meyering@fb.com>
10         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
11         * lib/acl-internal.h (free_permission_context): Remove that
12         attribute directive.  Otherwise, it would provoke this from GCC 9:
13         lib/acl-internal.h:300:3: error: 'const' attribute on function \
14           returning 'void' [-Werror=attributes]
16 2018-06-24  Jim Meyering  <meyering@fb.com>
18         parse-datetime: accommodate gcc-4.8.5
19         Bruno Haible reported the build failure in
20         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
21         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
22         on declaration of new local.
24 2018-06-24  Bruno Haible  <bruno@clisp.org>
26         af_alg: Fail in continuable manner on Linux/powerpc64le.
27         Reported by Assaf Gordon <assafgordon@gmail.com>
28         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
29         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
30         byte send() as the first round.
32 2018-06-24  Bruno Haible  <bruno@clisp.org>
34         af_alg: Fix state of stream after sendfile() succeeds.
35         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
36         the stream is correctly positioned afterwards.
37         * modules/crypto/af_alg (Depends-on): Add fflush.
38         * tests/test-digest.h (test_digest_on_files): Verify that after the
39         operation the stream is positioned at end of file.
41 2018-06-24  Jim Meyering  <meyering@fb.com>
43         canon-host: take GCC9's advice rather than ignoring warning
44         Pádraig Brady suggested not to ignore this GCC9 advice.
45         * lib/canon-host.c: Undo preceding change.
46         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
48         parse-datetime.y: avoid spurious GCC 9 warning
49         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
50         a function local prior to the first "goto fail".  The prior use would
51         evoke this:
52         parse-datetime.y: In function 'parse_datetime2':
53         parse-datetime.y:1791:19: error: jump skips variable initialization \
54           [-Werror=jump-misses-init]
55         parse-datetime.y:2385:2: note: label 'fail' defined here
56         parse-datetime.y:188:43: note: '({anonymous})' declared here
57         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
59         canon-host.c: avoid spurious GCC 9 warning
60         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
62         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
63         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
64         * m4/manywarnings.m4: Remove them.
65         Otherwise, building coreutils, I would see this:
66         cc1: error: deprecated command line option '-Wchkp' [-Werror]
67         cc1: error: -Wabi won't warn about anything [-Werror=abi]
68         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
69           which is also used by default
70         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
72 2018-06-24  Bruno Haible  <bruno@clisp.org>
74         af_alg tests: Add another test.
75         * tests/test-digest.h (test_digest_on_files): Also check a large file
76         with a skipped header.
77         * tests/test-md5.c: Include macros.h.
78         * tests/test-sha1.c: Likewise.
79         * tests/test-sha256.c: Likewise.
80         * tests/test-sha512.c: Likewise.
81         * modules/crypto/md5-tests (Files): Add tests/macros.h.
82         * modules/crypto/sha1-tests (Files): Likewise.
83         * modules/crypto/sha256-tests (Files): Likewise.
84         * modules/crypto/sha512-tests (Files): Likewise.
86 2018-06-24  Pádraig Brady  <P@draigBrady.com>
88         maint: clarify comments about sticky EOF
89         * lib/af_alg.c: Be more direct that we can't
90         assume stickiness of EOF for portability reasons.
91         * lib/md5.c: Clarify that this isn't just a glibc issue.
92         * lib/sha1.c: Likewise.
93         * lib/sha256.c: Likewise.
94         * lib/sha512.c: Likewise.
96 2018-06-24  Bruno Haible  <bruno@clisp.org>
98         af_alg: Comment and style improvements.
99         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
100         (afalg_buffer, afalg_stream): Improve comments.
102 2018-06-24  Pádraig Brady  <P@draigBrady.com>
104         af_alg: disable kernel hash functions by default
105         All the kernel routines were seen to be significantly slower
106         with these relatively recent components on an i3-2310M system:
107           kernel-4.10.6-200.fc25.x86_64
108           openssl-1.0.2m-1.fc25.x86_64
109         sha1 was nearly twice as slow in the kernel for example.
110         Further considerations why this should not be the default, at:
111         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
113         * m4/af_alg.m4: Require --with-linux-crypto to enable.
114         * m4/gl-openssl.m4: Tweak accordingly.
116 2018-06-24  Pádraig Brady  <P@draigBrady.com>
118         af_alg: avoid hangs when reading from streams
119         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
120         and thus avoid doing a fread() when feof() is set.
121         * lib/md5.c: Ensure feof() is called before fread().
122         * lib/sha1.c: Likewise.
123         * lib/sha256.c: Likewise.
124         * lib/sha512.c: Likewise.
126 2018-06-24  Pádraig Brady  <P@draigBrady.com>
128         af_alg: fix error handling when hash not returned
129         * lib/af_alg.c (afalg_stream): Handle the case where we've
130         successfully written data to the kernel in the read/write loop,
131         but the kernel doesn't respond with the hash.
133 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
135         libc-config: merge from glibc
136         * lib/cdefs.h (__inline, __restrict):
137         Copy from current glibc.  This fixes glibc bug 17721,
138         which Gnulib had already fixed in a different way.
139         (__nonnull): Lessen the distance from glibc by using the
140         glibc definition inside an ‘#ifndef __nonnull’.
141         (__attribute_nonstring__): New macro, copied from
142         current glibc.
143         * lib/libc-config.h (__attribute_nonstring__): New undef.
144         (__restrict): Remove; workaround no longer needed.
145         Keep the __inline workaround, though, as it uses HAVE___INLINE to
146         support more compilers than the glibc __inline can.
148 2018-06-24  Bruno Haible  <bruno@clisp.org>
150         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
151         * lib/mbrtowc.c (enc_t): New enum type.
152         (locale_enc, locale_enc_cached): New functions.
153         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
154         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
155         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
156         instead.
157         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
158         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
159         * modules/wcwidth (configure.ac): Invoke it.
161 2018-06-24  Bruno Haible  <bruno@clisp.org>
163         wchar-single: Fix test failure in wcwidth tests.
164         * tests/test-wcwidth.c (main): If the wchar-single module is present,
165         skip the tests in the C locale.
167 2018-06-23  Pádraig Brady  <P@draigBrady.com>
169         crypto: mention --without-linux-crypto in --with-openssl --help
170         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
171         routines take precedence in --with-openssl help output.
173 2018-06-23  Pádraig Brady  <P@draigBrady.com>
175         wchar-single: a new module to enable optimizations in wchar replacements
176         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
177         GNULIB_WCHAR_SINGLE is enabled.
178         * lib/wcwidth.c (wcwidth): Likewise.
180 2018-06-23  Bruno Haible  <bruno@clisp.org>
182         libc-config: Fix conflict with FreeBSD include files.
183         * lib/cdefs.h (__nonnull): Remove definition.
184         * lib/libc-config.h (__nonnull): Remove undefinition.
186 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
188         random_r: do not crash if state is unaligned
189         Problem reported by Bruce Korb in:
190         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
191         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
192         with 'cc -O2 -xmemalign=8s'.
193         * lib/random_r.c: Include string.h, for memcpy.
194         (get_int32, set_int32): New functions.
195         (__srandom_r, __initstate_r, __setstate_r, __random_r):
196         Use them to avoid assumption that state pointer is aligned.
197         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
198         * tests/test-random_r.c (test_failed): New function.
199         (main): Use it, to test for alignment bugs.
201         random_r: omit unnecessary include
202         * lib/random_r.c: Do not include limits.h.
204         random, random_r: merge from glibc
205         * lib/random.c, lib/random_r.c:
206         Include libc-config.h if !_LIBC, not config.h unilaterally.
207         * lib/random.c:
208         Do not include stdint.h or time.h; not needed.
209         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
210         (unsafe_state): Rename from generator.  All uses changed.
211         Use C99-style initializers.
212         (__random, __srandom, __initstate, __setstate): Rename from
213         non-underscored version, but define it to non-underscored version
214         on Gnulib.  Add a lock.
215         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
216         Likewise.
217         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
218         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
219         (__srandom_r): Use int32_t instead of long int where int32_t will do.
220         (__random_r): Use uint32 to fix glibc bug 17343.
221         * modules/random, modules/random_r (Depends-on): Add libc-config.
222         Depend on stdint only if $HAVE_RANDOM = 0.
224 2018-06-19  Jim Meyering  <meyering@fb.com>
226         README-release: also run any check-very-expensive tests
227         * top/README-release: Adjust instructions so they run the
228         check-very-expensive tests when there is such a target.
230 2018-06-18  Bruno Haible  <bruno@clisp.org>
232         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
233         * m4/pthread_rwlock_rdlock.m4: Add comment.
234         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
235         are reader-preferring in glibc.
236         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
237         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
239 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
241         crypto: use byteswap
242         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
243         * lib/sm3.c: Include <byteswap.h>.
244         (SWAP): Use its macros rather than reinventing the wheel.
245         * modules/crypto/md4, modules/crypto/md5-buffer:
246         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
247         * modules/crypto/sha512-buffer, modules/crypto/sm3:
248         (Depends-on): Add byteswap.
250 2018-06-17  Pádraig Brady  <P@draigBrady.com>
252         gendocs.sh: fix support for legacy --texi2html
253         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
254         to the default makeinfo invocation.
255         Reported by Bruce Korb
257 2018-06-17  Bruno Haible  <bruno@clisp.org>
259         gettext po infrastructure: Update from current gettext git.
260         Reported by Akim Demaille <akim@lrde.epita.fr>.
261         * build-aux/po/Makefile.in.in: Update from current gettext git.
262         * build-aux/po/remove-potcdate.sin: Likewise.
263         * config/srclist.txt: Temporarily disable sync for these files.
265 2018-06-17  Bruno Haible  <bruno@clisp.org>
267         getloadavg: Return 0 on Windows without Cygwin.
268         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
270 2018-06-17  Paul Smith  <psmith@gnu.org>
272         getloadavg: Allow building on Windows without Cygwin
273         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
274         * m4/getloadavg.m4: Check for unistd.h.
276 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
278         Port crypto/af_alg to GCC 4.8.4
279         Problem reported by Peter Simons in:
280         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
281         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
283 2018-05-27  Colin Watson  <cjwatson@debian.org>
285         bootstrap: document source fetching in --help
286         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
288 2018-04-09  Colin Watson  <cjwatson@debian.org>
290         bootstrap: allow non-submodule control of gnulib
291         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
292         bootstrap.conf when fetching gnulib using "git clone" or via
293         GNULIB_SRCDIR.
295 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
297         crypto: omit stream ops Emacs doesn’t need
298         * lib/md5.c (md5_stream):
299         * lib/sha1.c (sha1_stream):
300         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
301         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
302         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
303         defined.  Emacs needs this, as it does not use the stream
304         operations and doesn’t need all the af_alg stuff we’ve recently
305         added.  Perhaps a similar change is needed to the other crypto
306         modules, but this patch changes only those needed for Emacs.
307         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
308         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
309         New modules, used by Emacs.
310         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
311         * modules/crypto/sha512: Rewrite to depend on the new modules.
313 2018-05-20  Pádraig Brady  <P@draigBrady.com>
315         fts: avoid a memory leak edge case
316         * lib/fts.c (fts_open): Set an appropriate fts_level
317         so that an immediate fts_close() will free the allocation.
318         * tests/test-fts.c (fts_dealloc): Add a test case which
319         will trigger under valgrind or address sanitizer.
320         Fixes https://bugs.gnu.org/31439
322 2018-05-20  Bruno Haible  <bruno@clisp.org>
324         wcwidth tests: Fix link error.
325         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
326         $(LIBUNISTRING).
328 2018-05-20  Bruno Haible  <bruno@clisp.org>
330         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
331         * modules/regex (Files): Add m4/glibc21.m4.
333 2018-05-20  Bruno Haible  <bruno@clisp.org>
335         localcharset: Optimize.
336         * lib/localcharset.c (alias_table): Comment out no-op mappings for
337         platforms where these don't matter. This reduces the table size,
338         which in turn reduces the lookup time.
340 2018-05-19  Bruno Haible  <bruno@clisp.org>
342         localcharset: Map the locale encodings found in newer OSes.
343         * lib/localcharset.c (alias_table): Add mapping for locale encodings
344         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
345         IRIX 6.5, Minix 3.3.
346         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
348 2018-05-19  Bruno Haible  <bruno@clisp.org>
350         localcharset: Move mapping tables into the code. Use a binary search.
351         * lib/localcharset.h: Document the GNU canonical names for character
352         encodings here.
353         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
354         relocatable.h, configmake.h.
355         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
356         macros.
357         (charset_aliases): Remove variable.
358         (get_charset_aliases): Remove function.
359         (struct table_entry): New type.
360         (alias_table, locale_table): New constants.
361         (locale_charset): Use the alias_table or locale_table to get the
362         canonicalized encoding name.
363         * lib/config.charset: Remove file.
364         * lib/ref-add.sin: Remove file.
365         * lib/ref-del.sin: Remove file.
366         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
367         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
368         * modules/localcharset (Notice): Remove.
369         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
370         glibc21.m4.
371         (Depends-on): Remove configmake.
372         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
373         (Makefile.am): Simplify.
374         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
376 2018-05-19  Bruno Haible  <bruno@clisp.org>
378         localcharset: Add a manual test.
379         * tests/test-localcharset.c: New file.
380         * modules/localcharset-tests: New file.
382 2018-05-19  Bruno Haible  <bruno@clisp.org>
384         localcharset: Remove support for obsolete platforms.
385         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
386         Mac OS X 10.2. Comment out dubious entry for Solaris.
388 2018-05-19  Jim Meyering  <meyering@fb.com>
390         gnupload: adjust comment
391         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
392         more likely we'll remove the just-added code in a year or two.
394 2018-05-19  Bruno Haible  <bruno@clisp.org>
396         gnupload: Fix "gpg-agent is not available in this session" error.
397         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
399 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
401         crypto/af_alg: fix --help
402         * m4/af_alg.m4: Avoid spurious newline in --help output.
404 2018-05-13  Bruno Haible  <bruno@clisp.org>
406         nl_langinfo: Fix compilation error on Android.
407         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
408         INT_CURR_SYMBOL, etc. only if these items are defined.
410 2018-05-13  Bruno Haible  <bruno@clisp.org>
412         truncate: Fix compilation error on Android.
413         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
414         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
415         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
416         HAVE_TRUNCATE.
417         * modules/truncate: Likewise.
418         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
419         not HAVE_TRUNCATE.
420         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
421         HAVE_TRUNCATE.
422         * doc/posix-functions/truncate.texi: Mention the issue.
424 2018-05-13  Bruno Haible  <bruno@clisp.org>
426         pthread: Fix compilation error on Android.
427         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
428         recursive inclusion of this file.
430 2018-05-13  Bruno Haible  <bruno@clisp.org>
432         posix_spawn: Fix compilation error on Android.
433         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
434         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
435         (posix_spawn_file_actions_t): Consider also the case
436         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
438 2018-05-13  Bruno Haible  <bruno@clisp.org>
440         tsearch: Move from K&R C to ANSI C.
441         * lib/tsearch.c (tfind): Convert definition to ANSI C.
443 2018-05-13  Bruno Haible  <bruno@clisp.org>
445         tsearch: Fix compilation error on Android.
446         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
447         is 0.
448         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
449         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
450         GNULIB_defined_tsearch is true.
451         (twalk): Define only if GNULIB_defined_twalk is true.
452         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
453         is 0.
454         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
455         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
456         * modules/search (Makefile.am): Substitute HAVE_TWALK.
458 2018-05-13  Bruno Haible  <bruno@clisp.org>
460         imaxdiv: Fix compilation error on Android.
461         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
462         is not defined.
463         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
464         HAVE_DECL_IMAXDIV, is 0.
465         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
466         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
468 2018-05-13  Bruno Haible  <bruno@clisp.org>
470         Support selective inclusion mechanism of recent mingw.org header files.
471         Reported by Eli Zaretskii <eliz@gnu.org>.
472         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
473         __need_ssize_t, or __need_time_t is defined, just include the system's
474         <sys/types.h>.
475         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
476         include the system's <locale.h>.
478 2018-05-13  Bruno Haible  <bruno@clisp.org>
480         Avoid compilation error due to 'mmap' on Android.
481         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
482         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
483         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
484         Undefine on Android.
486 2018-05-13  Bruno Haible  <bruno@clisp.org>
488         Add cross-compilation guesses for Linux systems without glibc.
489         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
490         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
491         * m4/link.m4 (gl_FUNC_LINK): Likewise.
492         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
493         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
494         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
495         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
496         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
497         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
498         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
499         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
500         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
501         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
502         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
503         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
504         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
505         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
506         * m4/utimens.m4 (gl_UTIMENS): Likewise.
508 2018-05-13  Bruno Haible  <bruno@clisp.org>
510         getpagesize: Fix compilation error on Android.
511         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
512         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
513         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
514         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
515         HAVE_GETPAGESIZE accordingly.
516         * modules/getcwd (Files): Add m4/getpagesize.m4.
518 2018-05-13  Bruno Haible  <bruno@clisp.org>
520         tcgetsid: Fix compilation error on Android.
521         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
522         AC_CHECK_FUNC.
524 2018-05-13  Bruno Haible  <bruno@clisp.org>
526         getpass: Fix configure test for Android.
527         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
528         AC_CHECK_FUNC.
530 2018-05-13  Bruno Haible  <bruno@clisp.org>
532         ffs: Fix compilation error on Android.
533         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
535 2018-05-13  Bruno Haible  <bruno@clisp.org>
537         mkfifo: Fix compilation error on Android.
538         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
539         AC_CHECK_FUNC.
541 2018-05-13  Bruno Haible  <bruno@clisp.org>
543         c-strtod: Fix configure test for Android.
544         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
545         AC_CHECK_FUNC.
547 2018-05-13  Bruno Haible  <bruno@clisp.org>
549         random: Fix compilation error on Android.
550         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
551         AC_CHECK_FUNC.
553 2018-05-13  Bruno Haible  <bruno@clisp.org>
555         grantpt: Fix compilation error on Android.
556         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
557         AC_CHECK_FUNC.
559 2018-05-13  Bruno Haible  <bruno@clisp.org>
561         stdioext: Fix compilation errors with newer Android headers.
562         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
563         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
564         fallbacks for Android.
565         * lib/fpending.c: Update comments.
566         * lib/fpurge.c: Likewise.
567         * lib/freadable.h: Likewise.
568         * lib/freadable.c: Likewise.
569         * lib/freadahead.c: Likewise.
570         * lib/freading.h: Likewise.
571         * lib/freadptr.c: Likewise.
572         * lib/fseterr.c: Likewise.
573         * lib/fwritable.h: Likewise.
574         * lib/fwritable.c: Likewise.
575         * lib/fwriting.h: Likewise.
576         * lib/fwriting.c: Likewise.
578 2018-05-13  Bruno Haible  <bruno@clisp.org>
580         doc: Add info about Android versions 2.0 to 8.1.
581         * doc/**/*.texi: Add info about functions in all released versions of
582         Bionic.
584 2018-05-12  Bruno Haible  <bruno@clisp.org>
586         fseeko: On mingw, don't use the hidden function _fseeki64.
587         Reported by Eli Zaretskii <eliz@gnu.org>.
588         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
589         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
591 2018-05-12  Bruno Haible  <bruno@clisp.org>
593         glob: Choose 'dirent_type' in a way that works better on mingw.
594         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
595         * lib/glob.c (dirent_type): Define as uint_fast32_t.
597 2018-05-12  Bruno Haible  <bruno@clisp.org>
599         execute, spawn-pipe: Avoid warning about redefining 'close'.
600         Reported by Eli Zaretskii <eliz@gnu.org>.
601         * lib/execute.c: Undefine 'close' before redefining it.
602         * lib/spawn-pipe.c: Likewise.
604 2018-05-12  Bruno Haible  <bruno@clisp.org>
606         nanosleep: Avoid test failure on mingw when it has nanosleep.
607         Reported by Eli Zaretskii <eliz@gnu.org>.
608         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
609         If it does not exist, use a simpler test program that does not call
610         alarm().
612 2018-05-10  Bruno Haible  <bruno@clisp.org>
614         lock, cond, thread, tls: Use a different symbol as libpthread witness.
615         Reported by Devin Hussey <husseydevin@gmail.com>.
616         Based on a patch by Paul Eggert.
617         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
618         as witness of libpthread.
619         * lib/glthread/cond.h (pthread_in_use): Likewise.
620         * lib/glthread/thread.h (pthread_in_use): Likewise.
621         * lib/glthread/tls.h (pthread_in_use): Likewise.
623 2018-05-10  Bruno Haible  <bruno@clisp.org>
625         cond tests: Fix compilation error on Solaris.
626         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
627         macro.
629 2018-05-10  Bruno Haible  <bruno@clisp.org>
631         doc: Add partial info about Android 4.3.
632         * doc/*-functions/*.texi: Add info about functions that were added
633         to Bionic between Android 4.3 and Android 9.0.
635 2018-05-10  Bruno Haible  <bruno@clisp.org>
637         doc: Add info about Android 9.0.
638         * doc/**/*.texi: Add info about functions and headers in Bionic from
639         Android 9.0.
641 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
643         af_alg: fix my typo in afalg_buffer
644         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
645         (afalg_stream): Simplify and avoid the need for a runtime test
646         at the end.
648         af_alg: recover better from crypto failures
649         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
650         input stream is seekable, by repositioning the stream back to
651         where it was, possibly by just calling sendfile with an offset
652         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
653         cases, which lets our callers try again with user-mode code.
654         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
655         instead of on fflush and lseek.
657         af_alg: distiguish I/O errors better
658         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
659         not -EIO, if it’s OK for the caller to try again with user-mode code.
660         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
661         some other error number) if fflush fails, as the caller should not
662         try again that case.
664         af_alg: avoid gotos
665         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
666         gotos, as they were a source of unreliability and made the code a
667         bit harder to follow.
669         af_alg: don’t leak file descriptors into children
670         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
671         This code should be compiled only on recent GNU/Linux platforms
672         so we shouldn’t have to also depend on the accept4 module.
674         af_alg: coalesce socket creation
675         * lib/af_alg.c (alg_socket): New function.
676         (afalg_buffer, afalg_stream): Use it.  This avoids some
677         code duplication and gotos.
679         af_alg: fix file descriptor leak
680         * lib/af_alg.c (afalg_stream): Close leak.
682         af_alg: Pacify --enable-gcc-warnings on GCC 8
683         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
684         and checking to pacify gcc -Wjump-misses-init on GCC 8.
686 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
688         af_alg: Pacify --enable-gcc-warnings
689         Problem reported by Assaf Gordon in:
690         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
691         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
692         gcc -Wjump-misses-init.
693         * lib/sha512.c (shaxxx_stream): Now static.
695 2018-05-06  Bruno Haible  <bruno@clisp.org>
697         af_alg: Add ability to use Linux kernel crypto API on data in memory.
698         * lib/af_alg.h (afalg_buffer): New declaration.
699         * lib/af_alg.c (afalg_buffer): New function.
701 2018-05-06  Bruno Haible  <bruno@clisp.org>
703         af_alg: Avoid warnings.
704         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
705         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
707 2018-05-06  Bruno Haible  <bruno@clisp.org>
709         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
710         * tests/bench-digest.h: New file.
711         * tests/bench-md5.c: New file.
712         * tests/bench-sha1.c: New file.
713         * tests/bench-sha224.c: New file.
714         * tests/bench-sha256.c: New file.
715         * tests/bench-sha384.c: New file.
716         * tests/bench-sha512.c: New file.
717         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
718         tests/bench-digest.h.
719         (Depends-on): Add getrusage, gettimeofday.
720         (Makefile.am): Add variables to build bench-md5.
721         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
722         tests/bench-digest.h.
723         (Depends-on): Add getrusage, gettimeofday.
724         (Makefile.am): Add variables to build bench-sha1.
725         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
726         tests/bench-sha256.c, tests/bench-digest.h.
727         (Depends-on): Add getrusage, gettimeofday.
728         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
729         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
730         tests/bench-sha512.c, tests/bench-digest.h.
731         (Depends-on): Add getrusage, gettimeofday.
732         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
734 2018-05-06  Bruno Haible  <bruno@clisp.org>
736         af_alg: Fix a resource leak.
737         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
738         New local variable 'result'.
740 2018-05-06  Bruno Haible  <bruno@clisp.org>
742         af_alg: Fix bug with streams that are not at position 0.
743         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
744         assume that the stream is positioned at position 0.
745         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
746         of the stream.
747         * lib/md5.h (md5_stream): Likewise.
748         * lib/sha1.h (sha1_stream): Likewise.
749         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
750         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
751         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
753         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
754         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
755         stream that is not positioned at the beginning.
757 2018-05-06  Bruno Haible  <bruno@clisp.org>
759         af_alg: Add configure option to enable/disable use of Linux crypto API.
760         Suggested by Assaf Gordon <assafgordon@gmail.com>.
761         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
762         USE_LINUX_CRYPTO_API.
763         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
764         * lib/af_alg.c: Likewise.
766 2018-05-06  Bruno Haible  <bruno@clisp.org>
768         Followup to 'af_alg: New module.'.
769         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
770         * modules/crypto/sha1 (Depends-on): Likewise.
771         * modules/crypto/sha256 (Depends-on): Likewise.
772         * modules/crypto/sha512 (Depends-on): Likewise.
774 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
776         crypto/{md5,sha1,sha256,sha512}: simplify
777         * lib/md5.c (md5_stream):
778         * lib/sha1.c (sha1_stream):
779         * lib/sha256.c (shaxxx_stream):
780         Simplify, partly by assuming C99.
781         * lib/sha256.c (shaxxx_stream):
782         New function, which implements both sha256 and sha224.
783         Simplify, partly by assuming C99.
784         (sha256_stream, sha224_stream):
785         Use it to avoid code duplication, removing a FIXME.
786         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
787         Likewise.
789         af_alg: Improve comments.
790         * lib/af_alg.h: Use imperatives and tighten up wording.
792 2018-05-05  Bruno Haible  <bruno@clisp.org>
794         af_alg: Improve comments.
795         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
797 2018-05-05  Bruno Haible  <bruno@clisp.org>
799         af_alg: New module.
800         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
801         * lib/af_alg.c: Include "af_alg.h" before the other header files.
802         * lib/md5.c: Include "af_alg.h" unconditionally.
803         (md5_stream): Invoke afalg_stream unconditionally.
804         * lib/sha1.c: Include "af_alg.h" unconditionally.
805         (sha1_stream): Invoke afalg_stream unconditionally.
806         * lib/sha256.c: Include "af_alg.h" unconditionally.
807         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
808         * lib/sha512.c: Include "af_alg.h" unconditionally.
809         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
810         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
811         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
812         * modules/crypto/af_alg: New file.
813         * modules/crypto/md5 (Files): Remove files that are now in the
814         'crypto/af_alg' module.
815         (Depends-on): Add crypto/af_alg.
816         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
817         (Makefile.am): Don't mention af_alg.c here.
818         * modules/crypto/sha1 (Files): Remove files that are now in the
819         'crypto/af_alg' module.
820         (Depends-on): Add crypto/af_alg.
821         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
822         (Makefile.am): Don't mention af_alg.c here.
823         * modules/crypto/sha256 (Files): Remove files that are now in the
824         'crypto/af_alg' module.
825         (Depends-on): Add crypto/af_alg.
826         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
827         (Makefile.am): Don't mention af_alg.c here.
828         * modules/crypto/sha512 (Files): Remove files that are now in the
829         'crypto/af_alg' module.
830         (Depends-on): Add crypto/af_alg.
831         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
832         (Makefile.am): Don't mention af_alg.c here.
834 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
836         crypto tests: pacify GCC
837         * tests/test-digest.h (test_digest_on_files):
838         Don’t assume digest size fits in int (!).
840         af_alg: minor style improvements
841         * lib/af_alg.c (afalg_stream): Prefer C99 style
842         decl-after-statement, since we’re already assuming C99.  Clarify
843         by strengthening the bind test and omit unnecessary assignment.
845 2018-05-05  Bruno Haible  <bruno@clisp.org>
847         af_alg: Fix bug on empty files.
848         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
849         stream is empty.
851 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
853         sys-limits.h: new file for crypto and safe I/O
854         * lib/af_alg.c: Include sys-limits.h.
855         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
856         (afalg_stream): Also reject negative sizes for sendfile; they
857         should not happen and the code is a bit cleaner and faster this way.
858         * lib/safe-read.c: Include sys-limits.h.
859         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
860         * lib/sys-limits.h: New file, with values and commentary derived
861         from the old safe-read.c and from GNU Emacs sysdep.c.
862         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
863         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
864         Add lib/sys-limits.h to Files section.
866 2018-05-05  Bruno Haible  <bruno@clisp.org>
868         af_alg: Improve function signature.
869         * lib/af_alg.h (afalg_stream): Swap second and third argument.
870         * lib/af_alg.c (afalg_stream): Likewise.
871         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
873 2018-05-05  Bruno Haible  <bruno@clisp.org>
875         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
876         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
877         * modules/crypto/sha1 (Depends-on): Likewise.
878         * modules/crypto/sha256 (Depends-on): Likewise.
879         * modules/crypto/sha512 (Depends-on): Likewise.
881 2018-05-05  Bruno Haible  <bruno@clisp.org>
883         crypto/{md5,sha1,sha256,sha512}: Fix module description.
884         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
885         * modules/crypto/sha1 (Depends-on): Likewise.
886         * modules/crypto/sha256 (Depends-on): Likewise.
887         * modules/crypto/sha512 (Depends-on): Likewise.
889 2018-05-05  Bruno Haible  <bruno@clisp.org>
891         af_alg: Add documentation.
892         * lib/af_alg.h: Add comments.
894 2018-05-05  Bruno Haible  <bruno@clisp.org>
896         sha512: Add tests.
897         * tests/test-sha512.c: New file.
898         * modules/crypto/sha512-tests: New file.
900 2018-05-05  Bruno Haible  <bruno@clisp.org>
902         sha256: Add tests.
903         * tests/test-sha256.c: New file.
904         * modules/crypto/sha256-tests: New file.
906 2018-05-05  Bruno Haible  <bruno@clisp.org>
908         sha1 tests: Add test for sha1_stream.
909         * tests/test-sha1.c: Include test-digest.h.
910         (main): Invoke test_digest_on_files on 'sha1_stream'.
911         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
913 2018-05-05  Bruno Haible  <bruno@clisp.org>
915         md5 tests: Add test for md5_stream.
916         * tests/test-digest.h: New file.
917         * tests/test-md5.c: Include test-digest.h.
918         (main): Invoke test_digest_on_files on 'md5_stream'.
919         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
921 2018-04-28  Matteo Croce  <mcroce@redhat.com>
923         md5sum: Use AF_ALG when available.
924         * lib/md5.c: Include af_alg.h.
925         (md5_stream): Use afalg_stream when available.
926         * modules/crypto/md5 (Files): Add the af_alg files.
927         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
928         (Makefile.am): Add af_alg.c.
930 2018-04-28  Matteo Croce  <mcroce@redhat.com>
932         sha512sum: Use AF_ALG when available.
933         * lib/sha512.c: Include af_alg.h.
934         (sha512_stream, sha384_stream): Use afalg_stream when available.
935         * modules/crypto/sha512 (Files): Add the af_alg files.
936         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
937         (Makefile.am): Add af_alg.c.
939 2018-04-28  Matteo Croce  <mcroce@redhat.com>
941         sha256sum: Use AF_ALG when available.
942         * lib/sha256.c: Include af_alg.h.
943         (sha256_stream, sha224_stream): Use afalg_stream when available.
944         * modules/crypto/sha256 (Files): Add the af_alg files.
945         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
946         (Makefile.am): Add af_alg.c.
948 2018-04-28  Matteo Croce  <mcroce@redhat.com>
950         sha1sum: Use AF_ALG when available.
951         * lib/af_alg.h: New file.
952         * lib/af_alg.c: New file.
953         * lib/sha1.c: Include af_alg.h.
954         (sha1_stream): Use afalg_stream when available.
955         * m4/linux-if-alg.m4: New file.
956         * modules/crypto/sha1 (Files): Add the new files.
957         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
958         (Makefile.am): Add af_alg.c.
960 2018-05-05  Bruno Haible  <bruno@clisp.org>
962         all: Replace more http URLs by https URLs.
963         * lib/localename.c: Use https: URL.
964         * lib/timespec.h: Likewise.
966 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
968         maint: port more modules to GCC 8
969         * lib/dirname.h (base_name):
970         * lib/exclude.h (new_exclude):
971         * lib/xstrndup.h (xstrndup):
972         Add malloc attribute.
973         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
974         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
975         This pacifies GCC 8.
976         * m4/gnulib-common.m4 (gl_COMMON_BODY):
977         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
979 2018-05-03  Bruno Haible  <bruno@clisp.org>
981         Simplify code. Drop support for Borland C++ on Windows.
982         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
983         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
984         'defined _WIN32'.
985         * lib/canonicalize-lgpl.c: Likewise.
986         * lib/classpath.c: Likewise.
987         * lib/clean-temp.c: Likewise.
988         * lib/csharpexec.c: Likewise.
989         * lib/ctime.c: Likewise.
990         * lib/dosname.h: Likewise.
991         * lib/dup2.c: Likewise.
992         * lib/errno.in.h: Likewise.
993         * lib/error.c: Likewise.
994         * lib/euidaccess.c: Likewise.
995         * lib/execute.c: Likewise.
996         * lib/fcntl.in.h: Likewise.
997         * lib/fcntl.c: Likewise.
998         * lib/filename.h: Likewise.
999         * lib/findprog.c: Likewise.
1000         * lib/flock.c: Likewise.
1001         * lib/fopen.c: Likewise.
1002         * lib/freopen.c: Likewise.
1003         * lib/fstat.c: Likewise.
1004         * lib/fsync.c: Likewise.
1005         * lib/gc-gnulib.c: Likewise.
1006         * lib/get-rusage-data.c: Likewise.
1007         * lib/getaddrinfo.c: Likewise.
1008         * lib/getdelim.c: Likewise.
1009         * lib/getdtablesize.c: Likewise.
1010         * lib/gethostname.c: Likewise.
1011         * lib/getlogin.c: Likewise.
1012         * lib/getlogin_r.c: Likewise.
1013         * lib/getopt.c: Likewise.
1014         * lib/getpagesize.c: Likewise.
1015         * lib/getpass.c: Likewise.
1016         * lib/getrusage.c: Likewise.
1017         * lib/gettimeofday.c: Likewise.
1018         * lib/glob.c: Likewise.
1019         * lib/inttypes.in.h: Likewise.
1020         * lib/isapipe.c: Likewise.
1021         * lib/javaexec.c: Likewise.
1022         * lib/link.c: Likewise.
1023         * lib/localcharset.c: Likewise.
1024         * lib/localename.h: Likewise.
1025         * lib/localename.c: Likewise.
1026         * lib/localtime.c: Likewise.
1027         * lib/lseek.c: Likewise.
1028         * lib/mbsinit.c: Likewise.
1029         * lib/mkdir.c: Likewise.
1030         * lib/msvc-nothrow.h: Likewise.
1031         * lib/nanosleep.c: Likewise.
1032         * lib/nl_langinfo.c: Likewise.
1033         * lib/nonblocking.c: Likewise.
1034         * lib/nproc.c: Likewise.
1035         * lib/open.c: Likewise.
1036         * lib/openpty.c: Likewise.
1037         * lib/pathmax.h: Likewise.
1038         * lib/pipe-filter-aux.c: Likewise.
1039         * lib/pipe-filter-gi.c: Likewise.
1040         * lib/pipe-filter-ii.c: Likewise.
1041         * lib/pipe.c: Likewise.
1042         * lib/pipe2.c: Likewise.
1043         * lib/poll.c: Likewise.
1044         * lib/popen.c: Likewise.
1045         * lib/posix_openpt.c: Likewise.
1046         * lib/printf-parse.c: Likewise.
1047         * lib/progreloc.c: Likewise.
1048         * lib/putenv.c: Likewise.
1049         * lib/read.c: Likewise.
1050         * lib/relocatable.c: Likewise.
1051         * lib/rename.c: Likewise.
1052         * lib/same-inode.h: Likewise.
1053         * lib/secure_getenv.c: Likewise.
1054         * lib/select.c: Likewise.
1055         * lib/sethostname.c: Likewise.
1056         * lib/setlocale.c: Likewise.
1057         * lib/sigaction.c: Likewise.
1058         * lib/sigprocmask.c: Likewise.
1059         * lib/sleep.c: Likewise.
1060         * lib/spawn-pipe.h: Likewise.
1061         * lib/spawn-pipe.c: Likewise.
1062         * lib/spawni.c: Likewise.
1063         * lib/stat-time.h: Likewise.
1064         * lib/stat-w32.c: Likewise.
1065         * lib/stat.c: Likewise.
1066         * lib/stdio.in.h: Likewise.
1067         * lib/stdio-impl.h: Likewise.
1068         * lib/stdio-read.c: Likewise.
1069         * lib/stdio-write.c: Likewise.
1070         * lib/stdlib.in.h: Likewise.
1071         * lib/strerror_r.c: Likewise.
1072         * lib/strftime-fixes.c: Likewise.
1073         * lib/sys_stat.in.h: Likewise.
1074         * lib/sys_types.in.h: Likewise.
1075         * lib/sys_wait.in.h : Likewise.
1076         * lib/system-quote.h: Likewise.
1077         * lib/system-quote.c: Likewise.
1078         * lib/tmpdir.c: Likewise.
1079         * lib/tzset.c: Likewise.
1080         * lib/uname.c: Likewise.
1081         * lib/unistd.in.h: Likewise.
1082         * lib/utime.in.h: Likewise.
1083         * lib/utime.c: Likewise.
1084         * lib/utimecmp.c: Likewise.
1085         * lib/utimens.c: Likewise.
1086         * lib/vasnprintf.c: Likewise.
1087         * lib/vma-iter.h: Likewise.
1088         * lib/vma-iter.c: Likewise.
1089         * lib/wait-process.c: Likewise.
1090         * lib/wcsftime.c: Likewise.
1091         * lib/wctype.in.h: Likewise.
1092         * lib/write.c: Likewise.
1093         * tests/nap.h: Likewise.
1094         * tests/test-cloexec.c: Likewise.
1095         * tests/test-dup-safer.c: Likewise.
1096         * tests/test-dup2.c: Likewise.
1097         * tests/test-dup3.c: Likewise.
1098         * tests/test-fcntl.c: Likewise.
1099         * tests/test-get-rusage-data.c: Likewise.
1100         * tests/test-getaddrinfo.c: Likewise.
1101         * tests/test-getlogin.h: Likewise.
1102         * tests/test-isatty.c: Likewise.
1103         * tests/test-localename.c: Likewise.
1104         * tests/test-mbrtowc-w32.c: Likewise.
1105         * tests/test-nonblocking.c: Likewise.
1106         * tests/test-nonblocking-pipe-main.c: Likewise.
1107         * tests/test-nonblocking-socket-main.c: Likewise.
1108         * tests/test-nonblocking-socket.h: Likewise.
1109         * tests/test-pipe.c: Likewise.
1110         * tests/test-pipe2.c: Likewise.
1111         * tests/test-poll.c: Likewise.
1112         * tests/test-pthread_sigmask1.c: Likewise.
1113         * tests/test-select.h: Likewise.
1114         * tests/test-sethostname2.c: Likewise.
1115         * tests/test-sigprocmask.c: Likewise.
1116         * tests/test-spawn-pipe-child.c: Likewise.
1117         * tests/test-stat-time.c: Likewise.
1118         * tests/test-system-quote-main.c: Likewise.
1119         * tests/test-utimens-common.h: Likewise.
1120         * tests/test-wcrtomb-w32.c: Likewise.
1121         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
1122         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
1123         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
1124         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
1125         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
1126         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
1127         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
1128         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
1129         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
1130         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
1131         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
1132         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
1133         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
1134         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
1135         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
1136         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1138 2018-05-02  Bruno Haible  <bruno@clisp.org>
1140         localename: Fix test failures on mingw.
1141         * lib/localename.c (gl_locale_name_thread): Remove code specific to
1142         native Windows.
1143         (gl_locale_name_posix): Move code specific to native Windows here.
1144         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
1145         Accept result without charset suffix, as it appears on mingw.
1147 2018-04-28  Paul Smith  <psmith@gnu.org>
1149         bootstrap: Avoid gnulib operations if not needed
1150         * build-aux/bootstrap: Remove unused variable gnulib_mk.
1151         Set $gnulib_extra_files early so it can be overridden in .conf.
1152         Remove redundant --import flag from $gnulib_tool_options.
1153         Set $use_gnulib to false if no gnulib modules or files are needed.
1154         If $use_gnulib is false, don't do anything related to gnulib.
1155         A lot of this is just whitespace (indentation) changes.
1157 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
1159         manywarnings: port to GCC 8.0
1160         * build-aux/gcc-warning.spec: Add -Wcatch-value,
1161         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
1162         fact that the GCC help message now mentions operands for
1163         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
1164         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
1165         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
1166         and -Wunused-const-variable.
1167         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
1168         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
1169         -Wmissing-attributes, -Wmultistatement-macros,
1170         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
1171         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
1173 2018-04-24  Bruno Haible  <bruno@clisp.org>
1175         sys_socket: Make SO_REUSEPORT available across platforms.
1176         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1177         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
1178         * doc/posix-headers/sys_socket.texi: Mention the issue.
1179         * tests/test-poll.c (SO_REUSEPORT): Remove.
1180         * tests/test-select.h: Include <sys/socket.h>.
1181         (SO_REUSEPORT): Remove.
1182         * modules/select-tests (Depends-on): Add 'sys_socket'.
1184 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
1186         localcharset: short-circuit the search for an alias on a Mac
1187         * lib/localcharset.c (get_charset_aliases): Add a tautological
1188         UTF-8 entry to speed up the search for this case.
1189         Most machines default to a UTF-8 locale nowadays, so begin the
1190         list of aliases with a dummy UTF-8 entry so it will be found
1191         immediately and a time-consuming search through the rest of
1192         the list is avoided.
1194 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
1196         fts: add comment
1197         * lib/fts.c (fts_build): Explain why ==, not >.
1198         See remark by Bernhard Voelker in:
1199         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
1201         fts: fix bug in find across filesystems
1202         This fixes a bug I introduced last summer.
1203         Problem reported by Kamil Dudka in:
1204         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
1205         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
1206         (leaf_optimization):
1207         New arg for file descriptor.  All callers changed.
1208         (fts_build): Check for whether inodes should be sorted
1209         before closing the directory.
1211 2018-04-07  Bruno Haible  <bruno@clisp.org>
1213         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
1214         Reported by Genki Sky <sky@genki.is>.
1215         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
1216         version 0.9.10 or newer.
1217         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
1218         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
1219         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
1220         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
1221         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
1223 2018-04-07  Bruno Haible  <bruno@clisp.org>
1225         execute: Update comment.
1226         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
1228 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
1230         fts: treat CIFS like NFS
1231         Problem reported by Kamil Dudka in:
1232         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
1233         * lib/fts.c (S_MAGIC_CIFS): New macro.
1234         (dirent_inode_sort_may_be_useful, leaf_optimization):
1235         Treat CIFS like NFS.
1237 2018-03-28  Bruno Haible  <bruno@clisp.org>
1239         c-stack: Fix possible build failure on some platforms.
1240         * lib/c-stack.c (die): Define whenever this function is referenced.
1242 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
1244         time_rz: fix workaround for Mac OS X 10.6 infloop
1245         Problems reported by Charles A. Roelli (Bug#27736#117).
1246         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
1247         Also, discard output, which clutters the 'configure' log.
1249 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
1251         havelib: port to Solaris 10 /bin/sh
1252         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
1253         instead of '! test EXPR'.
1255 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
1257         time_rz: work around Mac OS X 10.6 infloop
1258         * doc/posix-functions/localtime.texi:
1259         * doc/posix-functions/localtime_r.texi: Mention the bug.
1260         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
1261         better to fix localtime and localtime_r instead, but that would be
1262         more work and is not needed to fix the Emacs problem.
1263         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
1265 2018-03-24  Jim Meyering  <meyering@fb.com>
1267         test-version-etc.sh: don't use diff directly: use init.sh's compare
1268         We'd rather not sacrifice readable "diff -u" output even for
1269         "diff -c" output (not supported by busybox) or for even less
1270         readable ed-style "diff" output.  So use init.sh's compare function
1271         * tests/test-version-etc.sh: Source init.sh and add "." to path.
1272         Remove "./" from invocation of test-version-etc, so we use path.
1273         And s/diff/compare/.
1274         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
1275         to get init.sh.
1276         Prompted by Eric Blake's comments in
1277         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
1279 2018-03-24  Bruno Haible  <bruno@clisp.org>
1281         javacomp-script, javacomp: Add support for Java 10.
1282         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
1283         target-version 10.
1284         * lib/javaversion.h: Update comments.
1285         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
1286         source_version_index, get_goodcode_snippet, get_failcode_snippet,
1287         TARGET_VERSION_BOUND, target_version_index,
1288         corresponding_classfile_version): Accept source_version 10 and
1289         target_version 10.
1290         * lib/javacomp.h: Update comments accordingly.
1292 2018-03-24  Bruno Haible  <bruno@clisp.org>
1294         javacomp-script, javacomp: Update comments.
1295         * m4/javacomp.m4: Update comments regarding gcj.
1296         * lib/javacomp.h: Likewise.
1298 2018-03-24  Bruno Haible  <bruno@clisp.org>
1300         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
1301         * lib/javaversion.h: Update comments.
1302         * lib/javacomp.h: Likewise.
1303         * lib/javacomp.c (default_target_version, source_version_index,
1304         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
1305         "1.9".
1306         (TARGET_VERSION_BOUND): Bump to 9.
1307         (target_version_index, corresponding_classfile_version): Recognize "9"
1308         instead of "1.9".
1309         (get_source_version_for_javac): New function.
1310         (is_envjavac_nongcj_usable, is_javac_usable): Add
1311         source_version_for_javac argument.
1312         (compile_java_class): Determine and pass source_version_for_javac.
1313         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
1314         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
1315         appropriate.
1317 2018-03-23  Jim Meyering  <meyering@fb.com>
1319         test-version-etc.sh: port to diff without -c
1320         * tests/test-version-etc.sh: Don't use diff's -c option.
1321         This caused spurious test failure on Alpine Linux, which
1322         uses busybox's diff. Reported by Assaf Gordon in
1323         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
1325 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
1327         c-stack: port to recent GCC build
1328         Problem reported by The Fireplace (Bug#30913).
1329         * lib/c-stack.c (die): Define only if used.
1331 2018-03-20  Bruno Haible  <bruno@clisp.org>
1333         euidaccess: Port to native Windows.
1334         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
1335         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
1337 2018-03-19  Bruno Haible  <bruno@clisp.org>
1339         javacomp: Add support for Java 7, 8, 9.
1340         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
1341         source_version_index, get_goodcode_snippet, get_failcode_snippet,
1342         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
1343         and target_version 1,7, 1.8, 1.9.
1344         * lib/javacomp.h: Update comments accordingly.
1346 2018-03-19  Bruno Haible  <bruno@clisp.org>
1348         javacomp-script: Add support for Java 9.
1349         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
1350         target-version 1.9.
1352 2018-03-16  Bruno Haible  <bruno@clisp.org>
1354         glob: Don't compile replacements on recent glibc systems.
1355         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
1356         REPLACE_GLOB is 0, include the system's <glob.h> and use
1357         _GL_CXXALIAS_SYS.
1358         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
1359         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
1360         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
1361         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
1362         Remove snippet/warn-on-use.
1363         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
1364         (Makefile.am): Create glob.h always. Update list of substitutions in
1365         glob.h. Don't depend on $(WARN_ON_USE_H).
1367 2018-03-16  Bruno Haible  <bruno@clisp.org>
1369         glob: Fix link error on native Windows.
1370         * modules/glob (Depends-on): Add 'lstat'.
1372 2018-03-15  Bruno Haible  <bruno@clisp.org>
1374         glob: Fix compilation error in C++ mode.
1375         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
1377 2018-03-15  Bruno Haible  <bruno@clisp.org>
1379         host-cpu-c-abi: Support for RISC-V CPU.
1380         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
1381         riscv32 and riscv64 ABIs.
1382         References:
1383         https://github.com/riscv/riscv-toolchain-conventions
1384         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
1385         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
1387 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1389         fflush: be more paranoid about libio.h change
1390         Suggested by Eli Zaretskii in:
1391         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
1392         * lib/fbufmode.c (fbufmode):
1393         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
1394         (disable_seek_optimization, rpl_fflush):
1395         * lib/fpending.c (__fpending):
1396         * lib/fpurge.c (fpurge):
1397         * lib/freadable.c (freadable):
1398         * lib/freadahead.c (freadahead):
1399         * lib/freading.c (freading):
1400         * lib/freadptr.c (freadptr):
1401         * lib/freadseek.c (freadptrinc):
1402         * lib/fseeko.c (fseeko):
1403         * lib/fseterr.c (fseterr):
1404         * lib/fwritable.c (fwritable):
1405         * lib/fwriting.c (fwriting):
1406         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
1408 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
1410         maint: write-file-hooks -> before-save-hook
1411         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
1412         it's time to use the recommended replacement.
1413         Problem reported by Glenn Morris in:
1414         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
1415         * build-aux/announce-gen, build-aux/bootstrap:
1416         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
1417         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
1418         * build-aux/gnu-web-doc-update, build-aux/gnupload:
1419         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
1420         * build-aux/update-copyright, build-aux/useless-if-before-free:
1421         * build-aux/vc-list-files:
1422         Update hook usage for files where Gnulib is the canonical source.
1424 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
1426         binary-io: pacify gcc -Wunused-parameter
1427         Problem reported by Reuben Thomas in:
1428         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
1429         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
1430         Use _GL_UNUSED where appropriate.
1432         fflush: adjust to glibc 2.28 libio.h removal
1433         Problem reported by Daniel P. Berrangé in:
1434         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
1435         * lib/fbufmode.c (fbufmode):
1436         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
1437         (disable_seek_optimization, rpl_fflush):
1438         * lib/fpending.c (__fpending):
1439         * lib/fpurge.c (fpurge):
1440         * lib/freadable.c (freadable):
1441         * lib/freadahead.c (freadahead):
1442         * lib/freading.c (freading):
1443         * lib/freadptr.c (freadptr):
1444         * lib/freadseek.c (freadptrinc):
1445         * lib/fseeko.c (fseeko):
1446         * lib/fseterr.c (fseterr):
1447         * lib/fwritable.c (fwritable):
1448         * lib/fwriting.c (fwriting):
1449         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
1450         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
1451         Define if not already defined.
1453 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
1455         environ: fix link error on 32-bit Cygwin
1456         Problem reported for GNU Emacs by Ken Brown in:
1457         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
1458         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
1460 2018-02-24  Bruno Haible  <bruno@clisp.org>
1462         mbrtowc tests: Fix regression on glibc.
1463         Reported by Bernhard Voelker.
1464         * tests/test-mbrtowc.c (main): Fix expected value of wc.
1466 2018-02-24  Bruno Haible  <bruno@clisp.org>
1468         striconveha, uniconv/*: Avoid test failures on musl libc.
1469         * tests/iconvsupport.c: New file.
1470         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
1471         does not support the ISO-2022-JP-2 encoding.
1472         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
1473         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
1474         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
1475         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
1476         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
1477         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
1478         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
1479         (Makefile.am): Link test-striconveha with iconvsupport.o.
1480         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
1481         tests/iconvsupport.c.
1482         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
1483         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
1484         tests/iconvsupport.c.
1485         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
1486         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
1487         tests/iconvsupport.c.
1488         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
1489         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
1490         tests/iconvsupport.c.
1491         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
1492         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
1493         tests/iconvsupport.c.
1494         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
1495         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
1496         tests/iconvsupport.c.
1497         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
1499 2018-02-24  Bruno Haible  <bruno@clisp.org>
1501         localename: Add support for musl libc.
1502         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
1503         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
1504         on Linux platforms which define NL_LOCALE_NAME.
1506 2018-02-24  Bruno Haible  <bruno@clisp.org>
1508         mbrtowc tests: Don't make assumptions about the charset the C locale.
1509         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
1510         particular mapping in the C locale.
1512 2018-02-24  Bruno Haible  <bruno@clisp.org>
1514         ptsname_r: Don't expect that this function sets errno.
1515         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
1516         from ptsname_r().
1517         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
1519 2018-02-23  Bruno Haible  <bruno@clisp.org>
1521         xmalloca: pacify gcc -Wbad-function-cast
1522         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
1524 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
1526         nl_langinfo: pacify gcc -Wunused-function
1527         * lib/nl_langinfo.c (ctype_codeset): Do not define if
1528         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
1529         this case.  Without this change, I got a diagnostic when building
1530         coreutils on Fedora 27 with gcc 7.3.1 20180130.
1532         same: pacify gcc -Wunused-variable
1533         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
1534         Omit unused variable.
1536         malloca: pacify gcc -Wbad-function-cast
1537         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
1538         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
1539         To pacify GCC, I had to cast alloca’s result to some type other
1540         than void * before casting that to uintptr_t.
1542 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
1544         utimecmp: new function utimecmpat
1545         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
1546         Do not include utimens.h.
1547         (utimecmpat): New function, generalizing utimecmp.
1548         (utimecmp): Now a thin layer around utimecmpat.
1549         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
1550         utimensat instead of on lstat and utimens.
1552         same: new function same_nameat
1553         * lib/same.c: Include fcntl.h.
1554         * lib/same.c (same_nameat): New function, generalizing same_name.
1555         (same_name): Now a thin layer around same_nameat.
1556         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
1557         * modules/same (Depends-on): Depend on fstatat, openat.
1559 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
1561         warnings: Add support for Objective C.
1562         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
1563         macro.
1565 2018-02-17  Bruno Haible  <bruno@clisp.org>
1567         lock: Fix test-once1 crash on FreeBSD11.
1568         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
1569         'pthread_create', not 'pthread_cancel'.
1571 2018-02-17  Bruno Haible  <bruno@clisp.org>
1573         lock: Add test of gl_once.
1574         * tests/test-once.c: New file.
1575         * modules/lock-tests (Files): Add it.
1576         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
1578 2018-02-17  Bruno Haible  <bruno@clisp.org>
1580         thread: Fix compilation error on IRIX.
1581         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
1582         needed; include it outside the C++ extern "C" {} block.
1583         * doc/posix-headers/pthread.texi: Mention the problem with
1584         pthread_atfork on IRIX.
1586 2018-02-04  Bruno Haible  <bruno@clisp.org>
1588         nl_langinfo: Override the system's nl_langinfo() when needed.
1589         Reported by Jim Meyering.
1590         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
1591         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
1593 2018-02-04  Bruno Haible  <bruno@clisp.org>
1595         signal-h, monetary, strings: Fix build failure in some cases.
1596         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
1597         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
1598         as delimiter in sed command, not '|'.
1599         * modules/monetary (Makefile.am): Likewise.
1600         * modules/strings (Makefile.am): Likewise.
1602 2018-02-03  Jim Meyering  <meyering@fb.com>
1604         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
1605         * top/maint.mk (sc_file_system): Don't complain about
1606         "/proc/filesystems".
1608 2018-02-03  Bruno Haible  <bruno@clisp.org>
1610         stdlib: Fix compilation error on OpenIndiana.
1611         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
1612         <sys/time.h>.
1613         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
1614         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
1616 2018-02-03  Bruno Haible  <bruno@clisp.org>
1618         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
1619         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
1620         and use $EGREP instead of 'grep -E'.
1621         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
1622         'grep -E'.
1624 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
1626         malloca: Add a compile-time verification.
1627         * lib/malloca.c (small_t): Verify that it is wide enough.
1628         * modules/malloca (Depends-on): Add verify.
1630 2018-02-02  Bruno Haible  <bruno@clisp.org>
1632         malloca: Add an argument check.
1633         Suggested by Paul Eggert.
1634         * lib/malloca.c (freea): Check against an invalid argument.
1636 2018-02-02  Bruno Haible  <bruno@clisp.org>
1638         localename: Add support for OpenIndiana.
1639         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
1640         Solaris 11 variants with uselocale() but without getlocalename_l().
1642 2018-02-02  Bruno Haible  <bruno@clisp.org>
1644         malloca, xmalloca: Make multithread-safe.
1645         Reported by Florian Weimer <fweimer@redhat.com>.
1646         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
1647         * lib/malloca.h (malloca): In the stack allocation case, return a
1648         pointer that is a multiple of 2 * sa_alignment_max.
1649         (sa_increment): Remove enum item.
1650         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
1651         a pointer that is a multiple of 2 * sa_alignment_max.
1652         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
1653         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
1654         HASH_TABLE_SIZE, mmalloca_results): Remove.
1655         (small_t): New type.
1656         (mmalloca, free): Rewritten.
1657         * lib/malloca.valgrind: Remove file.
1658         * modules/malloca (Files): Remove it.
1659         (Depends-on): Remove verify.
1661 2018-01-31  Bruno Haible  <bruno@clisp.org>
1663         environ: Fix link error on 64-bit Cygwin.
1664         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
1665         __declspec(dllimport) attribute.
1666         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
1668 2018-01-30  Bruno Haible  <bruno@clisp.org>
1670         get-rusage-data: Add support for Minix 3.
1671         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
1673 2018-01-30  Bruno Haible  <bruno@clisp.org>
1675         vma-iter: Add support for Minix 3.
1676         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
1677         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
1679 2018-01-27  Bruno Haible  <bruno@clisp.org>
1681         Fix malfunction of socket functions on HP-UX in 64-bit mode.
1682         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
1683         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
1684         _HPUX_ALT_XOPEN_SOCKET_API.
1685         * modules/accept (Depends-on): Add 'extensions'.
1686         * modules/getpeername (Depends-on): Likewise.
1687         * modules/getsockname (Depends-on): Likewise.
1688         * modules/getsockopt (Depends-on): Likewise.
1689         * modules/recvfrom (Depends-on): Likewise.
1690         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
1691         * doc/posix-functions/getpeername.texi: Likewise.
1692         * doc/posix-functions/getsockname.texi: Likewise.
1693         * doc/posix-functions/getsockopt.texi: Likewise.
1694         * doc/posix-functions/recvfrom.texi: Likewise.
1696 2018-01-27  Bruno Haible  <bruno@clisp.org>
1698         getsockname tests: More tests.
1699         * tests/test-getsockname.c (open_server_socket): New function, mostly
1700         copied from test-poll.c.
1701         (main): Check that getsockname fills in addr.
1702         * modules/getsockname-tests (Depends-on): Add the necessary
1703         dependencies.
1704         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
1706 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
1708         manywarnings: fix maintainer comment
1709         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
1710         it does not mistakenly think that ‘-1)’ is an option.
1712 2018-01-26  Bruno Haible  <bruno@clisp.org>
1714         langinfo: Fix last commit.
1715         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
1716         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
1718 2018-01-24  Bruno Haible  <bruno@clisp.org>
1720         langinfo, nl_langinfo: Add support for alternative month names.
1721         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
1722         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
1723         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
1724         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
1725         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
1726         * doc/posix-functions/nl_langinfo.texi: Likewise.
1728 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
1730         Merge strftime.c changes from glibc
1731         This incorporates:
1732         2017-11-14 [BZ #10871] Implement alternative month names
1733         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
1734         2017-06-20 Use locale_t, not __locale_t, throughout glibc
1735         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
1736         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
1737         Use locale_t, not __locale_t.
1738         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
1739         (__strftime_internal): Add support for alternate months.
1741 2018-01-23  Bruno Haible  <bruno@clisp.org>
1743         doc: Mention another prerequisite for using Gnulib.
1744         Reported at <https://stackoverflow.com/questions/48378214/>.
1745         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
1746         AC_CONFIG_HEADERS.
1748 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
1750         build: GuixSD doesn't have /bin/bash
1751         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
1753 2018-01-21  Bruno Haible  <bruno@clisp.org>
1755         Avoid test failures on Microsoft Windows Subsystem for Linux.
1756         * tests/test-fcntl.c (main): Allow a different errno.
1757         * tests/test-rename.h (test_rename): Likewise.
1758         * tests/test-renameat.c (main): Likewise.
1759         * tests/test-renameat2.c (main): Likewise.
1761 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
1763         filenamecat: make base a suffix of result
1764         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
1765         (mfile_name_concat): Always make BASE a suffix of the result, as
1766         cp expects this.  To implement this, separate with '.' instead of
1767         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
1768         * tests/test-filenamecat.c (main): Adjust tests to match
1769         current behavior.  Check that BASE_IN_RESULT points to
1770         a copy of BASE and is a suffix of the resultk, and that DIR
1771         is a prefix of the result that is no longer than the prefix
1772         indicated by BASE_IN_RESULT.
1774 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
1776         update-copyright: Handle use of ©
1777         * build-aux/update-copyright ($circle_c_re): Update regex to
1778         handle use of © in headers.
1780 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
1782         Fix -Wundef warning in user-included header lib/cdefs.h.
1783         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
1785 2018-01-04  Bruno Haible  <bruno@clisp.org>
1787         pthread_sigmask: Avoid compilation error on mingw.
1788         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
1789         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
1790         macro.
1792 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
1794         test-framework-sh: ‘ps -ef’, not ‘ps ef’
1795         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
1796         Suggested by Bob Proulx (Bug#29968).
1797         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
1799 2018-01-02  Eric Blake  <eblake@redhat.com>
1801         stat-time: silence -Wunused-parameter regression
1802         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
1803         Prefer attribute over cast-to-void.
1804         (stat_time_normalize): Mark st as potentially unused.
1806 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
1808         test-framework-sh: avoid netstat
1809         Problem reported by Kristýna Streitová (Bug#29947).
1810         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
1811         deprecated on SuSE and it's not that important anyway.
1813 2018-01-01  Jim Meyering  <meyering@fb.com>
1815         update-copyright: add code to handle more special cases
1816         After running "make update-copyright" this year, five files
1817         required additional manual changes.  Automate those adjustments
1818         for next year.
1819         * Makefile (_year_and_prev): Define.
1820         (update-copyright): Add perl commands to induce this year's post-
1821         update-copyright adjustments.
1823 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
1825         version-etc: new year
1826         * build-aux/gendocs.sh (version):
1827         * doc/gendocs_template:
1828         * doc/gendocs_template_min:
1829         * doc/gnulib.texi:
1830         * lib/version-etc.c (COPYRIGHT_YEAR):
1831         Update copyright dates by hand in templates and the like.
1833         maint: fix 'make update-copyright'
1834         * Makefile (update-copyright): Adjust to 2016-11-23 change
1835         to config/srclist-update, which changed the format of srclist.txt.
1837 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
1839         chdir-safer: remove this module
1840         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
1841         * NEWS: Document removal.
1842         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
1843         * modules/chdir-safer: Remove these files.
1845 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
1847         Add cross-compilation results for GNU/Hurd.
1848         * m4/calloc.m4: Add GNU/Hurd guess.
1849         * m4/cbrtl.m4: Likewise.
1850         * m4/ceil.m4: Likewise.
1851         * m4/ceilf.m4: Likewise.
1852         * m4/ceill.m4: Likewise.
1853         * m4/chown.m4: Likewise.
1854         * m4/duplocale.m4: Likewise.
1855         * m4/exp2l.m4: Likewise.
1856         * m4/expm1.m4: Likewise.
1857         * m4/fchdir.m4: Likewise.
1858         * m4/floor.m4: Likewise.
1859         * m4/floorf.m4: Likewise.
1860         * m4/fmod.m4: Likewise.
1861         * m4/fmodf.m4: Likewise.
1862         * m4/fmodl.m4: Likewise.
1863         * m4/getcwd.m4: Likewise.
1864         * m4/getgroups.m4: Likewise.
1865         * m4/gettimeofday.m4: Likewise.
1866         * m4/hypot.m4: Likewise.
1867         * m4/hypotf.m4: Likewise.
1868         * m4/hypotl.m4: Likewise.
1869         * m4/link-follow.m4: Likewise.
1870         * m4/link.m4: Likewise.
1871         * m4/linkat.m4: Likewise.
1872         * m4/log.m4: Likewise.
1873         * m4/log10.m4: Likewise.
1874         * m4/log10f.m4: Likewise.
1875         * m4/log1p.m4: Likewise.
1876         * m4/log1pf.m4: Likewise.
1877         * m4/log1pl.m4: Likewise.
1878         * m4/log2.m4: Likewise.
1879         * m4/log2f.m4: Likewise.
1880         * m4/logf.m4: Likewise.
1881         * m4/lstat.m4: Likewise.
1882         * m4/malloc.m4: Likewise.
1883         * m4/mbrlen.m4: Likewise.
1884         * m4/mbrtowc.m4: Likewise.
1885         * m4/mkdir.m4: Likewise.
1886         * m4/mkfifo.m4: Likewise.
1887         * m4/mknod.m4: Likewise.
1888         * m4/mkstemp.m4: Likewise.
1889         * m4/modf.m4: Likewise.
1890         * m4/modff.m4: Likewise.
1891         * m4/modfl.m4: Likewise.
1892         * m4/printf.m4: Likewise.
1893         * m4/pselect.m4: Likewise.
1894         * m4/ptsname.m4: Likewise.
1895         * m4/putenv.m4: Likewise.
1896         * m4/readlink.m4: Likewise.
1897         * m4/realloc.m4: Likewise.
1898         * m4/remainder.m4: Likewise.
1899         * m4/remainderf.m4: Likewise.
1900         * m4/remainderl.m4: Likewise.
1901         * m4/rmdir.m4: Likewise.
1902         * m4/round.m4: Likewise.
1903         * m4/roundf.m4: Likewise.
1904         * m4/roundl.m4: Likewise.
1905         * m4/select.m4: Likewise.
1906         * m4/setenv.m4: Likewise.
1907         * m4/signbit.m4: Likewise.
1908         * m4/sleep.m4: Likewise.
1909         * m4/stat.m4: Likewise.
1910         * m4/strerror.m4: Likewise.
1911         * m4/strtok_r.m4: Likewise.
1912         * m4/symlink.m4: Likewise.
1913         * m4/symlinkat.m4: Likewise.
1914         * m4/trunc.m4: Likewise.
1915         * m4/truncf.m4: Likewise.
1916         * m4/truncl.m4: Likewise.
1917         * m4/tzset.m4: Likewise.
1918         * m4/ungetc.m4: Likewise.
1919         * m4/usleep.m4: Likewise.
1920         * m4/wcwidth.m4: Likewise.
1922 2017-12-28  Bruno Haible  <bruno@clisp.org>
1924         gnulib-tool: Make --conditional-dependencies work better.
1925         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
1926         * gnulib-tool (Options): Don't reject the combination of
1927         --conditional-dependencies with --with-tests.
1928         (func_emit_autoconf_snippets): Add argument referenceable_modules.
1929         Don't reference $modules.
1930         (func_import, func_create_testdir): Pass it.
1932 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
1934         regex: use re_malloc etc. consistently
1935         Problem and original patch reported by Arnold Robbins in:
1936         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
1937         * lib/regcomp.c (re_comp):
1938         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
1939         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
1941 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
1942             Paul Eggert  <eggert@cs.ucla.edu>
1944         glob: Silence warning about void pointer arithmetic.
1945         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
1946         arithmetic.
1948 2017-12-15  Bruno Haible  <bruno@clisp.org>
1950         spawn-pipe: Silence a clang warning.
1951         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
1952         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
1953         in this file.
1955 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
1957         explicit_bzero: port to macOS + Clang 9.0.0
1958         Problem reported by Marcus Johnson (Bug#29658).
1959         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
1960         Don’t use asm.
1962 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
1964         doc: Improve explanation of supporting relocatable libraries.
1965         * doc/relocatable-maint.texi (Supporting Relocation): Explain
1966         properly how to build the relocatable module for
1967         libraries. (Method and example code from Bruno Haible.)
1969 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
1971         doc: Use better texinfo tags in a few cases.
1972         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
1973         instead of @samp in a few places.
1975 2017-12-11  Bruno Haible  <bruno@clisp.org>
1977         unistr/base: Update comment.
1978         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
1980 2017-12-10  Pádraig Brady  <P@draigBrady.com>
1982         test-faccessat.c: unlink temp file to avoid subsequent test failure
1983         * tests/test-faccessat.c: Remove the file to avoid failure
1984         to open the file on subsequent runs due to being created
1985         with no permissions.
1987 2017-12-10  Bruno Haible  <bruno@clisp.org>
1989         doc: New sect. "Modifying the build rules of a Gnulib import directory".
1990         * doc/gnulib-tool.texi (Modified build rules): New node.
1992 2017-12-10  Bruno Haible  <bruno@clisp.org>
1994         doc: Tweak wording.
1995         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
1996         "binaries".
1998 2017-12-05  Sam Steingold  <sds@gnu.org>
1999             Bruno Haible  <bruno@clisp.org>
2001         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
2002         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
2003         AC_EGREP_CPP pattern.
2005 2017-12-03  Bruno Haible  <bruno@clisp.org>
2007         all: Replace more http URLs by https URLs.
2008         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
2009         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
2010         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
2011         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
2013 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
2015         Port better to CentOS 5
2016         Problems reported by Tom G. Christensen in:
2017         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
2018         * doc/glibc-functions/strverscmp.texi (strverscmp):
2019         Document strverscmp bug with glibc 2.9 and earlier.
2020         * doc/posix-functions/tzset.texi (tzset):
2021         Document that TZ with angle brackets is POSIX-2001 and later.
2022         * tests/test-nstrftime.c: Include unistd.h.
2023         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
2024         (TZ): Use it to skip tests with angle brackets in TZ,
2025         for older systems.
2027         stat: add missing module dependencies
2028         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
2029         Add stat-time.
2031 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
2033         stat: fix compilation failure on macOS Sierra
2034         Reported by Marius Schamschula <mschamschula@gmail.com> in:
2035         https://savannah.gnu.org/bugs/?52546
2036         * lib/stat.c: Add missing include of stat-time.h.
2038 2017-11-28  Jim Meyering  <meyering@fb.com>
2040         test-faccessat.c: correct BASE definition to avoid parallel test failure
2041         * tests/test-faccessat.c (BASE): Define using this file's name, not
2042         that of test-lstat.c.  Using the latter caused this test to fail
2043         sometimes when run concurrently with test-lstat.
2045 2017-11-27  Daiki Ueno  <ueno@gnu.org>
2047         unicase: fix VPATH build
2048         * modules/unicase/special-casing (Makefile.am): Ensure that the
2049         base directory is created when generating
2050         unicase/special-casing.h.
2052 2017-11-27  Daiki Ueno  <ueno@gnu.org>
2054         libunistring: update to Unicode 9.0.0
2055         * lib/gen-uni-tables.c (fill_properties): Recognize
2056         Sentence_Terminal and Prepended_Concatenation_Mark.
2057         (is_property_default_ignorable_code_point): Exclude U+08E2.
2058         (fill_arabicshaping): Allow missing whitespace when parsing;
2059         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
2060         (output_blocks): Increase the element size of the level1 table to
2061         accommodate more blocks.
2062         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
2063         Update each class according to the standard.
2064         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
2065         E_Base_GAZ characters.
2066         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
2067         Glue_After_Zwj, and E_Base_GAZ characters.
2068         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
2069         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
2070         enum value.
2071         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
2072         value.
2073         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
2074         LBP_ZWJ, LBP_EB, and LBP_EM.
2075         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
2076         enum value.
2077         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
2078         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
2079         declaration.
2080         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
2081         (uniwbrk_table): Implement WB14.
2082         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
2083         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
2084         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
2085         uc-is-grapheme-break.
2086         * modules/unigbrk/uc-grapheme-breaks: New module.
2087         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
2088         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
2089         enum value.
2090         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
2091         * lib/unigbrk/u-grapheme-breaks.h: New file.
2092         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
2093         u-grapheme-breaks.h instead of uc_is_grapheme_break.
2094         * lib/unigbrk/uc-grapheme-breaks.c: New file.
2095         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
2096         29.
2097         * tests/unigbrk/test-uc-gbrk-prop.c
2098         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
2099         GBP_GAZ, and GBP_EBG.
2100         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
2101         * tests/unigbrk/test-uc-is-grapheme-break.c
2102         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
2103         GBP_GAZ, and GBP_EBG.
2104         (main): Skip unsupported rules involving 3 or more characters,
2105         namely GB10, GB12, and GB13.
2106         * lib/uniwidth/width.c (nonspacing_table_data): Update.
2107         * all generated files under lib/uni* and tests/uni*: Regenerate.
2108         * all the affected modules: Bump version.
2110 2017-11-26  Bruno Haible  <bruno@clisp.org>
2112         strfmon_l: Fix compilation error with glibc 2.5.
2113         Reported by Tom G. Christensen <tgc@jupiterrise.com>
2114         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
2115         * lib/monetary.in.h: Include also <locale.h>.
2117 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
2119         posixtm: remove PDS_LEADING_YEAR
2120         This changes the API slightly, in a hopefully-innocuous way.
2121         Without this change the code had undefined behavior when a
2122         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
2123         Problem reported by Pádraig Brady in:
2124         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
2125         * NEWS: Mention this.
2126         * lib/posixtm.c (posix_time_parse): Treat the absence of
2127         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
2128         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
2129         present, but define it as zero, for compatibility with existing
2130         source code).  All other PDS_* values moved up.
2131         * tests/test-posixtm.c (LY): New macro.
2132         (T): Use it.  Do not expect a particular numeric encoding
2133         for PDS_CENTURY etc.
2135 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
2137         stat: work around Solaris bug with tv_nsec < 0
2138         * doc/posix-functions/fstat.texi (fstat):
2139         * doc/posix-functions/fstatat.texi (fstatat):
2140         * doc/posix-functions/lstat.texi (lstat):
2141         * doc/posix-functions/stat.texi (stat):
2142         Mention Solaris 11 bug.
2143         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
2144         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
2145         * lib/lstat.c (rpl_lstat):
2146         * lib/stat.c (rpl_stat):
2147         Normalize resulting timestamps.
2148         * lib/fstatat.c (normal_fstatat): New function.
2149         (rpl_fstatat): Use it.
2150         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
2151         (stat_time_normalize): New function.
2152         * m4/fstat.m4 (gl_FUNC_FSTAT):
2153         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
2154         * m4/lstat.m4 (gl_FUNC_LSTAT):
2155         * m4/stat.m4 (gl_FUNC_STAT):
2156         Replace on Solaris.
2157         * modules/fstat (Depends-on):
2158         * modules/fstatat (Depends-on):
2159         Add stat-time.
2160         * modules/stat-time (Depends-on): Add errno, intprops.
2162 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
2164         regex: merge from glibc
2165         * lib/regcomp.c (init_word_char): Add comments.
2167 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
2169         regex: merge from glibc
2170         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
2171         * lib/regex_internal.h (internal_function): Remove.
2172         All uses removed.
2174 2017-11-20  Bruno Haible  <bruno@clisp.org>
2176         crypto/gc-sm3: Fix buffer overrun.
2177         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
2178         Reported by Coverity.
2180 2017-11-12  Jim Meyering  <meyering@fb.com>
2182         maint: shorten https://lists.gnu.org/archive/html/... links
2183         Each /archive/html/ part can be replace with /r/.
2184         Run this to induce the change:
2185         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
2186         * ChangeLog: Perform that substitution.
2187         * Makefile: Likewise.
2188         * STATUS-libposix: Likewise.
2189         * build-aux/bootstrap: Likewise.
2190         * doc/maintain.texi: Likewise.
2191         * gnulib-tool: Likewise.
2192         * lib/allocator.h: Likewise.
2193         * lib/argp-ba.c: Likewise.
2194         * lib/argp-pv.c: Likewise.
2195         * lib/canon-host.c: Likewise.
2196         * lib/canonicalize-lgpl.c: Likewise.
2197         * lib/float.in.h: Likewise.
2198         * lib/fstat.c: Likewise.
2199         * lib/getdelim.c: Likewise.
2200         * lib/getprogname.c: Likewise.
2201         * lib/glthread/thread.h: Likewise.
2202         * lib/intprops.h: Likewise.
2203         * lib/mbsrtowcs-state.c: Likewise.
2204         * lib/safe-read.c: Likewise.
2205         * lib/signal.in.h: Likewise.
2206         * lib/stat.c: Likewise.
2207         * lib/stdbool.in.h: Likewise.
2208         * lib/stdio-impl.h: Likewise.
2209         * lib/stdio.in.h: Likewise.
2210         * lib/sysexits.in.h: Likewise.
2211         * lib/timespec.h: Likewise.
2212         * lib/wcsrtombs-state.c: Likewise.
2213         * m4/alloca.m4: Likewise.
2214         * m4/extern-inline.m4: Likewise.
2215         * m4/fstatat.m4: Likewise.
2216         * m4/gnulib-common.m4: Likewise.
2217         * m4/lib-ignore.m4: Likewise.
2218         * m4/printf.m4: Likewise.
2219         * m4/regex.m4: Likewise.
2220         * m4/stat-size.m4: Likewise.
2221         * m4/std-gnu11.m4: Likewise.
2222         * m4/stdbool.m4: Likewise.
2223         * m4/sys_types_h.m4: Likewise.
2224         * m4/threadlib.m4: Likewise.
2225         * m4/vararrays.m4: Likewise.
2226         * pygnulib/GLImport.py: Likewise.
2227         * tests/test-exp.h: Likewise.
2228         * tests/test-exp2.h: Likewise.
2229         * tests/test-expm1.h: Likewise.
2230         * tests/test-fflush2.c: Likewise.
2231         * tests/test-getopt_long.h: Likewise.
2232         * tests/test-intprops.c: Likewise.
2233         * tests/test-log.h: Likewise.
2234         * tests/test-log10.h: Likewise.
2235         * tests/test-log1p.h: Likewise.
2236         * tests/test-log2.h: Likewise.
2237         * tests/test-printf-posix.h: Likewise.
2238         * tests/test-regex.c: Likewise.
2239         * tests/test-snprintf-posix.h: Likewise.
2240         * tests/test-sprintf-posix.h: Likewise.
2241         * tests/test-stdalign.c: Likewise.
2242         * tests/test-stdbool.c: Likewise.
2243         * tests/test-vasnprintf-posix.c: Likewise.
2244         * tests/test-vasprintf-posix.c: Likewise.
2245         * top/maint.mk: Likewise.
2247 2017-11-12  Bruno Haible  <bruno@clisp.org>
2249         faccessat: Make the last change more robust.
2250         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
2251         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
2253 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
2255         faccessat: port to macOS (Bug#29231)
2256         macOS faccessat has the same bug that lstat does: if the file
2257         name ends in '/' it ignores the trailing slash.
2258         Problem reported for Emacs by Vincent Zhang.
2259         * doc/posix-functions/faccessat.texi (faccessat): Document this.
2260         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
2261         around the initial includes.  Include errno.h, string.h, sys/stat.h.
2262         (orig_faccessat) [HAVE_FACCESSAT]: New function.
2263         Include "unistd.h" after defining it.
2264         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
2265         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
2266         Handle in the usual way.
2267         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
2268         lstat dereferences symlinks, since faccessat is likely to
2269         have the same problem.
2270         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
2271         * modules/faccessat (Depends-on): Add fstatat.
2272         Depend if REPLACE_FACCESSAT is 1, too.
2273         (configure.ac): Link if REPLACE_FACCESSAT is 1.
2274         * modules/faccessat-tests (Depends-on): Add symlink.
2275         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
2276         * tests/test-faccessat.c (main): Test for the bug.
2278 2017-11-11  Bruno Haible  <bruno@clisp.org>
2280         getprogname: Fix compilation error on IRIX.
2281         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
2282         'namesize'.
2284 2017-11-11  Bruno Haible  <bruno@clisp.org>
2286         year2038: Tweak last patch.
2287         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
2289 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
2291         year2038: be more insistent about 64-bit time_t
2292         Applications requiring access to arbitrary files should not be
2293         built with 32-bit time_t on hosts that have 64-bit timestamps,
2294         as this can lead to real trouble at runtime.
2295         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
2296         Check on all systems, not just MinGW.  Use a heuristic involving
2297         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
2298         output a failure or just a warning, to make it more likely that
2299         builders will select 64-bit time_t.
2301 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
2303         havelib: fix typo in previous change
2304         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
2306         Don’t use AC_EGREP_CPP if affected by CFLAGS
2307         * m4/float_h.m4 (gl_FLOAT_H):
2308         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
2309         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
2310         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
2311         * m4/year2038.m4 (gl_YEAR2038):
2312         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
2313         likely to be affected by the choice of CFLAGS, since CFLAGS are
2314         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
2315         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
2317         fstatat: pacify GCC on unusual platform
2318         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
2319         Omit, as it’s unused in this case.
2321 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
2323         timespec: prefer ‘assume’ to ‘assure’
2324         This avoids some runtime tests.  The rest of the module makes
2325         similar assumptions and there is little point to testing here.
2326         * lib/timespec.h: Include verify.h instead of assure.h.
2327         (timespec_cmp): Use ‘assume’, not ‘assure’.
2328         Also, remove an unnecessary cast to ‘int’, as lots of other
2329         code in this module now causes -Wconversion to complain, and
2330         this is a problem with -Wconversion not with the code.
2332         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
2334         Port recent gnulib-tool change to Dash
2335         * gnulib-tool (func_create_testdir): Don't assume that the shell
2336         retokenizes after expanding "$@" inside the call to
2337         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
2339 2017-10-27  Jim Meyering  <meyering@fb.com>
2341         timespec.h: use "assure" to avoid a spurious warning
2342         * lib/timespec.h: Include "assure.h" and use it to help
2343         gcc7's -Wstrict-overflow avoid a false positive warning
2344         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
2345         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
2346         * modules/timespec (Depends-on): Add assure.
2348 2017-10-29  Bruno Haible  <bruno@clisp.org>
2350         Avoid several test failures with traditional locales on Haiku.
2351         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
2352         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
2353         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
2354         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
2355         LOCALE_ZH_CN=none.
2357 2017-10-29  Bruno Haible  <bruno@clisp.org>
2359         strerror_r-posix: Fix behaviour and test failure on Haiku.
2360         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
2361         are positive. Work around return value 0 instead of ERANGE on Haiku.
2362         For unknown error numbers, use a format string consistent with perror().
2363         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
2364         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
2365         are positive.
2367 2017-10-29  Bruno Haible  <bruno@clisp.org>
2369         get-rusage-data: Avoid crash on Haiku.
2370         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
2372 2017-10-29  Bruno Haible  <bruno@clisp.org>
2374         get-rusage-as: Avoid crash on Haiku.
2375         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
2377 2017-10-29  Bruno Haible  <bruno@clisp.org>
2379         ilogbl: Ensure replacement on Haiku.
2380         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
2381         REPLACE_ILOGBL if ilogbl does not work.
2382         (gl_FUNC_ILOGBL_WORKS): New macro.
2383         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
2384         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
2385         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
2386         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
2387         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
2389 2017-10-29  Bruno Haible  <bruno@clisp.org>
2391         expl: Ensure replacement on Haiku.
2392         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
2393         zero.
2394         * doc/posix-functions/expl.texi: Mention the Haiku problem.
2396 2017-10-29  Bruno Haible  <bruno@clisp.org>
2398         math: Fix test failure on Haiku.
2399         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
2400         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
2401         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
2402         * doc/posix-headers/math.texi: Mention the Haiku problem.
2404 2017-10-29  Bruno Haible  <bruno@clisp.org>
2406         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
2407         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
2408         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
2410 2017-10-29  Bruno Haible  <bruno@clisp.org>
2412         crypto/*: Verify that the header file is self-contained.
2413         * tests/test-gc-*.c: Include the module's header file immediately after
2414         <config.h>.
2415         * tests/test-hmac-*.c: Likewise.
2416         * tests/test-arcfour.c: Likewise.
2417         * tests/test-arctwo.c: Likewise.
2418         * tests/test-des.c: Likewise.
2419         * tests/test-md2.c: Likewise.
2420         * tests/test-md4.c: Likewise.
2421         * tests/test-md5.c: Likewise.
2422         * tests/test-rijndael.c: Likewise.
2423         * tests/test-sha1.c: Likewise.
2424         * tests/test-sm3.c: Likewise.
2426 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
2427             Bruno Haible  <bruno@clisp.org>
2429         crypto/gc: fix build failure with -Werror=suggest-attribute=const
2430         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
2432 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
2434         New module: crypto/gc-sm3
2435         * lib/gc.h: Declare SM3-related stuffs.
2436         * lib/gc-gnulib.c: Support sm3 in internal functions.
2437         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
2438         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
2439         * modules/crypto/gc-sm3: Define gc-sm3 module.
2440         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
2441         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
2442         * MODULES.html.sh: List gc-sm3 module.
2444 2017-10-29  Bruno Haible  <bruno@clisp.org>
2446         random, random_r: Mention different prototypes on Haiku.
2447         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
2448         * doc/glibc-functions/random_r.texi: Likewise.
2449         * doc/glibc-functions/initstate_r.texi: Likewise.
2450         * doc/glibc-functions/setstate_r.texi: Likewise.
2452 2017-10-28  Bruno Haible  <bruno@clisp.org>
2454         posix_spawn: Avoid spurious message in configure output.
2455         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
2456         'cmp' command.
2458 2017-10-28  Bruno Haible  <bruno@clisp.org>
2460         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
2461         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
2462         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2464 2017-10-28  Bruno Haible  <bruno@clisp.org>
2466         ioctl: Override non-POSIX declaration on Haiku.
2467         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
2468         * lib/sys_ioctl.in.h: Add comment about Haiku.
2469         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
2470         * doc/glibc-headers/sys_ioctl.texi: Likewise.
2472 2017-10-28  Bruno Haible  <bruno@clisp.org>
2474         crypto/sm3: Add overview documentation to the .h file.
2475         * lib/sm3.h: Add comments.
2477 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
2479         New module: crypto/sm3
2480         This new module can be used to compute SM3 message digest of files or
2481         memory blocks according to the specification GM/T 004-2012
2482         Cryptographic Hash Algorithm SM3, published by State Cryptography
2483         Administration, China.
2484         The official SM3 cryptographic hash algorithm specification is
2485         available at
2486         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
2487         * lib/sm3.h: Declare the APIs of sm3 module.
2488         * lib/sm3.c: Implement SM3 hash algorithm.
2489         * m4/sm3.m4: m4 file for sm3 module.
2490         * modules/crypto/sm3: Define sm3 module.
2491         * tests/test-sm3.c: Implement SM3 test case.
2492         * modules/crypto/sm3-tests: Define sm3 test module.
2493         * MODULES.html.sh: List sm3 module.
2495 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
2497         gc-libgcrypt: fix undefined enum type in switch statement
2498         Resolve the following build failure:
2499         lib/gc-libgcrypt.c: In function 'gc_hash_open':
2500         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
2501         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
2502              case 0:
2503              ^~~~
2504         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
2505         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
2507 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
2509         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
2510         Resolve the following build failure:
2511         lib/gc-libgcrypt.c: In function 'gc_hash_read':
2512         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
2513         in signedness [-Werror=pointer-sign]
2514             digest = gcry_md_read (ctx->gch, 0);
2515                    ^
2516         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
2518 2017-10-26  Bruno Haible  <bruno@clisp.org>
2520         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
2521         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
2522         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
2524 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
2526         glob: fix another heap buffer overflow
2527         Problem reported by Tim Rühsen in:
2528         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
2529         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
2531 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
2533         quotearg: pacify compiler re unsigned
2534         * lib/quotearg.c (quotearg_n_options):
2535         Rewrite to avoid diagnostic from overly-picky compiler.
2536         Problem reported by Sami Kerola in:
2537         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
2539         glob: fix heap buffer overflow
2540         * lib/glob.c (glob): Fix off-by-one error introduced into
2541         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
2542         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
2543         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
2544         Fix suggested by Bruno Haible.
2546 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
2548         glob: pacify fuzzer for mempcpy
2549         Problem reported by Tim Rühsen in:
2550         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
2551         * lib/glob.c (glob): Do not pass NULL to mempcpy.
2553 2017-10-12  Bruno Haible  <bruno@clisp.org>
2555         doc: Fix syntax error (regression from 2017-10-03).
2556         * doc/posix-functions/strncpy.texi: Fix syntax error.
2558 2017-10-12  Bruno Haible  <bruno@clisp.org>
2560         doc: Update for Solaris 11.3.
2561         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
2562         mention Solaris 11.3.
2563         * m4/log2.m4: Fix comments.
2564         * m4/log2f.m4: Likewise.
2565         * m4/printf.m4: Update comments.
2566         * m4/rename.m4: Likewise.
2567         * m4/strncat.m4: Likewise.
2569         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
2571 2017-10-10  Bruno Haible  <bruno@clisp.org>
2573         doc: Improve doc about ioctl.
2574         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
2575         prototype.
2577 2017-10-09  Bruno Haible  <bruno@clisp.org>
2579         wcwidth: Don't use obsolete syntax of 'test'.
2580         Reported by Eric Blake.
2581         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
2582         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
2584 2017-10-09  Bruno Haible  <bruno@clisp.org>
2586         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
2587         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
2588         and Daniel P. Berrange <berrange@redhat.com>.
2589         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
2590         on glibc systems. The getopt-pfx-core.h file declares exactly what
2591         unistd.h needs, nothing more.
2593 2017-10-08  Bruno Haible  <bruno@clisp.org>
2595         vma-iter: Improve support for FreeBSD.
2596         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
2597         vma_iterate.
2598         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
2600 2017-10-08  Bruno Haible  <bruno@clisp.org>
2602         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
2603         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
2605 2017-10-07  KO Myung-Hun  <komh@chollian.net>
2607         test-framework-sh: Fix 'invalid path dir' error.
2608         On OS/2, a path separator is ';' not ':'. And ':' is used as a
2609         separator between a drive letter and directory parts.
2610         As a result, an absolute path such as x:/path/to/dir on OS/2 is
2611         treated as an invalid path dir.
2612         * tests/init.sh (PATH_SEPARATOR): Set at startup.
2613         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
2614         instead of hard coded ':'.
2616 2017-10-07  Bruno Haible  <bruno@clisp.org>
2618         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
2619         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
2620         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
2621         (rof_open): On Linux, do multiple read() calls and make sure
2622         MIN_LEFTOVER bytes are left when read() returns.
2624 2017-10-07  Bruno Haible  <bruno@clisp.org>
2626         vma-iter: Improve support for GNU/Hurd.
2627         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
2628         API, not the /proc file system.
2630 2017-10-07  Bruno Haible  <bruno@clisp.org>
2632         test-framework-sh: Don't require bash on Windows and OS/2.
2633         Reported by KO Myung-Hun.
2634         * tests/test-init.sh: Use 'shopt' only when running in bash.
2636 2017-10-06  KO Myung-Hun  <komh@chollian.net>
2638         wcwidth: check a macro version of wcwidth () as well
2639         * lib/wchar.in.h: Revert commit from 2016-01-14.
2640         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
2642 2017-10-06  Bruno Haible  <bruno@clisp.org>
2644         getopt-posix: Clarify copyright header.
2645         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
2646         * lib/getopt-pfx-core.h: Likewise.
2647         * lib/getopt-pfx-ext.h: Likewise.
2648         * lib/getopt-cdefs.in.h: Likewise.
2650 2017-10-03  Bruno Haible  <bruno@clisp.org>
2652         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
2653         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
2654         gl_HOST_CPU_C_ABI.
2656 2017-10-03  Bruno Haible  <bruno@clisp.org>
2658         doc: warn about misuse of strncpy and wcsncpy.
2659         * doc/posix-functions/strcpy.texi: Describe requirements on prior
2660         memory allocation.
2661         * doc/posix-functions/wcscpy.texi: Likewise.
2662         * doc/posix-functions/strncpy.texi: Describe what this function is not
2663         useful for.
2664         * doc/posix-functions/wcsncpy.texi: Likewise.
2666 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
2668         fsuage: fix typo in previous change
2669         * lib/fsusage.c: Remove stray include of full-read.h.
2670         Problem reported by Sam Steingold for macOS (Bug#28669).
2672 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
2674         fsusage: remove SVR2 support
2675         SVR2 was obsolete by 1986 and is no longer supported by anybody,
2676         and its code was getting in the way of use of this module by
2677         Emacs, which has its own ‘read’ function anyway.
2678         * lib/fsusage.c: Do not include sys/filsys.h.
2679         (get_fs_usage): Remove SVR2-specific code.
2680         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
2681         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
2682         * modules/fsusage (Depends-on): Do not depend on full-read.
2684         Simplify autoupdate of licenses
2685         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
2686         place.
2688 2017-10-01  Bruno Haible  <bruno@clisp.org>
2690         vma-iter: Add support for GNU/Hurd.
2691         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
2692         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
2694 2017-09-30  Bruno Haible  <bruno@clisp.org>
2696         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
2697         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
2698         fail when module 'largefile' is in use.
2699         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
2700         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
2701         Don't test HAVE_SYS_PROCFS_H.
2703 2017-09-30  Bruno Haible  <bruno@clisp.org>
2705         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
2706         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
2707         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
2708         * modules/havelib (Depends-on): Add host-cpu-c-abi.
2710 2017-09-30  Bruno Haible  <bruno@clisp.org>
2712         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
2713         * lib/uniname/uniname.c (unicode_name_character): Add braces around
2714         scope of local variables.
2716 2017-09-28  Bruno Haible  <bruno@clisp.org>
2718         string: code style
2719         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
2720         substitutable variables.
2721         * modules/string (Makefile.am): Likewise.
2723 2017-09-26  Bruno Haible  <bruno@clisp.org>
2725         uniname/uniname-tests: Tighten code.
2726         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
2727         local variables into one.
2729 2017-09-26  Bruno Haible  <bruno@clisp.org>
2731         vma-iter: Improvements for Linux and BSD platforms.
2732         - Add support for DragonFly BSD.
2733         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
2734         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
2735         Read the entire file into memory in a single system call.
2736         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
2737         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
2739 2017-09-26  Bruno Haible  <bruno@clisp.org>
2741         vma-iter: Provide the protection flags on FreeBSD.
2742         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
2743         skip three fields between the addresses and the protection flags.
2745 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2747         glob: remove bogus extern decl
2748         * lib/glob.c (__glob_pattern_type): Remove now-spurious
2749         extern declaration.  Problem reported by Adhemerval Zanella in:
2750         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
2752 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
2754         uniname/uniname-tests: integer overflow fix
2755         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
2756         Check for integer overflow.
2758         duplocale-tests: fix unlikely crash
2759         * tests/test-duplocale.c (get_locale_dependent_values):
2760         Don’t crash with absurdly long month names.
2762         maint: fix overflow checking in nap.h
2763         * modules/chown-tests:
2764         * modules/fchownat-tests, modules/fdutimensat-tests:
2765         * modules/futimens-tests, modules/lchown-tests:
2766         * modules/stat-time-tests, modules/utime-tests:
2767         * modules/utimens-tests, modules/utimensat-tests:
2768         Depend on intprops.
2769         * tests/nap.h: Include intprops.h.
2770         (diff_timespec): Handle overflow properly.
2772         sys_types: update URL
2773         * m4/sys_types_h.m4: Use https: URL.
2775         parse-datetime: fix dependency
2776         * modules/parse-datetime (Depends-on): Depend
2777         on nstrftime, not strftime.
2779         parse-datetime, posixtm: avoid uninit access
2780         * lib/parse-datetime.y (parse_datetime2):
2781         * lib/posixtm.c (posixtime):
2782         Do not access uninitialized storage, even though the resulting
2783         value is never used.
2785 2017-09-25  Bruno Haible  <bruno@clisp.org>
2787         vma-iter: Improvements for BSD platforms.
2788         - Add support for GNU/kFreeBSD.
2789         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
2790         - Speed up on OpenBSD.
2791         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
2792         (vma_iterate_bsd): New function.
2793         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
2794         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
2795         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
2796         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
2798 2017-09-23  Bruno Haible  <bruno@clisp.org>
2800         strfmon_l: New module.
2801         * modules/strfmon_l: New file.
2802         * lib/strfmon_l.c: New file.
2803         * m4/strfmon_l.m4: New file.
2804         * doc/posix-functions/strfmon_l.texi: Mention the new module.
2805         * modules/strfmon_l-tests: New file.
2806         * tests/test-strfmon_l.c: New file.
2808         monetary: New module.
2809         * modules/monetary: New file.
2810         * lib/monetary.in.h: New file.
2811         * m4/monetary_h.m4: New file.
2812         * doc/posix-headers/monetary.texi: Mention the new module.
2813         * modules/monetary-tests: New file.
2814         * tests/test-monetary.c: New file.
2815         * modules/monetary-c++-tests: New file.
2816         * tests/test-monetary-c++.cc: New file.
2817         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
2819 2017-09-23  Bruno Haible  <bruno@clisp.org>
2821         duplocale tests: Fix test crash on Linux/x86.
2822         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
2823         locale from the current thread before freeing it.
2825 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
2827         mktime: port to OpenVMS
2828         Problem reported by John E. Malmberg in:
2829         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
2830         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
2832 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
2834         manywarnings: port to GCC on 64-bit MS-Windows
2835         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
2836         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
2837         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
2839 2017-09-13  Bruno Haible  <bruno@clisp.org>
2841         all: Replace many more http URLs by https URLs. Update stale URLs.
2842         * users.txt: Remove mention of 'newts'.
2843         * lib/localename.c: Update comment about LANG_SOTHO.
2845 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
2847         all: Replace many http URLs by https URLs.
2849 2017-09-12  Bruno Haible  <bruno@clisp.org>
2851         doc: Prefer https URLs where possible.
2852         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
2853         * doc/ld-output-def.texi: Remove unavailable URL.
2855 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
2857         maintainer-makefile: FTP -> HTTPS
2858         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
2859         of FTP, which is planned to be decommissioned on 2017-11-01.
2861 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
2863         libc-config: Fix __GNUC_PREREQ macro.
2864         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
2865         __GNUC_MINOR.
2867 2017-09-09  Bruno Haible  <bruno@clisp.org>
2869         gnulib-tool: Simplify commit from 2015-08-20.
2870         * gnulib-tool (func_add_or_update): Remove local variable
2871         is_binary_file.
2873 2017-09-08  Bruno Haible  <bruno@clisp.org>
2875         stddef: Avoid conflict with system-defined max_align_t.
2876         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
2877         Reported by Werner Lemberg <wl@gnu.org> in
2878         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
2879         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
2880         (max_align_t): Define as a macro.
2881         (GNULIB_defined_max_align_t): New macro. Guards against multiple
2882         definitions of rpl_max_align_t in different copies of gnulib-generated
2883         <stddef.h>.
2885 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
2887         libc-config: port to MSVC
2888         Problems reported by Gisle Vanem in:
2889         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
2890         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
2891         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
2892         * m4/__inline.m4: New file.
2893         * modules/libc-config (Files): Add it.
2894         (Depends-on): Use it.
2896         glob: Use enum for __glob_pattern_type result
2897         From a patch proposed by Adhemerval Zanella in:
2898         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
2899         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
2900         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
2901         * lib/glob_internal.h (__glob_pattern_type):
2902         * lib/glob.c (glob):
2903         * lib/glob_pattern_p.c (__glob_pattern_p):
2904         Use them.
2906         glob: fix for use in glibc
2907         Problem reported by Adhemerval Zanella in:
2908         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
2909         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
2910         Do not redefine if _LIBC.
2912 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
2914         glob: fix bugs with long login names
2915         Problem reported by Adhemerval Zanella in:
2916         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
2917         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
2918         (glob): Use the same scratch buffer for both getlogin_r and
2919         getpwnam_r.  Don’t require preallocation of the login name.  This
2920         simplifies storage allocation, and corrects the handling of
2921         long login names.
2923 2017-09-02  Bruno Haible  <bruno@clisp.org>
2925         dirent: Update doc.
2926         * doc/posix-headers/dirent.texi: More concrete list of platforms.
2928 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
2930         glob: fix getpwnam_r errno typo
2931         * lib/glob.c (glob): Fix longstanding misuse of errno after
2932         getpwnam_r, which returns an error number rather than setting
2933         errno.
2935         glob: fix typo in recent change
2936         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
2937         Fix recently-introduced typo.
2939 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
2941         glob: don't save and restore errno unnecessarily
2942         * lib/glob.c (glob): Don't save and restore errno
2943         merely because we have getpwnam_r.
2945         glob: don't assume getpwnam_r
2946         * lib/glob.c (glob): Port recent patches to platforms
2947         lacking getpwnam_r.
2949         scratch_buffer: don’t use private glibc API
2950         Suggested by Florian Weimer in:
2951         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
2952         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
2953         * lib/scratch_buffer_grow.c: Rename to
2954         lib/malloc/scratch_buffer_grow.c.
2955         * lib/scratch_buffer_grow_preserve.c: Rename to
2956         lib/malloc/scratch_buffer_grow_preserve.c.
2957         * lib/scratch_buffer_set_array_size.c: Rename to
2958         lib/malloc/scratch_buffer_set_array_size.c.
2959         * lib/scratch_buffer.h: New file.
2960         * modules/scratch_buffer (Files, Makefile.am):
2961         Adjust to source-file renaming.
2963 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
2965         glob: use scratch_buffer instead of extend_alloca
2966         Much of the lib/glob.c part of this patch comes from a glibc patch
2967         proposed by Adhemerval Zanella in:
2968         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
2969         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
2970         included via glob.h, does this for us now.
2971         (__set_errno): Remove, as libc-config does this for us now.
2972         Include <scratch_buffer.h>.
2973         (GETPW_R_SIZE_MAX): Remove.
2974         (glob): Use struct scratch_buffer instead of extend_alloca.
2975         * lib/glob.in.h: Include libc-config.h rather than
2976         including <sys/cdefs.h> conditionally.
2977         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
2978         (__glibc_unlikely, __restrict, weak_alias):
2979         Remove, as libc-config does this for us now.
2980         * m4/glob.m4 (gl_PREREQ_GLOB):
2981         Remove sys/cdefs.h tests; no longer needed.
2982         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
2983         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
2985         scratch_buffer: new module
2986         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
2987         * lib/scratch_buffer_grow_preserve.c:
2988         * lib/scratch_buffer_set_array_size.c:
2989         New files, copied from glibc with very minor changes that can be
2990         copied back.
2991         * modules/scratch_buffer: New file.
2993         libc-config: new module
2994         * MODULES.html.sh: Add libc-config.
2995         * lib/cdefs.h: New file, copied from the GNU C Library with very
2996         minor changes that can be copied back.
2997         * lib/libc-config.h, modules/libc-config: New files.
2999 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
3001         glob: match dangling symlinks
3002         This fixes a bug I inadvertently introduced to Gnulib when I
3003         merged glibc glob back into gnulib on 2007-10-16.  This fix is
3004         inspired by a patch proposed for glibc by Adhemerval Zanella in:
3005         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
3006         * doc/posix-functions/glob.texi: Update list of affected platforms.
3007         * lib/glob.c (__lstat64): New macro.
3008         (is_dir): New function.
3009         (glob, glob_in_dir): Match symlinks even if they are dangling.
3010         (link_stat, link_exists_p): Remove.  All uses removed.
3011         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
3012         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
3013         * modules/glob-tests (Depends-on): Add symlink.
3014         * tests/test-glob.c: Include errno.h, unistd.h.
3015         (BASE): New macro.
3016         (main): Test dangling symlinks, if symlinks are supported.
3018         glob, backupfile: inode 0 is a valid inode number
3019         * doc/posix-functions/readdir.texi (readdir):
3020         * doc/posix-headers/dirent.texi (dirent.h):
3021         Document more readdir portability issues.
3022         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
3023         (numbered_backup): Don’t treat inode 0 any differently from
3024         other inode values.
3025         * lib/glob.c (struct readdir_result): Remove skip_entry member.
3026         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
3027         All uses removed.
3028         * modules/glob (Depends-on): Remove d-ino.
3030         glob: simplify symlink detection
3031         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
3032         uint8_t, as C99 does not require uint8_t.
3033         (struct readdir_result): Use it.  Do not define skip_entry unless
3034         it is needed; this saves a byte on platforms lacking d_ino.
3035         (readdir_result_type, readdir_result_skip_entry):
3036         New functions, replacing ...
3037         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
3038         ... these functions, which were removed.  This makes the callers
3039         easier to read.  All callers changed.
3040         (D_INO_TO_RESULT): Now empty if there is no d_ino.
3042 2017-08-30  Pádraig Brady  <P@draigBrady.com>
3044         fts-tests: tag as a longrunning-test so not included by default
3045         * modules/fts-tests: This test takes about 20s on current systems,
3046         and uses about 285M of space on ext4.
3048 2017-08-30  Pádraig Brady  <P@draigBrady.com>
3050         renameat2: fix compilation on alpine linux
3051         * m4/renameat.m4: Check for <linux/fs.h> presence.
3052         * lib/renameat2.h: Only include <linux/fs.h> if present.
3053         Reported by Assaf Gordon on Alpine Linux.
3055 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3057         glob: try to port recent changes to MS-Windows
3058         Problem reported by Bruno Haible in:
3059         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
3060         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
3061         * lib/glob.in.h (__glob_pattern_p): ... to here.
3063 2017-08-24  Eric Blake  <eblake@redhat.com>
3065         warnings: fix compilation with old autoconf
3066         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
3067         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
3068         AC_DEFUN.
3069         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
3070         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
3072 2017-08-24  Bruno Haible  <bruno@clisp.org>
3074         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
3075         * modules/glob (Depends-on): Add c99.
3077 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3079         glob: fix typo that broke platforms lacking d_ino
3080         This typo also hurt performance on GNU/Linux and similar hosts.
3081         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
3082         in previous change.
3084 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3086         glob: merge from glibc with Zanella glob changes
3087         Merge glob from glibc, with changes for glob proposed
3088         by Adhemerval Zanella in the thread starting here:
3089         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
3090         plus some fixes for this merge.
3091         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
3092         New files, ported from glibc.
3093         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
3094         with __restrict.
3095         (__size_t): Remove.  All uses replaced by size_t.
3096         (size_t): Define by defining __need_size_t and including <stddef.h>.
3097         This should work even in non-glibc platforms, where any name
3098         pollution is OK.
3099         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
3100         (struct stat64): Don’t worry about __GLOB_GNULIB.
3101         (glob, globfree, glob_pattern_p): Remove macros for
3102         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
3103         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
3104         but set errno.
3105         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
3106         removed since the glibc behavior works on null pointers.
3107         Do not include stdio.h; old SunOS is irrelevant now.
3108         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
3109         Include glob_internal.h.
3110         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
3111         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
3112         worked only coincidentally.
3113         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
3114         Remove macros; now done in glob.in.h.
3115         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
3116         (glob): Properly initialize glob structure with
3117         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
3118         Remove old code using SHELL since Bash no longer
3119         uses this.
3120         (glob, prefix_array): Separate MS code better.
3121         (glob, glob_in_dir): Use C99 decls before statements when glibc
3122         does.
3123         (glob_in_dir): Remove old Amiga and VMS code.
3124         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
3125         separate files.
3126         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
3127         (__glibc_unlikely):
3128         Move here from glob.c.
3129         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
3130         (weak_alias): New macro.
3131         (__size_t): Remove.  All uses replaced by size_t.
3132         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
3133         * modules/glob (Files): Add +lib/glob_internal.h,
3134         lib/glob_pattern_p.c, lib/globfree.c.
3135         (Depends-on): Remove snippet/arg-nonnull.
3137 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
3139         glob: port to clang's Undefined Sanitizer
3140         Problem reported by Tim Rühsen in:
3141         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
3142         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
3143         (glob_in_dir): Do not rely on undefined behavior in accessing
3144         struct members beyond their bounds.  Use a flexible array member
3145         instead.
3147 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
3149         vc-list-files: port to Solaris 10
3150         * build-aux/vc-list-files: Don't assume test -e works.
3152 2017-08-21  Karl Berry  <karl@freefriends.org>
3154         * doc/posix-functions/srandom.texi (srandom): typo }.
3156 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
3158         git-version-gen: port to Solaris 10
3159         Problem reported by Dagobert Michelsen in:
3160         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
3161         * build-aux/git-version-gen (v_from_git):
3162         Use expr instead of shell substitution.
3164 2017-08-19  Bruno Haible  <bruno@clisp.org>
3166         host-cpu-c-abi: Improve detection of MIPS ABI.
3167         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
3168         _MIPS_SIM.
3170 2017-08-17  Bruno Haible  <bruno@clisp.org>
3172         hypot tests: Fix test failure on FreeBSD 11.0/x86.
3173         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
3175 2017-08-17  Bruno Haible  <bruno@clisp.org>
3177         float: Fix LDBL_MIN value on FreeBSD/x86.
3178         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
3180 2017-08-17  Bruno Haible  <bruno@clisp.org>
3182         random: Fix test compilation failure on Cygwin 1.5.25.
3183         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
3184         HAVE_DECL_SETSTATE.
3185         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
3186         declared.
3187         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
3188         HAVE_DECL_SETSTATE.
3189         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
3190         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
3191         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
3192         * doc/posix-functions/random.texi: Likewise.
3193         * doc/posix-functions/setstate.texi: Likewise.
3194         * doc/posix-functions/srandom.texi: Likewise.
3196 2017-08-16  Bruno Haible  <bruno@clisp.org>
3198         stdnoreturn: Fix test compilation failure on Cygwin.
3199         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
3200         <stdnoreturn.h> replacement.
3201         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
3202         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
3204 2017-08-16  Bruno Haible  <bruno@clisp.org>
3206         thread: Fix conflict with pthread_sigmask module.
3207         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
3208         it's defined as a macro.
3209         * modules/thread (Depends-on): Add pthread_sigmask.
3211 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
3213         rename: port better to NetBSD
3214         * doc/posix-functions/rename.texi (rename): NetBSD 7
3215         does not have the link-count bug.
3216         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
3217         broken merely because rename ("a", "b") removes "a" when the two
3218         names are hard links to the same file.
3220 2017-08-16  Bruno Haible  <bruno@clisp.org>
3222         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
3223         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
3224         the target file names with '$(srcdir)/'.
3225         * modules/unicase/locale-language (Makefile.am): Likewise.
3226         * modules/unicase/special-casing (Makefile.am): Likewise.
3227         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
3228         * modules/unictype/category-byname (Makefile.am): Likewise.
3229         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
3230         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
3231         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
3232         * modules/unictype/property-byname (Makefile.am): Likewise.
3233         * modules/unictype/scripts (Makefile.am): Likewise.
3234         * modules/uninorm/composition (Makefile.am): Likewise.
3236 2017-08-16  Bruno Haible  <bruno@clisp.org>
3238         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
3239         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
3240         value for OpenBSD.
3242 2017-08-16  Bruno Haible  <bruno@clisp.org>
3244         rename, renameat: Update doc regarding NetBSD.
3245         * doc/posix-functions/rename.texi: Clarify that when using
3246         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
3247         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
3248         version.
3250 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
3252         renameat2: port better to macOS
3253         * lib/renameat2.c (renameat2): Use renameatx_np if available.
3255         futimens: don’t assume struct timespec layout
3256         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
3257         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
3258         * tests/test-fdutimensat.c (main):
3259         * tests/test-futimens.h (test_futimens):
3260         * tests/test-lutimens.h (test_lutimens):
3261         * tests/test-utimens.h (test_utimens):
3262         * tests/test-utimensat.c (main):
3263         Don’t assume that struct timespec is a two-member structure in
3264         tv_sec, tv_nsec order.  Although this is true on all platforms we
3265         know about, POSIX does not guarantee it.
3267         rename: document+test NetBSD rename
3268         Test failure reported by Bruno Haible in:
3269         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
3270         This is an area where NetBSD is better-behaved than POSIX,
3271         so allow the NetBSD behavior in tests.
3272         * doc/posix-functions/rename.texi:
3273         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
3274         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
3276 2017-08-15  Bruno Haible  <bruno@clisp.org>
3278         renameat: Ensure declaration in <stdio.h> on NetBSD.
3279         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
3280         * doc/posix-functions/renameat.texi: Mention this problem.
3282 2017-08-15  Bruno Haible  <bruno@clisp.org>
3284         duplocale: Work around NetBSD 7.0 bug.
3285         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
3286         * lib/duplocale.c: Add comment about NetBSD problem.
3287         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
3289 2017-08-15  Bruno Haible  <bruno@clisp.org>
3291         duplocale tests: Verify use with *_l functions.
3292         * modules/duplocale-tests (configure.ac): Test for uselocale and
3293         some *_l functions.
3294         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
3295         from main.
3296         (get_locale_dependent_values_from, test_with_locale_parameter): New
3297         functions.
3298         (main): Test both test_with_uselocale and test_with_locale_parameter.
3300 2017-08-15  Bruno Haible  <bruno@clisp.org>
3302         extensions: Enable NetBSD specific extensions.
3303         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
3305 2017-08-14  Bruno Haible  <bruno@clisp.org>
3307         open, openat: Update doc about O_CLOEXEC.
3308         * doc/posix-functions/open.texi: More concrete list of platforms.
3309         * doc/posix-functions/openat.texi: Likewise.
3311 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
3313         open: support O_CLOEXEC
3314         * NEWS, doc/posix-functions/open.texi:
3315         * doc/posix-functions/openat.texi: Document this.
3316         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
3317         (GNULIB_defined_O_CLOEXEC): New symbol.
3318         * lib/open.c: Include cloexec.h.
3319         (open): Support O_CLOEXEC.
3320         * lib/openat.c: Include cloexec.h.
3321         (rpl_openat): Support O_CLOEXEC.
3322         * lib/popen-safer.c: Do not include cloexec.h.
3323         (open_noinherit): Remove.
3324         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
3325         * lib/save-cwd.c: Do not include cloexec.h.
3326         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
3327         * m4/open-cloexec.m4: New file.
3328         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
3329         Replace 'open' if O_CLOEXEC is not present.
3330         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
3331         Replace 'openat' if O_CLOEXEC is not present.
3332         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
3333         * modules/open (Files): Add m4/open-cloexec.m4.
3334         (Depends-on): Depend on cloexec if replacing 'open'.
3335         * modules/openat (Files): Add m4/open-cloexec.m4.
3336         (Depends-on): Depend on cloexec if replacing openat.
3337         * modules/popen-safer (Depends-on): Remove cloexec.
3338         * modules/save-cwd (Depends-on): Remove cloexec, and add
3339         fd-safer-flag and 'open'.
3341 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
3343         reallocarray: minor fixes
3344         * doc/glibc-functions/reallocarray.texi: Update version numbers.
3345         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
3346         * modules/reallocarray (License): Change from GPL to LGPL.
3347         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
3348         Indent properly and don't use tabs.
3350 2017-08-13  Darshit Shah  <darnir@gnu.org>
3352         reallocarray: New module
3353         reallocarray is a new function in glibc 2.26 to safely allocate an array
3354         of memory locations with integer overflow protection.
3355         * MODULES.html.sh: Add reallocarray.
3356         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
3357         * lib/reallocarray.c: New file to implement module reallocarray.
3358         * lib/stdlib.in.h: Add function declarations for reallocarray.
3359         * m4/reallocarray.m4: New file.
3360         * m4/stdlib_h.m4: Declare reallocarray.
3361         * modules/reallocarray: New file.
3362         * modules/reallocarray-test: New file.
3363         * modules/stdlib: Coerce stdlib.h to export reallocarray.
3364         * tests/test-reallocarray.c: New test.
3366 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
3368         dirent-safer: fix cloexec race
3369         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
3370         (opendir_safer): Use F_DUPFD_CLOEXEC.
3371         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
3372         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
3373         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
3374         instead of dup_safer.
3376         fts: fix cloexec races
3377         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
3378         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
3379         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
3380         (fd_ring_check): Set cloexec flag on new file descriptors.
3381         (fts_build, fd_ring_check): While we’re at it, make sure the
3382         resulting file descriptor is not 0, 1, or 2, since that is easy.
3384 2017-08-11  Bruno Haible  <bruno@clisp.org>
3386         fts tests: Fix link error.
3387         Reported by Tom G. Christensen in
3388         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
3389         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
3391 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
3393         fts: port recent changes to CentOS 6
3394         Problem reported by Tom G. Christensen in:
3395         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
3396         * lib/fts.c (fsword): New type.
3397         (struct dev_type, filesystem_type): Use it.
3398         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
3399         Also, check for f_type only if fstatfs and sys/vfs.h work.
3401 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
3403         tempname: do not depend on secure_getenv
3404         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
3405         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
3406         * modules/tempname (Depends-on): Remove secure_getenv.
3408 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
3410         extensions: add _OPENBSD_SOURCE
3411         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
3413 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
3414             Bruno Haible  <bruno@clisp.org>
3416         manywarnings: Add support for C++.
3417         * build-aux/g++-warning.spec: New file.
3418         * m4/manywarnings-c++.m4: New file.
3419         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
3420         redirects to manywarnings-c++.m4.
3421         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
3423 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
3425         git-version-gen: another fix for tags with "-"
3426         * build-aux/git-version-gen: Improve fix for tags containing "-".
3427         Suggested by Markus Armbruster in:
3428         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
3430 2017-08-06  Bruno Haible  <bruno@clisp.org>
3432         warnings, manywarnings: Add support for multiple languages, not just C.
3433         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
3434         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
3435         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
3436         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
3437         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
3438         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
3439         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
3440         of the current language. If C++ is the current language, modify
3441         WARN_CXXFLAGS instead of WARN_CFLAGS.
3442         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
3443         gl_MANYWARN_ALL_GCC.
3444         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
3446 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
3448         git-version-gen: Fix for tags containing '-'
3450         Really old versions of git-describe (before v1.5.0, Feb 2007)
3451         don't have the number of commits in their long format output,
3452         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
3453         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
3454         recognizes both patterns, and normalizes the old format to the new one.
3456         Unfortunately, this normalization code gets confused when the tag
3457         contains '-'.  Reproducer:
3459             $ git-tag -m test v0.2-rc1
3460             $ build-aux/git-version-gen .tarball-version; echo
3461             build-aux/git-version-gen: WARNING: git rev-list failed
3462             UNKNOWN
3464         We take exact tag "v0.2-rc1" for the old format, extract the presumed
3465         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
3466         commits since tha tag.  Fails, because tag "v0.2" does not exist.
3468         * git-version-gen: We could perhaps drop support for versions from
3469         more than a decade ago.  But tightening the pattern match is easy
3470         enough, so do that.  Still breaks when you use version tags ending in
3471         something matching -g????, but you arguably get what you deserve then.
3473 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
3475         valgrind-tests: use ls, and cache
3476         * m4/valgrind-tests.m4: Test ls, not bash.
3477         Problem reported by Reuben Thomas.
3478         Also, cache the result so that it can be overridden.
3480 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
3482         manywarnings: port to 64-bit GCC builds of Emacs
3483         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
3484         object size rather than hardwiring 2147483647.  This is needed to
3485         build GNU Emacs, which has one conditional (and used
3486         only-in-theory) call to malloc with a literal greater than
3487         2147483647.
3489 2017-08-04  Bruno Haible  <bruno@clisp.org>
3491         Relax the license of some modules with no runtime code.
3492         * modules/std-gnu11 (License): Set to 'unlimited'.
3493         * modules/c99 (License): Likewise.
3494         Reported by Reuben Thomas <rrt@sc3d.org>.
3495         * modules/d-ino (License): Set to 'LGPL'.
3496         * modules/host-os (License): Likewise.
3497         * modules/longlong (License): Likewise.
3499 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
3501         renameat2: port to RHEL 7 + NFS
3502         * lib/renameat2.c (renameat2) [SYS_renameat2]:
3503         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
3504         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
3506 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
3508         renameat2: port to non-renameat platforms
3509         Problem reported for MSVC-2015 by Gisle Vanem in:
3510         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
3511         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
3512         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
3514 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
3516         manywarnings: port to 32-bit GCC bug
3517         Problem reported by Pino Toscano in:
3518         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
3519         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
3520         not 2**63 - 1, to work around the following GCC bug:
3521         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
3523 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
3525         backupfile: new function to validate backup suffix
3526         * lib/backupfile.c (set_simple_backup_suffix): New function.
3527         (backupfile_internal): Use it.
3529         canonicalize: fix EOVERFLOW commentary
3530         Problem reported by Bruno Haible in:
3531         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
3532         * lib/canonicalize.c (canonicalize_filename_mode):
3533         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
3535         Don't interpret EOVERFLOW to mean nonexistence
3536         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
3537         may be EOVERFLOW; this is likely more useful than reporting the
3538         stat errno.
3539         * lib/glob.c (link_stat): Rename from link_exists2_p and
3540         return -1/0 instead of 0/1.  Caller changed.
3541         * lib/glob.c (link_exists_p):
3542         * lib/renameat2.c (rename_noreplace, renameat2):
3543         * lib/tempname.c (try_nocreate):
3544         If errno == EOVERFLOW then the directory entry exists, so do not
3545         act as if it does not exist.
3547         backup-rename: new module
3548         It is like backupfile, except it avoids some race conditions,
3549         and it does not output to stderr or exit.
3550         * MODULES.html.sh: Add backup-rename.
3551         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
3552         * modules/backup-rename: New files.
3553         * lib/backupfile.c: Turn this into an internals file, which
3554         contains code common to backupfile and backup_rename.  Include
3555         backupfile-internal.h instead of backupfile.h.  Do not include
3556         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
3557         renameat2.h and fcntl.h.
3558         (BACKUP_NOMEM): New constant.
3559         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
3560         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
3561         (backupfile_internal): Rename from find_backup_file_name.
3562         Support new arg RENAME.
3563         (backup_args, backup_types, get_version, xget_version):
3564         Move to lib/backup-find.c.
3565         * lib/backupfile.h (backup_file_rename): New decl.
3566         * modules/backupfile (Files): Add lib/backup-internal.h,
3567         lib/backup-find.c.
3568         (Depends-on): Add dirfd, fcntl, renameat2.
3569         (lib_SOURCES): Add backup-find.c.
3571         renameat2: port better to older Solaris
3572         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
3573         Add goto to use a label, to silence picky compilers.
3575         fts-tests: port to gcc -Wwrite-strings
3576         * tests/test-fts.c (base, base_d): New static vars.
3577         (argv, remove_tree, main): Use them.
3579 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
3581         relocatable-lib{,-lgpl}: improve documentation
3582         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
3583         Various other updates.
3585 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
3586             Bruno Haible  <bruno@clisp.org>
3588         relocatable-lib{,-lgpl}: add Valgrind suppressions
3589         * lib/relocatable.valgrind: New file.
3590         * modules/relocatable-lib (Files): Add relocatable.valgrind.
3591         * modules/relocatable-lib-lgpl: Likewise.
3593 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
3595         relocatable: Make the license on the sources the GPL.
3596         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
3597         LGPL, which was a special case so that the relocatable source files
3598         could be used without gnulib-tool, to GPL. They can still be used under
3599         the LGPL, using the --lgpl option to gnulib-tool.
3601 2017-07-30  Bruno Haible  <bruno@clisp.org>
3603         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
3604         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
3605         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
3606         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
3607         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
3609 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
3611         faccessat: document AT_SYMLINK_NOFOLLOW issue
3612         * doc/posix-functions/faccessat.texi: Modernize platform list.
3613         Document AT_SYMLINK_NOFOLLOW limitation.
3615         renameat2: port to Solaris 10
3616         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
3617         with AT_SYMLINK_NOFOLLOW (which is not portable).
3618         (renameat): Undef before using, to avoid endless recursion when
3619         the replacement renameat calls renameat2 which calls the
3620         replacement renameat.
3621         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
3622         * modules/renameat2 (Depends-on): Remove faccessat.
3623         * modules/renameat-tests (test_renameat_LDADD):
3624         * modules/renameat2-tests (test_renameat2_LDADD):
3625         Remove $(LIB_EACCESS).
3627         renameat2: new module
3628         Although the Linux syscall renameat2 is not in glibc (yet?), it is
3629         useful to have access to its RENAME_NOREPLACE flag.
3630         * MODULES.html.sh (func_all_modules): Add renameat2.
3631         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
3632         * modules/renameat2-tests, tests/test-renameat2.c: New files.
3633         * lib/renameat.c (renameat): Move most of the implementation
3634         to renameat2, and just call renameat2.
3635         * modules/renameat (Files): Remove lib/at-func2.c.
3636         (Depends-on): Depend only on renameat2.
3637         (Include): Remove <fcntl.h>.
3638         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
3639         since renameat (via renameat2) might use faccessat.
3641 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
3643         vc-list-files: Adjust the script to support git worktrees
3644         * build-aux/vc-list-files: Require existence, not directory.
3646 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
3648         doc: bring MODULES.html.sh up to date
3649         Somehow a few months ago we stopped updating MODULES.html.sh.
3650         I don’t recall explicitly deciding this, so I updated it now.
3651         Alternatively I suppose we could remove it.
3652         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
3653         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
3654         truncate, utime, utime-h, windows-stat-inodes,
3655         windows-stat-override, windows-stat-timespec, year2038.  Sort.
3657 2017-07-26  Jim Meyering  <meyering@fb.com>
3659         fprintftime: fix build-break caused by recent renaming
3660         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
3661         "strftime.c".
3662         * modules/fprintftime: Depend directly on nstrftime.
3664 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
3666         regex: work with GCC7's -Werror=implicit-fallthrough=
3667         * lib/regex_internal.h (FALLTHROUGH): New macro.
3668         * lib/regcomp.c (peek_token_bracket, parse_expression):
3669         * lib/regexec.c (check_node_accept): Use it.
3671 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
3673         fts: simplify fts_build
3674         * lib/fts.c (fts_build): Simplify, and be lazier about
3675         calling leaf_optimization.
3677         fts: three levels of leaf optimization
3678         * lib/fts.c (enum leaf_optimization): New type with three values.
3679         (S_MAGIC_AFS): New macro.  Sort them.
3680         (leaf_optimization): Rename from leaf_optimization_applies, and
3681         return enum leaf_optimization instead of bool.  All uses changed.
3682         Add cases for unknown type and for AFS.
3683         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
3685         fts: cache dirent_inode_sort_may_be_useful too
3686         * lib/fts.c (struct dev_type): New struct.
3687         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
3688         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
3689         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
3690         Now takes FTSENT const *, not int.  All uses changed.  Use
3691         filesystem_type to cache.
3692         (link_count_optimize_ok): Remove.  Caller changed to use
3693         leaf_optimization_applies, which now uses shared cache.
3695         fts: introduce MIN_DIR_NLINK
3696         * lib/fts.c (MIN_DIR_NLINK): New constant.
3697         Use it instead of 2, whenever we are talking about link counts.
3699         fts: nlink_t signedness fixups
3700         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
3701         so that root need not be a special case later.
3702         (fts_read): Remove now-redundant test for fts_level.
3703         Do not assume that nlink_t is signed.
3704         (fts_build): Remove useless decrement of nlinks.
3705         (fts_stat): Avoid unlikely signed integer overflow later, if
3706         nlink_t is signed.
3708         fts-tests: new module
3709         * modules/fts-tests, tests/test-fts.c: New files.
3711 2017-07-23  Bruno Haible  <bruno@clisp.org>
3713         Rename module 'strftime' to 'nstrftime'.
3714         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
3715         * lib/nstrftime.c: Renamed from lib/strftime.c.
3716         * modules/nstrftime: Renamed from modules/strftime.
3717         (Files, Makefile.am): Update.
3718         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
3719         Fix comment.
3720         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
3721         (Files, Makefile.am): Update.
3722         * modules/strftime: New file, an obsolete indirection.
3723         * doc/posix-functions/strftime.texi: Update reference.
3724         * config/srclist.txt: Update info.
3725         * NEWS: Mention the change.
3727 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
3729         malloca: Silence a warning from clang's memory sanitizer.
3730         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
3731         (freea): Use it.
3733 2017-07-18  Bruno Haible  <bruno@clisp.org>
3735         host-cpu-c-abi: Fix detection of MIPS ABI.
3736         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
3737         ABI, not the CPU instruction set.
3739 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
3741         explicit_bzero: new module
3742         The explicit_bzero function has been added to glibc.
3743         This module is intended to supports its use in GNU programs.
3744         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
3745         * m4/explicit_bzero.m4, modules/explicit_bzero:
3746         New files.
3747         * doc/gnulib.texi (Glibc string.h): Link to new doc.
3748         * lib/string.in.h (explicit_bzero): Declare.
3749         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
3750         * modules/string (string.h): Substitute its vars.
3752 2017-07-16  Bruno Haible  <bruno@clisp.org>
3754         threadlib: Support static linking.
3755         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
3756         set gl_cv_have_weak to 'no'.
3758 2017-07-16  Bruno Haible  <bruno@clisp.org>
3760         unicase/locale-language: Fix link dependencies.
3761         * modules/unicase/locale-language (Link): New section.
3762         * modules/unicase/locale-language-tests (Makefile.am): Link
3763         test-locale-language program with $(LIBTHREAD).
3765 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
3767         sys_socket: Add support for OpenVMS.
3768         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
3769         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
3771 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
3773         sys_resource: Add support for OpenVMS.
3774         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
3775         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
3777 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
3778             Bruno Haible  <bruno@clisp.org>
3780         math: Add support for OpenVMS.
3781         * lib/math.in.h [__VMS]: Include <fp.h>.
3782         * doc/posix-headers/math.texi: Mention OpenVMS issues.
3784 2017-07-15  Bruno Haible  <bruno@clisp.org>
3786         getdtablesize: Add minimal support for OpenVMS.
3787         Reported by John E. Malmberg <wb8tyw@qsl.net>.
3788         * modules/getdtablesize (Description): Fix.
3789         * lib/getdtablesize.c: Fix comment.
3790         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
3791         getdtablesize() function, even though the test fails.
3792         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
3793         limitation on OpenVMS.
3795 2017-07-13  Bruno Haible  <bruno@clisp.org>
3797         Revisit cross-compilation guesses.
3798         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
3800 2017-07-13  Bruno Haible  <bruno@clisp.org>
3802         Improve cross-compilation guesses for native Windows.
3803         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
3804         Windows.
3805         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
3806         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
3807         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
3808         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
3809         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
3810         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
3811         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3812         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3813         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
3814         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
3815         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
3816         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
3817         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
3818         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
3819         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
3820         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
3821         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
3822         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
3823         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
3824         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
3825         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
3826         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
3827         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
3828         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
3829         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
3830         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
3831         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
3832         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
3833         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
3834         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
3835         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
3836         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
3837         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
3838         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
3839         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
3840         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
3841         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
3842         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
3843         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
3844         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
3845         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
3846         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
3847         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
3848         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
3849         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
3850         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
3851         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
3852         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
3853         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
3854         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
3855         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
3856         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
3857         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
3858         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
3859         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
3860         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
3861         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
3862         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
3863         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
3864         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
3865         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
3866         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
3867         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
3868         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
3869         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
3870         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
3871         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
3872         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
3873         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
3874         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
3875         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
3876         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
3877         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
3878         * m4/regex.m4 (gl_REGEX): Likewise.
3879         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
3880         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
3881         gl_FUNC_REMAINDERF_WORKS): Likewise.
3882         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
3883         gl_FUNC_REMAINDERL_WORKS): Likewise.
3884         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
3885         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
3886         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
3887         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3888         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3889         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
3890         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
3891         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
3892         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
3893         * m4/stdint.m4 (gl_STDINT_H): Likewise.
3894         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
3895         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
3896         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
3897         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
3898         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
3899         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3900         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3901         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3902         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
3903         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
3904         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
3905         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
3906         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
3907         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
3908         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
3909         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
3910         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
3911         Likewise.
3912         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
3913         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
3914         Windows. Enable also on Autoconf 2.70.
3915         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
3916         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
3917         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
3918         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
3919         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
3920         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
3921         for native Windows.
3922         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
3923         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
3925 2017-07-13  Bruno Haible  <bruno@clisp.org>
3927         Improve cross-compilation guesses for native Windows.
3928         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
3929         Windows.
3930         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
3931         memchr.m4.
3932         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
3934 2017-07-13  Bruno Haible  <bruno@clisp.org>
3936         Improve cross-compilation guesses for native Windows.
3937         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
3938         native Windows.
3939         (gl_FUNC_FFLUSH): Update accordingly.
3940         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
3941         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
3943 2017-07-11  Bruno Haible  <bruno@clisp.org>
3945         More systematic m4 quoting and indentation.
3946         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
3947         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
3948         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
3949         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
3950         * m4/host-os.m4 (gl_HOST_OS): Likewise.
3951         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
3952         gl_WINSIZE_IN_PTEM): Likewise.
3953         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
3954         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
3955         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
3956         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
3957         Correct indentation.
3958         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3959         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3960         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
3961         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
3962         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
3963         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
3965 2017-07-10  Bruno Haible  <bruno@clisp.org>
3967         round, roundf: Avoid compiler warning in configure test.
3968         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
3969         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3971 2017-07-10  Bruno Haible  <bruno@clisp.org>
3973         getlogin tests: Avoid #ifdefs when sharing code between modules.
3974         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
3975         * modules/getlogin-tests (Files): Likewise. Remove
3976         tests/test-getlogin_r.c.
3977         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
3978         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
3979         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
3980         getlogin().
3982 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
3984         getlogin: don’t assume one name per uid
3985         Problem reported by Wolfgang F. Muthmann (Bug#27640).
3986         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
3987         (ttyname): Remove test.
3988         * modules/getlogin_r-tests (ttyname): Remove test.
3989         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
3990         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
3991         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
3992         getlogin rather than getlogin_r.  This avoids code duplication.
3993         (main): Use isatty and fstat rather than ttyname and stat.
3994         Use getpwnam instead of getpwuid, to be portable to test platforms
3995         that have multiple login names for the same uid.
3997 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
3998             Bruno Haible  <bruno@clisp.org>
4000         glob: Fix more memory leaks.
4001         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
4002         returning.
4003         Reported by Tim Rühsen.
4005 2017-07-10  Bruno Haible  <bruno@clisp.org>
4007         Make sure $host and $host_os are defined when used.
4008         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
4009         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
4010         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
4011         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
4012         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
4013         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
4014         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
4015         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
4016         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
4017         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
4018         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
4019         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
4020         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
4021         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
4022         m4_ifdef block.
4024 2017-07-09  Bruno Haible  <bruno@clisp.org>
4026         *printf: Fix cross-compilation guess for Solaris.
4027         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
4028         2010-12-21.
4030 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
4031             Bruno Haible  <bruno@clisp.org>
4033         vasnprintf: port to macOS 10.13
4034         Problem reported by comex in:
4035         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
4036         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
4038 2017-07-06  Bruno Haible  <bruno@clisp.org>
4040         imaxdiv tests: Fix logic.
4041         * tests/test-imaxdiv.c (main): Use == instead of =.
4042         Reported by Coverity.
4044 2017-07-06  Bruno Haible  <bruno@clisp.org>
4046         uninorm/filter: Fix use-after-free bug.
4047         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
4048         sortbuf == filter->sortbuf invariant.
4049         Reported by Coverity.
4051 2017-07-06  Bruno Haible  <bruno@clisp.org>
4053         glob: Fix more memory leaks.
4054         * lib/glob.c (glob): Free dirname before returning.
4055         Reported by Coverity and Tim Rühsen.
4057 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4059         parse-datetime: fix uninit var bug
4060         Reported by Bruno Haible in:
4061         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
4062         * lib/parse-datetime.y (parse_datetime2): Do not use
4063         uninitialized.
4065 2017-07-05  Bruno Haible  <bruno@clisp.org>
4067         doc: Update for MSVC 14.
4068         * doc/posix-headers/*.texi: Add info about MSVC 14.
4069         * doc/posix-functions/*.texi: Likewise.
4070         * doc/pastposix-functions/*.texi: Likewise.
4071         * doc/glibc-headers/*.texi: Likewise.
4072         * doc/glibc-functions/*.texi: Likewise.
4074 2017-07-05  Bruno Haible  <bruno@clisp.org>
4076         sched: Fix build failure on native Windows (regression from 2017-06-19).
4077         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
4079 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
4081         stdioext: Port to OpenVMS.
4082         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
4083         * lib/fpending.c (fpending): Remove non-working VMS specific code.
4084         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
4085         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
4086         * lib/fpurge.c (fpurge): Likewise.
4087         * lib/freadable.c (freadable): Likewise.
4088         * lib/freadahead.c (freadahead): Likewise.
4089         * lib/freading.c (freading): Likewise.
4090         * lib/freadptr.c (freadptr): Likewise.
4091         * lib/freadseek.c (freadseek): Likewise.
4092         * lib/fseeko.c (fseeko): Likewise.
4093         * lib/fseterr.c (fseterr): Likewise.
4094         * lib/fwritable.c (fwriteable): Likewise.
4095         * lib/fwriting.c (fwriting): Likewise.
4097 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
4099         glob: Declare variables at the very start of their scope.
4100         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
4101         its separate scope, so the functions will compile on Haiku.
4103 2017-07-01  Bruno Haible  <bruno@clisp.org>
4105         logbl: Work around a glibc bug on PowerPC64LE.
4106         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
4107         numbers.
4108         * doc/posix-functions/logbl.texi: Update.
4110 2017-06-29  Bruno Haible  <bruno@clisp.org>
4112         stat, fstat: Compile stat-w32.c only on platforms that need it.
4113         Suggested by Paul Eggert.
4114         * modules/stat (configure.ac): Request stat-w32.o only on native
4115         Windows.
4116         * modules/fstat (configure.ac): Likewise.
4118 2017-06-25  Bruno Haible  <bruno@clisp.org>
4120         stat: Improve last change.
4121         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
4123 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
4125         stat: port to xlc 12.01
4126         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
4127         12.01 complains "Compilation unit is empty."
4129 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
4131         xalloc-oversized: port to icc
4132         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
4133         __builtin_mul_overflow if ICC is defined, as this results in
4134         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
4135         20170213.
4137 2017-06-19  Bruno Haible  <bruno@clisp.org>
4139         classpath: Avoid including config.h twice, as it produces warnings.
4140         Reported by John E. Malmberg <wb8tyw@gmail.com>.
4141         * lib/classpath.h: Conditionalize the include of config.h.
4143 2017-06-19  Bruno Haible  <bruno@clisp.org>
4144             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
4146         sched: Fix compilation failure on OpenVMS.
4147         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
4148         test whether <pthread.h> exists and defines struct sched_param.
4149         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
4151 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
4153         diffseq: port to GCC 7 with --enable-gcc-warnings
4154         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
4155         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
4156         not complain about big_snake being defined but not used.
4158 2017-06-15  Bruno Haible  <bruno@clisp.org>
4160         gettext-h: Update theoretical condition for use of variable size arrays.
4161         Reported by Paul Eggert.
4162         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
4163         to include the theoretical condition for availability of variable size
4164         arrays, if we could trust the value of __STDC_VERSION__.
4166 2017-06-12  Bruno Haible  <bruno@clisp.org>
4168         Relicense some modules under LGPLv2+.
4169         Daiki Ueno's approval is in
4170         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
4171         * modules/uniwidth/base (License): Change to LGPLv2+.
4172         * modules/uniwidth/width (License): Likewise.
4174 2017-06-11  Bruno Haible  <bruno@clisp.org>
4176         localename: Fix test failure on DragonFly BSD.
4177         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
4178         like FreeBSD.
4180 2017-06-11  Bruno Haible  <bruno@clisp.org>
4182         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
4183         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
4184         * lib/float.in.h: Likewise.
4185         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
4187 2017-06-11  Bruno Haible  <bruno@clisp.org>
4189         gnulib-tool: Clean up after autotools.
4190         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
4191         useless directory left over by the Autotools.
4193 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
4195         getopt-posix: port to glibc 2.25.90
4196         Problem reported by Daniel P. Berrange in:
4197         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
4198         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
4199         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
4200         #undef if __GETOPT_PREFIX is defined.
4202 2017-06-11  Bruno Haible  <bruno@clisp.org>
4204         strtod-obsolete: Fix license.
4205         * modules/strtod-obsolete (License): Change to LGPL.
4207 2017-06-10  Jim Meyering  <meyering@fb.com>
4209         maint: update to work with GCC7's -Werror=implicit-fallthrough=
4210         * lib/savewd.c (FALLTHROUGH): Define.
4211         (savewd_save, savewd_restore): Use this, rather than a comment,
4212         whenever one switch case falls through into the next.
4214 2017-06-08  Bruno Haible  <bruno@clisp.org>
4216         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
4217         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
4218         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
4219         case.
4221 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
4223         doc: remove robots, add prereqs
4224         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
4225         builds.  Simon's robot site does not seem to be up, so remove
4226         mentions of it for now.
4228 2017-06-08  Bruno Haible  <bruno@clisp.org>
4230         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
4231         * gnulib-tool (func_symlink_target): New function, extracted from
4232         func_symlink.
4233         (func_symlink, func_symlink_if_changed): Use it.
4235 2017-06-08  Bruno Haible  <bruno@clisp.org>
4237         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
4238         * gnulib-tool (func_ln_s): Determine cp_src correctly.
4240 2017-06-07  Bruno Haible  <bruno@clisp.org>
4242         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
4243         Reported by John E. Malmberg <wb8tyw@gmail.com> in
4244         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
4245         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
4246         override, pass 2 arguments to getcwd, not 3.
4248 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
4250         same-inode: port better to VMS 8.2 and later
4251         Problem reported by John E. Malmberg in:
4252         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
4253         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
4254         Use the usual POSIX definition.
4255         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
4257 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
4259         error: fix POSIX violation for va_end
4260         Problem reported by Bruno Haible in:
4261         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
4262         * lib/error.c (error_tail): Do not call va_end here.
4263         (error, error_at_line): Call it here instead.
4265 2017-05-28  Bruno Haible  <bruno@clisp.org>
4267         c-strtod: Make it usable in C++ mode.
4268         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
4270 2017-05-25  Jim Meyering  <meyering@fb.com>
4272         quotearg: fix compilation failure due to FALLTHROUGH misuse
4273         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
4274         macro back to /* fall through */ comment.  The macro can apply only
4275         to a following case statement.  Reported by Assaf Gordon.
4277 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
4279         intprops: port to recent icc
4280         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
4281         but does not support __builtin_add_overflow etc.
4282         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
4283         Define to 0.
4285 2017-05-23  Karl Berry  <karl@freefriends.org>
4287         * config/srclist.txt (iconv.m4): sync broken, comment out
4288         until (hopefully) the next gettext release.
4290 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
4292         Remove repeated words in comments.
4294 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
4296         fallthrough: reinstate a FALLTHROUGH instance in quotearg
4297         quotearg.c: Reinstate this instance which is significant
4298         when the if branch is not taken.
4300 2017-05-21  Bruno Haible  <bruno@clisp.org>
4302         gnulib-tool: Add options to create hard links.
4303         * gnulib-tool (func_usage): Document options --hardlink,
4304         --local-hardlink, --more-hardlinks.
4305         (func_symlink): Renamed from func_ln.
4306         (func_symlink_if_changed): Renamed from func_ln_if_changed.
4307         (func_hardlink): New function.
4308         (copymode, lcopymode): New variables.
4309         (symbolic, lsymbolic): Remove variables.
4310         (Options): Implement options --hardlink, --local-hardlink,
4311         --more-hardlinks.
4312         (func_should_link): Renamed from func_should_symlink. Set copyaction.
4313         (func_add_file, func_update_file): Update invocation of
4314         func_should_link. Invoke func_hardlink when appropriate.
4315         (func_import): Update comments.
4316         (func_create_testdir): Update invocation of func_should_link. Invoke
4317         func_hardlink when appropriate.
4318         Finally, invoke 'git update-index --refresh' to mitigate the effects of
4319         the hard links on git.
4321 2017-05-20  Bruno Haible  <bruno@clisp.org>
4323         argp: Simplify bit manipulation.
4324         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
4325         on a signed integer type.
4327 2017-05-20  Bruno Haible  <bruno@clisp.org>
4329         Avoid wrong configure results with gcc -fsanitize=address.
4330         This completes the work done on 2016-02-06 on this topic.
4331         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
4332         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
4333         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4334         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
4335         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
4336         returning.
4337         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
4338         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
4339         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
4340         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
4341         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
4342         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
4343         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
4344         free allocated memory before returning.
4345         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
4346         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
4347         objects before returning.
4348         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
4349         returning.
4351 2017-05-20  Bruno Haible  <bruno@clisp.org>
4353         gnulib-tool: Don't create hard links between gnulib and its testdirs.
4354         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
4356 2017-05-20  Bruno Haible  <bruno@clisp.org>
4358         argp, tsearch tests: Fix file list.
4359         * modules/argp-tests (Files): Add tests/macros.h.
4360         * modules/tsearch-tests (Files): Likewise.
4362 2017-05-20  Bruno Haible  <bruno@clisp.org>
4364         getopt-posix tests: Remove redundant include.
4365         * tests/test-getopt.h: Don't include "macros.h". It's already included
4366         by tests/test-getopt-main.h.
4368 2017-05-19  Jim Meyering  <meyering@fb.com>
4370         dfa: two small simplifications
4371         * lib/dfa.c (build_state): Avoid repeating longer expressions.
4373 2017-05-18  Jim Meyering  <meyering@fb.com>
4375         fallthrough: update for GCC 7/8
4376         * lib/quotearg.c (FALLTHROUGH): New macro.
4377         Use it whenever one switch case falls through into the next,
4378         replacing "/* Fall through */" comments.  This exposed one
4379         instance of an unwarranted "fall through" comment: unwarranted
4380         because it preceded a "goto" label not a case statement.
4381         * lib/freopen-safer.c (freopen_safer): Likewise.
4382         * lib/fts.c (leaf_optimization_applies): Likewise.
4383         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
4384         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
4385         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
4386         tests/macros.h for the definition.
4387         * tests/test-argp.c (group1_parser): Likewise.
4388         * tests/test-getopt.h (getopt_loop): Likewise.
4390 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
4392         argp: fix shift bug
4393         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
4394         behavior on shift overflow, caught by gcc -fsanitize=undefined.
4396         argp: fix pointer-subtraction bug
4397         * lib/argp-help.c (hol_append): Don’t subtract pointers to
4398         different arrays, as this can run afoul of -fcheck-pointer-bounds.
4399         See the thread containing Bruno Haible’s report in:
4400         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
4402 2017-05-19  Bruno Haible  <bruno@clisp.org>
4404         printf-posix tests: Avoid test failure with "gcc --coverage".
4405         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
4406         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
4407         than 5000000.
4408         * tests/test-fprintf-posix2.c (main): Likewise.
4410 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
4412         closeout: don’t close stderr when sanitizing
4413         * NEWS: Document this.
4414         * lib/closeout.c (__has_feature): New macro, if not already defined.
4415         (SANITIZE_ADDRESS): New constant.
4416         (close_stdout): Don’t close stderr if sanitizing addresses.
4418 2017-05-19  Bruno Haible  <bruno@clisp.org>
4420         get-rusage-data tests: Avoid failure on Linux/glibc.
4421         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
4422         on glibc systems.
4424 2017-05-18  Bruno Haible  <bruno@clisp.org>
4426         localename: Include necessary header files on Cygwin.
4427         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
4428         where NL_LOCALE_NAME is defined.
4430 2017-05-18  Bruno Haible  <bruno@clisp.org>
4432         gettext: Update macros from gettext git.
4433         * m4/intldir.m4: Require Autoconf >= 2.60.
4434         * m4/progtest.m4: Fix typos in copyright notice.
4436 2017-05-18  Bruno Haible  <bruno@clisp.org>
4438         copy-file tests: Fix link error (regression from 2017-05-01).
4439         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4440         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
4441         $(LIB_CLOCK_GETTIME).
4443 2017-05-18  Bruno Haible  <bruno@clisp.org>
4445         unicase/special-casing: Fix incompatibility with gperf-3.0.4
4446         (regression from 2017-02-13).
4447         * lib/unicase/special-casing.in.h: Renamed from
4448         lib/unicase/special-casing.h.
4449         * modules/unicase/special-casing (Files): Add
4450         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
4451         (Makefile.am): Add rule for generating unicase/special-casing.h.
4452         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
4453         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
4454         not "special-casing.h".
4455         * lib/unicase/u*.c: Likewise.
4457 2017-05-17  Bruno Haible  <bruno@clisp.org>
4459         README: Don't ask people to read a TeXinfo file.
4460         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
4461         * README: Tell people how to read the HTML formatted manual.
4463 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
4465         parse-datetime: Fix memleak
4466         * lib/parse-datetime.y (parse_datetime2): Cleanup on
4467         localtime_rz() failure.
4469 2017-05-16  Bruno Haible  <bruno@clisp.org>
4471         javacomp: Fix handle leak.
4472         Found by Coverity.
4473         * lib/javacomp.c (get_classfile_version): Close fd before returning.
4475 2017-05-16  Bruno Haible  <bruno@clisp.org>
4477         relocate: Make it easier to reclaim allocated memory.
4478         * lib/relocatable.h (relocate2): New declaration/macro.
4479         * lib/relocatable.c (relocate2): New function.
4480         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
4481         relocate2 function.
4482         * lib/localcharset.c (relocate2): Define fallback.
4483         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
4484         allocated memory.
4485         * lib/javaversion.c (relocate2): Define fallback.
4486         (javaexec_version): Invoke relocate2 instead of relocate. Free the
4487         allocated memory.
4489 2017-05-16  Bruno Haible  <bruno@clisp.org>
4491         relocate: Simplify EMX specific code.
4492         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
4493         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
4495 2017-05-16  Bruno Haible  <bruno@clisp.org>
4497         sigpipe tests: Fix file list.
4498         * modules/sigpipe-tests (Files): Add tests/macros.h.
4500 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
4502         manywarnings: update for GCC 7
4503         * build-aux/gcc-warning.spec:
4504         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
4505         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
4506         requires a non-comment fallthrough attribute.  This is a bit
4507         cleaner than the comment versions.
4508         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
4509         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
4510         Use it whenever one switch case falls through into the next.
4511         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
4512         Use FALLTHROUGH macro.
4514 2017-05-15  Bruno Haible  <bruno@clisp.org>
4516         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
4517         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
4518         @ALLOCA@, not @LTALLOCA@.
4520 2017-05-15  Bruno Haible  <bruno@clisp.org>
4522         sys_select: Avoid "was expanded before it was required" warning.
4523         * modules/sys_select (configure.ac): Require, not invoke,
4524         gl_HEADER_SYS_SELECT.
4526 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
4528         gnulib-tool: improve GNU Make debugging
4529         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
4530         Report autoconf diagnostics when it fails, in the output makefile.
4532 2017-05-14  Bruno Haible  <bruno@clisp.org>
4534         stat-time tests: Improve comment.
4535         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
4537 2017-05-14  Bruno Haible  <bruno@clisp.org>
4539         same-inode: Adapt for windows-stat-inodes.
4540         * lib/same-inode.h: Include <sys/types.h>.
4541         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
4542         * modules/same-inode (Depends-on): Add sys_types.
4544 2017-05-14  Bruno Haible  <bruno@clisp.org>
4546         windows-stat-inodes: New module.
4547         * m4/windows-stat-inodes.m4: New file.
4548         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
4549         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
4550         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
4551         (_GL_WINDOWS_STAT_INODES): New macro.
4552         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
4553         (GetFileInformationByHandleExFunc): New variable.
4554         (initialize): Initialize it.
4555         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
4556         st_ino appropriately.
4557         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
4558         a fallback, because it does not provide st_dev and st_ino values.
4559         * modules/fstat (Depends-on): Add 'verify'.
4560         * modules/windows-stat-inodes: New file.
4561         * doc/windows-stat-inodes.texi: New file.
4562         * doc/gnulib.texi: Include it.
4563         * doc/posix-headers/sys_stat.texi: Mention the new module.
4565 2017-05-14  Bruno Haible  <bruno@clisp.org>
4567         stat-time tests: Workaround for native Windows.
4568         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
4569         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
4570         New variables.
4571         (initialize_filenames): New function.
4572         (main): Invoke it.
4573         (cleanup, prepare_test): Update.
4575 2017-05-14  Bruno Haible  <bruno@clisp.org>
4577         stat-time: Adapt for windows-stat-timespec.
4578         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
4579         entire st_ctim field.
4581 2017-05-13  Jim Meyering  <meyering@fb.com>
4583         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
4584         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
4585         file that uses the assume macro, claiming that verify.h is unused.
4587 2017-05-13  Bruno Haible  <bruno@clisp.org>
4589         Use symbolic values for _WIN32_WINNT.
4590         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
4591         * lib/sethostname.c (_WIN32_WINNT): Likewise.
4593 2017-05-13  Bruno Haible  <bruno@clisp.org>
4595         year2038: New module.
4596         * m4/year2038.m4: New file.
4597         * modules/year2038: New file.
4598         * doc/year2038.texi: New file.
4599         * doc/gnulib.texi: Include it.
4601 2017-05-13  Bruno Haible  <bruno@clisp.org>
4603         largefile: Simplify.
4604         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
4605         of _GL_WINDOWS_64_BIT_ST_SIZE.
4607 2017-05-13  Bruno Haible  <bruno@clisp.org>
4609         largefile: Improve and document.
4610         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
4611         the mingw headers already define 'stat' appropriately.
4612         * modules/largefile (Description): Clarify.
4613         * doc/largefile.texi: New file.
4614         * doc/gnulib.texi: Include it.
4615         * doc/posix-headers/sys_types.texi: Update.
4617 2017-05-13  Bruno Haible  <bruno@clisp.org>
4619         truncate: New module.
4620         * lib/unistd.in.h (truncate): New declaration.
4621         * lib/truncate.c: New file.
4622         * m4/truncate.m4: New file.
4623         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
4624         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
4625         REPLACE_TRUNCATE.
4626         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
4627         HAVE_TRUNCATE, REPLACE_TRUNCATE.
4628         * modules/truncate: New file.
4629         * tests/test-unistd-c++.cc (truncate): Test signature.
4630         * doc/posix-functions/truncate.texi: Mention the new module.
4632         * tests/test-truncate.c: New file.
4633         * modules/truncate-tests: New file.
4635 2017-05-13  Bruno Haible  <bruno@clisp.org>
4637         windows-stat-timespec: New module.
4638         * modules/windows-stat-timespec: New file.
4639         * m4/windows-stat-timespec.m4: New file.
4640         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
4641         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
4642         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
4643         fields st_atim, st_mtim, st_ctim.
4644         (st_atime, st_mtime, st_ctime): Define as macros.
4645         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
4646         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
4647         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
4648         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
4649         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
4650         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
4651         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
4652         FILETIME to 'struct timespec', not 'time_t'.
4653         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
4654         FILETIME to 'struct timespec', not 'time_t'.
4655         * lib/stat-time.h (STAT_TIMESPEC): Define also if
4656         _GL_WINDOWS_STAT_TIMESPEC.
4657         * doc/windows-stat-timespec.texi: New file.
4658         * doc/gnulib.texi: Include it.
4660 2017-05-13  Bruno Haible  <bruno@clisp.org>
4662         windows-stat-override: New module.
4663         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
4664         definition. Define GNULIB_defined_struct_stat.
4665         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
4666         link error if this symbol is used and the corresponding module is not
4667         in use.
4668         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
4669         GNULIB_OVERRIDES_STRUCT_STAT.
4670         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
4671         GNULIB_OVERRIDES_STRUCT_STAT.
4672         * modules/sys_stat (Makefile.am): Substitute
4673         GNULIB_OVERRIDES_STRUCT_STAT.
4674         * modules/windows-stat-override: New file.
4676 2017-05-13  Bruno Haible  <bruno@clisp.org>
4678         fstat: Fix module dependency conditions.
4679         * modules/fstat (Depends-on): Fix typo.
4681 2017-05-13  Bruno Haible  <bruno@clisp.org>
4683         stat, fstat: Complete removal of old native Windows code.
4684         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
4685         * lib/fstat.c: Likewise.
4686         * lib/stat-w32.c: Likewise.
4688 2017-05-13  Bruno Haible  <bruno@clisp.org>
4690         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
4691         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
4693 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
4695         getopt-posix: port to mingw
4696         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
4697         Problem reported by Daniel P. Berrage in:
4698         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
4700 2017-05-11  Bruno Haible  <bruno@clisp.org>
4702         gettimeofday: Increase precision on mingw.
4703         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
4704         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
4705         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
4706         GetSystemTimePreciseAsFileTime based implementation always.
4707         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
4708         mingw.
4710 2017-05-11  Bruno Haible  <bruno@clisp.org>
4712         poll: Fix confusion between SOCKETs and FDs on native Windows.
4713         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
4714         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
4716 2017-05-11  Bruno Haible  <bruno@clisp.org>
4718         doc: Clarify doc about socket functions on native Windows.
4719         This reworks doc that was added on 2008-09-29.
4720         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
4721         clearer wording.
4722         * doc/posix-functions/accept.texi: Use clearer wording.
4723         * doc/posix-functions/bind.texi: Likewise.
4724         * doc/posix-functions/connect.texi: Likewise.
4725         * doc/posix-functions/getpeername.texi: Likewise.
4726         * doc/posix-functions/getsockname.texi: Likewise.
4727         * doc/posix-functions/getsockopt.texi: Likewise.
4728         * doc/posix-functions/ioctl.texi: Likewise.
4729         * doc/posix-functions/listen.texi: Likewise.
4730         * doc/posix-functions/recv.texi: Likewise.
4731         * doc/posix-functions/recvfrom.texi: Likewise.
4732         * doc/posix-functions/send.texi: Likewise.
4733         * doc/posix-functions/sendto.texi: Likewise.
4734         * doc/posix-functions/setsockopt.texi: Likewise.
4735         * doc/posix-functions/shutdown.texi: Likewise.
4736         * doc/posix-functions/socket.texi: Likewise.
4738 2017-05-10  Bruno Haible  <bruno@clisp.org>
4740         poll: Fix link error on native Windows.
4741         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
4743 2017-05-10  Bruno Haible  <bruno@clisp.org>
4745         time: Fix missing initialization of HAVE_TIMEZONE_T.
4746         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
4747         here...
4748         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
4749         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
4750         gl_HEADER_SYS_TIME_H_DEFAULTS.
4751         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
4752         (configure.ac): Remove useless quoting.
4754 2017-05-10  Bruno Haible  <bruno@clisp.org>
4756         Implement a way to opt out from MSVC support, part 2.
4757         * modules/msvc-inval (Include): Document recommended idiom.
4758         * modules/msvc-nothrow (Include): Likewise.
4760         Implement a way to opt out from MSVC support.
4761         This is useful for Emacs.
4762         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
4763         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
4764         * lib/error.c: Likewise.
4765         * lib/fcntl.c: Likewise.
4766         * lib/flock.c: Likewise.
4767         * lib/fstat.c: Likewise.
4768         * lib/fsync.c: Likewise.
4769         * lib/ioctl.c: Likewise.
4770         * lib/isapipe.c: Likewise.
4771         * lib/lseek.c: Likewise.
4772         * lib/nonblocking.c: Likewise.
4773         * lib/poll.c: Likewise.
4774         * lib/select.c: Likewise.
4775         * lib/sockets.h: Likewise.
4776         * lib/sockets.c: Likewise.
4777         * lib/stdio-read.c: Likewise.
4778         * lib/stdio-write.c: Likewise.
4779         * lib/utimens.c: Likewise.
4780         * lib/w32sock.h: Likewise.
4781         * lib/w32spawn.h: Likewise.
4782         * tests/test-cloexec.c: Likewise.
4783         * tests/test-dup-safer.c: Likewise.
4784         * tests/test-dup2.c: Likewise.
4785         * tests/test-dup3.c: Likewise.
4786         * tests/test-fcntl.c: Likewise.
4787         * tests/test-pipe.c: Likewise.
4788         * tests/test-pipe2.c: Likewise.
4789         * lib/ftruncate.c: Likewise.
4790         (chsize_nothrow): Renamed from chsize.
4791         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
4792         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
4793         * lib/close.c: Likewise.
4794         * lib/dup.c: Likewise.
4795         * lib/fclose.c: Likewise.
4796         * lib/raise.c: Likewise.
4797         * tests/test-fgetc.c: Likewise.
4798         * tests/test-fputc.c: Likewise.
4799         * tests/test-fread.c: Likewise.
4800         * tests/test-fwrite.c: Likewise.
4801         * lib/getdtablesize.c: Likewise.
4802         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
4803         * lib/isatty.c: Don't include msvc-inval.h if
4804         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
4805         Include <io.h> as an alternative to msvc-nothrow.h.
4806         * lib/read.c: Likewise.
4807         * lib/write.c: Likewise.
4808         * lib/dup2.c: Likewise.
4809         (dup2_nothrow): New function.
4810         (ms_windows_dup2): Use it.
4811         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
4812         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
4813         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
4814         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
4815         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
4816         * m4/read.m4 (gl_FUNC_READ): Likewise.
4817         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
4818         * doc/windows-without-msvc.texi: New file.
4819         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
4820         section.
4822 2017-05-10  Bruno Haible  <bruno@clisp.org>
4824         wait-process: Adjust native Windows support.
4825         * lib/wait-process.c: Use the usual condition for recognizing a native
4826         Windows platform.
4828 2017-05-10  Bruno Haible  <bruno@clisp.org>
4830         doc: New chapter "Native Windows Support".
4831         * doc/gnulib.texi (Native Windows Support): New chapter.
4832         * doc/windows-libtool.texi: Small wording changes.
4833         * doc/windows-sockets.texi: Small wording and formatting changes.
4835 2017-05-10  Bruno Haible  <bruno@clisp.org>
4837         doc: Move section "Library version handling".
4838         * doc/gnulib.texi: Move section "Library version handling"
4839         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
4841 2017-05-10  Bruno Haible  <bruno@clisp.org>
4843         doc: Move section "Running self-tests under valgrind".
4844         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
4845         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
4847 2017-05-10  Bruno Haible  <bruno@clisp.org>
4849         doc: New chapter "Build Infrastructure Modules".
4850         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
4852 2017-05-10  Bruno Haible  <bruno@clisp.org>
4854         Prepare for reordering sections in the manual.
4855         * doc/gnulib.texi: Move several sections to separate files. Include
4856         these files.
4857         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
4858         * doc/obsolete.texi: Likewise.
4859         * doc/extra-tests.texi: Likewise.
4860         * doc/transversal.texi: Likewise.
4861         * doc/namespace.texi: Likewise.
4862         * doc/check-version.texi: Likewise.
4863         * doc/windows-sockets.texi: Likewise.
4864         * doc/windows-libtool.texi: Likewise.
4865         * doc/licenses-texi.texi: Likewise.
4866         * doc/build-automation.texi: Likewise.
4867         * doc/c-locale.texi: Likewise.
4869 2017-05-10  Bruno Haible  <bruno@clisp.org>
4871         Fix instructions how to update manual on www.gnu.org.
4872         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
4874 2017-05-09  Bruno Haible  <bruno@clisp.org>
4876         tzset: Expand comment about TZ problem on native Windows.
4877         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
4878         Paul Eggert.
4879         * lib/ctime.c (rpl_ctime): Likewise.
4880         * lib/localtime.c (rpl_localtime): Likewise.
4881         * lib/mktime.c (mktime): Likewise.
4882         * lib/strftime-fixes.c (rpl_strftime): Likewise.
4883         * lib/wcsftime.c (rpl_wcsftime): Likewise.
4885 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
4887         intprops: don’t depend on ‘verify’
4888         Problem reported by Ævar Arnfjörð Bjarmason in:
4889         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
4890         * lib/intprops.h: Do not include verify.h, and move compile-time
4891         checks from here ...
4892         * tests/test-intprops.c (main): ... to here, if they’re not here
4893         already.  Check widths of other standard integer types.
4894         * modules/intprops (Depends-on): Remove ‘verify’.
4896 2017-05-07  Bruno Haible  <bruno@clisp.org>
4898         utimens: On native Windows, support 100ns resolution also if fd < 0.
4899         * lib/utime.in.h: Include <time.h>.
4900         (_gl_utimens_windows): New declaration.
4901         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
4902         (utime): Invoke it.
4903         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
4904         instead of utime.
4905         * modules/utime (Depends-on): Add 'time'.
4907 2017-05-07  Bruno Haible  <bruno@clisp.org>
4909         utimens: Improve error code on native Windows.
4910         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
4911         error code EACCES, not EINVAL.
4913 2017-05-07  Bruno Haible  <bruno@clisp.org>
4915         utime: Handle more Windows error codes.
4916         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
4917         Based on explanations by Billy O'Neal.
4919 2017-05-05  Bruno Haible  <bruno@clisp.org>
4921         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
4922         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
4923         union.
4924         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
4925         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
4926         value of cipher->IV.
4928 2017-05-05  Bruno Haible  <bruno@clisp.org>
4930         wctype-h-c++-tests: Update.
4931         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
4933 2017-05-05  Bruno Haible  <bruno@clisp.org>
4935         wchar-c++-tests: Update.
4936         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
4938 2017-05-05  Bruno Haible  <bruno@clisp.org>
4940         utime-h-c++-tests: New module.
4941         * tests/test-utime-h-c++.cc: New file.
4942         (utime): Declare, missing since 2017-04-30.
4943         * modules/utime-h-c++-tests: New file.
4945 2017-05-05  Bruno Haible  <bruno@clisp.org>
4947         unistd-c++-tests: Update.
4948         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
4949         (read): Declare, missing since 2011-04-15.
4950         (sethostname): Declare, missing since 2011-12-03.
4952 2017-05-05  Bruno Haible  <bruno@clisp.org>
4954         time-c++-tests: Update.
4955         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
4956         (localtime, gmtime): Declare, missing since 2017-04-30.
4957         (ctime): Declare, missing since 2017-04-30.
4958         (strftime): Declare, missing since 2017-04-30.
4959         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
4960         2015-07-24.
4962 2017-05-05  Bruno Haible  <bruno@clisp.org>
4964         sys_resource-c++-tests: New module.
4965         * tests/test-sys_resource-c++.cc: New file.
4966         (getrusage): Declare, missing since 2012-04-13.
4967         * modules/sys_resource-c++-tests: New file.
4969 2017-05-05  Bruno Haible  <bruno@clisp.org>
4971         strings-c++-tests: New module.
4972         * tests/test-strings-c++.cc: New file.
4973         (ffs): Declare, missing since 2011-07-12.
4974         * modules/strings-c++-tests: New file.
4976 2017-05-05  Bruno Haible  <bruno@clisp.org>
4978         string-c++-tests: Update.
4979         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
4980         (ffsll): Declare, missing since 2011-07-15.
4982 2017-05-05  Bruno Haible  <bruno@clisp.org>
4984         stdlib-c++-tests: Update.
4985         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
4986         2011-10-18.
4987         (ptsname_r): Declare, missing since 2011-11-07.
4988         (qsort_r): Declare, missing since 2014-08-29.
4989         (random, srandom, initstate, setstate): Declare, missing since
4990         2012-01-14.
4991         (secure_getenv): Declare, missing since 2013-02-05.
4993 2017-05-05  Bruno Haible  <bruno@clisp.org>
4995         stdio-c++-tests: Update.
4996         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
4998 2017-05-05  Bruno Haible  <bruno@clisp.org>
5000         signal-h-c++-tests: Update.
5001         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
5003 2017-05-05  Bruno Haible  <bruno@clisp.org>
5005         math-c++-tests: Update.
5006         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
5007         (fma): Declare, missing since 2011-10-17.
5008         (fmal): Declare, missing since 2011-10-17.
5010 2017-05-05  Bruno Haible  <bruno@clisp.org>
5012         locale-c++-tests: Update.
5013         * tests/test-locale-c++.cc (localeconv): Declare, missing since
5014         2012-03-25.
5016 2017-05-05  Bruno Haible  <bruno@clisp.org>
5018         inttypes-c++-tests: New module.
5019         * tests/test-inttypes-c++.cc: New file.
5020         (strtoimax): Declare, missing since 2012-01-05.
5021         (strtoumax): Declare, missing since 2012-01-05.
5022         * modules/inttypes-c++-tests: New file.
5024 2017-05-05  Bruno Haible  <bruno@clisp.org>
5026         dirent-c++-tests: Update.
5027         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
5028         (rewinddir): Declare, missing since 2011-09-13.
5029         (dirfd): Declare, missing since 2010-03-08.
5031 2017-05-04  Bruno Haible  <bruno@clisp.org>
5033         argp: Fix mistake in 2017-04-23 commit.
5034         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
5035         assume that strerror_r returns 'int', not 'char *'.
5037 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
5039         argp: Fix typo.
5040         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
5042 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
5044         utimens: port to Emacs + MS-Windows
5045         Skip the new MS-Windows-specific code if Emacs.
5046         * lib/utimens.c [EMACS_CONFIGUATION]:
5047         Avoid new MS-Windows-specific code.
5048         (USE_SETFILETIME): New macro.
5049         (fdutimens): Use it.
5051 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
5053         tzset: update doc for TZ problems on MS-Windows
5054         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
5055         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
5056         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
5057         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
5058         * doc/posix-functions/wcsftime.texi:
5059         Mention some issues with TZ under MS-Windows.
5061 2017-05-01  Bruno Haible  <bruno@clisp.org>
5063         copy-file: Fix build error on mingw.
5064         * modules/copy-file (Depends-on): Add 'close'.
5066 2017-05-01  Bruno Haible  <bruno@clisp.org>
5068         tzset: Work around TZ problem on native Windows.
5069         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
5070         Windows, set REPLACE_TZSET to 1.
5071         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
5072         invoke '_tzset' instead of 'tzset'.
5073         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
5075         * modules/time_rz (Depends-on): Add tzset.
5076         * lib/time_rz.c (tzset): Remove fallback definition.
5077         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
5079 2017-05-01  Bruno Haible  <bruno@clisp.org>
5081         mktime: Fix dependencies.
5082         * modules/mktime (Depends-on): Add 'time'.
5084 2017-05-01  Bruno Haible  <bruno@clisp.org>
5086         New module 'localtime-buffer', split off from module 'gettimeofday'.
5087         * lib/localtime-buffer.h: New file.
5088         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
5089         * lib/time.in.h (tzset): New declaration.
5090         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
5091         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
5092         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
5093         moved to lib/localtime-buffer.c or lib/tzset.c.
5094         * m4/localtime-buffer.m4: New file.
5095         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
5096         HAVE_TZSET, REPLACE_TZSET.
5097         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
5098         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
5099         gl_LOCALTIME_BUFFER_NEEDED.
5100         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
5101         since 2007-01-18.
5102         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
5103         tzset.
5104         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
5105         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
5106         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
5107         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
5108         * modules/localtime-buffer: New file.
5109         * modules/time (Depends-on): Remove 'gettimeofday'.
5110         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
5111         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
5112         * modules/tzset (Description): Enable hyperlink to POSIX spec.
5113         (Files): Add lib/tzset.c.
5114         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
5115         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
5116         gl_TIME_MODULE_INDICATOR.
5117         * modules/gettimeofday (Depends-on): Add localtime-buffer.
5119 2017-05-01  Bruno Haible  <bruno@clisp.org>
5121         copy-file: Preserve sub-second time stamps.
5122         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
5123         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
5124         transport the time stamps from the original file to the destination
5125         file.
5126         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
5127         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
5128         utime-h.
5130 2017-05-01  Bruno Haible  <bruno@clisp.org>
5132         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
5133         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
5134         also on MSVC.
5135         Reported by Eli Zaretskii <eliz@gnu.org>.
5137 2017-05-01  Bruno Haible  <bruno@clisp.org>
5139         wchar: Fix compilation error with the original mingw.org mingw.
5140         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
5141         <stddef.h> instead.
5142         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
5143         gl_WCTYPE_H.
5144         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
5145         gl_TYPE_WINT_T_PREREQ instead.
5146         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
5147         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
5148         Reported by Eli Zaretskii <eliz@gnu.org>.
5150 2017-04-30  Bruno Haible  <bruno@clisp.org>
5152         utimecmp: Add support for native Windows.
5153         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
5155 2017-04-30  Bruno Haible  <bruno@clisp.org>
5157         utimens: Add support for native Windows.
5158         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
5159         (fdutimens): Provide a native Windows implementation, like utime.c with
5160         added tv_nsec support.
5161         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
5162         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
5164 2017-04-30  Bruno Haible  <bruno@clisp.org>
5166         wcsftime: New module.
5167         * lib/wchar.in.h (wcsftime): New declaration.
5168         * lib/wcsftime.c: New file.
5169         * m4/wcsftime.m4: New file.
5170         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
5171         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
5172         HAVE_WCSFTIME, REPLACE_WCSFTIME.
5173         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
5174         HAVE_WCSFTIME, REPLACE_WCSFTIME.
5175         * modules/wcsftime: New file.
5176         * doc/posix-functions/wcsftime.texi: Mention the new module.
5178 2017-04-30  Bruno Haible  <bruno@clisp.org>
5180         strftime-fixes: New module.
5181         * lib/time.in.h (strftime): New declaration.
5182         * lib/strftime-fixes.c: New file.
5183         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
5184         (gl_FUNC_STRFTIME): Remove macro.
5185         * m4/strftime-fixes.m4: New file.
5186         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
5187         REPLACE_STRFTIME.
5188         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
5189         REPLACE_STRFTIME.
5190         * modules/strftime-fixes: New file.
5191         * doc/posix-functions/strftime.texi: Mention the new module.
5193 2017-04-30  Bruno Haible  <bruno@clisp.org>
5195         mktime: Work around TZ problem on native Windows.
5196         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
5197         from the native Windows workaround.
5198         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
5199         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
5200         'guessing no'.
5201         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
5202         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
5203         NEED_MKTIME_WINDOWS.
5204         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
5205         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
5206         NEED_MKTIME_INTERNAL.
5207         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
5208         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
5209         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
5210         not REPLACE_MKTIME.
5211         * doc/posix-functions/mktime.texi: Mention the native Windows
5212         workaround.
5214 2017-04-30  Bruno Haible  <bruno@clisp.org>
5216         localtime: New module.
5217         * lib/time.in.h (localtime): Declare also if requested by module
5218         'localtime'.
5219         * lib/localtime.c: New file.
5220         * m4/localtime.m4: New file.
5221         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
5222         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
5223         * modules/localtime: New file.
5224         * doc/posix-functions/localtime.texi: Mention the new module.
5226 2017-04-30  Bruno Haible  <bruno@clisp.org>
5228         ctime: New module.
5229         * lib/time.in.h (ctime): New declaration.
5230         * lib/ctime.c: New file.
5231         * m4/ctime.m4: New file.
5232         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
5233         REPLACE_CTIME.
5234         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
5235         * modules/ctime: New file.
5236         * doc/posix-functions/ctime.texi: Mention the new module.
5238 2017-04-30  Bruno Haible  <bruno@clisp.org>
5240         gettimeofday: Provide higher resolution on native Windows.
5241         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
5242         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
5243         (initialize): Initialize it.
5244         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
5245         'struct timeval'. Don't use _ftime().
5246         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
5247         <sys/timeb.h> and _ftime.
5249 2017-04-30  Bruno Haible  <bruno@clisp.org>
5251         Document the problem with the Cygwin environment variable TZ.
5252         * doc/posix-functions/tzset.texi: Add note about TZ.
5253         * doc/posix-functions/ctime.texi: Likewise.
5254         * doc/posix-functions/localtime.texi: Likewise.
5255         * doc/posix-functions/mktime.texi: Likewise.
5256         * doc/posix-functions/strftime.texi: Likewise.
5257         * doc/posix-functions/wcsftime.texi: Likewise.
5258         * doc/pastposix-functions/ftime.texi: Likewise.
5260 2017-04-30  Bruno Haible  <bruno@clisp.org>
5262         utime-tests: New module.
5263         * tests/test-utime.c: New file, based on tests/test-utimens.h.
5264         * tests/test-utimens-common.h: Include <sys/stat.h>.
5265         * modules/utime-tests: New file.
5267 2017-04-29  Bruno Haible  <bruno@clisp.org>
5269         utime: New module.
5270         * lib/utime.in.h: Add comment for snippets.
5271         (utime): New declaration.
5272         * lib/utime.c: New file.
5273         * m4/utime.m4: New file.
5274         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
5275         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
5276         REPLACE_UTIME.
5277         * modules/utime-h (Depends-on): Add snippets.
5278         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
5279         Insert snippets.
5280         * modules/utime: New file.
5281         * doc/posix-functions/utime.texi: Mention the new module.
5283 2017-04-29  Bruno Haible  <bruno@clisp.org>
5285         utime-h: Modernize handling of 'struct utimbuf'.
5286         * lib/utime.in.h: Include next <utime.h> if it exists.
5287         (utimbuf): Define to _utimbuf on native Windows.
5288         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
5289         Set UTIME_H on native Windows.
5290         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
5291         * modules/utime-h (Depends-on): Add include_next.
5292         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
5293         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
5295         * lib/utimens.c (utimbuf): Remove fallback definition.
5296         * m4/utimens.m4 (gl_UTIMENS): Don't require
5297         gl_CHECK_TYPE_STRUCT_UTIMBUF.
5298         * m4/utimbuf.m4: Remove file.
5299         * modules/utimens (Files): Remove m4/utimbuf.m4.
5301 2017-04-29  Bruno Haible  <bruno@clisp.org>
5303         Make use of module 'utime-h'.
5304         * modules/copy-file (Depends-on): Add utime-h.
5305         * lib/copy-file.c: Assume that <utime.h> exists.
5306         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
5308         * modules/utimens (Depends-on): Add utime-h.
5309         * lib/utimens.c: Assume that <utime.h> exists.
5311 2017-04-29  Bruno Haible  <bruno@clisp.org>
5313         utime-h: New module.
5314         * m4/utime_h.m4: New file.
5315         * lib/utime.in.h: New file.
5316         * modules/utime-h: New file.
5317         * doc/posix-headers/utime.texi: Mention the new module.
5319         * tests/test-utime-h.c: New file.
5320         * modules/utime-h-tests: New file.
5322 2017-04-30  Bruno Haible  <bruno@clisp.org>
5324         Fix a few typos.
5325         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
5326         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
5327         * doc/posix-functions/fstat.texi: Fix a plural typo.
5328         * doc/posix-functions/stat.texi: Likewise.
5329         * m4/include_next.m4: Update comments.
5331 2017-04-29  Bruno Haible  <bruno@clisp.org>
5333         error: Fix mistake in 2017-04-23 commit.
5334         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
5335         assume that strerror_r returns 'int', not 'char *'.
5337 2017-04-29  Bruno Haible  <bruno@clisp.org>
5339         stat: Fix time_t values and other problems on native Windows platforms.
5340         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
5341         implementations of stat().
5342         * lib/stat.c: Include filename.h instead of dosname.h. Include
5343         malloca.h, stat-w32.h.
5344         (is_unc_root): New function.
5345         (rpl_stat): New implementation for native Windows. Remove
5346         REPLACE_FUNC_STAT_DIR code.
5347         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
5348         Don't define REPLACE_FUNC_STAT_DIR.
5349         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
5350         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
5351         (Depends-on): Remove dosname. Add filename, malloca.
5352         (configure.ac): Also compile lib/stat-w32.c.
5354 2017-04-29  Bruno Haible  <bruno@clisp.org>
5356         fstat: Fix time_t values on native Windows platforms.
5357         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
5358         * lib/stat-w32.h: New file.
5359         * lib/stat-w32.c: New file.
5360         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
5361         stat-w32.h instead.
5362         (fstat_nothrow): Remove function.
5363         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
5364         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
5365         always.
5366         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
5367         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
5368         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
5369         (configure.ac): Also compile lib/stat-w32.c.
5371 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
5373         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
5374         Problem reported by Assaf Gordon and Gavin Smith in:
5375         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
5376         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
5377         #define this, too.
5379 2017-04-29  Bruno Haible  <bruno@clisp.org>
5381         strerror_r-posix: Fixes for MSVC 14.
5382         * lib/strerror_r.c: Include <stdarg.h>.
5383         (strerror_r): Provide error messages for errno values 100...140.
5384         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
5386 2017-04-28  Bruno Haible  <bruno@clisp.org>
5388         noreturn: New module.
5389         * lib/noreturn.h: New file.
5390         * modules/noreturn: New file.
5391         * tests/test-noreturn.c: New file.
5392         * modules/noreturn-tests: New file.
5393         * tests/test-noreturn-c++.cc: New file.
5394         * modules/noreturn-c++-tests: New file.
5396 2017-04-27  Bruno Haible  <bruno@clisp.org>
5398         wctype-h: Fix compilation error with the original mingw.org mingw.
5399         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
5400         HAVE_CRTDEFS_H.
5401         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
5402         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
5403         <stddef.h> instead.
5404         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
5406 2017-04-26  Pádraig Brady  <P@draigBrady.com>
5408         nap.h: Fix compilation on non windows platforms
5409         * tests/nap.h: Move misplaced endif.
5411 2017-04-26  Pádraig Brady  <P@draigBrady.com>
5412         and Paul Eggert  <eggert@cs.ucla.edu>
5414         time_rz: fix heap buffer overflow vulnerability
5415         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
5416         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
5417         whether there is enough buffer space available, thus avoiding
5418         the problematic promotion of signed to unsigned causing an invalid
5419         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
5420         the start of the buffer.
5421         * tests/test-parse-datetime.c (main): Add a test case written by
5422         Paul Eggert, which overwrites enough of the heap so that
5423         standard glibc will fail with "free(): invalid pointer"
5424         without the patch applied.
5426 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
5428         xalloc: add missing integer overflow check
5429         * lib/xalloc.h (x2nrealloc): Also check for multiplication
5430         overflow when P is null.
5432 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
5434         parse-datetime: make it standalone
5435         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
5436         (_GL_ATTRIBUTE_FORMAT): New macro.
5437         These are needed to get './gnulib-tool --test parse-datetime' to work.
5439 2017-04-23  Bruno Haible  <bruno@clisp.org>
5441         nap.h: Port to native Windows.
5442         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
5443         use nap_fd instead. On native Windows, close and reopen nap_fd.
5444         (nap_works): Don't compare the ctimes, because on native Windows, these
5445         are the creation times.
5446         (nap): Update.
5448 2017-04-23  Bruno Haible  <bruno@clisp.org>
5450         nap.h: Fix logic.
5451         * tests/nap.h (nap): Avoid signed integer overflow in loop.
5453 2017-04-23  Bruno Haible  <bruno@clisp.org>
5455         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
5456         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
5457         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
5458         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
5459         * lib/argp-help.c (__argp_failure): Likewise.
5461 2017-04-23  Bruno Haible  <bruno@clisp.org>
5463         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
5464         * m4/strerror_r.m4: Revert changes since 2016-10-16.
5465         * lib/strerror_r.c: Likewise.
5467 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
5469         Target a C99 subset, not a C89 subset
5470         For many years Gnulib has targeted C89 and has resisted using C99
5471         features, as some Gnulib-using programs still wanted to target
5472         C89.  As this no longer seems to be the case, relax the porting
5473         requirements to allow some C99 features.  This is merely a change
5474         to the documentation, to give other Gnulib developers a chance to
5475         weigh in on the topic.
5476         * doc/extern-inline.texi (extern inline):
5477         * doc/gnulib-readme.texi (Portability guidelines):
5478         * doc/gnulib-tool.texi (Initial import):
5479         * doc/gnulib.texi (Header files):
5480         Modernize to talk about C99 and C11 instead of C89 and C99.
5481         * doc/gnulib-readme.texi (Portability guidelines):
5482         Now a section, not merely a subsection, so that it
5483         can be split up.  Modernize a bit.
5484         (C language versions, C99 features assumed)
5485         (C99 features avoided):
5486         New sections.
5488 2017-04-23  Bruno Haible  <bruno@clisp.org>
5490         doc: New section "Modules that modify the way other modules work".
5491         * doc/gnulib.texi (Modules that modify the way other modules work): New
5492         section.
5494 2017-04-23  Bruno Haible  <bruno@clisp.org>
5496         stat-time: Update comments.
5497         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
5498         * tests/test-utimens-common.h: Add reference regarding st_ctime on
5499         Windows.
5501 2017-04-01  Bruno Haible  <bruno@clisp.org>
5503         glob: Fix more memory leaks.
5504         * lib/glob.c (glob): Free allocated memory before returning.
5505         Reported by Coverity via Tim Rühsen.
5507 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
5509         poll: improve fast check for out-of-range NFD
5510         * lib/poll.c: Do not include intprops.h.
5511         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
5512         * modules/poll (Depends-on): Remove intprops.
5514         ftoastr: cite a newer paper
5515         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
5516         instead of Loitsch 2010.
5518 2017-04-22  Bruno Haible  <bruno@clisp.org>
5520         poll: Enable argument check also in the Windows implementation.
5521         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
5522         Reported by Paul Eggert.
5524 2017-04-22  Bruno Haible  <bruno@clisp.org>
5526         getlogin_r: Work around bug in Mac OS X 10.12.
5527         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
5528         bug.
5529         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
5530         given size minus 1, call getlogin_r a second time, on a larger buffer.
5531         * modules/getlogin_r (Depends-on): Add malloca.
5532         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
5534 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
5536         parse-datetime: fix %z and prefer signed int
5537         %z problem reported by Pádraig Brady in:
5538         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
5539         While fixing it, I decided to prefer signed ints to size_t, as
5540         they are less error-prone (e.g., ubsan catches overflow).
5541         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
5542         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
5543         counts, since signed integers make for better debugging.
5544         (date): Don’t assume %z works in printf formats.
5545         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
5546         sizes of buffers known to be small, e.g., because we’re using snprintf.
5547         (parse_datetime2): Simplify call to debug_mktime_not_ok.
5549 2017-04-22  Bruno Haible  <bruno@clisp.org>
5551         *printf: Work around rounding bug on Mac OS X.
5552         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
5553         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
5554         Mac OS X and FreeBSD.
5555         * doc/glibc-functions/*printf.texi: Likewise.
5557 2017-04-22  Bruno Haible  <bruno@clisp.org>
5559         vasnprintf tests: Avoid warnings.
5560         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
5561         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
5562         test.
5564 2017-04-22  Bruno Haible  <bruno@clisp.org>
5566         sys_file tests: Avoid warning.
5567         * tests/test-sys_file.c (main): Add a default clause to the switch
5568         statement.
5570 2017-04-22  Bruno Haible  <bruno@clisp.org>
5572         sethostname: Update doc.
5573         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
5574         Mac OS X.
5576 2017-04-22  Bruno Haible  <bruno@clisp.org>
5578         quotearg tests: Avoid warnings.
5579         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
5580         false.
5582 2017-04-22  Bruno Haible  <bruno@clisp.org>
5584         poll: Enable argument check.
5585         * lib/poll.c: Include intprops.h.
5586         (poll): Check value of nfd correctly.
5587         * modules/poll (Depends-on): Add intprops.
5589 2017-04-22  Bruno Haible  <bruno@clisp.org>
5591         get-rusage-data: Avoid warnings on Mac OS X.
5592         * lib/get-rusage-data.c: On Mac OS X, don't define
5593         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
5594         (get_rusage_data) [Mac OS X]: Just return 0.
5596 2017-04-22  Bruno Haible  <bruno@clisp.org>
5598         xbinary-io: Fix build error.
5599         * modules/xbinary-io (Depends-on): Add gettext-h.
5600         * lib/xbinary-io.c: Include gettext.h and define _().
5601         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
5602         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
5604 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
5606         parse-datetime: overflow and debug cleanups
5607         This long patch was triggered by this bug report from Ruediger Meier:
5608         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
5609         I fixed the bug he noted, then found some others nearby, and then
5610         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
5611         up some of the code to follow GNU standards while I was at it.
5612         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
5613         use c_isdigit.
5614         (EPOCH_YEAR): Remove; unused.
5615         (TM_YEAR_BASE): Now an enum rather than a macro.
5616         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
5617         time zone offset, since timezones now are in terms of seconds and
5618         not minutes.
5619         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
5620         appropriate.  Verify that intmax_t is wide enough.
5621         (time_overflow, time_zone_str): New functions, used to deal
5622         more reliably with overflow.
5623         (dbg_printf): Add printf attribute, to help catch integer width errors.
5624         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
5625         (%union, to_hour, yylex, parse_datetime2):
5626         Use intmax_t instead of long int and/or long_time_t.
5627         All uses changed.
5628         (DBGBUFSIZE): Move earlier.
5629         (relative_time, set_hhmmss, parser_control):
5630         Just use int for nanoseconds and for time zones; that’s wide enough.
5631         (parser_control): Use bool for members like year_seen that can
5632         be booleans instead of counters.  All uses changed.
5633         Remove debug_default_input_timezone; no longer needed.
5634         All uses removed.
5635         (apply_relative_time): Return a bool overflow flag.
5636         All uses changed to check for overflow.
5637         (apply_relative_time, zone, date, relunit, relunit_snumber)
5638         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
5639         Check for integer overflow portably.
5640         (str_days): Use just int for N, as it’s wide enough.
5641         Prefer 2D char arrays to arrays of char * when it looks like
5642         2D is a win on typical platforms.
5643         Prefer snprintf to strncpy/strncat, for simplicity;
5644         all buffers are smaller than INT_MAX so this is safe.
5645         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
5646         (debug_print_current_time): Don’t assume tv_nsec is of type long,
5647         as this is not true on x32.  Output "." before any nanoseconds.
5648         (debug_print_current_time, parse_datetime2):
5649         Output local zones using a more-consistent format.
5650         (debug_print_current_time, date, parse_datetime2):
5651         (main) [TEST]:
5652         Don’t assume time_t is the same width as long.
5653         (print_rel_part): New function, replacing ...
5654         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
5655         (debug_print_relative_time): Use bool for boolean.
5656         (local_zone): dsts_seen now counts only tDST instances.
5657         (date): Fix printf of size_t to use %z.  Do not assume numeric
5658         tokens have negative values merely because the context suggests
5659         a syntax with "-" separating tokens.
5660         (time_zone_hhmm): Return bool success indicator, which checks for
5661         overflow.  Store result into PC->time_zone instead.  All callers
5662         changed.
5663         (tm_year_str): New function.  Return a bool success indicator and
5664         store the result into a buffer.  All callers changed.  Output the
5665         numerically correct string even if adding 1900 to the year would
5666         overflow.
5667         (to_tm_year): New function, replacing the old to_year.  All
5668         callers changed.
5669         (tm_diff): Sync with glibc.
5670         (lookup_word): Use to_uchar instead of doing it by hand.
5671         (TZBUFSIZE): Now local to the only function that needs it.
5672         (debug_strfdatetime): Simplify now that time zones are int seconds.
5673         (debug_strfdate): Work even if tm_year + 1900 would overflow.
5674         (get_effective_timezone): Remove.  All uses removed.
5675         (parse_datetime2): Use fprintf in pieces instead of snprintfing
5676         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
5677         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
5678         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
5679         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
5680         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
5681         * modules/parse-datetime (Depends-on): Add inttypes.
5683 2017-04-21  Bruno Haible  <bruno@clisp.org>
5685         gettext-h: Avoid -Wundef warning.
5686         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
5687         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
5688         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
5690 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
5692         error: Avoid "function declaration isn't a prototype" warning.
5693         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
5695 2017-04-21  Bruno Haible  <bruno@clisp.org>
5697         vasnprintf: Fix for MSVC 14.
5698         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
5699         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
5700         of !HAVE_SNPRINTF_RETVAL_C99.
5702 2017-04-21  Bruno Haible  <bruno@clisp.org>
5704         mbrtowc tests: Fix test failures on MSVC 14.
5705         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
5706         behaviour for invalid input.
5708 2017-04-21  Bruno Haible  <bruno@clisp.org>
5710         mbsinit: Fix for MSVC 14.
5711         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
5712         implementation that is in sync with mbrtowc.c. On other platforms, use
5713         an adequate ad-hoc implementation.
5715 2017-04-21  Bruno Haible  <bruno@clisp.org>
5717         Fix test-mbrtowc5.sh failure on native Windows.
5718         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
5719         "C".
5721 2017-04-21  Bruno Haible  <bruno@clisp.org>
5723         Avoid accidental use of native Windows APIs on Cygwin.
5724         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
5725         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
5726         * lib/localename.c (WINDOWS_NATIVE): Likewise.
5728 2017-04-20  Bruno Haible  <bruno@clisp.org>
5730         Remove red warnings from the generated MODULES.html.
5731         * modules/fcntl (Description): Disambiguate function references.
5732         * modules/getcwd-lgpl (Description): Likewise.
5733         * modules/hostent (Description): Likewise.
5734         * modules/servent (Description): Likewise.
5735         * modules/tempname (Description): Likewise.
5737 2017-04-20  Bruno Haible  <bruno@clisp.org>
5739         verify tests: Fix spurious failure with parallel make.
5740         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
5741         EXTRA_PROGRAMS.
5742         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
5743         * tests/test-verify-try.c: New file.
5744         * modules/verify-tests (Files): Add it.
5745         (EXTRA_PROGRAMS): Add test-verify-try.
5746         (MOSTLYCLEANFILES): Update accordingly.
5747         Reported by Adam James Stewart <ajstewart@anl.gov>.
5749 2017-04-18  Bruno Haible  <bruno@clisp.org>
5751         vma-iter: Fix compilation error on Solaris 7.
5752         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
5753         like on IRIX, OSF/1.
5754         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5756 2017-04-18  Bruno Haible  <bruno@clisp.org>
5758         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
5759         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
5760         included.
5761         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
5762         <sys/procfs.h>.
5763         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
5764         <sys/procfs.h> cannot be included.
5765         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5767 2017-04-18  Bruno Haible  <bruno@clisp.org>
5769         getopt-gnu: Add comments.
5770         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
5771         * modules/getopt-gnu (configure.ac): Likewise.
5773 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
5775         regex: port better to Solaris 10
5776         Solaris 10 <locale.h> includes <libintl.h>, which #defines
5777         gettext, and this causes a double #define.
5778         Problem reported by Gavin Smith in:
5779         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
5780         * lib/regex_internal.h (gettext): #undef before #defining.
5782 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
5784         intprops: improve comments
5785         * lib/intprops.h: Improve and shorten commentary.
5786         For the record, if we ever run into a pedantic compiler that
5787         behaves differently from GCC when converting an out-of-range value
5788         to a signed integer, we can work around the problem with something
5789         like the following code, where UCT is the signed counterpart of T
5790         (UCT is sometimes narrower than UT) and all callers are changed
5791         accordingly:
5792         #if __SUNPRO_C <= 0x5120
5793         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
5794            ((t) ((ut) (a) op (ut) (b)))
5795         #else
5796         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
5797            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
5798             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
5799                + TYPE_MINIMUM (t)) \
5800             : (t) (uct) ((ut) (a) op (ut) (b)))
5801         #endif
5803 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
5805         intprops: try to avoid tickling similar bugs
5806         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
5807         needs to be the same width as T; it can be wider.
5808         Change callers so that UT is at least as wide as unsigned int,
5809         as I suspect that this is less likely to run into compiler bugs.
5811         intprops: port to Oracle Studio 12.3 x86
5812         Problem reported by Gavin Smith in:
5813         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
5814         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
5815         Convert unsigned to signed via the usual rather than the standard way,
5816         to avoid a compiler bug in Oracle Studio 12.3 x86.
5818 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
5820         getopt: prefer - to _ in new file names
5821         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
5822         * lib/getopt-core.h: Rename from lib/getopt_core.h.
5823         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
5824         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
5825         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
5826         All uses changed.
5828         getopt: port recent getopt changes to macOS
5829         Problem reported by Harald Maier (Bug#26398).
5830         The macOS C compiler uses __nonnull for its own purposes and that
5831         clashes with glibc's __nonnull.
5832         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
5833         * lib/getopt_cdefs.in.h (__nonnull): Remove.
5834         * lib/getopt_core.h (getopt):
5835         * lib/getopt_ext.h (getopt_long, getopt_long_only):
5836         Use _GL_ARG_NONNULL, not __nonnull.
5837         * lib/unistd.in.h: Move snippet hooks to before where the getopt
5838         .h files are included, so that _GL_ARG_NONNULL is defined in time.
5839         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
5840         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
5842 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
5844         getopt-gnu: omit some duplicate code
5845         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
5846         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
5847         gnulib-tool already does this.
5848         * modules/getopt-gnu (configure.ac): Omit code duplicated from
5849         getopt-posix, which we depend on.
5851         getopt-posix: use angle-bracket include
5852         * lib/getopt1.c: Include <config.h>, not "config.h".
5854 2017-04-06  Zack Weinberg  <zackw@panix.com>
5856         getopt: annotate files with relationship to glibc
5858         As the final act in this patchset, adjust the message at the top of
5859         each file to indicate which files are synced with glibc.  (This has
5860         already been done for most of the headers.)
5862         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
5863         Mention in top-of-file boilerplate that these files are shared
5864         between glibc and gnulib.
5867         getopt: split up getopt.in.h and eliminate __need_getopt
5869         Over in glibc, all of the __need macros are being phased out in favor
5870         of small headers that declare only the necessary components, as this
5871         is much simpler and less prone to bugs.  As getopt is shared with
5872         glibc, gnulib needs to do the same for __need_getopt.
5874         __need_getopt is misnamed; what it really means is "we want only the
5875         getopt features specified in POSIX, not the GNU extensions".  glibc
5876         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
5877         these files can be shared verbatim with gnulib.  The portability
5878         wrapper, on the other hand, they have renounced altogether; glibc's
5879         getopt.h will no longer be shared with gnulib at all.  In exchange,
5880         certain glibc-specific quirks (having to do with __posix_getopt) no
5881         longer need appear in gnulib's headers at all.
5883         This patch merges getopt_core.h and getopt_ext.h from glibc, and
5884         splits up the current gnulib-side portability wrapper into three
5885         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
5886         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
5887         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
5888         unistd.in.h just use them.  All new files are clearly marked with
5889         whether they are shared with glibc.
5891         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
5892         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
5893         with glibc, and ...
5894         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
5895         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
5896         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
5897         instead of defining __need_getopt and including the full getopt.h.
5899         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
5900         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
5901         * modules/getopt-posix (Files): Add new headers and sort list.
5902         (Depends-on): No longer need snippet/arg-nonnull.
5903         (Makefile.am): Generate getopt_cdefs.h.
5906         getopt: better handling of ambiguous options
5908         glibc's getopt uses alloca to construct a linked list of possibilities
5909         for an "ambiguous" long option.  In gnulib, malloc should be used
5910         instead.  Providing for both cases complicates things a fair bit.
5912         This patch rewrites ambiguous-option handling to use a boolean vector
5913         instead of a linked list.  There is then only one allocation that
5914         might need freeing; in glibc it can honor __libc_use_alloca as usual,
5915         and in gnulib we define __libc_use_alloca to always be false, so we
5916         don't need ifdefs in the middle of the function.  This should also be
5917         slightly more efficient in the normal case of long options being fully
5918         spelled out -- I think most people aren't even aware they _can_
5919         sometimes abbreviate long options.
5921         One interesting consequence is that the list of possibilities is now
5922         printed in exactly the order they appear in the list of long options,
5923         instead of the first possibility being shuffled to the end.
5925         (The patch looks bigger than it really is because there's a fair bit
5926         of reindentation and code rearrangement.)
5928         * lib/getopt.c: When used standalone, define __libc_use_alloca
5929         as always false and alloca to abort if called.
5930         (process_long_option): Rewrite handling of ambiguous long options
5931         to use a single boolean vector, not a linked list; use
5932         __libc_use_alloca to decide whether to allocate this using alloca.
5935         getopt: refactor long-option handling
5937         There were two copies of the bulk of the code to handle long options.
5938         Now there is only one.
5940         This change temporarily removes the logic to avoid using alloca when
5941         standalone; the next patch in the series will restore it.
5943         * lib/getopt.c (process_long_option): New function split out
5944         from _getopt_internal_r.
5945         (_getopt_internal_r): Replace both copies of the long-option
5946         processing code with calls to process_long_option.
5949         getopt: tidy up _getopt_initialize a bit
5951         _getopt_data.__posixly_correct is completely redundant to
5952         _getopt_data.__ordering, and some work that logically belongs in
5953         _getopt_initialize was being done by _getopt_internal_r, making the
5954         code harder to understand.
5956         As a side effect, getenv will no longer be called if the first
5957         character of the options string is '+' or '-', which is probably a
5958         Good Thing.  (Perhaps we should have a flag character that
5959         specifically asks for the permutation behavior?)
5961         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
5962         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
5963         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
5966         getopt: merge from glibc: repetition reduction
5968         The definitions of the entry point functions 'getopt' and
5969         '__posix_getopt' can be made substantially less repetitive with a
5970         helper macro.
5972         While I was merging the const-correctness changes from gnulib into
5973         glibc I noticed there are still some unnecessary casts in
5974         _getopt_internal_r.
5976         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
5977         a macro.  Consistently cast 'argv' to 'char **' when calling
5978         _getopt_internal.
5979         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
5982         getopt: clean up error reporting
5984         getopt can print a whole bunch of error messages, and when used
5985         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
5986         cancellation point and getopt isn't, and also applying fprintf to a
5987         stream in wide-character mode is not allowed.  So every single error
5988         reporting case has an #ifdef _LIBC block in which it calls internal
5989         libc functions instead.  The counterpart patch series in glibc makes
5990         it possible to simplify all of that down to a set of #defines at the
5991         top of the file; core code is written as if it is safe to just call
5992         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
5993         call any *other* stdio functions.)
5995         * lib/getopt.c: When _LIBC is defined, define fprintf to
5996         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
5997         to _IO_funlockfile.  When neither _LIBC nor
5998         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
5999         funlockfile as no-ops.
6000         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
6001         standalone error-printing code can now be used for libc as well.
6002         Add an flockfile/funlockfile pair around one case where the error
6003         message is printed in several chunks.  Don't use fputc.
6006         getopt: fix fencepost error in ambiguous-W-option handling
6008         getopt_long contains an undocumented (AFAICT) feature in which, if you
6009         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
6010         treated as equivalent to '--foo'.  This is implemented with a partial
6011         second copy of the code for handling long options, and that code
6012         increments optind one too many times when recovering from an ambiguous
6013         abbreviated option, which can cause the main loop to walk past the end
6014         of argv and crash.
6016         I discovered this while writing a test case that tries to exercise all
6017         of getopt's error reporting paths; I wouldn't be surprised to learn
6018         that this feature is never used by real applications.
6020         * lib/getopt.c (_getopt_internal_r): Don't increment
6021         d->optind a second time when reporting ambiguous -W options.
6024         getopt: clean up getopt.c and getopt1.c file headers
6026         In getopt.c, there is no need to include wchar.h at all, and it is
6027         safe nowadays to assume that stdlib.h does declare getenv (several
6028         other gnulib modules make this assumption).
6030         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
6031         by using "" inclusions consistently, and there is no actual need to
6032         include stdlib.h (except in the #ifdef TEST block, where it should be
6033         unconditional), nor to provide a backup definition of NULL at all.
6035         * lib/getopt1.c: Simplify #ifdeffage at top of file.
6036         Move inclusion of stdlib.h to #ifdef TEST block and make
6037         unconditional.  Do not define NULL.
6038         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
6039         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
6040         * modules/getopt-gnu, modules/getopt-posix: Don't call
6041         gl_PREREQ_GETENV.
6044         getopt: harmonize comments with glibc
6046         The comments explaining how the behavior of 'getopt' varies depending
6047         on whether it's the standalone version and whether there are special
6048         characters at the beginning of the options string were inconsistent
6049         between gnulib and glibc, and also out of sync with the code.
6051         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
6054         getopt: remove USE_NONOPTION_FLAGS
6056         getopt includes code to parse an environment variable named
6057         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
6058         in decimal); but all of it has been #ifdefed out since 2001, with no
6059         official way to turn it back on.
6061         According to commentary in glibc's config.h.in, bash version 2.0
6062         set this environment variable to indicate argv elements that were
6063         the result of glob expansion and therefore should not be treated
6064         as options, but the feature was "disabled later" because "it
6065         caused problems".  According to bash's CHANGES file, "later" was
6066         release 2.01; it gives no more detail about what the problems
6067         were.
6069         Version 2.0 of bash was released on the last day of 1996, and version
6070         2.01 in June of 1997.  Twenty years later, I think it is safe to
6071         assume that this environment variable isn't coming back.
6073         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
6074         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
6075         __libc_argc and __libc_argv externs, which were only used by
6076         #ifdef USE_NONOPTION_FLAGS blocks.
6079         getopt: tabify, in preparation for merge with glibc
6081         glibc sticks to the GNU default of indenting with a mix of
6082         8-column tabs and spaces; make the gnulib copy match.
6084         getopt.h is not included because it is *not* going to be merged in its
6085         present form.
6087         * getopt.c, getopt1.c, getopt_int.h: Tabify.
6089 2017-04-02  Bruno Haible  <bruno@clisp.org>
6091         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
6092         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
6093         like it was done in modules/relocatable-lib on 2011-05-21 and in
6094         modules/relocatable-prog on 2011-08-15.
6095         Reported by Reuben Thomas <rrt@sc3d.org>.
6097 2017-03-31  Bruno Haible  <bruno@clisp.org>
6099         glob: Fix invalid free() call.
6100         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
6101         static storage to home_dir.
6102         Reported by Coverity via Tim Rühsen.
6104 2017-03-31  Bruno Haible  <bruno@clisp.org>
6106         glob: Fix memory leaks.
6107         * lib/glob.c (glob): Free allocated memory before returning.
6108         Reported by Coverity via Tim Rühsen.
6110 2017-03-31  Bruno Haible  <bruno@clisp.org>
6112         md5, sha1, sha256, sha512: Add comments regarding correctness.
6113         * lib/md5.h (buflen): Add comments regarding range.
6114         * lib/sha1.h (buflen): Likewise.
6115         * lib/sha256.h (buflen): Likewise.
6116         * lib/sha512.h (buflen): Likewise.
6117         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
6118         * lib/sha1.c (sha1_process_bytes): Likewise.
6119         * lib/sha256.c (sha256_process_bytes): Likewise.
6120         * lib/sha512.c (sha512_process_bytes): Likewise.
6121         Reported by Coverity via Tim Rühsen.
6123 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
6125         getopt: merge from glibc
6126         This does not change anything substantial; it merely simplifies
6127         hypothetical merges back to glibc.
6128         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
6129         Change copyright notice to match what is in glibc.
6130         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
6131         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
6132         __open_memstream rather than open_memstream and __glibc_likely
6133         instead of __builtin_expect.
6134         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
6136 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
6138         dfa: make [0-9] faster in non-C locales
6139         Problem reported by John P. Linderman (Bug#26193).
6140         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
6141         If both ends of the range are ASCII digits, do not worry about
6142         multi-character collating sequences and the like.  Be consistent
6143         about using isalpha as a precondition for setbit_case_fold_c.
6145 2017-03-19  Bruno Haible  <bruno@clisp.org>
6147         lock: Fix compilation error with HP-UX IA64 cc.
6148         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
6149         weak on non-glibc platforms.
6151 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
6153         stdalign: tweak version# and test for HP-UX IA64
6154         Problems reported by Bruno Haible in:
6155         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
6156         * lib/stdalign.in.h (_Alignas):
6157         * m4/stdalign.m4 (gl_STDALIGN_H):
6158         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
6159         used octal (as that is how they document it), but it is decimal in
6160         practice now and the ancient implementations no longer matter.
6161         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
6163 2017-03-19  Bruno Haible  <bruno@clisp.org>
6165         vma-iter: Add support for Solaris.
6166         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
6167         approach.
6168         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
6169         * lib/get-rusage-as.c: Update comment about Solaris.
6170         * lib/get-rusage-data.c: Likewise.
6172 2017-03-19  Bruno Haible  <bruno@clisp.org>
6174         vma-iter: Prefer HP-UX specific API on HP-UX.
6175         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
6176         * lib/vma-iter.h: Update.
6177         Just in case HP-UX ever implements mquery().
6179 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
6181         stdalign: restore previous behavior for HP-UX IA64
6182         See Bruno Haible's email in:
6183         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
6184         which cites p 150 of a manual saying that 'aligned' works on Itanium.
6185         * lib/stdalign.in.h (_Alignas):
6186         Assume the '061200' applies to Itanium, not to PA-RISC.
6187         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
6189 2017-03-17  Bruno Haible  <bruno@clisp.org>
6191         stat-time, timespec: Support use of the header files in C++ mode.
6192         * lib/stat-time.h: Add "C" linkage declaration.
6193         * lib/timespec.h: Likewise.
6195 2017-03-17  Bruno Haible  <bruno@clisp.org>
6197         stdalign: Make it work with HP-UX cc.
6198         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
6199         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
6200         for HP-UX cc.
6202 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
6204         flexmember: try to detect HP-UX 11.31 cc bug
6205         Problem reported by Bruno Haible in:
6206         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
6207         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
6208         Attempt to detect bug in HP-UX 11.31 cc.
6210 2017-03-16  Bruno Haible  <bruno@clisp.org>
6212         stdint: Fix test compilation failure with HP-UX 11 cc.
6213         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
6214         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
6215         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
6216         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
6218 2017-03-14  Bruno Haible  <bruno@clisp.org>
6220         gnulib-tool: Don't produce a tests directory with only snippet .h files.
6221         * gnulib-tool (func_modules_transitive_closure_separately): If
6222         testsrelated_modules ends up with no "real" modules, aside from
6223         modules with applicability 'all', set it to empty.
6225 2017-03-14  Bruno Haible  <bruno@clisp.org>
6227         vma-iter: Add support for HP-UX.
6228         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
6229         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
6230         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
6231         * lib/get-rusage-as.c: Update comment about HP-UX.
6232         * lib/get-rusage-data.c: Likewise.
6233         (get_rusage_data): Use get_rusage_data_via_setrlimit.
6235 2017-03-14  Bruno Haible  <bruno@clisp.org>
6237         limits-h: Make it work with HP-UX cc.
6238         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
6239         defined.
6241 2017-03-14  Bruno Haible  <bruno@clisp.org>
6243         Fix test failures on DragonFlyBSD.
6244         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
6245         * tests/test-select.h (test_bad_fd): Likewise.
6246         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
6248 2017-03-14  Bruno Haible  <bruno@clisp.org>
6250         freadahead: Silence warning on DragonFlyBSD.
6251         * lib/freadahead.c (__sreadahead): Declare ourselves.
6253 2017-03-14  Bruno Haible  <bruno@clisp.org>
6255         vma-iter: Add comment about AIX.
6256         * lib/vma-iter.c: Add comment about why this module is not implemented
6257         on AIX.
6259 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
6261         snippets: move unadjusted snippet sources to lib
6262         Problem reported by Michal Privoznik in:
6263         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
6264         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
6265         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
6266         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
6267         * lib/unused-parameter.h: Rename from
6268         build-aux/snippet/unused-parameter.h.
6269         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
6270         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
6271         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
6272         * modules/snippet/c++defs (Files:, CXXDEFS_H):
6273         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
6274         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
6275         Adjust to file renamings.
6277 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
6279         gnulib-tool: don't automatically distribute files from top/
6280         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
6281         not distribute top/README-release by default, don't distribute files
6282         from top/ unconditionally.
6283         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
6284         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
6286 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
6288         gnulib-tool: fix typo in comment output
6289         * gnulib-tool (func_import): Fix typo with previous change.
6291         snippets: work around GNU Make 3.82 VPATH
6292         When using 'gnulib-tool --gnu-make' on Emacs, and building
6293         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
6294         an out-of-source (VPATH) build failed because the sans-copyright
6295         snippet file was not built before the file that used it.
6296         Presumably this is some sort of VPATH thing.  Work around the
6297         problem by using the original snippet, i.e., don’t bother to
6298         remove its copyright notice.
6299         * modules/snippet/_Noreturn, modules/snippet/link-warning:
6300         Don’t assume Automake in comments.  Omit long-incorrect comment.
6301         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
6302         (MOSTLYCLEANFILES):
6303         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
6304         (MOSTLYCLEANFILES):
6305         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
6306         (MOSTLYCLEANFILES):
6307         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
6308         (MOSTLYCLEANFILES):
6309         Remove.
6310         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
6311         * modules/snippet/c++defs (CXXDEFS_H):
6312         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
6313         * modules/snippet/warn-on-use (WARN_ON_USE_H):
6314         Don’t bother to remove the copyright notice; just use the
6315         original snippet as-is.
6317 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
6319         gnulib-tool: minor --gnu-make fixups
6320         * gnulib-tool (func_emit_lib_Makefile_am):
6321         Remove useless code that was a blind alley during implementation.
6322         Problem reported by Thien-Thi Nguyen in:
6323         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
6324         (func_import): Note the "--gnu-make" option in the output comment.
6326 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
6328         gnulib-tool: new option --gnu-make
6329         This is for applications like GNU Emacs that use GNU Make
6330         features instead of Automake.
6331         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
6332         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
6333         Do not assume Automake.
6334         * gnulib-tool (func_determine_path_separator)
6335         (func_modules_transitive_closure, func_update_file)
6336         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
6337         (func_import): Add support for --gnu-make.
6339 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
6341         gnulib-common.m4: avoid aclocal.m4 bloat
6342         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
6343         Hide AM_PROG_AR from aclocal, so that aclocal does not
6344         install irrelevant macro definitions into aclocal.m4.
6346 2017-03-10  Bruno Haible  <bruno@clisp.org>
6348         vma-iter: Let callers know about error.
6349         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
6350         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
6352 2017-03-05  Bruno Haible  <bruno@clisp.org>
6354         Fix value of LD for 64-bit compilers on AIX.
6355         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
6356         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
6358 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
6360         dtotimespec: simplify
6361         * lib/dtotimespec.c (dtotimespec): Simplify.
6363 2017-03-04  Bruno Haible  <bruno@clisp.org>
6365         test-calloc-gnu: Reenable test also for GCC 7.
6366         * tests/test-calloc-gnu.c (eight): New function.
6367         (main): Don't skip test; use eight() instead.
6369 2017-03-04  Jim Meyering  <meyering@fb.com>
6371         test-calloc-gnu: port to GCC7
6372         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
6373         that attempts to calloc more than SIZE_MAX bytes, because GCC7
6374         and newer would detect that at compilation time.
6376 2017-03-04  Bruno Haible  <bruno@clisp.org>
6378         tests: Avoid compiler warning about uses of null_ptr.
6379         * tests/null-ptr.h: New file.
6380         * tests/test-canonicalize.c: Include null-ptr.h.
6381         (null_ptr): Remove function.
6382         * tests/test-canonicalize-lgpl.c: Likewise.
6383         * tests/test-memmem.c: Likewise.
6384         * tests/test-ptsname_r.c: Likewise.
6385         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
6386         * modules/canonicalize-lgpl-tests: Likewise.
6387         * modules/memmem-tests: Likewise.
6388         * modules/ptsname_r-tests: Likewise.
6389         Reported by Jim Meyering.
6391 2017-03-03  Bruno Haible  <bruno@clisp.org>
6393         doc: Mention Mac OS X deficiencies regarding semaphores.
6394         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
6395         * doc/posix-functions/sem_destroy.texi: Likewise.
6396         * doc/posix-functions/sem_getvalue.texi: Likewise.
6398 2017-03-03  Bruno Haible  <bruno@clisp.org>
6400         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
6401         Reported by Assaf Gordon <assafgordon@gmail.com> via
6402         Pádraig Brady <P@draigBrady.com>.
6403         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
6404         semaphores.
6405         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
6406         (atomic_int_semaphore): New macro.
6408 2017-02-28  Bruno Haible  <bruno@clisp.org>
6410         perror tests: Tweak for z/OS.
6411         Reported by Daniel Richard G. <skunk@iskunk.org>.
6412         * tests/test-perror.sh: Don't fail z/OS style perror output.
6414 2017-02-26  Bruno Haible  <bruno@clisp.org>
6416         nproc: Refactor large function.
6417         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
6418         from num_processors.
6419         (num_processors): In this function, only deal with OMP.
6421 2017-02-26  Pádraig Brady  <P@draigBrady.com>
6423         nproc: adjust handling of OpenMP environment variables
6424         to match the return value from omp_get_num_threads(), i.e.:
6425          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
6426          - Treat 0 as an invalid value and ignore
6427         Also remove the call to omp_get_num_threads() because
6428         it's ineffective without the omp pragmas in place.
6429         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
6430         so that it can be ignored.
6431         (num_processors): Honor OMP_THREAD_LIMIT even without
6432         OMP_NUM_THREADS being set.  Also fix a typo in the environment
6433         variable being checked, from the previous recent commit.
6435 2017-02-26  Pádraig Brady  <P@draigBrady.com>
6437         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
6438         * lib/nproc.c (parse_omp_threads): A new function refactored
6439         from num_processors() to support parsing both of the
6440         above environment variables.
6441         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
6442         to accurately reflect the current OpenMP nesting level.
6443         Also support the OMP_THREAD_LIMIT environment variable
6444         to limit the max value determined from OMP_NUM_THREADS.
6445         * modules/nproc: Depend on minmax header.
6446         Suggested by Oliver Heimlich.
6448 2017-02-25  Bruno Haible  <bruno@clisp.org>
6450         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
6451         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
6453 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
6455         ftoastr: port to -Wdouble-promotion
6456         Work around -Wdouble-promotion false alarm in recent GCCs.
6457         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
6458         (ftoastr_snprintf, FTOASTR): Use it.
6460 2017-02-21  Bruno Haible  <bruno@clisp.org>
6462         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
6463         Reported by Rene Saavedra <rennes@openmailbox.org> in
6464         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
6465         * lib/glthread/lock.h: On glibc systems without
6466         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
6467         implementation of rwlocks.
6468         * lib/glthread/lock.c: Likewise.
6470 2017-02-20  Bruno Haible  <bruno@clisp.org>
6472         lock tests: Fix build failure on z/OS.
6473         Reported by Daniel Richard G. <skunk@iskunk.org>.
6474         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
6475         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
6476         exist.
6478 2017-02-19  Bruno Haible  <bruno@clisp.org>
6480         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
6481         This helps when CC=clang.
6482         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
6483         of /usr/bin/gcc.
6485         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
6486         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
6488 2017-02-19  Bruno Haible  <bruno@clisp.org>
6490         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
6491         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
6492         --with-tests --single-configure is specified.
6494 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
6496         users.txt: Update links, use HTTPS where possible
6497         * users.txt: Updated to HTTPS where possible,
6498         fixed some links to new locations.
6500 2017-02-16  Bruno Haible  <bruno@clisp.org>
6502         xbinary-io: Fix inlining.
6503         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
6505 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
6507         xbinary-io: rename from xsetmode
6508         This patch is taken from suggestions by Bruno Haible in:
6509         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
6510         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
6511         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
6512         not ENOTTY, when it is an inappropriate device.
6513         * lib/binary-io.h (SET_BINARY): Resurrect.
6514         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
6515         (xset_binary_mode_error): Rename from xsetmode_error.
6516         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
6517         (xset_binary_mode): Rename from xsetmode.
6518         All uses changed.
6519         * modules/xbinary-io: Rename from modules/xsetmode.
6520         Update file names.
6521         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
6522         * NEWS: Update to match revised behavior.
6524 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
6526         tests: Adjust to recent SET_BINARY change
6527         * tests/test-binary-io.c (main):
6528         * tests/test-binary-io.sh: Remove test for SET_BINARY.
6529         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
6530         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
6531         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
6533         xsetmode: new module
6534         This is to fix a problem noted by Eric Blake.
6535         Code was using xfreopen to change files to binary mode, but this
6536         fails for stdout when in append mode.  Such code should use
6537         xsetmode instead.
6538         * NEWS: Document incompatible changes to binary-io module.
6539         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
6540         New function.
6541         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
6542         (set_binary_mode): New function, which also checks for tty.
6543         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
6545 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
6547         headers: fix begin-end typos
6548         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
6549         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
6551         selinux-h: port to PGI 16.10
6552         * lib/se-selinux.in.h: Don't assume that include_next skips over
6553         duplicate -I DIR options.
6555         argp: port to PGI 16.10
6556         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
6558 2017-02-13  Darshit Shah  <darnir@gnu.org>
6560         unicase: Update function protoype to match definition.
6561         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
6562         uses 'size_t' as the datatype for the 'len' parameter in the functions
6563         it generates. Update the prototype specified here to match the newly
6564         generated function.
6566 2017-02-12  Bruno Haible  <bruno@clisp.org>
6568         times test: Avoid gcc warnings on Linux/x32.
6569         * tests/test-times.c (main): Really cast printf arguments from clock_t
6570         to 'long int'.
6572 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
6574         glob: port better to emscripten
6575         Problem reported by Bruno Haible in:
6576         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
6577         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
6579 2017-02-11  Bruno Haible  <bruno@clisp.org>
6581         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
6582         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
6583         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
6584         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
6585         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
6586         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
6587         Distinguish hppa64 from hppa.
6589 2017-02-10  Bruno Haible  <bruno@clisp.org>
6591         search: Don't assume that tsearch() exists if 'VISIT' is defined.
6592         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
6593         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
6594         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
6596 2017-02-09  Bruno Haible  <bruno@clisp.org>
6598         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
6599         * doc/gnulib.texi (Libtool and Windows): Recommend
6600         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
6601         Reported by Reuben Thomas <rrt@sc3d.org>.
6603 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
6605         stddef-tests: port to SIZE_MAX <= INT_MAX
6606         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
6607         Do not assume that INT_MAX < SIZE_MAX.
6609 2017-02-01  Bruno Haible  <bruno@clisp.org>
6611         lock tests: Fix link error.
6612         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
6613         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6615 2017-01-31  Bruno Haible  <bruno@clisp.org>
6617         lock: Fix link error (regression from 2017-01-05).
6618         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
6619         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
6620         pthread_rwlockattr_destroy weak.
6621         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6623 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
6625         Port to PGI 16.10 x86-64
6626         This patch fixes one real bug in gl_anylinked_list2.h, along with
6627         some minor glitches that are not bugs.  It does not silence PGI’s
6628         thousands of bogus warnings when compiling test-intprops.c.
6629         Fortunately, the warnings do not cause a failure.
6630         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
6631         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
6632         My goodness, PGI goes back a long ways - this predates C89!
6633         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
6634         For example, ASYNCSAFE (const void *) should expand to
6635         ‘const void *volatile’, not to ‘volatile const void *’.
6636         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
6637         * lib/verify.h (verify) [!__GNUC__]:
6638         Use shorter albeit meaningless string to bypass silly compiler limits.
6639         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
6640         * tests/nan.h (NaNf, NaNd, NaNl):
6641         Use static functions to avoid misguided compiler diagnostics.
6642         Is there some reason we don’t use static functions on all platforms?
6644 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
6646         parse-datetime: handle timezones reentrantly
6647         This API change was prompted by a report by Pádraig Brady in:
6648         https://bug.debian.org/851934#10
6649         To help fix the bug, make parse_datetime2 more reentrant.
6650         * NEWS: Document this incompatible change.
6651         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
6652         Add two arguments, the timezone and the timezone name.
6653         All callers changed.  If TZ="..." is specified, use it for
6654         calculating defaults.
6655         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
6656         this code should be usable in a library.
6657         (mktime_ok, get_effective_timezone):
6658         Accept timezone arg too.  All callers changed.
6659         (get_tz): Remove.
6660         (get_effective_timezone): Check for failures.
6662 2017-01-20  Eric Blake  <eblake@redhat.com>
6664         localename: port to cygwin 2.6
6665         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
6666         Cygwin.
6667         * modules/localename (Depends-on): Add extensions, since
6668         NL_LOCALE_NAME() is not visible without it.
6670 2017-01-17  Pádraig Brady  <P@draigBrady.com>
6672         parse-datetime: fix dependence on AC_PROG_SED
6673         * modules/parse-datetime: Use `sed` directly like all other modules.
6674         Reported by J William Piggott
6676 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
6678         intprops: update doc URLs
6679         * doc/intprops.texi (Integer Range Overflow): Update URLs.
6681 2017-01-16  Bruno Haible  <bruno@clisp.org>
6683         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
6684         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
6685         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
6686         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
6687         distinguish s390 and s390x.
6688         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
6689         * NEWS: Mention the change regarding 'armel'.
6691 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
6693         localeinfo: case_folded_counterparts and WEOF
6694         * NEWS: Document this.
6695         * lib/localeinfo.c (case_folded_counterparts):
6696         First arg is now wint_t, not wchar_t.  This generalizes the
6697         function to also work on WEOF, where it returns 0.
6699         dfa: port to gcc -fsanitize=undefined
6700         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
6701         as this runs afoul of gcc -fsanitize=undefined.
6703 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
6705         strftime: %z is -00 if unknown
6706         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
6707         the caller's responsibility to set 'negative_number'.  All uses changed.
6708         (__strftime_internal): Put '-' before a zero UTC offset if the time
6709         zone abbreviation starts with "-", which is the recently-introduced
6710         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
6711         * tests/test-strftime.c: Test for this.
6713 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
6715         dfa: port to older GCC
6716         Problem reported by Assaf Gordon in:
6717         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
6718         * modules/c99: New module.  This merely attempts to use the latest
6719         C version, which should be enough to solve this particular problem.
6720         The idea is to document which Gnulib modules assume C99 or later.
6721         * modules/dfa (Depends-on): Add it.
6723 2017-01-10  Bruno Haible  <bruno@clisp.org>
6725         Update DEPENDENCIES.
6726         * DEPENDENCIES: List only https URLs. Update recommended version for
6727         autoconf, automake, gperf.
6729 2017-01-10  Jim Meyering  <meyering@fb.com>
6731         maint.mk: enforce spelling of "timestamp" (i.e., no space)
6732         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
6733         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
6735 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
6737         dfa: minor simplification with emptyset
6738         * lib/dfa.c (build_state): Simplify by using emptyset.
6740 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
6742         dfa: shrink constraints from 4 bits to 3
6743         * lib/dfa.c (newline_constraint, letter_constraint)
6744         (other_constraint, prev_newline_dependent)
6745         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
6746         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
6747         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
6748         Constraints need only 3 bits, not 4.  Using smaller integers
6749         shrinks the code a bit and makes grep a tad faster on x86-64.
6751         dfa: omit unnecessary ptrdiff_t check
6752         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
6753         overflow, since xnmalloc does that now.
6755         dfa: omit unnecessary allocation
6756         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
6757         an all-zero follow set works just fine.
6759         dfa: omit unused local
6760         * lib/dfa.c (build_state): Fix up recent change.
6762         maint: remove stray .texi files
6763         Although these were superseded by other files like
6764         doc/posix-functions/ctime.texi, the old files were not removed.
6765         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
6767 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
6769         getprogname: fix port to IRIX
6770         * lib/getprogname.c (getprogname) [__sgi]:
6771         Don't dump core if malloc returns NULL.
6773         dfa: fix reallocation bug when matching newlines
6774         Problem reported for sed by S. Gilles (Bug#25390).
6775         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
6776         (dfastate): Reallocate before moving any newline transition ...
6777         (build_state): ... instead of reallocating here, where it is too late.
6779 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
6781         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
6782         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
6784 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
6786         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
6787         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
6789 2017-01-07  Bruno Haible  <bruno@clisp.org>
6791         stdioext: Port to Minix 3.2 and newer.
6792         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
6793         * lib/fseeko.c (fseeko): Likewise.
6794         Reported by Nelson Beebe via Paul Eggert.
6796 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
6798         getprogname: port to IRIX
6799         * lib/getprogname.c (getprogname): Port to IRIX.
6800         Based on an idea by Bastien Roucariès at:
6801         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
6802         via code from Bruno Haible at:
6803         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
6805         localename-tests: port to NetBSD 7
6806         Problem reported by Nelson H. F. Beebe.
6807         * tests/test-localename.c:
6808         Test newlocale and uselocale only if both exist.
6810         glob, intprops, xalloc: work around Clang bug
6811         Work around LLVM bug 16404, which is still not fixed.
6812         https://llvm.org/bugs/show_bug.cgi?id=16404
6813         Problem reported by Nelson H. F. Beebe.
6814         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
6815         Remove.
6816         * lib/glob.c (size_add_wrapv):
6817         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
6818         * lib/xalloc-oversized.h (xalloc_oversized):
6819         Do not use overflow builtins if Clang.
6821         dfa: fix 'return' typo
6822         Problem reported by Nelson H. F. Beebe.
6823         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
6825 2017-01-05  Pádraig Brady  <P@draigBrady.com>
6827         parse-datetime: fix generated paths for coverage files
6828         * modules/parse-datetime: Adjust the paths for parse-datetime.y
6829         within parse-datetime.c, so that gcc generates appropriate .gcno
6830         files, allowing lcov to proceed without error.  Previously it
6831         would error trying to find "lib/lib/parse-datetime.y".
6833 2017-01-05  Pádraig Brady  <P@draigBrady.com>
6835         maint.mk: support parallel execution of coverage
6836         * top/maint.mk (coverage): Run dependencies serially,
6837         thus supporting parallel processing of each one,
6838         particularly build-coverage, which builds and runs tests.
6840 2017-01-05  Bruno Haible  <bruno@clisp.org>
6842         lock tests: Prefer semaphore over mutex.
6843         * tests/test-lock.c (USE_SEMAPHORE): New constant.
6844         (struct atomic_int, init_atomic_int, get_atomic_int_value,
6845         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
6846         Suggested by Torvald Riegel <triegel@redhat.com>.
6848 2017-01-05  Bruno Haible  <bruno@clisp.org>
6850         lock: Provide guarantee to avoid writer starvation for rwlocks.
6851         The rationale is: 1) Read-preferring read-write locks are prone to
6852         writer starvation if the number of reader threads multiplied by the
6853         percentage of time they have the lock held is too high. 2) Write-
6854         preferring read-write locks are the only reliable way to avoid this.
6855         3) There have been reports of 'test-lock' hanging on glibc systems
6856         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
6857         and glibc indeed implements read-preferring rwlocks by default, see
6858         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
6859         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
6860         * m4/pthread_rwlock_rdlock.m4: New file.
6861         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
6862         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
6863         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
6864         of rwlock initialization on glibc systems without
6865         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
6866         of rwlocks altogether on non-glibc systems without
6867         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
6868         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
6869         * lib/glthread/lock.c [USE_POSIX_THREADS]
6870         (glthread_rwlock_init_for_glibc): New function.
6871         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
6872         comment.
6873         [USE_PTH_THREADS]: New implementation of rwlocks.
6874         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
6875         readers.
6876         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
6877         (Depends-on): Add 'extensions'.
6878         * tests/test-rwlock1.c: New file.
6879         * lock-tests (Files): Add it.
6880         (Depends-on): Add usleep.
6881         (Makefile.am): Add test-rwlock1 to the tests.
6883 2017-01-05  Bruno Haible  <bruno@clisp.org>
6885         thread: Fix pth port.
6886         * lib/glthread/thread.h (pth_init): Declare weak.
6887         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
6888         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
6889         function.
6891 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
6893         parse-datetime: fix debug message on lone year number
6894         Input dates such as
6895           date -d "Apr 11 22:59:00 2011"
6896         are parsed as date (Apr 11, with default year 2016), then time, then a
6897         number (2011). Based on the combination of previously seen tokens,
6898         'digits_to_date_time' determines 2011 to be a year value.
6899         This fixes the debug messages to correctly show the updated year.
6900         Before:
6901             $ date --debug -d 'Apr 11 22:59:00 2011'
6902             date: parsed date part: (Y-M-D) 2016-04-11
6903             date: parsed time part: 22:59:00
6904             date: parsed number part: today/this/now
6905         After:
6906             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
6907             date: parsed date part: (Y-M-D) 2016-04-11
6908             date: parsed time part: 22:59:00
6909             date: parsed number part: year: 2011
6910         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
6911         'debug_year_seen' member fields.
6912         (digits_to_date_time): Update 'year_seen' as needed.
6913         (debug_print_current_time): Inform about year updates.
6914         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
6916         parse-datetime: fix local timezone debug messages
6917         "Local timezones" are strings that affect only DST relative to the
6918         default timezone. The debug messages in parse-datetime.y printed
6919         wrong information when encountering local timezones.
6920         Examples:
6921         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
6922              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
6923              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
6924         When the default timezone relates to the zone strings, EET/EEST are
6925         parsed as local timezones (tLOCAL_ZONE), and only change the DST
6926         value (0/1, respectively):
6927              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
6928              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
6929         * lib/parse-datetime.y (debug_print_current_time): If local timezone
6930         was seen, inform about DST change, don't print actual timezone.
6931         (debug_strfdatetime): If local timezone was seen, use default timezone
6932         (and adjust as needed) instead of using incorrect timezone.
6933         (parse_datetime2): Use correct time-zone source string, and adjust
6934         default timezone as needed.
6936         parse-datetime: add debug warning about DST changes
6937         Incorrect date arithmetic due to daylight saving time (DST) are a
6938         common (false) bug report in coreutils.
6939         Detect two such cases and print a warning:
6940         1. year/month/day adjustments (performed on 'struct tm'),
6941            where 'mktime' returns a different isdst value.
6942         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
6943            where the result of 'localtime(3)' on the value will return a
6944            different isdst value.
6945         Note: DST changes could be harmless or unnoticeable.
6946         Examples (with 'TZ=America/New_York'):
6947         Unnoticeable: result is 2016-Dec-14
6948            $ date -d '2016-06-15 EDT + 6 months' +%b
6949            Dec
6950         Unnoticeable: result is 2016-Dec-15 11:00:00
6951            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
6952            2016-12-15
6953         This is unexpected:
6954            $ date -d '2016-06-01 EDT + 6 months' +%F
6955            2016-11-30
6956         The new debug warnings will show:
6957            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
6958            ...
6959            date: warning: daylight saving time changed after date adjustment
6960            ...
6961         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
6962         print an appropriate warning message.
6964         parse-datetime: add debug warning about date arithmetic
6965         Date arithmetic are done directly on the fields of 'struct tm',
6966         which can result in invalid dates. Normalization with 'mktime(3)'
6967         will then produce a different date - which might cause unexpected
6968         results.
6969         Examples:
6970           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
6971           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
6972         Note that date normalization is not inherently wrong and not rejected,
6973         as it has legitimate uses:
6974           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
6975         If the user asked to adjust months but 'mday' changed,
6976         or user asked to adjust years but 'month' changed - warn about it.
6977             $ ./src/date --debug -d '2016-10-31 - 1 month'
6978             ...
6979             date: warning: when adding relative months/years, \
6980                            it is recommended to specify the 15th of the month
6981             ...
6982             date: warning: month/year adjustment resulted in shifted dates:
6983             date:      adjusted Y M D: 2016 09 31
6984             date:    normalized Y M D: 2010 10 01
6985             ...
6986         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
6987         a warning message. Improve recommendation of when to use 15 of the
6988         month or noon for date arithmetic.
6990         parse-datetime: fix debug message of relative part after timezone
6991         Relative part (e.g '+8 days') after a timezone string was not
6992         reported (was only reported after a timezone number). Due to the
6993         parser's structure, timezone strings with numbers were handled
6994         separately.
6995         before:
6996              # Timezone number + relative part: OK
6997              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
6998              ...
6999              date: parsed relative part: -8 day(s)
7000              # Timezone string + relative part: missing
7001              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
7002              [ missing message ]
7003         After: messages are printed in both cases.
7004         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
7006         parse-datetime: fix incorrect debug message on lone number
7007         A lone number is an absolute value, not a relative time part.
7008         before:
7009            $ date --debug -d '20130101'
7010            date: parsed number part: today/this/now
7011         After:
7012            $ ./src/date --debug -d '20130101'
7013            date: parsed number part: (Y-M-D) 2013-01-01
7014         * lib/parse-datetime.y ('item'/'number' tokens): Call
7015         'debug_print_current_time' instead of 'debug_print_relative_time'.
7017 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
7019         doc: modernize for C11 etc.
7020         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
7021         for C11, MinGW, etc.  This responds to Paul Smith's question in:
7022         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
7024         dfa: prefer functions to FETCH_WC macro
7025         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
7026         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
7027         wint_t result into DFA->lex.wctok instead of to a separate arg.
7028         All callers changed.  Move more local decls closer to where
7029         they're used.
7031         dfa: narrow more local var scopes
7032         * lib/dfa.c: Move more local decls to be more local.
7034         dfa: remove duplicate assignment
7035         Problem reported by Bruno Haible in:
7036         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
7037         * lib/dfa.c (parse_bracket_exp): Simplify.
7039 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
7041         dfa: simplify constraint-dependency checking
7042         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
7043         (prev_other_constraint): Remove.
7044         (prev_newline_dependent, prev_letter_dependent):
7045         Simplify, to avoid an unnecessary bitwise AND operation.
7047         dfa: prefer functions and constants to macros
7048         * lib/dfa.c: Prefer constants to macros where either will do.
7049         (streq, isasciidigit, newline_constraint)
7050         (letter_constraint, other_constraint, succeeds_in_context)
7051         (prev_newline_constraint, prev_letter_constraint)
7052         (prev_other_constraint, prev_newline_dependent)
7053         (prev_letter_dependent, accepting, accepts_in_context):
7054         Now static functions instead of function-like macros.
7055         Use lower-case names accordingly.  All uses changed.
7057         dfa: narrow more local var scopes
7058         * lib/dfa.c: Move some more local decls down to nearer where
7059         they're needed.
7061 2016-12-31  Jim Meyering  <meyering@fb.com>
7063         dfa: narrow the scope of many local variables
7064         * lib/dfa.c: Now that we are no longer constrained to c89, move
7065         declarations of many variables (often indices) "down" into the
7066         scope(s) where used or to the point of definition.  This is a
7067         no-semantic-change diff.
7069 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
7071         version-etc: new year
7072         * build-aux/gendocs.sh (version):
7073         * doc/gendocs_template:
7074         * doc/gendocs_template_min:
7075         * doc/gnulib.texi:
7076         * lib/version-etc.c (COPYRIGHT_YEAR):
7077         Update copyright dates by hand in templates and the like.
7078         * all files: Run 'make update-copyright'.
7080 2016-12-31  Eric Blake  <eblake@redhat.com>
7082         do-release-commit-and-tag: avoid shell syntax error
7083         * build-aux/do-release-commit-and-tag (curr_br): $branch can
7084         contain spaces when rebasing.
7086         maint.mk: hoist gnulib_dir definition earlier
7087         * top/maint.mk (gnulib_dir): Move near top of file.
7089 2016-12-31  Jim Meyering  <meyering@fb.com>
7091         maint.mk: do not always evaluate intprops-related shell
7092         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
7093         using gnulib_dir undefined (gnulib_dir is defined later in the
7094         file, which will be fixed separately), and besides, there is no
7095         need to incur the cost of this shell invocation for every single
7096         use of this .mk file.  Reported by Eric Blake in
7097         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
7099 2016-12-30  Jim Meyering  <meyering@fb.com>
7101         maint.mk: improve sc_prohibit_intprops_without_use
7102         * top/maint.mk (_intprops_names): Don't hard-code the list of
7103         symbol names.  Instead, derive it on the fly.
7105 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
7107         dfa: shorten sbit, success
7108         * lib/dfa.c (struct regex_syntax.sbit):
7109         (struct dfa.success): Use char, not int, for array elements, since
7110         they are all in the range 0..7.
7112         dfa: simplify multibyte_prop etc.
7113         This follows up on a change made when dfa.c was in grep, namely grep
7114         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
7115         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
7116         That earlier simplification allows for some more simplification
7117         and trimming down here.
7118         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
7119         (struct lexer_state): New mamber brack.
7120         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
7121         since they must be in the range 0..3 now.
7122         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
7123         the brack member now supersedes them.
7124         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
7125         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
7126         (dfaparse): Remove unnecessary initializations of already-0 storage.
7127         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
7128         (dfassbuild): No need to clear sup->mbcsets.
7130         dfa: minor performance tweak
7131         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
7133         dfa: wrap charclass inside a struct
7134         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
7135         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
7136         about 5% faster, where list.txt is generated by 'aspell dump
7137         master | head -n 100000 >list.txt'.  See Bug#22239.
7138         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
7139         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
7140         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
7141         Adjust to this, e.g., by using charclass * rather than charclass.
7142         All callers changed as needed.
7143         (copyset): Remove.  All uses changed to simple assignment.
7144         (parse_bracket_exp): Use zeroset instead of memset.
7146 2016-12-30  Jim Meyering  <meyering@fb.com>
7148         maint.mk: update list of intprops.h symbol names
7149         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
7150         This avoids a false failure of the sc_prohibit_intprops_without_use
7151         rule in grep.
7153 2016-12-29  Eric Blake  <eblake@redhat.com>
7155         getopt: fix parallel test failure
7156         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
7157         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
7158         * tests/test-getopt-main.h (main): Use different file names
7159         in case test-getopt-gnu and test-getopt-posix run in parallel.
7161 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
7163         xalloc: x2nrealloc check for ptrdiff_t overflow
7164         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
7165         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
7167 2016-12-24  Bruno Haible  <bruno@clisp.org>
7169         lock test: Fix performance problem on multi-core machines.
7170         * tests/test-lock.c (USE_VOLATILE): New macro.
7171         (struct atomic_int): New type.
7172         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
7173         functions.
7174         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
7175         as 'struct atomic_int'.
7176         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
7177         reclock_checker_thread, test_recursive_lock): Use the new functions.
7178         Reported by Eric Blake in
7179         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
7180         and by Pádraig Brady in
7181         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
7183 2016-12-19  Bruno Haible  <bruno@clisp.org>
7185         vma-iter: Fix endless loop on 64-bit Windows.
7186         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
7187         'unsigned long'.
7189 2016-12-19  Bruno Haible  <bruno@clisp.org>
7191         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
7192         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
7193         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
7194         Invoke gt_TYPE_WINT_T instead.
7195         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
7196         * modules/stdint (Files): Add m4/wint_t.m4.
7197         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
7198         * modules/wctype-h (Makefile.am): Likewise.
7199         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
7200         not only on MSVC.
7201         * lib/wctype.in.h (wint_t): Likewise.
7203 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
7205         getopt-posix-tests: fix Makefile typo
7206         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
7207         Fix typo: the last ‘_’ was missing in the name.
7208         I suspect that the typo explains this build failure:
7209         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
7210         although I can’t reproduce the problem on Solaris 10 sparc.
7212 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
7214         dfa: improve worst-case 'replace' performance
7215         See my note in Bug#22357#71.
7216         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
7217         (merge_constrained): New function, which is like
7218         the old 'merge' function, except with a new argument C2.
7219         Simplify the body by avoiding the need for different sections
7220         of code depending on whether one input is exhausted.
7221         (merge): Use the new function.
7222         (delete): Return the constraint of the deleted position,
7223         not the entire position.  Caller changed.
7224         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
7226 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
7228         dfa: performance improvement for removal of epsilon closure
7229         See Bug#22357#32.
7230         * lib/dfa.c (delete): Use binary search to find deleted index.
7231         (replace): New function.  It replaces a position with the followed set.
7232         (epsclosure): Replace it with a new algorithm.  Update caller.
7234 2016-12-18  Bruno Haible  <bruno@clisp.org>
7236         Split tests for getopt-posix and getopt-gnu.
7237         * tests/test-getopt-posix.c: New file.
7238         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
7239         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
7240         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
7241         GNULIB_TEST_GETOPT_GNU.
7242         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
7243         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
7244         (Makefile.am): Test test-getopt-posix instead of test-getopt.
7245         * modules/getopt-gnu-tests: New file.
7246         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
7248 2016-12-18  Bruno Haible  <bruno@clisp.org>
7250         posix-modules: Add options for specific platforms.
7251         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
7252         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
7253         Invoke func_tmpdir. Filter out the excludes.
7255 2016-12-18  Bruno Haible  <bruno@clisp.org>
7257         getopt: Fix link error for users of getopt() in <unistd.h>.
7258         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
7259         __need_getopt is defined. Undefine all macros before defining them.
7260         * modules/getopt (Include): Clarify that including <unistd.h> is also
7261         OK.
7262         * tests/test-getopt.c: Add comment.
7264 2016-12-17  Bruno Haible  <bruno@clisp.org>
7266         getaddrinfo tests: Avoid compilation error on MSVC.
7267         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
7268         getaddrinfo on native Windows.
7270 2016-12-17  Bruno Haible  <bruno@clisp.org>
7272         getlogin, getlogin_r: Fix link errors on MSVC.
7273         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
7274         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
7275         (Link): New section.
7276         * modules/getlogin_r (Files): Add m4/getlogin.m4.
7277         (configure.ac): Require gl_LIB_GETLOGIN.
7278         (Link): New section.
7279         * NEWS: Mention the new link requirements.
7280         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
7281         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
7283 2016-12-17  Bruno Haible  <bruno@clisp.org>
7285         Un-deprecate the 'progname' module.
7286         * NEWS: Describe the appropriate use-cases of 'progname' versus
7287         'getprogname'. Based on discussion summary at
7288         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
7290 2016-12-17  Bruno Haible  <bruno@clisp.org>
7292         Reorganize NEWS a bit.
7293         * NEWS: Move some not so important changes away from section
7294         "Important Notes".
7296 2016-12-17  Bruno Haible  <bruno@clisp.org>
7298         tanhf: Avoid redefinition error on MSVC.
7299         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
7300         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
7301         may be defined as an inline function.
7302         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
7303         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
7305 2016-12-17  Bruno Haible  <bruno@clisp.org>
7307         tanf: Avoid redefinition error on MSVC.
7308         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
7309         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
7310         may be defined as an inline function.
7311         * modules/math (Makefile.am): Substitute REPLACE_TANF.
7312         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
7314 2016-12-17  Bruno Haible  <bruno@clisp.org>
7316         sqrtf: Avoid redefinition error on MSVC.
7317         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
7318         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
7319         may be defined as an inline function.
7320         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
7321         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
7323 2016-12-17  Bruno Haible  <bruno@clisp.org>
7325         sinhf: Avoid redefinition error on MSVC.
7326         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
7327         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
7328         may be defined as an inline function.
7329         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
7330         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
7332 2016-12-17  Bruno Haible  <bruno@clisp.org>
7334         sinf: Avoid redefinition error on MSVC.
7335         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
7336         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
7337         may be defined as an inline function.
7338         * modules/math (Makefile.am): Substitute REPLACE_SINF.
7339         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
7341 2016-12-17  Bruno Haible  <bruno@clisp.org>
7343         logf: Avoid redefinition error on MSVC.
7344         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
7345         may be defined as an inline function.
7347 2016-12-17  Bruno Haible  <bruno@clisp.org>
7349         log10l: Avoid redefinition error on MSVC.
7350         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
7351         may be defined as an inline function.
7353 2016-12-17  Bruno Haible  <bruno@clisp.org>
7355         log10f: Avoid redefinition error on MSVC.
7356         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
7357         may be defined as an inline function.
7359 2016-12-17  Bruno Haible  <bruno@clisp.org>
7361         hypotl: Avoid redefinition error on MSVC.
7362         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
7363         may be defined as an inline function.
7365 2016-12-17  Bruno Haible  <bruno@clisp.org>
7367         hypotf: Avoid redefinition error on MSVC.
7368         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
7369         may be defined as an inline function.
7371 2016-12-17  Bruno Haible  <bruno@clisp.org>
7373         fmodl: Avoid redefinition error on MSVC.
7374         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
7375         may be defined as an inline function.
7377 2016-12-17  Bruno Haible  <bruno@clisp.org>
7379         fmodf: Avoid redefinition error on MSVC.
7380         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
7381         may be defined as an inline function.
7383 2016-12-17  Bruno Haible  <bruno@clisp.org>
7385         expf: Avoid redefinition error on MSVC.
7386         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
7387         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
7388         may be defined as an inline function.
7389         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
7390         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
7392 2016-12-17  Bruno Haible  <bruno@clisp.org>
7394         coshf: Avoid redefinition error on MSVC.
7395         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
7396         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
7397         may be defined as an inline function.
7398         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
7399         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
7401 2016-12-17  Bruno Haible  <bruno@clisp.org>
7403         cosf: Avoid redefinition error on MSVC.
7404         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
7405         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
7406         may be defined as an inline function.
7407         * modules/math (Makefile.am): Substitute REPLACE_COSF.
7408         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
7410 2016-12-17  Bruno Haible  <bruno@clisp.org>
7412         atan2f: Avoid redefinition error on MSVC.
7413         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
7414         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
7415         may be defined as an inline function.
7416         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
7417         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
7419 2016-12-17  Bruno Haible  <bruno@clisp.org>
7421         atanf: Avoid redefinition error on MSVC.
7422         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
7423         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
7424         may be defined as an inline function.
7425         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
7426         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
7428 2016-12-17  Bruno Haible  <bruno@clisp.org>
7430         asinf: Avoid redefinition error on MSVC.
7431         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
7432         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
7433         may be defined as an inline function.
7434         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
7435         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
7437 2016-12-17  Bruno Haible  <bruno@clisp.org>
7439         acosf: Avoid redefinition error on MSVC.
7440         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
7441         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
7442         may be defined as an inline function.
7443         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
7444         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
7446 2016-12-17  Bruno Haible  <bruno@clisp.org>
7448         Avoid redefinition errors on MSVC.
7449         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
7450         the function may be defined as an inline function.
7451         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
7452         the function may be defined as an inline function.
7454 2016-12-17  Bruno Haible  <bruno@clisp.org>
7456         Avoid redefinition errors on MSVC.
7457         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
7458         * lib/unistd.in.h: Include <stdio.h> when necessary.
7460 2016-12-17  Bruno Haible  <bruno@clisp.org>
7462         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
7463         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
7464         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
7465         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
7466         WINT_MAX.
7468 2016-12-17  Bruno Haible  <bruno@clisp.org>
7470         Avoid autoconf warning.
7471         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
7472         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
7474 2016-12-17  Bruno Haible  <bruno@clisp.org>
7476         fpending: Revert workaround against Emacs bug.
7477         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
7478         The Emacs bug is fixed by Eli Zaretskii in
7479         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
7481 2016-12-17  Bruno Haible  <bruno@clisp.org>
7483         getlogin_r tests: Port to mingw.
7484         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
7485         regression introduced on 2014-05-19.
7487 2016-12-17  Bruno Haible  <bruno@clisp.org>
7489         getlogin: Port to newer mingw.
7490         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
7491         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
7492         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
7493         HAVE_GETLOGIN.
7494         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
7495         HAVE_GETLOGIN.
7496         * doc/posix-functions/getlogin.texi: Mention the issue.
7497         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
7498         regression introduced on 2014-05-14.
7500 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
7502         builtin-expect: improve port to IBM XL C
7503         Problem reported for z/OS by Daniel Richard G. in:
7504         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
7505         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
7506         Test for <builtins.h> directly.
7508         builtin-expect: port to IBM XL C
7509         Problem reported for z/OS by Daniel Richard G. in:
7510         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
7511         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
7512         Also allow __builtin_expect defined via a standard include file.
7514         regex: fix dependency
7515         Problem reported by Bruno Haible in:
7516         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
7517         * modules/regex: Depend on builtin-expect.
7519         builtin-expect: new module
7520         Fix fnmatch to use it.
7521         Problem reported for z/OS by Daniel Richard G.
7522         * lib/fnmatch.c (__builtin_expect):
7523         * lib/glob.c (__builtin_expect):
7524         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
7525         * lib/memmem.c (__builtin_expect) [!_LIBC]:
7526         * lib/scandir.c (__builtin_expect):
7527         * lib/strstr.c (__builtin_expect) [!_LIBC]:
7528         Remove macro; config.h now does this.
7529         * lib/gl_anytreehash_list1.h (add_to_bucket):
7530         * lib/regex_internal.h (BE):
7531         Assume __builtin_expect.
7532         * m4/builtin-expect.m4, modules/builtin-expect: New files.
7533         * modules/avltreehash-list, modules/fnmatch, modules/glob:
7534         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
7535         * modules/scandir, modules/strstr-simple:
7536         Depend on builtin-expect.
7538 2016-12-15  Bruno Haible  <bruno@clisp.org>
7540         init.sh: Add possibility to not delete temporary files.
7541         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
7542         to yes, don't erase the temporary directory.
7544 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
7546         regex: fix integer-overflow bug in never-used code
7547         Problem reported by Clément Pit–Claudel in:
7548         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
7549         * lib/regex_internal.h: Include intprops.h.
7550         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
7551         behavior on integer overflow.
7552         * modules/regex (Depends-on): Add intprops.
7554         fpending: fix port to MinGW on Emacs
7555         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
7556         Problem reported by Eli Zaretskii in:
7557         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
7558         Is Plan 9 still a valid porting target, anyway?
7560 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
7562         safe-alloc: use xalloc-oversized
7563         * lib/safe-alloc.c: Include xalloc-oversized.h.
7564         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
7565         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
7567         xalloc: do not exceed PTRDIFF_MAX
7568         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
7569         xalloc_oversized check, since objects larger than PTRDIFF_MAX
7570         bytes have pointer-subtraction problems.
7572         malloca: do not exceed PTRDIFF_MAX
7573         * lib/malloca.h: Include xalloc-oversized.
7574         (nmalloca): Use xalloc_oversized instead of rolling our own.
7575         * modules/malloca (Depends-on):
7576         * modules/relocatable-prog-wrapper (Depends-on):
7577         Add xalloc-oversized.
7579         quotearg: pacify GCC better
7580         * modules/quotearg (Depends-on): Add minmax, stdint.
7581         * lib/quotearg.c: Include minmax.h, stdint.h.
7582         (nslots): Now int, as there seems little point to going to extra
7583         work merely to support the INT_MAX slot, which nobody ever uses.
7584         (quotearg_n_options): Redo size-overflow checks to pacify GCC
7585         and to catch (mostly-theoretical) ptrdiff_t problems too.
7586         This can be done via one comparison.
7588 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
7590         xalloc-oversized: check for PTRDIFF_MAX too
7591         This avoids undefined behavior when subtracting pointers to
7592         objects containing more than PTRDIFF_MAX bytes.
7593         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
7594         Also return 1 if the result would exceed PTRDIFF_MAX>
7595         * modules/xalloc-oversized (Depends-on):
7596         Add stdint.
7598         dfa: fix glitches in previous commit
7599         Sorry, I don't know how I managed to commit the wrong version.
7600         * lib/dfa.c (MIN): Move up.
7601         (xpalloc): Now static.
7603         dfa: fix some unlikely integer overflows
7604         I found these while reviewing the recent Coverity-related fix.
7605         This patch changes part of dfa.c to prefer ptrdiff_t instead of
7606         size_t for object counts.  Using ptrdiff_t is the style typically
7607         used in Emacs; although it wastes a sign bit as sizes can never be
7608         negative, it makes -fsanitize=undefined more likely to catch
7609         integer overflows in index calculation, and nowadays the upside is
7610         typically more important than the downside.  Although perhaps the
7611         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
7612         of dfa.c already does, since it uses state_num which is signed),
7613         that is a bigger change and is not needed to fix the bugs I found.
7614         * lib/dfa.c: Include stdint.h and intprops.h.
7615         (TOKEN_MAX): New macro.
7616         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
7617         (charclass_index, parse_bracket_exp, addtok, insert, merge)
7618         (realloc_trans_if_necessary, free_mbdata):
7619         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
7620         This is safe because xpalloc checks that the sizes do not exceed
7621         either SIZE_MAX or PTRDIFF_MAX.
7622         (xpalloc): New function, mostly taken from Emacs.
7623         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
7624         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
7625         (charclass_index): Check for integer overflow in computing
7626         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
7627         added to it later.
7628         (alloc_position_set): Check for integer overflow.  On typical
7629         platforms this check has zero overhead, since the constant
7630         expression is false.
7631         (realloc_trans_if_necessary):
7632         Remove assertion, which I hope Coverity no longer needs.
7634         * modules/dfa (Depends-on): Add intprops, stdint.
7636 2016-12-12  Jim Meyering  <meyering@fb.com>
7638         dfa: add an assertion to avoid coverity false positive
7639         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
7640         warned that "newalloc1 - 2" could overflow.
7642 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
7644         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
7645         * dfa.h (DFA_CASE_FOLD): Remove.
7646         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
7648 2016-12-13  John W. Eaton  <gnu@jweaton.org>
7650         link: fix test to declare use of rename()
7651         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
7652         -Werror=implicit-function-declaration
7654 2016-12-12  Bruno Haible  <bruno@clisp.org>
7656         fpending: Port to native Windows with MSVC.
7657         * lib/fpending.c: Include stdio-impl.h.
7658         (__fpending): Include all known implementations. Err out if it's not
7659         ported.
7660         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
7661         * modules/fpending (Files): Add lib/stdio-impl.h.
7662         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
7664 2016-12-12  Bruno Haible  <bruno@clisp.org>
7666         stdioext: Port to native Windows with MSVC.
7667         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
7668         (struct _gl_real_FILE): New type.
7669         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
7670         Windows.
7671         * lib/fbufmode.c (fbufmode): Add code for native Windows.
7672         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
7673         other SystemV derived implementations.
7674         * lib/fpurge.c (fpurge): Likewise.
7675         * lib/freadable.c (freadable): Likewise.
7676         * lib/freadahead.c (freadahead): Likewise.
7677         * lib/freading.c (freading): Likewise.
7678         * lib/freadptr.c (freadptr): Likewise.
7679         * lib/freadseek.c (freadptrinc): Likewise.
7680         * lib/fseeko.c (fseeko): Likewise.
7681         * lib/fseterr.c (fseterr): Likewise.
7682         * lib/fwritable.c (fwritable): Likewise.
7683         * lib/fwriting.c (fwriting): Likewise.
7684         Reported by Gisle Vanem <gvanem@yahoo.no>.
7686 2016-12-11  Jim Meyering  <meyering@fb.com>
7688         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
7689         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
7690         to work with most shells, but not with the one provided by many
7691         Solaris 10 systems, so running configure with such a /bin/sh evokes
7692         e.g., "./configure: syntax error at line 33602: `(' unexpected".
7693         Reported by Assaf Gordon in
7694         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
7696 2016-12-10  Bruno Haible  <bruno@clisp.org>
7698         threadlib: Optimize out runtime test on Solaris >= 10.
7699         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
7700         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
7701         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
7703 2016-12-10  Bruno Haible  <bruno@clisp.org>
7705         stdint: Update doc about Solaris 9.
7706         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
7708 2016-12-09  Bruno Haible  <bruno@clisp.org>
7710         c-ctype tests: Fix link error on Solaris 9.
7711         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
7712         Reported at <https://savannah.gnu.org/bugs/?46827>.
7714 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
7716         dfa: fix performance bug that recomputes trans
7717         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
7718         25 on-demand changes.  The bug caused build_state to reset all
7719         d->trans elements to -2 even when d->trans was already non-null.
7720         Use C99 style decls after statements in this function.
7722         same-inode: port to MinGW
7723         Here st_ino is always 0, so change the definition of SAME_INODE so
7724         that 1 means the two files are the same, 0 with st_ino != 0 means
7725         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
7726         reported by Bruno Haible (Bug#25146).
7727         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
7728         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
7730 2016-12-04  Bruno Haible  <bruno@clisp.org>
7732         javacomp-script: Support Java 7 and 8.
7733         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
7734         target-version 1.7, 1.8.
7736 2016-12-02  Daiki Ueno  <ueno@gnu.org>
7738         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
7739         GPLv2" rewriting.
7741 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
7743         * gnulib-tool (func_import): Adhere to the license guideline when
7744         rewriting the license text to "LGPLv3+ or GPLv2":
7745         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
7747 2016-12-02  Bruno Haible  <bruno@clisp.org>
7749         localcharset: Avoid theoretical buffer overrun.
7750         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
7751         return value from setlocale if it would lead to a buffer overrun.
7753 2016-12-01  Bruno Haible  <bruno@clisp.org>
7755         Relicense some modules under LGPLv2+.
7756         Kevin Cernekee's approval is in
7757         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
7758         * modules/fseterr (License): Change to LGPLv2+.
7759         * modules/mbchar (License): Likewise.
7760         * modules/mbiter (License): Likewise.
7761         * modules/mbsnlen (License): Likewise.
7762         * modules/wcwidth (License): Likewise.
7764 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
7766         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
7767         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
7768         OS/2 kLIBC.
7770 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
7772         alphasort, scandir: Port to OS/2 kLIBC
7773         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
7774         declaration.
7775         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
7777 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
7779         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
7780         * lib/relocatable.c (relocate): Do not touch pathname if it is started
7781         with '/@unixroot'.
7783 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
7785         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
7786         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
7787         OS/2 kLIBC unless TCPV40HDRS is defined.
7789 2016-11-29  Jim Meyering  <meyering@fb.com>
7791         dfa: avoid new infinite loop
7792         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
7793         * lib/dfa.c (dfastate): When constructing a new state table, we could
7794         initially declare that we had found a match, and later find that
7795         constraints eliminate that possibility, yet continue to use the
7796         now stale "matched" indicator.  That would lead to an infinite loop.
7797         The solution is to update "matched" when necessary.
7798         Introduced by commit v0.1-983-g403adf1.
7800 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
7802         dfa: avoid match middle in multibyte character
7803         * lib/dfa.c (transit_state): If fails in matching single byte characters
7804         on a state including period expression in non-UTF8 multibyte locales,
7805         skip trailing bytes.
7806         (dfa_supported): Revert previous change.
7808 2016-11-27  Jim Meyering  <meyering@fb.com>
7810         dfa: avoid false match in non-UTF8 multibyte locales
7811         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
7812         as "not supported" so that callers will resort to using regex-based
7813         matcher.  This will surely hurt performance, but correctness trumps
7814         performance here, and the affected locales are less and less relevant,
7815         these days.  See grep's bug report https://bugs.gnu.org/24975.
7817 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
7819         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
7820         * lib/ptsname_r.c: Include the appropriate headers.
7821         [__sun]: Delete sys/sysmacros.h include.
7822         [_AIX || __osf__]: Likewise.
7823         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
7825 2016-11-27  Pádraig Brady  <P@draigBrady.com>
7827         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
7828         * lib/md4.c (md4_process_bytes): The existing define is made internal
7829         in recent versions of glibc, so also use this new public define.
7830         * lib/md5.c (md5_process_bytes): Likewise.
7831         * lib/sha1.c (sha1_process_bytes): Likewise.
7832         * lib/sha256.c (sha256_process_bytes): Likewise.
7833         * lib/sha512.c (sha512_process_bytes): Likewise.
7835 2016-11-27  Pádraig Brady  <P@draigBrady.com>
7837         maint: use a more standard return from mbrtowc test
7838         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
7839         from the test program as this often indicates an
7840         unhandled case in the test program.
7841         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
7842         (gl_MBRTOWC_SANITYCHECK): Likewise.
7843         (gl_MBRTOWC_NULL_ARG2): Likewise.
7844         (gl_MBRTOWC_NUL_RETVAL): Likewise.
7846 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
7848         freopen: work around glibc bug with closed fd
7849         Work around glibc bug#15589, where freopen mishandles the case
7850         where stdin etc. are already closed.
7851         * doc/posix-functions/freopen.texi (freopen): Document the bug.
7852         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
7853         instead of __need_FILE, as the latter does not work with glibc.
7854         Include <fcntl.h>, for open flags.
7855         (rpl_freopen): Work around glibc bug.
7856         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
7857         * modules/freopen (Depends-on): Add fcntl-h.
7858         * tests/test-freopen.c (main): Test for bug.
7860 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
7862         fnmatch: fix typo introduced on 2016-08-17
7863         This fixes the port to non-GCC compilers that lack __builtin_expect.
7864         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
7866         dfa: simplify with new function fillset
7867         * lib/dfa.c (fillset): New function.
7868         Use it for clarity when applicable.
7870         dfa: fix glitches with on-demand states
7871         Also, adjust commentary to better match new code.
7872         Some of these glitches predate the recent change.
7873         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
7874         only non-initial states.
7875         (dfastate): Rename locals to better match new roles.
7876         Move them into nested scopes if this is easy.
7877         Omit unnecessary calls to zeroset.
7878         Simplify test for whether to throw in the positions of state 0.
7879         Omit C99-ism (decl after statement) since Gawk still wants C89.
7880         (build_state): Omit unnecessary test and assignment.
7881         Fix some confusion that counted transition tables inaccurately
7882         and could cause a memory leak.
7883         (dfaexec_main): Redo to make it clearer to the compiler that
7884         -1 and -2 are the only negative state numbers here.
7886 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
7888         dfa: addition of new state on demand
7889         * src/dfa.c (dfastate): Add argument UC, the current input character.
7890         Fill only a group including the character in transition table.
7891         (realloc_trans_if_necessary): Add the dummy state which means that a
7892         transition table is assigned but the next state is not assigned.
7893         (build_state): Return the next state.  All callers updated.
7894         (transit_state_singlebyte): If we get the dummy state,
7895         fill the transition table.
7896         (dfaexec_main): Handle the dummy state.
7897         (free_mbdata, dfafree): Consider the dummy state.
7899 2016-11-24  Daiki Ueno  <ueno@gnu.org>
7901         srclist: sync with released gettext
7902         * config/srclist.txt: Set "release" option to the files under
7903         $GETTEXT.
7905 2016-11-24  Daiki Ueno  <ueno@gnu.org>
7907         srclist: add "release" option
7908         * config/srclist.txt: Change the format so that the first column
7909         of each line points to the top-level directory of the source
7910         archive.
7911         * config/srclist-update: Accept "release" option that checks files
7912         from the most recently tagged revision in the source archive.
7914 2016-11-21  Bruno Haible  <bruno@clisp.org>
7916         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
7917         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
7918         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
7919         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
7920         Inline and remove member function 'rpl ()' of the wrapper struct.
7922 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
7924         dfa: fix logic typo
7925         Problem reported by Stephane Chazelas (Bug#24973).
7926         * lib/dfa.c (using_simple_locale): Fix typo that caused some
7927         non-simple locales like fr_FR to be treated as simple.
7929 2016-11-20  Jim Meyering  <meyering@fb.com>
7931         fix test driver leaks: exclude, malloc, realloc
7932         * tests/test-exclude.c (main): Fix trivial leak.
7933         * tests/test-malloc-gnu.c (main): Likewise.
7934         * tests/test-realloc-gnu.c (main): Likewise.
7935         With these changes, grep's tests are now leak free.
7936         I.e., running them with ASAN elicits no failure:
7937           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
7938             AM_LDFLAGS='-fsanitize=address -static-libasan' check
7940 2016-11-11  Bruno Haible  <bruno@clisp.org>
7942         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
7943         * modules/libunistring: (License): Change from LGPL to
7944         "LGPLv3+ or GPLv2".
7945         * modules/libunistring-optional: Likewise.
7946         * modules/unicase/*: Likewise.
7947         * modules/uniconv/*: Likewise.
7948         * modules/unictype/*: Likewise.
7949         * modules/unigbrk/*: Likewise.
7950         * modules/unilbrk/*: Likewise.
7951         * modules/uniname/*: Likewise.
7952         * modules/uninorm/*: Likewise.
7953         * modules/unistdio/*: Likewise.
7954         * modules/unistr/*: Likewise.
7955         * modules/uniwbrk/*: Likewise.
7956         * modules/uniwidth/*: Likewise.
7958 2016-11-12  Bruno Haible  <bruno@clisp.org>
7960         Relicense some modules under LGPLv2+.
7961         Paul Eggert's approval is in
7962         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
7963         Eric Blake's approval is in
7964         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
7965         Ludovic Courtès's approval is in
7966         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
7967         * modules/isnand-nolibm (License): Change to LGPLv2+.
7968         * modules/isnanf-nolibm (License): Likewise.
7969         * modules/isnanl-nolibm (License): Likewise.
7971 2016-11-19  Bruno Haible  <bruno@clisp.org>
7973         Relicense some modules under LGPLv2+.
7974         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
7975         modules/vasnprintf.
7976         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
7977         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
7978         All other significant changes to the files in lib/ of these modules
7979         are from me.
7980         * modules/memcmp2 (License): Change to LGPLv2+.
7981         * modules/amemxfrm (License): Likewise.
7982         * modules/fpieee (License): Likewise.
7983         * modules/fpucw (License): Likewise.
7984         * modules/frexp-nolibm (License): Likewise.
7985         * modules/frexpl-nolibm (License): Likewise.
7986         * modules/printf-frexp (License): Likewise.
7987         * modules/printf-frexpl (License): Likewise.
7988         * modules/printf-safe (License): Likewise.
7989         * modules/signbit (License): Likewise.
7991 2016-11-17  Bruno Haible  <bruno@clisp.org>
7993         Enable Unicode decoder safety unconditionally.
7994         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
7995         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
7996         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
7997         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
7998         * lib/unistr/u8-prev.c (u8_prev): Likewise.
7999         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
8000         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
8001         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
8002         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
8003         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
8004         * lib/unistr/u16-prev.c (u16_prev): Likewise.
8005         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
8006         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
8007         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
8008         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
8009         * lib/unistr/u32-prev.c (u32_prev): Likewise.
8010         * lib/unistr/u32-next.c (u32_next): Likewise.
8011         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
8012         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
8013         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
8014         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
8015         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
8016         CONFIG_UNICODE_SAFETY tests unconditionally.
8017         * tests/unistr/test-u32-mblen.c (main): Likewise.
8018         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
8019         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
8020         * tests/unistr/test-u32-next.c (main): Likewise.
8021         * tests/unistr/test-u32-strmblen.c (main): Likewise.
8022         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
8023         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
8024         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
8025         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
8026         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
8027         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
8028         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
8029         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
8030         * lib/unistr/u16-check.c (u16_check): Update comment.
8031         * NEWS: Mention the changes that callers should be aware of.
8033 2016-11-19  Bruno Haible  <bruno@clisp.org>
8035         relocatable-prog-wrapper: Fix breakage on Cygwin.
8036         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
8037         (Depends-on): Remove intprops.
8038         * lib/relocwrapper.c: Update dependency tree.
8039         (strerror): Undefine.
8040         * build-aux/install-reloc (func_create_wrapper): Do not compile
8041         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
8043 2016-11-19  Bruno Haible  <bruno@clisp.org>
8045         strerror: Make it compile in C++ mode.
8046         * lib/strerror.c (strerror): Ignore the return value of memcpy().
8048 2016-11-15  Pedro Alves  <palves@redhat.com>
8050         sys_time: add gnulib::timeval for C++
8051         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
8052         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
8053         timeval macro.
8055 2016-11-14  Pedro Alves  <palves@redhat.com>
8057         snippet/c++defs: fix real-floating arg functions in C++ mode
8058         Also, define isfinite, isinf, isnan, signbit in the gnulib
8059         namespace instead of in the global namespace.
8060         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
8061         (_GL_END_NAMESPACE): New.
8062         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
8063         (isfinite, isinf, isnan, signbit) [__cplusplus &&
8064         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
8065         instead of in the global namespace.
8066         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
8067         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
8068         of in the global namespace.
8070 2016-11-13  Jim Meyering  <meyering@fb.com>
8072         strftime: don't use __THROW
8073         Each use of __THROW would provoke this from gcc-7-to-be:
8075           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
8076             on unit local functions [-Wattributes]
8077           static int iso_week_days (int, int) __THROW;
8078           ^~~~~~
8079         * lib/strftime.c (__THROW): Don't define.
8080         Remove each use of __THROW.
8081         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
8082         (tm_diff, iso_week_days, __strftime_internal): Likewise.
8084 2016-11-14  Paul Eggert  <eggert@union>
8086         obstack: port to gcc -fcheck-pointer-bounds
8087         Problem found by 'make check' failure on bleeding-edge coreutils
8088         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
8089         6.2.0-5ubuntu12), configured via "./configure
8090         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
8091         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
8092         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
8093         New macro, copied from fts_.h.
8094         (struct _obstack_chunk.contents): Use it.
8096 2016-11-14  Eric Blake  <eblake@redhat.com>
8098         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
8099         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
8100         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
8102 2016-11-14  Pádraig Brady  <P@draigBrady.com>
8104         strptime: fix compile error in recent change
8105         * lib/strptime.c (__strptime_internal): Fix ported code.
8107 2016-11-11  Bruno Haible  <bruno@clisp.org>
8109         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
8110         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
8111         (func_import): Extend determination of license_incompatibilities.
8112         (func_create_testdir): Extend table of license compatibility. Handle
8113         also the licenses GPLv3+, GPL, LGPLv3+.
8115 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
8117         strftime: tune %q
8118         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
8120         Merge strftime.c changes from glibc
8121         This incorporates:
8122         2007-10-16 [BZ #5184] Add tzset_called argument
8123         2008-06-13 [BZ #6612] pass reference to tzset_called around
8124         2009-10-30 Implement Burmese language locale for Myanmar
8125         2010-01-09 Add support for XPG7 testing
8126         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
8127         2015-10-20 Convert miscellaneous function definitions to prototype style
8128         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
8129         it anyway and this lessens the difference between gnulib and glibc.
8130         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
8131         (__THROW): Define if standard headers do not.
8132         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
8133         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
8134         Declare with __THROW.
8135         (__strftime_internal): Rename from strftime_case_. Add arg for
8136         whether tzset is called.  All uses changed.  Call tzset at most
8137         once.  Allow %OC, for Burmese.
8138         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
8139         Don't assume values are in range.
8141 2016-11-12  Eric Blake  <eblake@redhat.com>
8143         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
8144         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
8145         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
8146         different value.
8148 2006-11-12  Pedro Alves  <palves@redhat.com>
8150         Fix gnulib C++ namespace support and std::frexp
8151         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
8152         _GL_CXXALIASWARN.
8154 2006-11-12  Pedro Alves  <palves@redhat.com>
8156         GNULIB_NAMESPACE::func need not pull in rpl_func
8157         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
8158         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
8159         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
8160         struct instead of a function pointer.
8162 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
8164         manywarnings: fix -Wno-missing-field-initializers detection
8165         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
8166         to be independent of -Wunused-variable.  I.E. ensure the latter
8167         warning doesn't occur so that detection of the former is accurate.
8169 2016-11-05  Pádraig Brady  <pbrady@fb.com>
8171         strftime,strptime: support %q to represent the quarter
8172         * lib/strftime.c (strftime_case_): Add %q case.
8173         * lib/strptime.c (__strptime_internal): Likewise.
8174         * tests/test-strftime.c (quarter_test): A new test case.
8176 2016-11-03  Eric Blake  <eblake@redhat.com>
8178         bootstrap: Fix get_version() for AIX 5.3
8179         * build-aux/bootstrap (get_version): Factor out sed script, since
8180         indented comments choke AIX 5.3 sed.
8181         Reported-by: Michael Felt <aixtools@gmail.com>
8183 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
8185         intprops: port to older XL C
8186         Problem reported by Alexander Samoilov in:
8187         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
8188         http://savannah.nongnu.org/bugs/?49448
8189         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
8190         Define to 1 only for XL C 12.1 or later, since this bug
8191         occurs in XL C for AIX 6.0 but not in 12.1.
8193 2016-11-02  Pádraig Brady  <P@draigBrady.com>
8195         backupfile: initialize default suffix within the implementation
8196         * lib/backupfile.c (find_backup_file_name): Initialize the
8197         global variable here, to simplify usage, and to only call
8198         getenv() when needed.
8200 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
8202         futimens: remove FIXME for old Linux kernels
8203         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
8204         this in 2012" FIXME, like that for utimensat.
8206         utimensat: remove FIXME for old Linux kernels
8207         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
8208         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
8209         this in 2012" FIXME, by assuming the file system bug is absent
8210         unless demonstrated to be present.  We no longer need to worry
8211         about Linux kernel 2.6.32 when building with newer kernels.
8213 2016-10-16  Bruno Haible  <bruno@clisp.org>
8215         qsort_r: Fix macrology for platforms that lack the function.
8216         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
8217         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
8218         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
8219         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
8220         not exist.
8221         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
8222         the function exists.
8223         * modules/qsort_r: Add comments.
8225 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
8227         sys_types: fix Texinfo typos
8228         * doc/glibc-functions/gnu_dev_major.texi:
8229         * doc/glibc-functions/gnu_dev_makedev.texi:
8230         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
8232 2016-10-26  John David Anglin  <dave.anglin@bell.net>
8234         getprogname: port to HP-UX
8235         See Bug#24805.
8236         * lib/getprogname.c (getprogname) [__hpux]: Port.
8237         * tests/test-getprogname.c (STREQ) [__hpux]:
8238         Special-case for HP-UX limitations on program name length.
8240 2016-10-20  Bruno Haible  <bruno@clisp.org>
8242         Update doc about target platforms.
8243         * doc/gnulib-intro.texi (Target Platforms): Update list.
8245 2016-10-15  Bruno Haible  <bruno@clisp.org>
8247         opendir, readdir, closedir: Relicense under LGPLv2+.
8248         * modules/opendir (License): Change to LGPLv2+.
8249         * modules/readdir (License): Likewise.
8250         * modules/closedir (License): Likewise.
8252 2016-10-16  Bruno Haible  <bruno@clisp.org>
8254         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
8255         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
8256         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
8257         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
8258         HAVE_DECL_STRERROR_R.
8260 2016-10-16  Bruno Haible  <bruno@clisp.org>
8262         Make the 'argp' module work without the 'error' module.
8263         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
8265 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
8267         diffseq: restore TOO_EXPENSIVE heuristic
8268         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
8269         (Bug#24715).  The simplest solution is to restore the
8270         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
8271         using a higher threshold to avoid Bug#16848 on smaller files.
8272         * lib/diffseq.h (struct context): Restore member too_expensive.
8273         (struct partition): Restore members lo_minimal, hi_minimal.
8274         (diag, compareseq): Restore arg find_minimal.  All uses changed.
8275         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
8276         1993 to make 'diff' run faster (but not as well) on large inputs,
8277         but use a threshold of 4096 instead of the old 256.
8278         * lib/fstrcmp.c (strcmp_bounded):
8279         * lib/git-merge-changelog.c (compute_differences):
8280         Adjust to diffseq.h changes.
8282 2016-10-22  Bruno Haible  <bruno@clisp.org>
8284         iconv: Avoid compilation error when bootstrapping GNU libiconv.
8285         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
8286         declaration yet, define ICONV_CONST to empty.
8288 2016-10-15  Bruno Haible  <bruno@clisp.org>
8290         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
8291         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
8292         module.
8294 2016-10-16  Bruno Haible  <bruno@clisp.org>
8296         system-quote tests: Avoid compiler warning on AIX.
8297         * tests/test-system-quote-child.c (fopen): Redefine like the system's
8298         <stdio.h> does.
8300 2016-10-16  Bruno Haible  <bruno@clisp.org>
8302         Fix some "gcc -Wall" warnings.
8303         * tests/test-ffsl.c (main): Use variable x, not i.
8304         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
8305         freopen.
8306         * tests/test-sethostname1.c (main): Explicitly ignore the return value
8307         of sethostname.
8309 2016-10-16  Bruno Haible  <bruno@clisp.org>
8311         gnulib-tool: Make --create-testdir on all modules work again.
8312         * gnulib-tool (func_create_testdir): Don't include the
8313         non-recursive-gnulib-prefix-hack module.
8315 2016-10-21  Daiki Ueno  <ueno@gnu.org>
8317         libunistring: change the maintainer to 'all'
8318         * modules/gen-uni-tables, modules/libunistring:
8319         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
8320         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
8321         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
8322         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
8323         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
8324         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
8325         * modules/uniwidth/*: Change the maintainer to 'all'.
8327 2016-10-16  Bruno Haible  <bruno@clisp.org>
8329         Simplify "configure: checking ..." messages.
8330         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
8331         AC_MSG_NOTICE.
8332         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
8334 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
8336         quotearg-tests: pacify gcc -Wall
8337         Problem reported by Bruno Haible in:
8338         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
8339         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
8340         * tests/test-quotearg.h: ... from here.
8342 2016-10-20  Pádraig Brady  <P@draigBrady.com>
8344         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
8345         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
8346         Needed on Centos <= 4.
8348 2016-10-20  Jim Meyering  <meyering@fb.com>
8350         printf.m4: fix a bug in detecting printf %j support
8351         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
8352         uintmax_t is defined in neither stdint.h nor inttypes.h.
8353         Before, this macro might have mistakenly set
8354         gl_cv_func_printf_sizes_c99=yes on such a system.
8355         Spotted by Zev Weiss.
8357 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
8359         sched: substitute HAVE_SYS_CDEFS_H too
8360         Problem reported by Tom G. Christensen in:
8361         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
8362         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
8363         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
8365 2016-10-19  Pádraig Brady  <P@draigBrady.com>
8367         quotearg: never write beyond the returned length
8368         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
8369         scan of the string when we initially encounter a single quote when
8370         shell quoting, so that if we then switch to a more concise quoting method
8371         we will not have written beyond that returned length.
8372         This is significant for sh-quote, which has separate routines
8373         to determine the length and do the actual quoting.
8374         * tests/test-quotearg.h: Reinstate the buffer bounds checking
8375         now that we never write more than the returned length.
8377 2016-10-18  Bruno Haible  <bruno@clisp.org>
8379         getprogname tests: Avoid failure in packages that use libtool.
8380         * tests/test-getprogname.c (main): Strip "lt-" prefix.
8381         Based on a patch by Jim Meyering.
8383 2016-10-16  Bruno Haible  <bruno@clisp.org>
8385         getprogname: Fix test failure on Cygwin. Comments.
8386         * lib/getprogname.h: Add comments.
8387         * lib/getprogname.c: Add comments. Fix #elif indentation.
8388         * tests/test-getprogname.c (main): On Cygwin, expect a result without
8389         ".exe" suffix.
8391 2016-10-16  Bruno Haible  <bruno@clisp.org>
8393         Make sure the libunistring detection rejects older versions with a
8394         known bug.
8395         * modules/unistr/u8-strtok (configure.ac): Bump required version.
8396         * modules/unistr/u16-strtok (configure.ac): Likewise.
8397         * modules/unistr/u32-strtok (configure.ac): Likewise.
8399 2016-10-18  Bruno Haible  <bruno@clisp.org>
8401         sh-quote, system-quote: revert regression of unit test.
8402         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
8403         * tests/test-system-quote-main.c (check_one): Likewise.
8405 2016-10-16  Pádraig Brady  <P@draigBrady.com>
8407         quotearg: fix stale tests
8408         * tests/test-quotearg.c [locale_results]: Add the missing str7
8409         entries to the expected results.
8410         * tests/test-system-quote-main.c (check_one): Don't enforce that we
8411         don't write beyond the returned length, since that's no longer the
8412         case if we switch to a more concise quoting style.
8413         * tests/test-sh-quote.c (check_one): Likewise.
8414         (main): Adjust for the new more concise quoting style.
8415         Reported by Bruno Haible.
8417 2016-10-16  Jim Meyering  <meyering@fb.com>
8419         non-recursive-gnulib-prefix-hack: fix inconsequential typo
8420         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
8421         to "$1".  This macro is always invoked with $1 == lib.
8422         Spotted by Bruno Haible
8424 2016-10-16  Bruno Haible  <bruno@clisp.org>
8426         Fix a test crash.
8427         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
8428         fails.
8430 2016-10-16  Pádraig Brady  <P@draigBrady.com>
8432         test-limits-h: suppress -Woverlength-strings
8433         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
8435 2016-10-15  Bruno Haible  <bruno@clisp.org>
8437         gettime, timespec, utimens: Relicense under LGPL.
8438         * modules/gettime (License): Change to LGPL.
8439         * modules/timespec (License): Likewise.
8440         * modules/utimens (License): Likewise.
8442 2016-10-14  Bruno Haible  <bruno@clisp.org>
8443             Pádraig Brady  <P@draigBrady.com>
8445         canonicalize-lgpl: Support the case path_max > INT_MAX.
8446         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
8447         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
8449 2016-10-13  Jim Meyering  <meyering@fb.com>
8451         getprogname: IBM z/OS: avoid NULL-dereference
8452         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
8453         upon strdup failure.
8455 2016-10-12  Jim Meyering  <meyering@fb.com>
8457         test-stdint: use _GL_VERIFY rather than "verify" for some tests
8458         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
8459         and an abbreviated diagnostic rather than verify with the full one,
8460         because the full-length strings would evoke warnings from gcc with
8461         -Woverlength-strings.
8463 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
8465         stdint: port SIZE_MAX to glibc s390
8466         Problem reported by Eric Blake in:
8467         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
8468         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
8469         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
8470         correct type, if possible.
8472 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
8474         getprogname: port to IBM z/OS
8475         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
8477 2016-10-11  Jim Meyering  <meyering@fb.com>
8479         maint: remove stray space after "." in AC_DEFINE comment.
8480         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
8481         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
8483 2016-10-05  Jim Meyering  <meyering@fb.com>
8485         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
8486         * lib/long-options.c (parse_long_options): Add a break statement
8487         to avoid this new warning/failure:
8488         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
8489           --create-testdir --dir=/t/x --with-tests --test long-options
8490         ../../gllib/long-options.c: In function 'parse_long_options':
8491         ../../gllib/long-options.c:66:12: error: this statement may \
8492           fall through [-Werror=implicit-fallthrough]
8493                    (*usage_func) (EXIT_SUCCESS);
8494                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
8496 2016-10-05  Jim Meyering  <meyering@fb.com>
8498         utimecmp: avoid new GCC 7 warning from -Wbool-operation
8499         Testing this module would fail when using GCC 7 like this:
8500         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
8501           --dir=/tmp/x --with-tests --test utimecmp
8502         ../../gllib/utimecmp.c: In function ‘utimecmp’:
8503         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
8504           [-Werror=bool-operation]
8505                          time_t s = src_s & ~ (res == 2 * BILLION);
8506                                             ^
8507         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
8508           [-Werror=bool-operation]
8509                src_s &= ~ (res == 2 * BILLION);
8510                         ^
8511         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
8512         Instead, make it explicit that we intend to apply it to 0 or 1.
8514 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
8516         dfa: save memory for states
8517         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
8518         states if dfa has a lot of caches.
8520 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
8522         wchar, wctype-h: fix for MinGW 3.22.2
8523         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
8524         special invocation, to fix issues with MinGW 3.22.2 wchar.h
8525         when included from <string.h>.
8526         * lib/wctype.in.h [__MINGW32__]: Add special invocation
8527         convention for MinGW 3.22.2, to solve issues with their
8528         wctype.h when included from <ctype.h>.
8530 2016-10-05  Jim Meyering  <meyering@fb.com>
8532         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
8533         * lib/long-options.c (parse_long_options): Add a break statement
8534         to avoid this new warning/failure:
8535         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
8536           --create-testdir --dir=/t/x --with-tests --test long-options
8537         ../../gllib/long-options.c: In function ‘parse_long_options’:
8538         ../../gllib/long-options.c:66:12: error: this statement may \
8539           fall through [-Werror=implicit-fallthrough]
8540                    (*usage_func) (EXIT_SUCCESS);
8541                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
8543         utimecmp: avoid new GCC 7 warning from -Wbool-operation
8544         Testing this module would fail when using GCC 7 like this:
8545         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
8546           --dir=/tmp/x --with-tests --test utimecmp
8547         ../../gllib/utimecmp.c: In function ‘utimecmp’:
8548         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
8549           [-Werror=bool-operation]
8550                          time_t s = src_s & ~ (res == 2 * BILLION);
8551                                             ^
8552         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
8553           [-Werror=bool-operation]
8554                src_s &= ~ (res == 2 * BILLION);
8555                         ^
8556         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
8557         Instead, make it explicit that we intend to apply it to 0 or 1.
8559 2016-10-03  Pádraig Brady  <P@draigBrady.com>
8561         quotearg: minimize shell quoting using double quotes
8562         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
8563         quote in encountered then use double quotes (c style quoting)
8564         when possible, as it simplifies the quoting.
8565         * tests/test-quotearg-simple.c: Add test cases.
8566         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
8567         for the fact we now may write beyond the returned length.
8569 2016-10-02  Jim Meyering  <meyering@fb.com>
8571         vasnprintf.c: avoid spurious warning from GCC 7
8572         The presence of cpp directives renders this "FALLTHROUGH" comment
8573         ineffective, so does not suppress the -Wimplicit-fallthrough warning
8574         from GCC 7 built from git on 2016-10-02.
8575         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
8576         directives, so that it takes effect once again.  This is clearly
8577         not a proper change, and I will revert it once this bug is fixed:
8578         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
8580 2016-10-01  Jim Meyering  <meyering@fb.com>
8582         getprogname: correct the test for a __progname variable
8583         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
8584         and AC_LINK_IFELSE to check for a global __progname.  If found,
8585         define HAVE_VAR___PROGNAME.
8586         * lib/getprogname.c (getprogname): Reflect the new name of the
8587         feature- checked preprocessor symbol:
8588         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
8590 2016-09-28  Jim Meyering  <meyering@fb.com>
8592         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
8593         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
8594         fall-through case with a /* fallthrough */ comment.
8596         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
8597         * lib/dfa.c (dfassbuild): Mark the end of this case with a
8598         /* fallthrough */ comment.
8600         getprogname: avoid __progname vs program_invocation_short_name pitfall
8601         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
8602         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
8603         not with Fedora 24's glibc-2.23.1-10.
8604         * lib/getprogname.c (__progname): Move this declaration down...
8605         (getprogname): ... into the #elif block where used, and make it
8606         explicitly "extern".
8608         getprogname: port to OpenBSD 5.1
8609         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
8610         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
8611         * modules/getprogname (configure.ac): Move most of this code...
8612         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
8613         increment serial number, and add a test for __progname.
8614         https://bugs.gnu.org/24562
8615         Reported by Nelson H. F. Beebe.
8617 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
8619         sched: port to GCC 6.2.1 on macOS Sierra
8620         Problem reported by Denis Davydov in:
8621         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
8622         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
8623         Include <sys/cdefs.h> before <sched.h>.
8624         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
8625         so that we needn’t worry about the sched.h include bug here.
8626         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
8627         and include it before <sched.h> if it exists, when
8628         checking for <sched.h>.
8630         tests/init.sh: port Alpine fix to AIX 7.1
8631         * tests/init.sh (compare_): When attempting to use diff -U3,
8632         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
8633         diff -u not outputting a space after leading '+', as the users
8634         of 'compare' should not be that picky about its output format.
8635         In the AIX 7.1 case, return with diff exit status (or with 2 if
8636         trouble), instead of some random nonzero exit status.
8637         * tests/test-init.sh (test_compare): Remove space after leading
8638         '+', so that AIX 7.1 'diff' passes the test.
8640 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
8642         nl_langinfo: pacify GCC
8643         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
8644         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
8646         stdint: also set GL_GENERATE_LIMITS_H
8647         Problem reported by Jim Meyering in:
8648         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
8649         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
8651         limits-h, stdint: Don't assume extensions, fix typo
8652         * m4/limits-h.m4 (gl_LIMITS_H):
8653         * m4/stdint.m4 (gl_STDINT_H):
8654         Don't assume AC_USE_SYSTEM_EXTENSIONS.
8655         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
8656         reported by Jim Meyering in:
8657         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
8659 2016-09-21  Jim Meyering  <meyering@fb.com>
8661         getprogname: port to AIX
8662         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
8663         and strdup to obtain a short program name string.  Using code from
8664         Bruno Haible and an idea from Bastien ROUCARIÈS, in
8665         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
8666         Assaf Gordon reported that this new file would fail to compile on
8667         AIX-7.1 32bit.
8669 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
8671         extensions: fix typo in comment
8672         * m4/extensions.m4: Sync from Autoconf master.
8674         stdint: support new _WIDTH macros
8675         * doc/posix-headers/stdint.texi: Document this.
8676         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
8677         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
8678         support for INTMAX_WIDTH, etc. as well as for support for just C99.
8679         * modules/stdint (Depends-on): Add limits-h.
8680         (Makefile.am): Substitute HAVE_C99_STDINT_H.
8681         * modules/stdint-tests (Depends-on): Add extensions, so that
8682         INTMAX_MAX etc. are defined.
8683         * tests/test-stdint.c: Verify the new macros.
8685         limits-h: new module
8686         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
8687         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
8688         * doc/posix-headers/limits.texi: Document new module.
8689         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
8690         * modules/limit-h-tests, tests/test-limits-h.c: New files.
8692         stdio: don't redefine __USE_MINGW_ANSI_STDIO
8693         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
8694         if it is already defined.  Apparently GNU Emacs relies on this.  See:
8695         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
8697 2016-09-15  Eric Blake  <eblake@redhat.com>
8699         sys_types: avoid glibc 2.25 warnings about major()
8700         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
8701         older autoconf.
8702         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
8703         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
8704         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
8705         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
8707         mountlist: include sysmacros.h for glibc
8708         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
8709         AC_HEADER_MAJOR.
8710         * lib/mountlist.c (includes): Use correct headers.
8712 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
8714         extensions: port to more ISO C TSes
8715         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
8716         master, to add support for more recent ISO C TRs and TSes.
8718 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
8720         intprops: new macro TYPE_WIDTH
8721         * lib/intprops.h (TYPE_WIDTH): New macro.
8722         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
8723         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
8724         * lib/parse-datetime.y (parse_datetime2):
8725         Use it.
8727         extensions: port to recent ISO C TRs
8728         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
8729         Sync from Autoconf master, to add support for recent ISO C TRs.
8730         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
8731         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
8732         the MinGW option is not an extension.
8734 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
8736         dfa: port to Solaris 9
8737         Problems reported by Tom G. Christensen in:
8738         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
8739         * modules/dfa (Depends-on): Add isblank.
8740         * modules/dfa-tests (dfa_match_aux_LDADD):
8741         Rename from test_stat_LDADD, to fix typo.
8742         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
8744 2016-09-10  Jim Meyering  <meyering@fb.com>
8746         strverscmp: avoid link failure on OS X
8747         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
8748         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
8750 2016-08-16  Jim Meyering  <meyering@fb.com>
8752         dfa: new module, importing grep's DFA matcher
8753         Since grep's DFA matcher is now being used by two gnulib-enabled
8754         projects, grep and sed, it makes sense to version-control its
8755         sources and unit tests in one place: here.
8756         * modules/dfa: New module.
8757         * modules/dfa-tests: New file.
8758         * lib/dfa.c: New file, from grep.
8759         * lib/dfa.h: Likewise.
8760         * lib/localeinfo.c: Likewise.
8761         * lib/localeinfo.h: Likewise.
8762         * tests/dfa-match-aux.c: Likewise.
8763         * tests/dfa-invalid-char-class.sh: Likewise.
8764         * tests/dfa-match.sh: Likewise, with minor changes.
8765         * MODULES.html.sh (Misc): Add "dfa" to this list.
8767 2016-09-09  Jim Meyering  <meyering@fb.com>
8769         getprogname-tests: don't depend on assert-h
8770         * modules/getprogname-tests (Depends-on): Remove assert-h.
8771         It was not needed, and in fact would cause build failure for
8772         coreutils on some systems.  Reported by Assaf Gordon in https:
8773         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
8775 2016-09-07  Jim Meyering  <meyering@fb.com>
8777         getprogname-tests: work also when EXEEXT is nonempty
8778         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
8779         * tests/test-getprogname.c (main): Use it.
8780         Suggested by Gisle Vanem.
8782 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
8784         getprogname: fix errors in previous change
8785         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
8786         s/program_invocation_name/base/
8787         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
8789 2016-09-08  Pádraig Brady  <P@draigBrady.com>
8791         parse-datetime: restrict debug output to input string
8792         * lib/parse-datetime.y (parse_datetime2): If we parse
8793         all of the input but determine it's invalid, ensure
8794         we don't output the now invalid input pointer.
8795         This issue was seen with `date -d 'now +1'`.
8797 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
8799         flexmember: new macro FLEXALIGNOF
8800         * lib/flexmember.h: Include <stddef.h>, for offsetof.
8801         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
8802         this macro.  Update comments.
8804 2016-09-07  Jim Meyering  <meyering@fb.com>
8806         getprogname: port to systems with __argv (mingw, msvc)
8807         * lib/getprogname.c (getprogname): Include "dirname.h" and use
8808         last_component: more general than open coding it with hard-coded "/".
8809         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
8810         * modules/getprogname (Depends-on): Add dirname-lgpl.
8811         (configure.ac): Check for __argv in <stdlib.h>.
8812         * modules/getprogname-tests: New file.
8813         * tests/test-getprogname.c: New file.
8814         Suggested by Gisle Vanem in
8815         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
8817 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
8819         flexmember: port better to GCC + valgrind
8820         With a char[] flexible array member in a struct with nontrivial
8821         alignment, GCC-generated code can access past the end of the
8822         array, because GCC assumes there are padding bytes to get the
8823         struct aligned.  So the common idiom of malloc (offsetof (struct
8824         s, m), n) does not properly allocate an n-byte trailing member, as
8825         malloc’s argument should be the next multiple of alignof (struct s).
8826         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
8827         Although C11 apparently permits this GCC optimization (i.e., there
8828         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
8829         See the thread containing:
8830         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
8831         * lib/flexmember.h: New file.
8832         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
8833         * lib/localename.c, lib/time_rz.c:
8834         Include flexmember.h.
8835         * lib/fnmatch_loop.c (struct patternlist):
8836         * lib/localename.c (struct hash_node):
8837         Use FLEXIBLE_ARRAY_MEMBER.
8838         * lib/fnmatch_loop.c (EXT):
8839         * lib/fts.c (fts_alloc):
8840         * lib/glob.c (glob_in_dir):
8841         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
8842         * lib/localename.c (gl_lock_define_initialized):
8843         * lib/time_rz.c (tzalloc):
8844         Use FLEXSIZEOF instead of offsetof.
8845         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
8846         Check that the size of the struct can be taken.
8847         * modules/flexmember (Files): Add lib/flexmember.h.
8848         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
8849         Add flexmember.
8851 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
8853         getprogname: port to Solaris 10
8854         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
8855         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
8856         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
8858         stdalign: correct mistake in alignof doc
8859         Problem reported by Joseph Myers in:
8860         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
8861         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
8862         alignof(S) where S is a structure containing a flexible array
8863         member.  The Gnulib substitute does not support this, but C11 does.
8865 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
8867         main.mk: remove sc_program_name, since there is no more need to
8868         use set_program_name in tools (getprogname is enough for most
8869         of the cases).
8870         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
8871         * top/maint.mk (sc_program_name): Remove.
8873 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
8875         Port tests away from progname, since modules that need the
8876         program name already depend on getprogname.
8877         * modules/acl-tests (Depends-on): Remove progname.
8878         * modules/argmatch (Depends-on): Likewise.
8879         * modules/argmatch-tests (Depends-on): Likewise.
8880         * modules/argp-tests (Depends-on): Likewise.
8881         * modules/argp-version-etc-tests (Depends-on): Likewise.
8882         * modules/array-list-tests (Depends-on): Likewise.
8883         * modules/array-oset-tests (Depends-on): Likewise.
8884         * modules/avltree-list-tests (Depends-on): Likewise.
8885         * modules/avltree-oset-tests (Depends-on): Likewise.
8886         * modules/avltreehash-list-tests (Depends-on): Likewise.
8887         * modules/carray-list-tests (Depends-on): Likewise.
8888         * modules/copy-file-tests (Depends-on): Likewise.
8889         * modules/exclude-tests (Depends-on): Likewise.
8890         * modules/fchownat-tests (Depends-on): Likewise.
8891         * modules/fdopendir-tests (Depends-on): Likewise.
8892         * modules/filenamecat-tests (Depends-on): Likewise.
8893         * modules/fstatat-tests (Depends-on): Likewise.
8894         * modules/fstrcmp-tests (Depends-on): Likewise.
8895         * modules/linked-list-tests (Depends-on): Likewise.
8896         * modules/linkedhash-list-tests (Depends-on): Likewise.
8897         * modules/mkdirat-tests (Depends-on): Likewise.
8898         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
8899         * modules/nonblocking-socket-tests (Depends-on): Likewise.
8900         * modules/obstack-printf-tests (Depends-on): Likewise.
8901         * modules/openat-tests (Depends-on): Likewise.
8902         * modules/parse-datetime-tests (Depends-on): Likewise.
8903         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
8904         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
8905         * modules/quotearg-simple-tests (Depends-on): Likewise.
8906         * modules/quotearg-tests (Depends-on): Likewise.
8907         * modules/rbtree-list-tests (Depends-on): Likewise.
8908         * modules/rbtree-oset-tests (Depends-on): Likewise.
8909         * modules/rbtreehash-list-tests (Depends-on): Likewise.
8910         * modules/spawn-pipe-tests (Depends-on): Likewise.
8911         * modules/system-quote-tests (Depends-on): Likewise.
8912         * modules/uniname/uniname-tests (Depends-on): Likewise.
8913         * modules/uninorm/nfc-tests (Depends-on): Likewise.
8914         * modules/uninorm/nfd-tests (Depends-on): Likewise.
8915         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
8916         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
8917         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
8918         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
8919         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
8920         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
8921         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
8922         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
8923         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
8924         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
8925         * modules/unlinkat-tests (Depends-on): Likewise.
8926         * modules/version-etc-tests (Depends-on): Likewise.
8927         * modules/xalloc-die-tests (Depends-on): Likewise.
8928         * modules/xmemdup0-tests (Depends-on): Likewise.
8929         * modules/xprintf-posix-tests (Depends-on): Likewise.
8930         * modules/xvasprintf-tests (Depends-on): Likewise.
8931         * tests/test-argmatch.c: Do not include progname.h.
8932         (main) Stop calling set_program_name.
8933         * tests/test-argp-version-etc.c: Likewise.
8934         * tests/test-argp.c: Likewise.
8935         * tests/test-argv-iter.c: Likewise.
8936         * tests/test-array_list.c: Likewise.
8937         * tests/test-array_oset.c: Likewise.
8938         * tests/test-avltree_list.c: Likewise.
8939         * tests/test-avltree_oset.c: Likewise.
8940         * tests/test-avltreehash_list.c: Likewise.
8941         * tests/test-carray_list.c: Likewise.
8942         * tests/test-copy-acl.c: Likewise.
8943         * tests/test-copy-file.c: Likewise.
8944         * tests/test-exclude.c: Likewise.
8945         * tests/test-fchownat.c: Likewise.
8946         * tests/test-fdopendir.c: Likewise.
8947         * tests/test-filenamecat.c: Likewise.
8948         * tests/test-fstatat.c: Likewise.
8949         * tests/test-fstrcmp.c: Likewise.
8950         * tests/test-linked_list.c: Likewise.
8951         * tests/test-linkedhash_list.c: Likewise.
8952         * tests/test-mkdirat.c: Likewise.
8953         * tests/test-nonblocking-pipe-main.c: Likewise.
8954         * tests/test-nonblocking-socket-main.c: Likewise.
8955         * tests/test-obstack-printf.c: Likewise.
8956         * tests/test-openat.c: Likewise.
8957         * tests/test-parse-datetime.c: Likewise.
8958         * tests/test-pipe-filter-gi1.c: Likewise.
8959         * tests/test-pipe-filter-gi2-main.c: Likewise.
8960         * tests/test-pipe-filter-ii1.c: Likewise.
8961         * tests/test-pipe-filter-ii2-main.c: Likewise.
8962         * tests/test-quotearg-simple.c: Likewise.
8963         * tests/test-quotearg.c: Likewise.
8964         * tests/test-rbtree_list.c: Likewise.
8965         * tests/test-rbtree_oset.c: Likewise.
8966         * tests/test-rbtreehash_list.c: Likewise.
8967         * tests/test-sameacls.c: Likewise.
8968         * tests/test-set-mode-acl.c: Likewise.
8969         * tests/test-spawn-pipe-main.c: Likewise.
8970         * tests/test-system-quote-main.c: Likewise.
8971         * tests/test-unlinkat.c: Likewise.
8972         * tests/test-version-etc.c: Likewise.
8973         * tests/test-xalloc-die.c: Likewise.
8974         * tests/test-xfprintf-posix.c: Likewise.
8975         * tests/test-xmemdup0.c: Likewise.
8976         * tests/test-xprintf-posix.c: Likewise.
8977         * tests/test-xvasprintf.c: Likewise.
8978         * tests/uniname/test-uninames.c: Likewise.
8979         * tests/uninorm/test-u32-nfc-big.c: Likewise.
8980         * tests/uninorm/test-u32-nfd-big.c: Likewise.
8981         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
8982         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
8983         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
8984         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
8985         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
8986         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
8987         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
8988         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
8989         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
8990         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
8991         * tests/test-c-stack.c: (program_name): Do not define.
8992         (main): Do not set program_name.
8993         * tests/test-closein.c: Likewise.
8994         * tests/test-xstrtol.c: Likewise.
8995         * tests/test-yesno.c: Likewise.
8997 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
8999         Port modules to use getprogname explicitly, instead of requiring
9000         progname to be used (or program_name to be provided).
9001         * lib/argmatch.c: Do not include progname.h.
9002         [TEST] (program_name): Do not define.
9003         [TEST] (main): Call getprogname instead of using program_name.
9004         * lib/c-stack.c: Do not include progname.h.
9005         (program_name): Do not define.
9006         (die): Call getprogname instead of using program_name.
9007         * lib/chdir-long.c: Do not include progname.h.
9008         [TEST_CHDIR] (main): Do not set program_name.
9009         * lib/error.c [!_LIBC]: Include progname.h.
9010         [!_LIBC] (program_name): Define using getprogname.
9011         * lib/euidaccess.c: Do not include progname.h.
9012         [TEST] (main): Do not set program_name.
9013         * lib/git-merge-changelog.c: Include getprogname.h instead of
9014         progname.h.
9015         (usage): Call getprogname instead of using program_name.
9016         (main): Likewise.  Stop calling set_program_name.
9017         * lib/group-member.c: Do not include progname.h.
9018         [TEST] (main): Do not set program_name.
9019         * modules/argmatch (Depends-on): Add getprogname.
9020         * modules/c-stack (Depends-on): Likewise.
9021         * modules/error (Depends-on): Likewise.
9022         * modules/git-merge-changelog (Depends-on): Likewise.
9023         Also remove progname.
9025 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
9027         * NEWS: Document the deprecation of the 'progname' module.
9029 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
9031         getprogname: new module
9032         This provides a LGPL module for getting the name of the current
9033         program, using the same API found on *BSD systems.
9034         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
9035         * modules/getprogname: New files.
9036         * MODULES.html.sh (Misc): Add getprogname.
9038 2016-09-02  Jim Meyering  <meyering@fb.com>
9040         manywarnings: add -fno-common
9041         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
9042         to the list.  Quoting the manual, "Compiling with -fno-common is
9043         useful on targets for which it provides better performance, or if
9044         you wish to verify that the program will work on other systems that
9045         always treat uninitialized variable declarations this way [putting
9046         it in the data section]."  If diffutils had been using this sooner,
9047         it would have prevented this duplicate declaration issue:
9048         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
9050 2016-08-31  Simon Josefsson  <simon@josefsson.org>
9052         parse-datetime: Fix typo.
9053         * lib/parse-datetime.y (parse_datetime2): Fix typo.
9055 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
9057         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
9058         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
9059         GCC 5 and 6 that have __builtin_sub_overflow but not
9060         __builtin_sub_overflow_p.  With the recent changes, these
9061         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
9062         implementation than with INT_SUBTRACT_OVERFLOW implementation,
9063         since the former needs just one runtime comparison whereas the
9064         latter needs two.
9066         strverscmp: sync with glibc
9067         Although this doesn't exactly synchronize with glibc
9068         byte-for-byte, it makes the code behave the same as glibc.
9069         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
9070         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
9071         difference shouldn't matter in practical use.  All uses changed
9072         back to isdigit.
9073         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
9074         (next_state): Now unsigned char array; redo elements.
9075         (result_type): Now signed char array; redo elements.
9076         (__strverscmp): Fix glibc bug 9913 by using new states.
9077         * tests/test-strverscmp.c (main): Test glibc bug 9913.
9079 2016-08-29  Jim Meyering  <meyering@fb.com>
9081         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
9082         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
9083         similarly to how it was done to intprops.h.
9085 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
9087         intprops.h: port recent changes to GCC 6.2.0
9088         * lib/intprops.h (__has_builtin): Move earlier.
9089         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
9090         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
9091         the last argument can be null.  All uses changed.
9092         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
9093         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
9094         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
9095         and it's not clear which GCC versions it works for.
9096         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
9097         its definiens.
9099         intprops.h: use __typeof__ with GCC 7
9100         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
9101         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
9102         This avoids computing the expression's value (which might overflow!).
9104 2016-08-29  Jim Meyering  <meyering@fb.com>
9106         intprops.h, xalloc-oversized.h: work with gcc 7
9107         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
9108         __builtin_mul_overflow each accept a NULL pointer as the third
9109         argument.  However in gcc 7, that is no longer accepted.
9110         Instead, one must use the "_p"-suffixed names, with which, the
9111         third parameter is no longer a pointer.
9112         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
9113         the definition: not true for gcc 7 and subsequent.
9114         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
9115         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
9116         Provide new definitions for gcc 7 and subsequent.
9117         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
9118         that works with gcc-7.
9120         intprops.h: fix missing-backslash problems
9121         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
9122         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
9124 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
9126         intprops: fix paren typo on old platforms
9127         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
9128         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
9129         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
9130         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
9131         && !defined LLONG_MAX]:
9132         Remove stray paren.
9134         intprops: port to OpenVMS
9135         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
9136         * doc/posix-headers/limits.texi: Document the problem.
9137         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
9138         Define if not already defined.
9140 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
9142         parse-datetime: improve debug implementation
9143         Follow-up to commit 12ad79069 ("add optional debug printing").
9144         Improve parse-datetime's debug implementation: remove macros,
9145         replace global debug flag variable with a function parameter,
9146         use nstrftime for formatting.
9147         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
9148         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
9149         (parse_datetime2): New function, accepts 'flags' parameter, supporting
9150         debug flag. Existing interface 'parse_datetime' left unmodified.
9151         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
9152         (struct parser_control): add 'parse_datetime_debug' member variable.
9153         (parse_datetime): Call new function 'parse_datetime2' without debug.
9154         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
9155         pc.parse_datetime_debug variable as needed.
9156         (to_year): Accept new flags parameter, instead of using global variable.
9157         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
9158         use struct 'debug' variable instead of global variable.
9159         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
9160         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
9161         correspnding functions directly instead of using macros.
9162         * modules/parse-datetime: Add gnulib's strftime module.
9164 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
9166         c-strcase-tests: port to EBCDIC
9167         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
9168         which assume ASCII encoding semantics to run only in ASCII
9169         mode, as they fail in EBCDIC.
9171         sigpipe-tests: fix typo
9172         * tests/test-sigpipe.sh: C, not B.
9174 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
9176         canonicalize-lgpl: fix errno after malloca fails
9177         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
9178         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
9179         * lib/canonicalize-lgpl.c (__realpath):
9180         Don't assume malloca sets errno on failure.
9182 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
9184         strtod: port errno handling to z/OS
9185         * lib/strtod.c (strtod): Save and restore errno more reliably.
9187 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
9189         strtod: port to z/OS
9190         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
9191         implementation.
9193 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
9195         strtod: port to z/OS
9196         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
9197         implementation.
9199         regex, string: rename to avoid '__string'
9200         * lib/regex.h, lib/string.in.h: Do not use the identifier
9201         '__string', as it is effectively reserved by string.h on z/OS.
9203         c-strcase-tests, wcwidth-tests: depend on c-ctype
9204         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
9205         Add c-ctype.
9207 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
9209         thread: port to z/OS
9210         * lib/glthread/thread.c, lib/glthread/thread.h:
9211         Rudimentary gl_thread support for z/OS.
9213         maint: port tests to z/OS errno behavior
9214         * tests/test-nonblocking-reader.h:
9215         * tests/test-nonblocking-writer.h:
9216         Accommodate z/OS errno code preferences. (I believe this should
9217         still be within spec; IBM is good at following the letter if not
9218         the spirit of such things.)
9220         maint: preprocessor changes to support z/OS
9221         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
9222         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
9223         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
9224         * tests/test-nonblocking-pipe.h:
9226         fclose, strstr-simple, wchar: port to z/OS
9227         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
9228         Changes to the Autoconf M4 code to support z/OS.  Note that
9229         fclose() is broken in a different way on z/OS than it is on other
9230         systems, thus the special-case in fclose.m4.
9232         iconv_open-utf-tests, iconv-tests: port to EBCDIC
9233         * tests/test-iconv-utf.c, tests/test-iconv.c:
9234         Added appropriately conditional #pragmas so that the test strings
9235         in test-iconv-utf.c are correctly interpreted in ASCII instead of
9236         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
9237         addressed in a more portable way by simply rewriting all the ASCII
9238         literal characters as octal escapes, but then you would lose the
9239         partial readability that the strings have now. Also, iconv_open()
9240         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
9242         c-strcase-tests, wcwidth-tests: port to EBCDIC
9243         * tests/test-c-strcasecmp.c: Include c-ctype.h.
9244         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
9245         * tests/test-wcwidth.c: Likewise.
9247 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
9249         stdbool: don't require _Bool for C++
9250         Problem reported by David Seifert in:
9251         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
9252         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
9253         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
9254         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
9255         stricter about checking that bool and _Bool are compatible in C.
9257 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
9259         getdelim: remove dependency on realloc-posix
9260         * lib/canonicalize-lgpl.c (alloc_failed)
9261         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
9262         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
9263         Use __set_errno where needed, for consistency.
9264         * lib/getdelim.c (alloc_failed): New function.
9265         (getdelim): Use it.
9267 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
9269         parse-datetime: add optional debug printing
9270         Print parsing information, warnings, and errors to stderr.
9271         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
9272         * lib/parse-datetime.y:
9273         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
9274         (PROGRESS*): Same as DEBUG, for progress reporting.
9275         (dbg_printf): Print message to stderr, with 'date' prefix.
9276         (struct parser_control): Add 'debug_*_seen' variables.
9277         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
9278         (debug_print_current_time, debug_print_relateive_time): Prints the
9279         current/relative date/time value of parser_control.
9280         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
9281         (to_year): Warn about 2-digit year parsing.
9282         (yylex):   Warn about unrecognized words.
9283         (get_effective_timezone): Returns current timezone in minutes.
9284         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
9285         clearly and unambigiously as possible.
9286         (debug_mktime_not_ok): Print detailed information about failed
9287         date/time values.
9288         (parse_datetime): Add DEBUG messages for failures, warnings. Add
9289         PROGRESS messages for status messages.
9290         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
9292 2016-08-06  Jim Meyering  <meyering@fb.com>
9294         tests/init.sh: exclude dash with bad "local" semantics
9295         * tests/init.sh (gl_shell_test_script_): Add a function to
9296         eliminate a shell like "dash" (unlike bash, zsh) that has
9297         surprising/risky "local var='...'" semantics.  Inspired by
9298         the problem and discussion in https://bugs.gnu.org/24116#11.
9300 2016-08-02  Ján Tomko  <jtomko@redhat.com>
9302         maint.mk: expand the prohibit_doubled_word regex
9303         This check has a static list of words that are checked for
9304         repetitions.  Expand it before running the perl script to
9305         avoid using expensive captures.  This decreases the cost
9306         for libvirt from 1.66s to 0.66s.
9307         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
9308         (sc_prohibit_doubled_word): Use it.
9310 2016-07-26  Ján Tomko  <jtomko@redhat.com>
9312         useless-if-before-free: skip non-matching lines early
9313         * build-aux/useless-if-before-free: First match each line with the
9314         simple/quick /\bif\b/ and reject if there is no match. This often
9315         saves the cost of the much more involved regular expression.
9316         For libvirt, this decreases the cost from 1.44s to 1.02s.
9318 2016-07-26  Ján Tomko  <jtomko@redhat.com>
9320         maint.mk: speed up sc_po_check
9321         sc_po_check would skip files based on their names, or on the
9322         existence of files with derived names. Rewrite it to use perl
9323         instead of shell to make the check faster.
9324         * top/maint.mk (perl_translatable_files_list_): Define.
9325         (sc_po_check): Use it.
9327 2016-07-30  Ján Tomko  <jtomko@redhat.com>
9329         maint.mk: speed up require_config_h_first
9330         Instead of spawning three processes per file,
9331         rewrite the check in perl and run it once for all the files.
9332         * top/maint.mk (perl_config_h_first_): Define.
9333         (sc_require_config_h_first): Use it in place of shell code.
9335 2016-07-26  Ján Tomko  <jtomko@redhat.com>
9337         maint.mk: speed up sc_po_check
9338         sc_po_check would skip files based on their names, or on the
9339         existence of files with derived names. Rewrite it to use perl
9340         instead of shell to make the check faster.
9341         * top/maint.mk (perl_translatable_files_list_): Define.
9342         (sc_po_check): Use it.
9344 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
9346         obstack: pacify GCC 6 with -Wnull-dereference
9347         Problem reported by Assaf Gordon in:
9348         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
9349         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
9350         Declare with __attribute_noreturn__.
9351         * lib/obstack.h (__attribute_noreturn__): New macro.
9353 2016-07-13  Eric Blake  <eblake@redhat.com>
9355         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
9356         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
9357         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
9359 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
9361         doc: mention glibc SSIZE_MAX buglet
9362         * doc/posix-headers/limits.texi (limits.h): Document the bug.
9364 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
9366         printf-posix: Fix mingw build
9367         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
9368         expression for detecting C symbol prefixes but forgot to qoute square
9369         brackets in the command line arguments for grep.  That way when
9370         building with mingw the condition was false although it ought to be
9371         true instead.  In particular scenarios this led to the following
9372         compile error:
9374             Cannot export rpl_printf: symbol not found
9375             Cannot export rpl_scanf: symbol not found
9376             collect2: error: ld returned 1 exit status
9378         Fix this by properly quoting square brackets.
9380 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
9382         mktime: call tzset as per POSIX
9383         Problem reported by Ludovic Courtès in:
9384         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
9385         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
9386         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
9388 2016-06-26  Pádraig Brady  <P@draigBrady.com>
9390         fts: handle readdir() errors
9391         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
9392         but also upon error when it will also set errno.  Therefore
9393         flag the error case from readdir().  We treat the case where
9394         no items are read the same as if the dir can't be accessed,
9395         i.e. by setting fts_errno to FTS_DNR.
9397 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
9399         intprops: port better to GCC 7
9400         GCC 7 __builtin_add_overflow supports a new usage form, where the
9401         last argument is a null pointer, and which merely returns 1 if an
9402         overflow would occur.  This is a constant expression if all
9403         arguments are constants, and should generate faster code when code
9404         needs to be generated.
9405         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
9406         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
9407         Use builtin operations if available.
9408         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
9409         operations are available, as it's almost surely faster.
9411 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
9413         intprops-test: port to GCC 6
9414         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
9415         since the bug is not fixed in GCC 6.1.
9417 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
9419         xalloc-oversized: port to GCC 7; fewer warnings
9420         GCC 7 will have a better way to deal with integer overflow.
9421         Plus, fix a warnings problem reported by Tim Ruehsen in:
9422         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
9423         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
9424         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
9425         For GCC 5, use __xalloc_oversized if both args are constants,
9426         or if pedantic.
9428 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
9430         regex: port to Sun C
9431         Reported by Daiki Ueno.
9432         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
9433         __restrict, in prototype.  This fixes a problem I introduced in
9434         the 2016-02-19 merge from glibc.
9436 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
9438         stdbool: Restore __bool_true_false_are_defined check
9439         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
9440         __bool_true_false_are_defined is still defined, even with C++11.
9442 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
9444         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
9445         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
9447 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
9449         Use GCC_LINT, not lint
9450         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
9451         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
9452         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
9453         Document problem with lint and _Noreturn.
9454         * lib/diffseq.h (IF_LINT, IF_LINT2):
9455         * lib/fts.c (sccsid):
9456         * lib/getndelim2.c (IF_LINT):
9457         * lib/gl_anylinked_list2.h (gl_linked_iterator)
9458         (gl_linked_iterator_from_to):
9459         * lib/gl_anytree_list2.h (gl_tree_iterator)
9460         (gl_tree_iterator_from_to):
9461         * lib/gl_anytree_oset.h (gl_tree_iterator):
9462         * lib/gl_array_list.c (gl_array_iterator)
9463         (gl_array_iterator_from_to):
9464         * lib/gl_array_oset.c (gl_array_iterator):
9465         * lib/gl_carray_list.c (gl_carray_iterator)
9466         (gl_carray_iterator_from_to):
9467         * lib/idcache.c:
9468         * lib/inet_ntop.c (IF_LINT):
9469         * lib/regcomp.c (build_charclass_op, create_tree):
9470         * lib/regex_internal.c (re_acquire_state)
9471         (re_acquire_state_context):
9472         * lib/trigl.c (rcsid):
9473         * lib/trim.c (IF_LINT):
9474         * lib/vasnprintf.c (IF_LINT):
9475         * lib/verify.h (assume):
9476         Treat GCC_LINT like lint.
9478 2016-05-29  Bruno Haible  <bruno@clisp.org>
9480         secure_getenv: Port to many more platforms.
9481         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
9482         functions.
9483         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
9484         for non-BSD Unix platforms and for native Windows.
9485         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
9486         Prompted by a request from Nikos Mavrogiannopoulos.
9488 2016-05-27  Eric Blake  <eblake@redhat.com>
9490         canonicalize: Fix broken probe for realpath.
9491         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
9492         in logic introduced in 54615b95.
9494 2016-05-26  Eric Blake  <eblake@redhat.com>
9496         unsetenv: relax to LGPLv2+
9497         * modules/unsetenv (License): Match setenv license.
9499 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
9501         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
9502         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
9503         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
9504         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
9505         (commonarg, dirargs, dirs, infoarg, generate_ascii)
9506         (generate_html, generate_info, generate_tex, outdir)
9507         (source_extra, split, srcfile, texarg): Move above 'version'.
9508         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
9510 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
9512         manywarnings: update for GCC 6.1
9513         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
9514         Add GCC 6.1 options that apply to C.
9515         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
9516         do not apply to C, are obsolescent, etc.
9518 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
9520         glob: size_t overflow checks
9521         * lib/glob.c (__has_builtin): New macro.
9522         (size_add_wrapv, glob_use_alloca): New static functions.
9523         (glob, glob_in_dir): Check for size_t overflow in several places,
9524         and fix some size_t checks that were not quite right.
9526         glob: don't assume INT_MAX < SIZE_MAX
9527         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
9528         latter is not portable to (probably theoretical) hosts where
9529         SIZE_MAX <= INT_MAX.
9531 2016-05-09  Bruno Haible  <bruno@clisp.org>
9533         Fix undefined behaviour in gettext.h.
9534         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
9535         pointer's value after the storage it points to has been freed.
9536         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
9537         Spotted by Coverity.
9539 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
9541         git-version-gen: avoid undefined shift
9542         Problem reported by Mosè Giordano in:
9543         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
9544         * build-aux/git-version-gen: Avoid undefined behavior if invoked
9545         with --prefix or --fallback but without a later argument.  While
9546         we're at it, omit unnecessary quotes.
9548 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
9550         glob: merge glibc changes into lib/glob.c
9551         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
9552         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
9553         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
9554           struct dirent [BZ #19779]
9555         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
9556           callback gl_readdir
9557         2015-10-20 Convert miscellaneous function definitions to prototype style
9558         2015-10-20 Convert 113 more function definitions to prototype style
9559           (files with assertions)
9560         2015-06-12 Fix getlogin_r namespace (bug 18527).
9561         2014-02-10 Use glibc_likely instead __builtin_expect.
9562         2013-10-20 When glob pattern contains a trailing slash match only
9563           directories. Fixes bug 10278.
9564         2013-09-04 glob: silence -Wattribute warnings
9565         2013-06-07 Avoid use of "register" as optimization hint.
9566         2012-09-25 Use size_t instead of int for internal variables in glob
9567           (bug 14621)
9568         2011-07-20 Check for overflows in expressions
9569         2011-05-28 Remove unused variable
9570         2011-05-22 Add a few more alloca size checks
9571         2010-03-27 Whitespace fixes
9572         2010-03-27 Fix one more issue with the glob patch
9573         2010-03-24 Fix glob with empty pattern
9574         2008-05-27 Remove useless more "if" tests before "free"
9575         * modules/glob (Depends-on): Add stdint.
9577 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
9579         mktime: port to stricter signed overflow checking
9580         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
9581         (long_int): Require width for INT_MAX * 3 * (seconds per year),
9582         instead of merely for INT_MAX * 2.  In practice platforms that
9583         do the latter also do the former.
9584         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
9585         (shr): New static function, replacing SHR.  All uses changed.
9586         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
9587         and TIME_T_MAX.  All uses changed.
9588         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
9589         Use long_int, not time_t.
9590         (long_int_avg): New static function, replacing time_t_avg.
9591         All uses changed.  Round toward positive infinity, as that
9592         generates slightly better code.
9593         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
9594         by INT_ADD_WRAPV.
9595         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
9596         (convert_time): New static function.
9597         (ranged_convert): Use it
9598         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
9599         Use simpler test for loop exit.
9600         (__mktime_internal): Store negative of guessed offset, to simplify
9601         overflow checking.  Remove no-longer-needed test for small time_t
9602         overflows.
9604         mktime: speed up DEBUG_MKTIME benchmarks
9605         Call tzset just once, at the start, rather than for every test
9606         case.  This lets us measure the CPU cost of mktime as opposed to
9607         that of tzset.  This is relevant when TZ is not set and glibc is
9608         being used.  This speeds up tests by a factor of 40 on my Fedora
9609         23 x86-64 platform.
9610         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
9611         to call tzset and as a sanity check.  Later on, use localtime_r
9612         instead of localtime.
9614         mktime: resurrect DEBUG_MKTIME testing
9615         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
9616         Include <string.h>, for strcmp.
9618         mktime: simplify DEBUG_MKTIME
9619         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
9620         Simplify later usage accordingly.
9622         Port mktime_internal offset to unsigned time_t
9623         This avoids some assumptions about wraparound arithmetic on
9624         signed integer overflow.
9625         * lib/mktime-internal.h (mktime_offset_t): New type.
9626         (mktime_internal): Use it in decl.
9627         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
9629         * lib/mktime.c (__mktime_internal, localtime_offset):
9630         * lib/timegm.c (timegm): Use it.
9631         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
9632         (gl_FUNC_MKTIME): Require it.
9634 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
9636         xstrtol: prohibit monstrosities like "1bB"
9637         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
9638         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
9639         "B" only if the first suffix needs a base.
9640         * tests/test-xstrtol.sh: Test this.
9642 2016-04-21  Pádraig Brady  <P@draigBrady.com>
9644         xstrtod: reinstate setting of *result upon ERANGE
9645         * lib/xstrtod.c (XSTRTOD): The user may decide to use
9646         the returned limits upon ERANGE, so allow and document that.
9648 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
9650         xstrtod: modify *result only if no errors
9651         * lib/xstrtod.c (XSTRTOD).
9653 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
9655         btowc: document problems in C locale
9656         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
9657         with mbrtowc.  See: http://bugs.gnu.org/23269#32
9659 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
9661         mktime: improve integer overflow checking
9662         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
9663         (WRAPV): Remove; no longer needed.
9664         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
9665         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
9666         Remove.  Use intprops.h defns instead.
9667         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
9668         Use bool for Boolean, for clarity.
9669         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
9670         detect integer overflow.
9671         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
9673         intprops: check two's complement assumption
9674         Suggested by Eric Blake in:
9675         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
9676         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
9677         short, int, long, and (if available) long long are two's complement.
9678         * modules/intprops (Depends-on): Add 'verify'.
9680         intprops, mktime, strtol: assume two's complement
9681         These macros were not portable to every conforming C11 ones'
9682         complement platform.  It's not worth the hassle of porting to some
9683         platforms that use ones' complement or signed magnitude, as such
9684         platforms are almost purely theoretical nowadays and porting even
9685         to some of them makes the code harder to review for little
9686         practical benefit.  Problem reported by Florian Weimer in:
9687         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
9688         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
9689         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
9690         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
9691         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
9692         (TYPE_SIGNED_MAGNITUDE):
9693         Remove.  All uses rewritten to assume two's complement, which is
9694         all we can reasonably test nowadays anyway.
9695         * top/maint.mk (_intprops_names): Remove the removed macros.
9697 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
9699         stdint: port to strict C11 left shift
9700         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
9701         Pacify clang -Wshift-negative-value, which should be an issue only
9702         on clang setups where stdint.h does not conform to C11 or to C++11.
9703         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
9705 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
9707         mbrtowc: work around glibc bug#19932
9708         Fix mbrtowc so that it never returns -1 in the C locale,
9709         as this conflicts with a future version of POSIX
9710         http://austingroupbugs.net/view.php?id=663#c2738
9711         and causes problems with GNU grep: http://bugs.gnu.org/23234
9712         See glibc bug 19932:
9713         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
9714         * doc/posix-functions/mbrlen.texi (mbrlen):
9715         * doc/posix-functions/mbrtowc.texi (mbrtowc):
9716         Document the glibc bug.
9717         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
9718         Include hard-locale.h, locale.h.
9719         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
9720         if the bug is possible.
9721         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
9722         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
9723         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
9724         * modules/mbrtowc (Depends-on): Add hard-locale.
9725         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
9726         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
9727         * tests/test-mbrtowc5.sh: New file.
9729 2016-04-03  Pedro Alves  <palves@redhat.com>
9731         stdint: detect good enough pre-C++11 stdint.h in C++ mode
9732         When gnulib is configured in C++ mode for a system with a working C99
9733         implementation of stdint.h that predates C++11, gnulib ends up
9734         substituting stdint.h anyway.  This works on most targets, but on e.g.,
9735         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
9736         MinGW is LLP64.  Instead of trying to detect the right types, detect
9737         good-enough-pre-C++11 stdint.h and in such case define
9738         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
9739         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
9740         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
9741         conforms to C99.  If it does, check whether it hides symbols
9742         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
9743         does, define those macros in config.h.
9745 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
9747         argp: merge changes from glibc
9748         Among other things, this should fix problems found by a Coverity
9749         scan and reported by Andrei Borzenkov:
9750         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
9751         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
9752         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
9753         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
9754         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
9755         * lib/argp.h:
9756         Merge changes from glibc.
9757         * tests/test-argp-2.sh: Adjust to match new behavior.
9759 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
9761         stddef: support configuring with g++
9762         Problem reported by Ángel González in:
9763         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
9764         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
9765         Do not define if _GCC_MAX_ALIGN_T is defined.
9767 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
9769         test-framework-sh: minor cleanups
9770         * tests/init.sh (testdir_prefix_): Output a trailing newline,
9771         since strictly speaking POSIX requires this.
9772         (setup_): Do not use the variable 'fail', as that makes the
9773         trace output harder to read ('fail' is typically used by
9774         tests to mean the test failed).  Treat // portably.
9775         Check that new directory is not merely a sibling of the tmp dir.
9776         Avoid unnecessary invocation of tr.
9778         test-framework-sh: revert port to NetBSD 7.0
9779         It was a false alarm; I misinterpreted Assaf Gordon's report.
9780         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
9781         Restore.
9782         (test_dir_): Adjust to mktempd_ change.
9783         (mktempd_): Restore 2nd arg.  Use -t again.
9784         (base_template_, template_, nx_): Resurrect old code.
9786         Port better to Alpine Linux
9787         Its diff implementation does not support -c, but does support -U3.
9788         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
9789         * tests/init.sh (diff_opt_): New var.
9790         (compare_): Prefer diff -U3 to diff -c to plain diff.
9792 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
9794         test-framework-sh: port to NetBSD 7.0
9795         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
9796         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
9797         Remove.  All uses removed.
9798         (test_dir_): Adjust to mktempd_ change.
9799         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
9800         (base_template_, template_, nx_): Simplify by hardcoding.
9802 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
9804         gitlog-to-changelog: suppress ignored chatter
9805         * build-aux/gitlog-to-changelog: Do not warn about skipping
9806         an SHA if it would have been ignored anyway.
9808 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
9810         setlocale: add "sv" to Windows language table
9811         * lib/setlocale.c (language_table) [W32]: Add "sv".
9812         Reported in <https://savannah.gnu.org/bugs/?44588>.
9814 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
9816         sys_select: port to new Cygwin
9817         Problem reported by Ken Brown in:
9818         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
9819         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
9820         diagnostics.
9822 2016-03-17  Jim Meyering  <meyering@fb.com>
9824         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
9825         * tests/test-userspec.c (main): Remove unnecessary braces and fix
9826         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
9827           test-userspec.c:176:9: error: statement is indented as if it were \
9828             guarded by... [-Werror=misleading-indentation]
9829                    {
9830                    ^
9831           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
9832                  if (!diag && !T[i].result)
9833                  ^~
9835 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
9837         time_rz: port to clang -Wunused-const-variable
9838         * lib/time_rz.c (TZ): Remove.  All uses removed.
9840         std-gnu11: improve clang support
9841         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
9842         2016-03-15 Also try clang
9843         2016-03-15 Port C11 and C++11 testing to clang
9845         select: port more to Intel 2016.1.150 compiler
9846         Problem reported by Balázs Hajgató in:
9847         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
9848         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
9850 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
9852         select: try to port to 2016.1.150 compiler
9853         Problem reported by Balázs Hajgató in:
9854         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
9855         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
9856         POSIX specifies 'restrict'.
9858 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
9860         localename-tests: memory allocation fixes
9861         * tests/test-localename.c (test_locale_name)
9862         (test_locale_name_thread): Don't call freelocale on a locale
9863         that was the base of a successful newlocale, as that
9864         results in a double free.  Problem reported by Assaf Gordon.
9865         (test_locale_name_thread): Free saved names after use, to pacify
9866         gcc -fsanitize=address.
9868 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
9870         intprops: make .h file license match module
9871         * lib/intprops.h: Change the license wording to match glibc format.
9872         This is what is in modules/intprops anyway.  See:
9873         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
9875 2016-03-08  Eric Blake  <eblake@redhat.com>
9877         acl: fix missing return on Cygwin
9878         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
9879         fall off end of function. Fixes http://bugs.gnu.org/22949
9881 2016-03-05  Bruno Haible  <bruno@clisp.org>
9883         extern-inline: port to PGI CC
9884         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
9885         keyword 'inline'.
9886         Reported by Adam James Stewart in:
9887         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
9889 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
9891         signbit: port back to pre-C++11 GCC
9892         * lib/math.in.h (signbit): Do previous change only if
9893         __cplusplus < 201103.  See Jonathan Wakely in:
9894         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
9896 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
9898         mountlist: recognize autofs-mounted remote file systems, too
9899         Originally reported at: https://bugzilla.redhat.com/1309247
9900         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
9901         "-hosts" because it is used by autofs to mount remote file systems.
9903 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
9905         signbit: port to C++ with GCC 6
9906         * lib/math.in.h (signbit) [__cplusplus]:
9907         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
9908         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
9910         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
9912         regex: make it closer to libc
9913         Make Idx a signed type, rather than possibly unsigned.
9914         The unsignedness was not really buying us anything, since the code
9915         overflows for other reasons before getting to PTRDIFF_MAX.  Making
9916         it signed allows us to use -1 and -2 with abandon, like libc does,
9917         thus lessening the number of differences between gnulib and libc.
9918         Also, it should help avoid gratuitous warnings like the one
9919         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
9920         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
9923         regex: merge patches from libc
9925         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
9926         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
9927         Convert miscellaneous function definitions to prototype style.
9928         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
9929         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
9930         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
9931         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
9932         (re_search_internal):
9933         Convert to prototype-style function definition.
9934         Use internal_function for internal functions.
9936 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
9938         stdalign: port to older HP and IBM cc
9939         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
9940         C compilers, by checking their version numbers.  These version
9941         numbers appear in MariaDB and in Qt code that dates way back and
9942         that conditiionally uses the 'aligned' attribute.
9944 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
9946         stdalign: port to clang 3.7.0
9947         Problem reported by Herbert J. Skuhra in:
9948         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
9949         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
9950         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
9951         https://llvm.org/bugs/show_bug.cgi?id=26547
9953 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
9955         readdir_r: now obsolescent
9956         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
9957         * lib/mountlist.c (read_file_system_list): Add a FIXME.
9959 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
9961         misc: port better to gcc -fsanitize=address
9962         Without these patches, ./configure CFLAGS='-fsanitize=address'
9963         would compute incorrect values.  This patch fixes some (but not all)
9964         test failures with recent glibc, with this configuration.
9965         * m4/acl.m4 (gl_ACL_GET_FILE):
9966         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
9967         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
9968         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
9969         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
9970         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
9971         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
9972         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
9973         * m4/getline.m4 (gl_FUNC_GETLINE):
9974         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
9975         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
9976         * m4/regex.m4 (gl_REGEX):
9977         * m4/strndup.m4 (gl_FUNC_STRNDUP):
9978         * tests/test-calloc-gnu.c (main):
9979         * tests/test-duplocale.c (main):
9980         * tests/test-getgroups.c (main):
9981         * tests/test-getline.c (main):
9982         * tests/test-inttostr.c (main):
9983         * tests/test-localename.c (test_locale_name)
9984         (test_locale_name_thread, test_locale_name_environ)
9985         (test_locale_name_default):
9986         * tests/test-regex.c (main):
9987         * tests/test-setlocale1.c (main):
9988         * tests/test-stat.h (test_stat_func):
9989         Free heap-allocated storage before exiting.
9990         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
9991         Don't match *_foo symbols inserted by AddressSanitizer.
9992         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
9994 2016-02-02  Jim Meyering  <meyering@fb.com>
9996         verify-tests: also remove stray test-verify.Tpo
9997         * modules/verify-tests (Makefile.am): Arrange for "make clean"
9998         to remove the test-verify.Tpo file that is left behind by
9999         the automake-generated rule upon compilation failure.
10000         Otherwise, that .Tpo file would cause a failed "make distcheck"
10001         at least for grep.
10003 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
10005         std-gnu11: new module
10006         This makes it easier for applications to prefer C11 and C++11
10007         to older variants, when compiling C and C++ code.
10008         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
10009         a nontrivial chunk of GPLed Autoconf source code.
10010         * COPYING: Mention the m4/*.m4 copyright situation.
10011         * MODULES.html.sh (std-gnu11): New module.
10012         * m4/std-gnu11.m4, modules/std-gnu11: New files.
10014 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
10016         get-permissions, strftime: fix grammar in comments
10017         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
10018         some grammar fixes Alan Mackenzie made to GNU Emacs.
10020 2016-01-25  Daiki Ueno  <ueno@gnu.org>
10022         gettext: mark as obsolete
10023         Suggested by Paul Eggert in:
10024         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
10025         * modules/gettext (Status): Mark as obsolete.
10026         (Notice): Suggest to use 'gettext-h' instead.
10027         * modules/gettext-h (Description): Suggest GNU gettext, instead of
10028         the 'gettext' module.
10030 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
10032         gnulib-tool: don't give up on ln -s so easily
10033         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
10034         because an earlier one failed.  The targets could be on different
10035         file systems.  Problem reported by KO Myung-Hun in:
10036         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
10038         closedir: fix OS/2-related typos
10039         Problem reported by KO Myung-Hun in:
10040         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
10041         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
10042         in the last couple of changes.
10044 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
10046         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
10047         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
10048         copying a directory.
10050 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
10052         regex: treat [x] as x if x is a unibyte encoding error
10053         Problem reported by Aharon Robbins in:
10054         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
10055         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
10056         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
10058         closedir, dirfd, opendir: port to OpenSolaris 5.10
10059         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
10060         * m4/dirfd.m4 (gl_FUNC_DIRFD):
10061         * m4/opendir.m4 (gl_FUNC_OPENDIR):
10062         Don't use ${word##pat} substitution, as it doesn't work in
10063         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
10064         http://bugs.gnu.org/22443#11
10066 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
10068         bootstrap: use American spelling
10069         * build-aux/bootstrap: Honor American spelling.
10071 2016-01-22  Karl Berry  <karl@freefriends.org>
10073         * doc/posix-functions/localtime.texi,
10074         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
10076 2016-01-21  Bruno Haible  <bruno@clisp.org>
10078         hash-pjw-bare: fix comment
10079         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
10081         wcwidth: Replace also on OpenBSD 5.8
10082         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
10083         * doc/posix-functions/wcwidth.texi: Update.
10085 2016-01-20  Pádraig Brady  <P@draigBrady.com>
10087         gnu-web-doc-update: fix addition of new files
10088         If there were already added (emnpty) dirs,
10089         then cvs aborts the add with the message:
10090           cvs [add aborted]: there is a version in <./dirname> already
10091         * build-aux/gnu-web-doc-update: Add directories separately
10092         to the addition of files, to avoid the above issue
10093         impacting the addition of files.
10095 2016-01-19  Daiki Ueno  <ueno@gnu.org>
10097         utimens-tests: avoid pulling gettext .m4 files
10098         Although this is not the right fix to the original problem:
10099         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
10100         it makes it possible again for consumer projects to use arbitrary
10101         version of gettext, through the steps described at:
10102         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
10103         See here for details:
10104         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
10105         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
10106         'gettext'.
10107         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
10108         'gettext'.
10110 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
10112         regex: pacify static checkers
10113         Problem and draft fix reported by Aharon Robbins in:
10114         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
10115         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
10116         Clear memory to pacify static checkers.
10118         regex: fix [ diagnostic
10119         Problem and fix reported by Aharon Robbins in:
10120         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
10121         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
10123         regex: fix memory leaks
10124         Problem and draft fix reported by Aharon Robbins in:
10125         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
10126         * lib/regcomp.c (build_range_exp, build_charclass_op)
10127         * lib/regex_internal.c (re_dfa_add_node):
10128         Fix memory leak on failure.
10130 2016-01-18  Pádraig Brady  <P@draigBrady.com>
10132         fts: don't unconditionally use leaf optimization for NFS
10133         NFS st_nlink are not accurate on all implementations,
10134         leading to aborts() if that assumption is made.
10135         See <https://bugzilla.redhat.com/1299169>
10136         * lib/fts.c (leaf_optimization_applies): Remove NFS from
10137         the white list, and document the issue.
10139 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
10140             KO Myung-Hun  <komh@chollian.net>
10142         gnulib-tool: don't assume ln -s works
10143         * gnulib-tool (func_ln_s): New function.
10144         (func_ln): Use it.
10146 2016-01-15  KO Myung-Hun  <komh@chollian.net>
10148         utimes: detect utimes() correctly on OS/2 kLIBC
10149         utimes() of OS/2 kLIBC has some limitations.
10150         1. OS/2 itself supports a file date since 1980 year in local time.
10151         2. OS/2 itself supports only even seconds for a file time.
10152         3. utimes() of OS/2 kLIBC does not work on an opened file.
10153         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
10154         * doc/posix-functions/utimes.texi: Document the above limitations of
10155         utimes() on OS/2 kLIBC.
10157 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
10158             KO Myung-Hun  <komh@chollian.net>
10160         openat_proc_name: port to OS/2 kLIBC
10161         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
10162         instead of /proc/self/fd.
10163         * lib/openat-proc.c (openat_proc_name):
10164         Don't assume file name length is less than INT_MAX.
10165         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
10167 2016-01-14  KO Myung-Hun  <komh@chollian.net>
10169         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
10170         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
10171         definitions of intptr_t and uintptr_t (which use int and unsigned)
10172         to avoid clashes with declarations of system functions like sbrk.
10173         * lib/stdint.in.h (intptr_t, uintptr_t): Check
10174         _INTPTR_T_DECLARED before defining them.
10176         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
10177         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
10178         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
10179         Declare on kLIBC.
10180         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
10181         fd associated with dirp.
10182         (_gl_register_dirp_fd): New. Register fd associated with dirp to
10183         dirp_fd_list.
10184         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
10185         (dirfd): Implemented for kLIBC.
10186         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
10187         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
10188         succeeds.
10189         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
10190         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10191         (REPLACE_DIRFD): Define to 1 if replaced.
10192         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
10193         * modules/closedir (Depends-on): Add dirfd.
10194         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
10195         condition.
10196         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
10197         * modules/opendir (Depends-on): Add dirfd.
10199         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
10200         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
10201         * lib/dup.c (dup_nothrow): New.
10202         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
10203         (klibc_dup2): New.
10204         * lib/fcntl.c (klibc_fcntl): New.
10205         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
10206         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
10207         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
10208         fd.
10210         pipe_filter_ii_execute: port to OS/2 kLIBC
10211         Pipes on kLIBC do not support O_NONBLOCK like Win32.
10212         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
10213         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
10214         Reuse Win32 code on OS/2 kLIBC.
10215         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
10216         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
10218         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
10219         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
10220         static inline function.  The implementation of wcwidth in wcwidth.c
10221         causes a "conflicting types" error.
10222         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
10224         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
10225         spawn() on OS/2 kLIBC is not silly like one on Windows
10226         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
10227         empty string on OS/2 kLIBC.
10229         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
10230         On OS/2 kLIBC, select() works only on sockets.
10231         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
10233         binary-io: don't put fd in binary mode if it is a console on EMX
10234         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
10235         a console on EMX.
10237 2016-01-15  Pádraig Brady  <P@draigBrady.com>
10239         doc: mention unfixed issues with unsupported localtime() values
10240         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
10241         returns nonsense for localtime(2^56).
10242         * doc/posix-functions/localtime_r.texi: Likewise.
10244 2016-01-14  Pádraig Brady  <P@draigBrady.com>
10246         doc: mention setlocale() issues on OpenBSD
10247         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
10248         never fails, and the need to check categories individually.
10250 2016-01-14  Pádraig Brady  <P@draigBrady.com>
10252         sig2str: list all signals on FreeBSD >= 7
10253         FreeBSD >= 7 is contravening POSIX by not defining NSIG
10254         to the maximal statically defined signal value.
10255         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
10256         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
10257         where available, even when NSIG is defined.
10259 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
10261         acl-permissions: port to USE_ACL==0 platforms
10262         I ran into this problem when building bleeding-edge GNU Emacs
10263         with gcc -fsanitize=address on Fedora 23.  On this platform
10264         the ACL library does not pass the 'configure' test and Emacs
10265         then does not build due in part to what appear to be typos in the
10266         ACL part of Gnulib.
10267         * lib/acl-internal.c (free_permission_context):
10268         * lib/acl-internal.h (struct permission_context):
10269         Test whether USE_ACL is nonzero, not whether it is defined.
10271 2016-01-12  Martin Sebor  <msebor@redhat.com>
10273         mktime: rename macro to avoid glibc clash
10274         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
10275         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
10277 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
10279         Port "$@" to OpenIndiana ksh93
10280         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
10281         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
10282         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
10283         bug long-dead shells, so remove the workaround.
10284         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
10285         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
10286         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
10287         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
10288         Use "$@" instead of ${1+"$@"}.
10290         Port Universal Time settings to strict POSIX
10291         * build-aux/announce-gen, build-aux/bootstrap:
10292         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
10293         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
10294         * build-aux/gnupload, build-aux/mkinstalldirs:
10295         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
10296         * build-aux/update-copyright, build-aux/useless-if-before-free:
10297         * build-aux/vc-list-files, tests/test-strftime.c:
10298         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
10299         but POSIX says the behavior of TZ="UTC" is undefined.
10301 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
10303         msvc-inval: fix problem with unset shell var
10304         Problem reported by Karl Berry in:
10305         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
10306         * modules/msvc-inval (Depends-on):
10307         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
10308         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
10310 2016-01-01  Pádraig Brady  <P@draigBrady.com>
10312         tests: for compare_(), use cmp -s where available
10313         * tests/init.sh (compare_): Only fall back to cmp without
10314         the POSIX defined -s option, where this is not available.
10316 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
10318         version-etc: new year
10319         * build-aux/gendocs.sh (version):
10320         * doc/gendocs_template:
10321         * doc/gendocs_template_min:
10322         * doc/gnulib.texi:
10323         * lib/version-etc.c (COPYRIGHT_YEAR):
10324         Update copyright dates by hand in templates and the like.
10325         * all files: Run 'make update-copyright'.
10327 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
10329         human: fix output buffer overrun by 1
10330         * lib/human.c (human_readable): Fix off-by-one typo in buffer
10331         calculation that could lead to a one-byte buffer overrun.
10333 2015-12-28  Daiki Ueno  <ueno@gnu.org>
10335         maint: fix operator precedence in mbrtowc test
10336         This is a fix for test breakage introduced by commit 45228d96; the
10337         equality expression must be parenthesized when negated with '!',
10338         otherwise we always get:
10340           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
10342         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
10343         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
10345 2015-12-23  James Youngman  <jay@gnu.org>
10347         regexprops-generic: update from regex.h
10348         * doc/regexprops-generic.texi: update by running the regexprops binary
10349         from findutils (the command line is 'regexprops "Regular Expressions"
10350         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
10351         gnulib with GNU grep had made this document out-of-date.
10353 2015-12-23  Pádraig Brady  <P@draigBrady.com>
10355         strftime-tests: avoid false failure on OS X
10356         * tests/test-strftime.c (struct localtime_rz_test): Add an
10357         ahistorical member which is used to warn rather than fail
10358         when tm_isdst isn't set for such entries.  This is the case for
10359         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
10361 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
10363         fts: ensure leaf optimization is used for NFS
10364         NFS provides usable dirent.d_type but not necessarily for all entries
10365         of large directories.  See <https://bugzilla.redhat.com/1252549>
10366         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
10368 2015-12-20  Pádraig Brady  <P@draigBrady.com>
10370         fts: enable leaf optimization for XFS
10371         XFS provides usable dirent.d_type only for DT_DIR,
10372         but the noleaf optimization still applies.
10373         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
10375 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
10377         intprops: comment fix
10378         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
10379         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
10381         intprops-test: work around GCC bug 68971
10382         Problem reported by Pádraig Brady in:
10383         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
10384         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
10385         (main): Add a case that better tests 64-bit long in this area.
10387 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
10389         gnulib-tool: allow multiple --local-dir usage
10390         * gnulib-tool: Use --local-dir to construct compound
10391         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
10392         PATH_SEPARATOR early.
10393         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
10394         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
10395         func_determine_path_separator because that needs to be detected
10396         earlier now.
10397         (func_determine_path_separator): New function.
10398         (func_path_foreach, func_path_foreach_inner): New functions.
10399         (func_path_prepend, func_path_append): Likewise.
10400         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
10401         (func_lookup_file, func_all_modules): Use new functions to work
10402         with local_gnulib_path.
10403         (func_modules_in_dir, func_exists_module): New callbacks for
10404         func_path_foreach.
10405         (func_exists_module, func_get_tests_module): Likewise.
10406         (func_is_local_file, func_should_symlink): New helper methods.
10407         (func_add_file, func_update_file): Use new func_should_symlink
10408         instead, DRY.
10409         (func_reconstruct_cached_local_gnulib_path): New helper.
10410         (func_reconstruct_cached_dir): New callback.
10411         (func_import): The cached_local_gnulib_dir renamed to
10412         cached_local_gnulib_path similarly to local_gnulib_dir.
10413         Use new func_reconstruct_cached_local_gnulib_path.
10414         (func_count_relative_local_gnulib_path): New sub-method.
10415         (func_create_testdir): Use func_should_symlink, DRY.
10416         (func_create_megatestdir): Use new functions to work with
10417         local_gnulib_path correctly.
10418         (func_append_local_dir): New helper.
10420 2015-12-08  Pádraig Brady  <P@draigBrady.com>
10422         fix freadptr to work with ungetc on all uClibc configs
10423         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
10424         where GNU coreutils cut(1) generates invalid output on uClibc
10425         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
10426         * lib/freadptr.c (freadptr): Return NULL if there are
10427         ungotten chars.  In this case freadseek() will iterate
10428         again to process the ungotten character.
10430 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
10432         xalloc-oversized: improve performance with GCC 5
10433         * lib/xalloc-oversized.h (xalloc_oversized):
10434         Improve performance with GCC 5 by using __builtin_mul_overflow.
10436 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
10438         intprops: new public macro EXPR_SIGNED
10439         Emacs can use this macro, so make it public.
10440         * doc/intprops.texi (Arithmetic Type Properties): Rename from
10441         'Integer Type Determination', since some of these macros apply
10442         to non-integer types.  Clarify what kinds of constant expressions
10443         these macros return.  Say when the arguments can be non-integers.
10444         Mention newly published macro EXPR_SIGNED.
10445         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
10446         make it public.  All uses changed.
10448         intprops: fix typo in clang port
10449         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
10450         '__builtin_add_overflow' that is not caught by compiler.
10452 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
10454         test-timespec: fix typo in previous change
10455         * tests/test-timespec.c (main): Fix typo that reduced test quality.
10457         timespec-sub: fix overflow bug; add tests
10458         * lib/timespec-add.c (timespec_add):
10459         * lib/timespec-sub.c (timespec_sub):
10460         Work even if time_t is narrower than int (a theoretical
10461         possibility).  Redo code for a bit more clarity.
10462         * lib/timespec-sub.c (timespec_sub):
10463         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
10464         * modules/timespec-tests, tests/test-timespec.c: New files.
10466         intprops-test: suppress -Woverlength-strings
10467         Problem reported by Pádraig Brady in:
10468         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
10469         It is not worth the hassle to port this test to compilers that
10470         cannot handle long strings in diagnostics.
10471         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
10473 2015-11-03  Pádraig Brady  <P@draigBrady.com>
10475         quotearg: add quotearg_n_style_colon()
10476         This quotes with default options of the specified style,
10477         but with quoting enabled for instances of ':'.
10478         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
10479         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
10481 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
10483         intprops: revise _WRAPV macros, revert _OVERFLOW
10484         The incompatible changes to the _OVERFLOW macros were too much of
10485         a hassle in practice, so revert them.  Instead, change the new
10486         _WRAPV macros to make them closer in behavior to GCC 5's new
10487         builtin_add_overflow etc. functions.  No other software was using
10488         these newly-added macros yet, so this should be OK.
10489         * NEWS: Revert previous change, since the incompatible change
10490         has been reverted, and nobody used the incompatible version.
10491         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
10492         Document revised behavior.
10493         (Integer Range Overflow): Adjust example to match above revisions.
10494         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
10495         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
10496         these can be used in integer constant expressions again.
10497         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
10498         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
10499         needed.
10500         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
10501         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
10502         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
10503         Remove, as they did not seem that useful.
10504         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
10505         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
10506         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
10507         Support new semantics.
10508         (__has_builtin): New macro, if not alreay defined.
10509         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
10510         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
10511         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
10512         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
10513         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
10514         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
10515         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
10516         New macros.
10517         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
10519 2015-11-03  Jim Meyering  <meyering@fb.com>
10521         intprops: add parentheses for when OP has precedence lower than "-"
10522         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
10523         "a OP b" must be parenthesized for when OP is like "<<", which has
10524         lower precedence than the following "-". Reported by Pádraig Brady.
10526 2015-11-03  Pádraig Brady  <P@draigBrady.com>
10528         quotearg: constify get_quoting_style parameters
10529         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
10530         * lib/quotearg.c (get_quoting_style): Likewise.
10532 2015-11-02  Pádraig Brady  <P@draigBrady.com>
10534         quotearg: add support for $'' shell escaping
10535         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
10536         items and descriptions.
10537         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
10538         above types by quoting like "shell", but using $'...' syntax
10539         for non printable characters, which should provide unambiguous
10540         printable output for any input.
10541         * tests/test-quotearg-simple.c: Update accordingly.
10543 2015-11-02  Pádraig Brady  <P@draigBrady.com>
10545         maint: use a more standard return from mbrtowc test
10546         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
10547         from the test program as this is non standard and often
10548         indicates an unhandled case in the test program.
10549         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
10551 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
10553         intprops: add WRAPV and const flavors for GCC 5
10554         If available, use GCC 5's builtin functions for efficient integer
10555         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
10556         and safely compute the low-order bits of the correct answer.
10557         A downside of these efficient functions is that they cannot be
10558         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
10559         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
10560         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
10561         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
10562         Document the changes.
10563         (Wraparound Arithmetic): New section.
10564         (Integer Range Overflow):
10565         Put this subsection last, since it's least useful.
10566         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
10567         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
10568         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
10569         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
10570         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
10571         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
10572         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
10573         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
10574         New macros.
10575         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
10576         Generate calls to GCC builtins if available, for speed.
10577         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
10578         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
10579         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
10580         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
10581         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
10582         (CHECK_QUOTIENT, CHECK_REMAINDER):
10583         Test WRAPV and CONST flavors (when available) too.
10585 2015-10-30  Pádraig Brady  <P@draigBrady.com>
10587         doc: use extended timezone format in iso-8601 example
10588         * doc/parse-datetime.texi: The standard states that extended format
10589         is to be used consistently throughout.
10590         Note that lib/parse-datetime.y can handle either tz format.
10592 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
10594         stdalign: port to Sun C 5.9
10595         * doc/posix-headers/stdalign.texi: Document this.
10596         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
10597         __attribute__ ((__aligned__ (...))).
10599 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
10601         time_rz: fix comment about tzalloc
10602         * lib/time_rz.c (tzalloc): Fix comment.
10604 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
10606         stdalign: work around pre-4.9 GCC x86 bug
10607         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
10608         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
10609         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
10611 2015-10-18  Pádraig Brady  <P@draigBrady.com>
10613         maint.mk: sc_tight_scope: remove extraneous expressions
10614         * top/maint.mk (tight_scope): This is not really required since
10615         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
10616         that matches all nm entries.  But it does remove extraneous entries
10617         that may be confusing or cause issue in future maintenance.
10619 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
10621         time_rz: return NULL if localtime_r fails
10622         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
10623         while still attempting to pacify bleeding-edge GCC.
10625         fts: port to C11 alignof
10626         * doc/posix-headers/stdalign.texi (stdalign.h):
10627         Document the C11 restriction.
10628         * lib/fts.c: Include stddef.h, for max_align_t.
10629         (fts_alloc): Align using max_align_t, not FTSENT.
10630         * modules/fts (Depends-on): Add stddef.
10632 2015-10-18  Jim Meyering  <meyering@fb.com>
10634         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
10635         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
10636         would see this:
10638         lib/time_rz.c: In function 'localtime_rz':
10639         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
10640           [-Werror=nonnull]
10641                    if (tm && !save_abbr (tz, tm))
10642                        ^
10644         That was complaining about "tm" because it is a parameter that was
10645         declared with the __nonnull__ attribute.
10646         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
10647         result of localtime_r.
10649 2015-10-17  Jim Meyering  <meyering@fb.com>
10651         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
10652         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
10653         name-extraction regexp mistakenly used \S+, and would mistakenly
10654         extract "*F" from "extern int *F()" rather than the desired "F".
10655         Use \w+ instead.
10657 2015-10-17  Jim Meyering  <meyering@fb.com>
10659         maint.mk: sc_tight_scope: factor and support OS X
10660         * top/maint.mk (_gl_tight_scope): Address three issues:
10661         - factor out four instances of code that wraps a string in "^...$"
10662         - allow nm-reported symbol names to have an optional leading "_"
10663         - add "main" to the list of ignored variable names, because on os x,
10664         "main" has nm-reported type "S" in the variable-checking section.
10666 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
10668         safe-alloc-tests: fix typo in license header
10669         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
10671 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
10673         copy-file: fix mem leak in error case
10674         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
10675         upon error opening or performing I/O to the src and dest files.
10677 2015-10-15  Mike Frysinger  <vapier@chromium.org>
10679         localename: control langinfo.h inclusion
10680         This header is only used to work around buggy behavior in old
10681         versions of glibc, so do not include it all the time.  Otherwise
10682         we get build failures on systems that do not provide langinfo.h.
10683         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
10684         in the source later on.
10685         The patch was originally submitted to gettext as:
10686         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
10688 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
10690         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
10691         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
10692         * lib/u64.c, lib/unistd.c:
10693         Append 'typedef int dummy;', to pacify compilers that are picky
10694         about empty translation units.
10696 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
10698         accept4-tests: fix to avoid non portable flags
10699         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
10700         as they are the only documented ones, and passing others may trigger
10701         EINVAL (seen on FreeBSD 10.1-RELEASE).
10702         * doc/glibc-functions/accept4.texi: Mention that we don't provide
10703         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
10705 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
10707         gnulib-tool: fix tests of 'extensions' module
10708         This complements f8fe25fab60e3c687a124 commit.
10709         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
10710         emitting of initial gl_EARLY macros.
10711         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
10712         replaced with func_emit_pre_early_macros call.
10714 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
10716         unicase/locale-language: fix typo in utf-8 cookie
10717         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
10718         Problem reported by Zbigniew Jędrzejewski-Szmek.
10720 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
10722         xalloc: do not worry about GCC 5 warning on 32 bit
10723         * lib/xalloc.h: Revert previous change.
10724         I found a better way to fix this in coreutils.
10726 2015-10-02  Pádraig Brady  <P@draigBrady.com>
10728         xalloc: avoid GCC 5.1 warning on 32 bit
10729         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
10730         xalloc_oversized(), which was seen to give this warning
10731         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
10732         when simplifying conditional".
10734 2015-10-02  Daiki Ueno  <ueno@gnu.org>
10736         uniname/uniname-tests: avoid compiler warnings
10737         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
10738         unused local variables.
10739         (test_alias_lookup): Fix alias name display in failure cases.
10741 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
10743         c-ctype: do not worry about EBCDIC + char signed
10744         Drop support for EBCDIC with char being signed, as this breaks too
10745         many programs.  Problem reported by Ben Pfaff in:
10746         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
10747         * lib/c-ctype.h: Verify that we are not using EBCDIC with
10748         char being signed.
10749         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
10750         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
10751         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
10752         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
10753         * tests/test-c-ctype.c (test_all):
10754         Simplify by assuming standard char values cannot be negative.
10755         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
10757 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
10759         c-ctype: port better to z/OS EBCDIC
10760         Problems reported by Daniel Richard G. in:
10761         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
10762         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
10763         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
10764         (_C_CTYPE_OTHER_CNTRL): New macro.
10765         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
10766         from SCHAR_MIN, as the functions are defined only from values
10767         promoted from char or from unsigned char, not necessarily from
10768         signed char.
10770 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
10772         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
10774         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
10775         and ARFLAGS variables.  Doing this unconditionally could break
10776         later Automake's AM_PROG_AR invocation (at least it's
10777         AC_CHECK_TOOLS call to detect correct 'ar' binary).
10779         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
10780         Amsterdam Compiler Kit, so make the previous code to have effects
10781         only on ACK, and rather automatically call the Automake's
10782         AM_PROG_AR as soon as possible to decide other cases.
10784         References:
10785         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
10787         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
10788         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
10789         is possible, keep setting AR/ARFLAGS to reasonable defaults.
10790         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
10791         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
10792         'extensions' module is used.
10793         * modules/extensions (configure.ac-early): Remove as this snippet
10794         is added to gnulib-comp.m4 earlier anyway.
10796 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
10798         sockets: MS Windows initalization fixes
10799         Problem reported by Test User in:
10800         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
10801         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
10802         Correct the endianness.
10803         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
10804         number mismatch, not just on <.  Cleanup before any such failure.
10806 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
10808         gc: fix detection of installed libgcrypt version
10809         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
10810         at least as recent as 1.4.4.  The previously used macro is not
10811         available now, since modules were removed in version 1.6.0.
10813 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
10815         c-ctype: rewrite to use inline functions
10816         This simplifies maintenance, since it makes for just one
10817         implementation of each function, letting the compiler have the fun
10818         of optimization.  In practice this works well nowadays with GCC.
10819         E.g., c_isascii might need only three instructions even though the
10820         source code lists every ASCII character individually in a large
10821         switch statement.
10822         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
10823         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
10824         * NEWS: Document the API change.
10825         * lib/c-ctype.c: Drastically simplify, since this now just expands
10826         inline functions.
10827         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
10828         (C_CTYPE_INLINE): New macro.
10829         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
10830         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
10831         Verify that either ASCII or EBCDIC is being used.
10832         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
10833         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
10834         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
10835         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
10836         New private macros.
10837         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
10838         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
10839         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
10840         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
10841         (c_tolower, c_toupper): When converting, return the unsigned char,
10842         as that is what z/OS does.
10843         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
10844         of some c-ctype.h macros.
10845         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
10846         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
10847         c_tolower promotion to be compatible with z/OS.
10849 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
10851         gitlog-to-changelog: trim only trailing whitespaces
10852         This is fix for --format regression introduced by commit
10853         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
10854         doubled %n string) had no effect anymore.  This format
10855         specification has been used e.g. by GNU paxuitils (commit
10856         edfd8bcc3).
10858         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
10859         newlines in commmit messages.
10861 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
10863         Test that c_iscntrl agrees with iscntrl, etc.
10864         Suggested by Daniel Richard G. in:
10865         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
10866         * modules/c-ctype-tests (Depends-on): Add ctype.
10867         * tests/test-c-ctype.c: Include <ctype.h>.
10868         (NCHARS): New constant.
10869         (test_agree_with_C_locale): New function.
10870         (main): Use it.
10871         (test_all): Use named constants.
10873         c-ctype: improve c_isascii testing
10874         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
10875         Add a test to count the number of ASCII characters.
10877 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10879         savewd: remove SAVEWD_CHDIR_READABLE
10880         It was problematic in the light of file systems that ignore umask.
10881         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
10882         * NEWS: Document this.
10883         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
10884         successful, -1 (setting errno) on failure, rather than something
10885         more complicated than that.
10886         * lib/mkdir-p.c (make_dir_parents):
10887         Do not use SAVEWD_CHDIR_READABLE.
10888         * lib/savewd.c (savewd_chdir):
10889         Remove support for SAVEWD_CHDIR_READABLE.
10890         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
10892         c-ctype: port better to EBCDIC
10893         Problems reported by Daniel Richard G. in
10894         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
10895         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
10896         Include "verify.h".
10897         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
10898         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
10899         Define as enum constants with value false, if not defined, so that
10900         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
10901         code more portable, as both branches of the 'if' are compiled on
10902         all platforms.
10903         (C_CTYPE_EBCDIC): New constant.
10904         Verify that the character set is either ASCII or EBCDIC.
10905         (to_char): New static function.
10906         (c_isascii, c_iscntrl):
10907         Assume standard control-character assignments for EBCDIC.
10908         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
10909         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
10910         Rewrite to use 'if' instead of 'ifdef'.
10911         Use to_char if non-ASCII.  Prefer <= to >=.
10912         Prefer true and false to 1 and 0, for booleans.
10913         (c_iscntrl): Use 'if', not 'ifdef'.
10914         * modules/c-ctype (Depends-on): Add verify.
10915         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
10916         (to_char): New function.
10917         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
10919 2015-09-21  Pádraig Brady  <P@draigBrady.com>
10921         nanosleep: fix return code for interrupted replacement
10922         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
10923         that we return -1 in the case the call is interrupted by a signal,
10924         rather than the current value of 1.
10925         Diagnosed and tested by Daniel Richard G.
10927 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
10929         Diagnose ERE '()|\1'
10930         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
10931         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
10932         track of the set of previously-completed subexpressions available
10933         before the first alternative, and restore this set just before
10934         parsing each subsequent alternative.  This lets us diagnose the
10935         invalid back-reference in the ERE '()|\1'.
10937         regex: merge patches from libc
10939         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
10940         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
10941         * lib/regex_internal.h:
10942         Include <libc-lock.h> instead of <bits/libc-lock.h>.
10944         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
10945         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
10946         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
10947         wcscoll.
10948         * lib/regexec.c (check_node_accept_bytes): Likewise.
10950         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
10951         Fix regex wcrtomb namespace (bug 18496).
10952         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
10953         instead of wcrtomb.
10955         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
10956         Fix regex wctype namespace (bug 18495).
10957         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
10958         instead of towlower.
10959         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
10960         instead of iswlower.  Call __towupper instead of towupper.
10961         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
10962         instead of iswalnum.
10964         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
10965         * lib/regcomp.c (parse_bracket_exp): Initialize type to
10966         COLL_SYM in a couple of places to avoid uninitialized variable
10967         wanings on tilegx gcc 4.8.2.
10969         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
10970         * lib/regex_internal.h: Remove NOT_IN_libc.
10972         2014-11-17  Andreas Schwab  <schwab@suse.de>
10973         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
10975         2014-09-11  Roland McGrath  <roland@hack.frob.com>
10976         Move findidx nested functions to top-level.
10977         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
10978         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
10979         Pass new arguments to findidx.
10980         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
10981         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
10982         Don't #include it inside the function.  Pass new arguments to findidx.
10983         * lib/regex_internal.h:
10984         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
10985         (re_string_elem_size_at): Don't #include it inside the function.
10986         Pass new arguments to findidx.
10988         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
10989         Check if DEBUG is defined in regex_internal.c
10990         * lib/regex_internal.c: Check if DEBUG is defined and is set.
10992 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
10994         ceill: detect buggy OpenBSD implementation
10995         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
10996         which returns zero for small values.  Discussed here:
10997         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
10999 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
11001         mountlist: add me_mntroot field on Linux machines
11002         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
11003         mount_entry so Linux machines based on /proc/self/mountinfo can
11004         distinguish between bind mounts and original mounts.  In reality bind
11005         mounts aren't treated differently than mountroot=/ mounts by the
11006         kernel, but the user often wants these bind mounts distinguished.
11007         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
11008         More details at https://pad.lv/1432871
11010 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
11012         doc: Describe to use multiple instances of gnulib
11013         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
11014         instances of gnulib with different modules can be used, for example one
11015         for a lib and another one for associated tools.
11017 2015-09-01  Pádraig Brady  <P@draigBrady.com>
11019         base32: mark function as __attribute__ const
11020         * lib/base32.h (isbase32): Mark __attribute__ const as
11021         suggested by GCC, and consistent with the base64 module.
11023 2015-08-20  Daiki Ueno  <ueno@gnu.org>
11025         gnulib-tool: don't transform binary files with sed
11026         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
11027         .mo and .class files.
11028         Reported by Denis Denisov.
11030 2015-08-10  Daiki Ueno  <ueno@gnu.org>
11032         gperf: respect silent rules
11033         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
11034         V_GPERF_0 for silent rules.
11035         * modules/iconv_open (Makefile.am): Use V_GPERF.
11036         * modules/unicase/locale-language (Makefile.am): Likewise.
11037         * modules/unicase/special-casing (Makefile.am): Likewise.
11038         * modules/unictype/category-byname (Makefile.am): Likewise.
11039         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
11040         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
11041         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
11042         * modules/unictype/property-byname (Makefile.am): Likewise.
11043         * modules/unictype/scripts (Makefile.am): Likewise.
11044         * modules/uninorm/composition (Makefile.am): Likewise.
11046 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
11048         Improve port of stdalign to C++11
11049         Problem reported by Sundaram in:
11050         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
11051         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
11052         (__alignas_is_defined): Define if C++11 or newer.
11054 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
11056         pmccabe2html: fix gawk regex escaping
11057         * build-aux/pmccabe2html: Add one more backslash to properly
11058         escape the gsub replacement value.  Fixes this error:
11059         gawk: ./build-aux/pmccabe2html:425: \
11060         warning: escape sequence `\&' treated as plain `&'
11062 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
11064         time_rz: port to pedantic memcpy
11065         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
11066         that reject memcpy (..., NULL, 0).
11068 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
11070         time_rz: port better to MinGW
11071         Don't change tzname, as this makes MinGW dump core (Bug#21020).
11072         Instead, store the tzname copy in the struct tm_zone object.
11073         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
11074         * lib/strftime.c [!_LIBC]:
11075         * lib/time_rz.c: Include time-internal.h.
11076         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
11077         name from *TZ rather than from TZNAME, doable because *TZ now has
11078         a tzname_copy member.
11079         * lib/time-internal.h: New file, with contents taken from
11080         lib/time_rz.c.  It's separate because strftime.c now accesses
11081         struct tm_zone members.
11082         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
11083         New member tzname_copy.
11084         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
11085         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
11086         Initialize tzname_copy member.
11087         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
11088         in tzname_copy member.
11089         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
11090         (restore_tzname): Remove; no longer needed.  All calls removed.
11091         * modules/time_rz (Files): Add lib/time-internal.h.
11093         time: port __need_time_t to MinGW
11094         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
11095         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
11097 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11099         strftime: fix newly-introduced bug on Solaris
11100         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
11101         consistently at the start, rather than doing some of the setup at
11102         the start and some in the %Z format spec.  This is cleaner, and
11103         works better with time_rz on platforms like Solaris where struct
11104         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
11105         mktime_z and localtime_rz can mess up the tzname cache.
11107         test-strftime: test for Solaris bug
11108         * modules/strftime-tests (Depends-on): Add strerror.
11109         * tests/test-strftime.c: Include <errno.h>.
11110         (posixtm_test): New function, containing the old 'main'.
11111         (struct tzalloc_test, struct localtime_rz_test): New types.
11112         (TZ, LT): New static vars.
11113         (tzalloc_test): New function.
11114         (main): Rewrite in terms of posixtm_test and tzalloc_test.
11116         time_rz: port to Solaris etc.
11117         Works around a tzname problem on platforms like Solaris that have
11118         tzname but not tm_zone, by setting tzname at the appropriate time
11119         and restoring it later.
11120         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
11121         New static vars.
11122         (save_abbr) [HAVE_TZNAME]: Set them.
11123         (revert_tz) [HAVE_TZNAME]: Clear or use them.
11124         (restore_tzname): New function.
11125         (localtime_rz, mktime_z): Use it.
11127         time_rz: now LGPL
11128         * modules/time_rz (License): Now LGPL, because strftime depends on it.
11130         time_rz: make a constant 'const'
11131         * lib/time_rz.c (local_tz): Now const.
11133         time_rz: fix off-by-one typo
11134         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
11136 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
11138         fprintftime, strftime: use timezone_t args
11139         * NEWS: Document the change.
11140         * lib/fprintftime.h (fprintftime):
11141         * lib/strftime.c (extra_args) [my_strftime]:
11142         * lib/strftime.h (nstrftime):
11143         Time zone arg is now of type timezone_t, not int.
11144         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
11145         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
11146         (my_strftime) [emacs && !my_strftime]:
11147         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
11148         Remove; Emacs doesn't need this any more.
11149         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
11150         fprintftime and nstrftime to call tzset.
11151         (ut) [!my_strftime]: Remove, replacing with ...
11152         (tz) [!my_stftime]: ... this new macro.  All uses changed.
11153         (strftime_case_): Use localtime_rz and mktime_z instead
11154         of localtime_r and mktime.
11155         * modules/fprintftime (Depends-on): Add time_rz.
11156         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
11157         * tests/test-strftime.c (main): Adjust to new nstrftime API.
11159         time_rz: new module
11160         * MODULES.html.sh: Add time_rz.
11161         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
11162         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
11163         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
11164         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
11165         New var HAVE_TIMEZONE_T (default 0).
11166         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
11167         New var GNULIB_TIME_RZ (default 0).
11168         * modules/time (time.h): Substitute the new vars.
11170         flexmember: license is now unlimited
11171         * modules/flexmember (License): Change to unlimited,
11172         since its only source file gives an unlimited license.
11174 2015-07-15  Eric Blake  <eblake@redhat.com>
11176         maint: update copyright paper procedures
11177         * config/srclist.txt: Drop outdated files.
11178         * doc/Copyright/conditions.txt: Update to latest.
11179         * doc/Copyright/assign.changes.manual: Delete.
11180         * doc/Copyright/assign.future.manual: Likewise.
11181         * doc/Copyright/assign.manual: Likewise.
11182         * doc/Copyright/assign.translation.manual: Likewise.
11183         * doc/Copyright/disclaim.changes.manual: Likewise.
11184         * doc/Copyright/disclaim.manual: Likewise.
11185         * doc/Copyright/disclaim.program: Likewise.
11187 2015-07-07  Daiki Ueno  <ueno@gnu.org>
11189         localename: fix link error on Illumos
11190         Illumos defines __sun, but does not have getlocalename_l nor the
11191         equivalent.  This partially reverts commit 387c214.
11192         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
11193         available, as well as uselocale.
11194         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
11195         use getlocalename_l if it is not available.
11197 2015-07-07  Daiki Ueno  <ueno@gnu.org>
11199         unistr/uN-strtok-tests: avoid a trivial leak
11200         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
11201         input and delim after the multibyte delimiter tests.
11203 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
11205         file-has-acl, acl-permissions: fix HP-UX typos
11206         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
11207         * lib/file-has-acl.c (file_has_acl):
11208         * lib/set-permissions.c (context_acl_from_mode)
11209         (context_aclv_from_mode, set_acls):
11210         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
11211         They were introduced by the recent ACL changes.
11213         regex: match current GNU grep behavior
11214         These symbols have not matched GNU grep behavior for quite some time.
11215         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
11216         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
11217         Change to match current GNU behavior.
11218         Simplify by expressing it as differences from POSIX BREs and EREs.
11219         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
11221 2015-07-03  Jim Meyering  <meyering@fb.com>
11223         set-permissions.c: adjust acl_from_mode's cpp guard
11224         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
11225         directives identical to those guarding the sole use.
11226         Otherwise, on some systems, we'd get a warning about
11227         the function being defined but not used.
11228         Also, filter through cppi to correct misleading indentation
11229         of cpp directives.
11231 2015-07-03  Pádraig Brady  <P@draigBrady.com>
11233         tests: restrict shells to those that support 'local'
11234         The local keyword is very widely supported and used
11235         in tests in coreutils and grep at least.  Therefore
11236         restrict to testing with shells that support it.
11237         This mainly excludes /bin/sh on Solaris.
11238         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
11240 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
11241         and Daiki Ueno  <ueno@gnu.org>
11243         unistr/uN-strtok: handle multibyte delimiters
11244         Previously, uN_strtok moved PTR to the next unit to the token end.
11245         When DELIM contained a multibyte character, the new position could
11246         be a middle of a multibyte character.
11247         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
11248         after the token.
11249         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
11250         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
11251         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
11252         * modules/unistr/u8-strtok (Depends-on): Depend on
11253         unistr/u8-strmblen.
11254         * modules/unistr/u16-strtok (Depends-on): Depend on
11255         unistr/u16-strmblen.
11256         * modules/unistr/u32-strtok (Depends-on): Depend on
11257         unistr/u32-strmblen.
11258         * tests/unistr/test-u-strtok.h: New file.
11259         * tests/unistr/test-u8-strtok.c: New file.
11260         * tests/unistr/test-u16-strtok.c: New file.
11261         * tests/unistr/test-u32-strtok.c: New file.
11262         * modules/unistr/u8-strtok-tests: New file.
11263         * modules/unistr/u32-strtok-tests: New file.
11264         * modules/unistr/u16-strtok-tests: New file.
11266 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
11268         update-copyright: fix test failure with perl >= 5.22 (trivial)
11269         * build-aux/update-copyright: Escape a literal left curly bracket,
11270         required with perl >= 5.22
11272 2015-07-02  Daiki Ueno  <ueno@gnu.org>
11274         u{16,32}-strstr-tests: relax timeout condition
11275         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
11276         tests can take longer than 5 seconds to complete.
11277         Reported by Dagobert Michelsen in:
11278         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
11279         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
11280         seconds to 10 seconds.
11281         * tests/unistr/test-u32-strstr.c (main): Likewise.
11283 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
11285         gnulib-common.m4: change the ARFLAGS default to 'cr'
11286         In some GNU/Linux distributions people started to compile 'ar'
11287         binary with --enable-deterministic-archives (binutils project).
11288         That, however, in combination with previous autotools long time
11289         working default AR{_,}FLAGS=cru causes warnings on such
11290         installations:
11291         ar: `u' modifier ignored since `D' is the default (see `U')
11292         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
11293         set already.
11295 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
11297         selinux-h: avoid double free after *getfilecon()
11298         Originally reported by Ben Shelton on bug-tar:
11299         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
11300         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
11301         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
11302         param should be freed by freecon(3) (regardless the return value).
11304 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
11306         fix pty related tests issues on Windows (trivial)
11307         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
11308         however it's still present in tests/ subdirectory of the final project.
11309         Therefore avoid it to pass `make check`.
11310         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
11311         will just return -ENOSYS, so avoid this non applicable test allowing
11312         the build to proceed.
11314 2015-07-01  Pádraig Brady  <P@draigBrady.com>
11316         acl: fix definition of acl_from_mode on FreeBSD
11317         This was causing basic coreutils copy operations to fail
11318         with ENOTSUP or ENOENT error messages.
11319         * lib/acl-internal.h (acl_from_mode): Only define when
11320         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
11321         of acl_from_mode() defined in lib/set-permissions.c to
11322         be used on FreeBSD at least.
11323         * lib/set-permissions.c: Fix up comment spelling,
11324         and a redundant variable assignment; noticed in passing.
11326 2015-06-30  Pádraig Brady  <P@draigBrady.com>
11328         readutmp: port to FreeBSD >= 9
11329         * lib/readutmp.h: Map utmpxname() to setutxdb().
11330         With that coreutils who(1) and pinky(1) tests pass.
11332 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
11334         mgetgroups: port to strict OS X
11335         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
11336         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
11337         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
11338         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
11340 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
11342         mgetgroups: port to strict OS X
11343         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
11344         Document the getgrouplist problem.
11345         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
11346         New macro.
11347         (mgetgroups): Use it.
11348         * m4/mgetgroups.m4 (gl_MGETGROUPS):
11349         Check for OS X signature for getgrouplist.
11351 2015-06-29  Jim Meyering  <meyering@fb.com>
11353         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
11354         It started like this when building coreutils' latest on OS X,
11355         invoking ./configure with a nonempty --cache=.cache:
11357           lib/linkat.c:46:42: error: operator '||' has no right operand
11358           lib/linkat.c: In function 'rpl_linkat':
11359           lib/linkat.c:330:27: error: #if with no expression
11361         Here's linkat.c's line 46:
11363           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
11365         Here's some context:
11367           $ grep linkat_nofoll .cache
11368           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
11369           $ grep LINKAT_SYM lib/config.h
11370           #define LINKAT_SYMLINK_NOTSUP
11372         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
11373         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
11374         but that violates a tenet of AC_CACHE_CHECK: it must
11375         have no side effect other than setting its cache variable.
11377         What happens is that when the cache is set, we'd skip the
11378         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
11379         defined to whatever value it happened to have in configure's
11380         environment.  In my case, it was not defined, so this later code:
11382           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
11383             [Define to 1 if linkat can create hardlinks to symlinks])
11385         would emit code with an empty RHS.
11387         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
11388         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
11390 2015-06-28  Jim Meyering  <meyering@fb.com>
11392         mountlist: avoid an unused-label warning on OS X
11393         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
11394         Building on OS X, I saw a warning about the "free_then_fail" label
11395         being unused.  Give it the _GL_UNUSED_LABEL attribute.
11397         error.c: correct printf-style format: %d -> %u
11398         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
11399         rather than %d, to match the type of "line_number", unsigned int.
11401 2015-06-25  Pádraig Brady  <P@draigBrady.com>
11403         fts: avoid reading beyond the heap allocation
11404         GCC 5.1.1 with -O2 and -fsanitize=address reports
11405         a read of size 4 from a heap object of size 3 is indeed invalid,
11406         though this may be due to incorrect padding assumptions by GCC, see:
11407         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
11408         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
11409         * modules/fts: Depend on stdalign.
11411 2015-06-24  Pádraig Brady  <P@draigBrady.com>
11413         savedir: avoid undefined behavior in qsort call
11414         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
11415         "runtime error: null pointer passed as argument 1,
11416          which is declared to never be null"
11417         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
11419 2015-06-24  Pádraig Brady  <P@draigBrady.com>
11421         userspec: avoid undefined behavior in gettext call
11422         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
11423         "runtime error: null pointer passed as argument 2,
11424          which is declared to never be null"
11425         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
11427 2015-06-20  Glenn Morris  <rgm@gnu.org>
11429         gitlog-to-changelog: improve gitmerge.el commits
11430         Let the Emacs ChangeLog generation process exclude "skipped"
11431         messages from merge commits (Bug#20717).
11432         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
11434 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
11436         wchar: fix MinGW compilation warnings
11437         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
11438         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
11439         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
11441 2015-06-20  Daiki Ueno  <ueno@gnu.org>
11443         uniname/uniname-tests: use pristine data files
11444         For copyright and maintenance reasons, use the data files from UCD
11445         without modification.
11446         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
11447         (getfield): Remove.
11448         (aliases_count): New global variable.
11449         (fill_names): Skip comments and empty lines in the input.  Don't
11450         use getfield.
11451         (fill_aliases): Likewise.
11452         (main): Change the expected command line arguments to:
11453         NAMES... ["--" ALIASES...].
11454         * tests/uniname/test-uninames.sh: Adjust to the change in
11455         test-uninames.c.
11456         * tests/uniname/UnicodeDataNames.txt: Remove.
11457         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
11458         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
11459         file from Unicode 8.0.0.
11461 2015-06-19  Pádraig Brady  <P@draigBrady.com>
11463         linked-list, linkedhash-list: avoid compiler warnings
11464         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
11465         -Werror=suggest-attribute=pure (from GCC 5.1.1).
11467 2015-06-19  Daiki Ueno  <ueno@gnu.org>
11469         libunistring: bump minimum version to 0.9.6
11470         * all modules depending on updated Unicode data: Regenerate.
11471         The modules are listed by a script that does:
11472         - for each file listed by: git show --oneline --name-only 705f4efc
11473           - deduce the containing modules, based on "Files:"
11474         - deduce the modules which depend on the containing modules, based
11475           on "Depends-on:"
11477 2015-06-18  Daiki Ueno  <ueno@gnu.org>
11479         uniname/uniname: update to Unicode 8.0.0
11480         * lib/uniname/uninames.h: Regenerate.
11481         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
11482         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
11484 2015-06-18  Daiki Ueno  <ueno@gnu.org>
11486         libunistring: update to Unicode 8.0.0
11487         * lib/gen-uni-tables.c (SIZEOF): New macro.
11488         (output_numeric): Increase the maximum number of fractions from
11489         128 to 160.  Increase the level3 value width from 7 bits to 8
11490         bits.  Use SIZEOF instead of a hard-coded integer.
11491         (output_blocks): Decrease the cut-off threshold from 0x30000 to
11492         0x28000.
11493         (fill_blocks): Increase the maximum number of blocks from 256 to
11494         384.  Use SIZEOF instead of a hard-coded integer.
11495         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
11496         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
11497         value width.
11498         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
11499         a new case added to LBP22.
11500         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
11501         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
11502         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
11503         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
11504         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
11505         * tests/uniwidth/test-uc_width2.sh: Same updates as in
11506         lib/uniwidth/width.c.
11507         * all generated files under lib/uni* and tests/uni*: Regenerate.
11509 2015-06-16  Pádraig Brady  <P@draigBrady.com>
11511         gnu-web-doc-update: add --mirror to remove stale files
11512         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
11513         out of date files from the CVS server.  Since this is usually
11514         appropriate, a prompt is given when the option is not specified,
11515         along with the `cvs remove` command that would be run.
11517 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
11519         acl-permissions: pacify -Wsuggest-attribute=const
11520         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
11521         * lib/acl-internal.h (free_permission_context):
11522         Declare with attribute const if ! (defined USE_ACL &&
11523         (HAVE_ACL_GET_FILE || defined GETACL)).
11525         fsync: document AIX misbehavior
11526         * doc/posix-functions/fsync.texi (fsync):
11527         Document failure on AIX with read-only file descriptor.
11529 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
11531         stdio: Don't redefine gets when using C++
11532         * lib/stdio.in.h (gets): Disable warning on C++.
11534 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
11536         acl-permissions: port to AIX, C89 HP-UX
11537         Problems reported by Michael Felt.
11538         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
11539         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
11540         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
11541         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
11542         Add cast for AIX, whose system calls are declared to accept
11543         char * even though the arguments are really char const *.
11544         * lib/get-permissions.c (get_permissions):
11545         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
11546         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
11547         that broke a build.
11548         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
11549         Rework types to pacify xlc.
11551 2015-06-03  Pádraig Brady  <P@draigBrady.com>
11553         vasprintf-posix: avoid compiling vasnprintf where possible
11554         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
11555         module where not required.  For example on a GNU/Linux system
11556         when gnulib-tool is run with the --conditional-dependencies option.
11558 2015-06-02  Pádraig Brady  <P@draigBrady.com>
11560         file-has-acl: fix build on Mac OS X 10
11561         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
11562         which has an incompatible 6 parameter getxattr() call.
11563         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
11564         call on Mac OS X >= 10.4.
11565         * doc/glibc-functions/fgetxattr.texi: Likewise.
11566         * lib/file-has-acl.c: Revert to more complete combined check.
11567         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
11568         Reported by Jack Howarth.
11570 2015-06-02  Pádraig Brady  <P@draigBrady.com>
11572         prefix-gnulib-mk: remove no longer needed special case
11573         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
11574         continued lib_SOURCES lines are no longer present,
11575         so special case handling of such entries is not required.
11577 2015-06-01  Pádraig Brady  <P@draigBrady.com>
11579         acl: don't depend on the deprecated qacl module
11580         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
11582 2015-06-01  Pádraig Brady  <P@draigBrady.com>
11584         gnulib-tool: concatenate lib_SOURCES to a single line
11585         * gnulib-tool: Refactor the line merging sed logic,
11586         and use that to output a single lib_SOURCES line for each module.
11587         gnulib using projects often postprocess this output to prepend
11588         subdir paths to each item, and having a single line simplifies this
11589         processing allowing better decoupling from the gnulib-tool output.
11591 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
11593         pthread_sigmask: discount system version if a simple macro (trivial)
11594         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
11595         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
11596         function to ensure it's available.
11598 2015-05-31  Pádraig Brady  <P@draigBrady.com>
11600         readlinkat: avoid OS X 10.10 trailing slash bug
11601         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
11602         has this bug.
11603         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
11604         that OS X 10.10 has this function.
11605         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
11606         as done for readlink().
11607         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
11608         trailing slash bug, and assume readlinkat() has the same issue.
11609         Also fix a typo where $gl_cv_decl_readlink_works was tested,
11610         rather than the correct $gl_cv_decl_readlinkat_works.
11612 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
11614         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
11615         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
11616         module rewrite.
11618         acl-permissions: Fix build on Solaris and Cygwin
11619         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
11620         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
11621         ace_entries variables have moved into struct permission_context but
11622         they were still accessed as local variables here.
11624 2015-05-29  Pádraig Brady  <P@draigBrady.com>
11626         linkat: avoid OS X 10.10 trailing slash with symlink bug
11627         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
11628         causes the symlink to be dereferenced, and if it points
11629         to a non existent file, that file will be created as
11630         a hard link to "path1".
11631         This fixes a test failure in test-linkat.c.
11632         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
11633         this case.  The existing workaround in linkat.c for
11634         trailing slash issues, suffices for this case.
11635         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
11636         the list of platforms with trailing slash issues.
11638 2015-05-28  Pádraig Brady  <P@draigBrady.com>
11640         unlinkat: handle ignoring of ".." on Darwin 14
11641         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
11642         on Mac OS X 10.10, where it ignores paths with a trailing "..",
11643         so handle in the same manner.
11644         * m4/unlinkat.m4: Comment on this Darwin issue.
11645         * doc/posix-functions/unlink.texi: Update the latest version
11646         where the issue was seen.
11647         * doc/posix-functions/unlinkat.texi: Mention this issue.
11648         Fixes a test failure in test-unlinkat.c.
11650 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
11652         qacl: split into qcopy-acl and qset-acl
11653         Emacs needs the former, but not the latter.
11654         * modules/acl-permissions: New file, containing most of the old qacl.
11655         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
11656         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
11657         * modules/qcopy-acl, modules/qset-acl: New files.
11658         * MODULES.html.sh (File system functions):
11659         Mention the new modules, and mention qacl while we're at it.
11661 2015-05-27  Glenn Morris  <rgm@gnu.org>
11663         gitlog-to-changelog: new option --ignore-line
11664         (This patch is imported from the GNU Emacs master.)
11665         This option ignores individual commit lines matching a pattern.
11666         * build-aux/gitlog-to-changelog: Add --ignore-line option.
11668 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
11670         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
11671         Implement get_permissions and set_permissions primitives for getting all
11672         the permissions of a file, storing them, and later setting them. (In the
11673         minimal case, the permissions consist only of a file mode.) Reimplement
11674         qset_acl and qcopy_acl based on these new primitives: this avoids code
11675         duplication and makes error handling more consistent.
11676         The Solaris and Cygwin code still uses duplicate code paths for setting
11677         a file mode while making sure that no acls exist and setting an explicit
11678         acl; this is no worse than before, but could be cleaned up.  The AIX
11679         code still doesn't read ACLs, it only makes sure that acls don't get in
11680         the way when setting a file mode.
11681         * lib/acl-internal.h (struct permission_context): New data structure.
11682         (get_permissions, set_permissions, free_permission_context): Declare.
11683         * lib/acl-internal.c (free_permission_context): New helper function.
11684         * lib/get-permissions.c (get_permissions): New helper function split off
11685         from qcopy_acl.
11686         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
11687         AIX, set a file's permissions based only on a file mode.
11688         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
11689         other platforms construct a temporary acl from the file mode and set
11690         that acl in the same way as setting an acl read from the source file.
11691         This should help avoid code duplication and inconsistent / buggy
11692         behavior.
11693         (set_acls): New helper function Split off from qcopy_acl.
11694         (chmod_or_fchmod): Moved here from qset-acl.c.
11695         (set_permissions): New helper function.
11696         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
11697         set_permissions.
11698         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
11699         * modules/qacl: Add get-permissions.c and set-permissions.c.
11701         file-has-acl: Split feature tests again (Bug#20667)
11702         * lib/file-has-acl.c: Instead of testing for
11703         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
11704         define them when needed.
11705         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
11706         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
11708 2015-05-27  Pádraig Brady  <P@draigBrady.com>
11710         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
11711         This avoids a conflict with "FORTIFY_SOURCE" variants
11712         of the string functions when they're replaced on NetBSD-6.0.1
11713         and Darwin-14.3.0 at least.
11714         * lib/string.in.h: Avoid including our "lib/string.h" while
11715         including the system <string.h>.
11717 2015-05-26  Eric Blake  <eblake@redhat.com>
11719         stdio: limit __gnu_printf__ witness to gcc 4.4+
11720         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
11721         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
11723         error: use correct printf attributes on mingw
11724         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
11726         inttypes: force correct mingw PRIdMAX even without <stdio.h>
11727         * modules/inttypes (Depends-on): Require extensions, so that mingw
11728         always uses GNU style inttypes.
11729         * lib/inttypes.in.h: On mingw, include <stdio.h>.
11731         stdio: fix probe on mingw under gcc 5.1
11732         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
11733         around new gcc preprocessor rules.
11735 2015-05-07  Glenn Morris  <rgm@gnu.org>
11737         gitlog-to-changelog: parse "Tiny-change"
11738         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
11739         "Copyright-paperwork-exempt".  (Bug#20324)
11741 2015-05-06  Pádraig Brady  <P@draigBrady.com>
11743         doc: document glibc posix_fallocate() issues
11744         * doc/posix-functions/posix_fallocate.texi: Mention the
11745         glibc efficiency problems and issues with NFS.
11747 2015-05-05  Karl Berry  <karl@freefriends.org>
11749         * build-aux/gendocs.sh (usage): document new css default
11750         for HTML (--htmlarg).
11752 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
11754         extern-inline: no need for workaround in GCC 5.1
11755         * doc/extern-inline.texi (extern inline):
11756         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
11757         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
11758         around these bugs in GCC 5.1 and later.  Maybe in a decade or
11759         two we can remove these workarounds.
11761 2015-04-28  Pádraig Brady  <P@draigBrady.com>
11763         eealloc, pagealign_alloc, xalloc: avoid clang warnings
11764         Avoid [-Wunknown-attributes] warnings like:
11765         warning: unknown attribute '__alloc_size__' ignored
11766         * lib/xalloc.h: Don't use the __alloc_size__  attribute
11767         with clang, as support has been fully removed as of clang 3.5:
11768         https://github.com/llvm-mirror/clang/commit/c047507a
11769         * lib/eealloc.h: Likewise.
11770         * lib/pagealign_alloc.h: Likewise.
11772 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
11774         tests: pacify GCC 5.1's stricter printf checking
11775         * tests/test-dirname.c (main):
11776         * tests/test-getaddrinfo.c (simple):
11777         * tests/test-getlogin.c (main):
11778         * tests/test-getndelim2.c (main):
11779         * tests/test-inttostr.c (CK):
11780         * tests/test-md5.c (main):
11781         * tests/test-read-file.c (main):
11782         * tests/test-sha1.c (main):
11783         Fix mismatches between printf format and value signedness.
11784         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
11785         Remove, as CAST_VAL always returned a value of type uintmax_t.
11787         fts: port to GCC 5.1 with --enable-gcc-warnings
11788         Without this fix, GCC 5.1 (correctly) warns about a subscript
11789         error on the fts_name component of FTSENT.  It's actually a
11790         flexible member, so define it that way on C99 or later hosts.
11791         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
11792         structure that now has a flexible array member.
11793         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
11794         (FTSENT): fts_name is now flexible on C99-or-later platforms.
11795         * modules/fts (Depends-on): Add flexmember.
11797 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
11799         file-has-acl: port to CentOS 6
11800         Problem reported by Tom G. Christensen in:
11801         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
11802         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
11803         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
11804         HAVE_GETXATTR.
11805         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
11806         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
11807         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
11808         file-has-acl.c actually needs.
11810 2015-04-26  Pádraig Brady  <P@draigBrady.com>
11812         file-has-acl: always return false when ACLs aren't supported
11813         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
11814         change the GNU/Linux getxattr path, to transform "not supported"
11815         errors to a false return rather than an error.  This is handled
11816         within file_has_acl() due to the platform specific tests to
11817         determine if ACLs are not supported.
11819 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
11821         gettext: propagate po/Makefile.in.in too
11822         * build-aux/po/Makefile.in.in: Copy from latest gettext.
11823         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
11824         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
11825         between Makefile.in.in and the gettext-runtime m4 files.
11827 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
11829         file-has-acl: new module, split from acl
11830         And add a new module file-has-acl-tests to match.
11831         I ran into a problem with the recent changes to the acl module,
11832         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
11833         When using the fixed version with Emacs, I discovered that
11834         file-has-acl wasn't separated out well enough for Emacs (e.g., it
11835         had multiple libraries, but needed only one), so I fixed that too.
11836         * NEWS: Document this incompatible change.
11837         * modules/file-has-acl, modules/file-has-acl-tests: New files.
11838         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
11839         Initialize gl_need_lib_has_acl.
11840         (gl_FUNC_ACL): Require it.
11841         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
11842         Move the file-has-acl.c-relevant stuff to ...
11843         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
11844         use_xattrs = 0' typo, and omit some needless work.  Set
11845         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
11846         when gl_FUNC_ACL is called.
11847         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
11848         (Link): Remove $(LIB_HAS_ACL).
11849         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
11850         (check_PROGRAMS): Move stuff relevant to file-has-acl to
11851         modules/file-has-acl-tests.
11852         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
11854         manywarnings: add GCC 5.1 warnings
11855         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
11856         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
11857         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
11858         -Wsuggest-override, -Wuse-without-only.  Change
11859         -Wnormalized=... operands to match 5.1.
11860         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
11861         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
11862         -Wdiscarded-qualifiers, -Wformat-signedness,
11863         -Wincompatible-pointer-types, -Wint-conversion,
11864         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
11865         -Wshift-count-negative, -Wshift-count-overflow,
11866         -Wsizeof-array-argument, -Wsuggest-final-methods,
11867         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
11868         and add -Warray-bounds=2 as a special case.
11870 2015-04-21  Simon Josefsson  <simon@josefsson.org>
11872         doc: update FDL template to match FDL examples.
11873         * doc/alloca-opt.texi:
11874         * doc/alloca.texi:
11875         * doc/c-ctype.texi:
11876         * doc/c-strcase.texi:
11877         * doc/c-strcaseeq.texi:
11878         * doc/c-strcasestr.texi:
11879         * doc/c-strstr.texi:
11880         * doc/c-strtod.texi:
11881         * doc/c-strtold.texi:
11882         * doc/ctime.texi:
11883         * doc/error.texi:
11884         * doc/gcd.texi:
11885         * doc/gnulib-tool.texi:
11886         * doc/inet_ntoa.texi:
11887         * doc/intprops.texi:
11888         * doc/lib-symbol-visibility.texi:
11889         * doc/maintain.texi:
11890         * doc/parse-datetime.texi:
11891         * doc/quote.texi:
11892         * doc/regexprops-generic.texi:
11893         * doc/standards.texi: Remove spurious 'with' in FDL license
11894         template.
11896 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
11898         lstat: fix cross-compilation 'ln -s' problem
11899         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
11900         Have the test program call 'symlink' rather than a separate
11901         script run 'ln -s'; this is more likely to work in
11902         cross-compilation environments.  Reported by Pavel Fedin in:
11903         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
11905 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
11907         gendocs.sh: default to a common CSS style sheet for HTML output
11908         * build-aux/gendocs.sh (htmlarg): Change default value.
11910 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
11912         gnulib-tool: output bold attribute more portably
11913         * gnulib-tool (func_show_module_list): Change hexadecimal
11914         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
11915         encoded numbers as arguments to `printf' is not portable,
11916         and is not claimed by POSIX.  This is the case with FreeBSD.
11918 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
11920         qacl: Simplify HP-UX acl_nontrivial check
11921         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
11922         acl_nontrivial. Check if the acl has at most three entries instead (it must
11923         have exactly three entries according to the HP-UX documentation). Ignore
11924         uids and gids as long as an entry is either for a user (i.e., the owner),
11925         a group (i.e., the owning group), or others.
11926         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
11927         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
11929 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
11931         acl: On Linux, check for acls without libacl
11932         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
11933         library function to check for the presence of acls, avoiding a library.
11934         * lib/file-has-acl.c: Include xattr headers if we have them.
11935         (file_has_acl): On Linux, use getxattr().
11936         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
11937         file_has_acl(). Check for xattr headers and getxattr().
11939 2015-04-14  Ángel González  <keisial@gmail.com>
11941         tempname: avoid unused parameter warnings (trivial)
11942         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
11943         (try_nocreate): Likewise.
11945 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
11947         fseeko: fix build failure on NetBSD >= 6 (trivial)
11948         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
11949         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
11951 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
11953         gitlog-to-changelog: port to MS-Windows
11954         * build-aux/gitlog-to-changelog (git_dir_option):
11955         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
11956         MS-Windows Perl.  Reported by Eli Zaretskii in:
11957         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
11959 2015-04-07  Karl Berry  <karl@gnu.org>
11961         gendocs: new option --tex for passing args to texi2dvi.
11962         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
11963         (TEXI2DVI): cut to just command name.
11964         (usage): mention new option, and update copyright.
11965         <generate_tex>: use it.
11967 2015-04-07  Karl Berry  <karl@gnu.org>
11969         * config/srclistvars.sh (GETTEXT): new definition.
11970         * config/srclist.txt: use it for gettext .m4 files.
11971         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
11972         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
11973         and continuing into April.
11975 2015-04-07  Daiki Ueno  <ueno@gnu.org>
11977         uniname/uniname-tests: fix failure due to alias
11978         Reported by Jack Howarth in:
11979         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
11980         * tests/uniname/test-uninames.c (name_has_alias): New function.
11981         (test_inverse_lookup): Exclude character name with valid alias,
11982         from randomly generated character names.
11983         (main): Fill unicode_aliases before calling test functions.
11985 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
11987         hash: remove deprecated hash_insert0 function
11988         * lib/hash.h (hash_insert0): Remove deprecated function.
11989         * lib/hash.c (hash_insert0): Likewise.
11991 2015-04-02  Pádraig Brady  <P@draigBrady.com>
11993         mountlist: remove dependency on libmount
11994         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
11995         directly, rather than depending on libmount, which has many
11996         dependencies due to its dependence on libselinux, as detailed at:
11997         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
11998         Note we restrict this to __linux__ as that's probably where this
11999         interface will remain.  If ever porting, it would be best
12000         to first pull the makedev() wrapper from coreutils to a gnulib module.
12001         Note also we don't add a getline dependency to the mountlist module,
12002         as all Linux versions are sufficient.
12004 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
12006         stddef: port to pre-C11 GCC on x86
12007         On this platform, max_align_t should have an alignment of 8 even
12008         though the storage alignments of double, long, etc. max out at 4.
12009         Inspired by a comment of Andreas Schwab's here:
12010         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
12011         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
12012         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
12013         * tests/test-stddef.c: Test __alignof__ too, if available.
12015 2015-03-24  Pádraig Brady  <P@draigBrady.com>
12017         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
12018         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
12020 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
12022         yesno: make EOL optional in ENABLE_NLS case also (trival)
12023         * lib/yesno.c (yesno): Check for EOL before replacing.
12024         * tests/test-yesno.sh: Add a test case (test along with gettext).
12026 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
12028         fdopendir-tests: test it does not close its arg
12029         * tests/test-fdopendir.c (main): Test that fdopendir does not
12030         close its argument.  From a suggestion by David Grayson in:
12031         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
12033 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12035         gitlog-to-changelog: trim trailing white space
12036         * build-aux/gitlog-to-changelog (main):
12037         Trim trailing white space from commit message lines.
12038         This is helpful for processing the GNU Emacs repository,
12039         which dates back to 1985 and contains a lot of such lines.
12041         gitlog-to-changelog: new option --ignore-matching
12042         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
12043         Support new option --ignore-matching=PAT, which ignores all
12044         commit messages whose first line matches PAT.
12046 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12048         fdopendir: port better to MinGW
12049         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
12050         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
12051         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
12052         * modules/fdopendir (Depends-on): Add dirfd.
12054 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
12056         fdopendir: fix typo in comment
12057         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
12059 2015-03-09  Eric Blake  <eblake@redhat.com>
12061         error: document all entry points provided
12062         * doc/glibc-functions/error_print_progname.texi
12063         (error_print_progname): Mention the error module.
12064         * doc/glibc-functions/error_at_line.texi (error_at_line):
12065         Likewise.
12066         * doc/glibc-functions/error_message_count.texi
12067         (error_message_count): Likewise.
12068         * doc/glibc-functions/error_one_per_line.texi
12069         (error_one_per_line): Likewise.
12071 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
12073         vasnprintf: pacify clang 3.5.0
12074         Problem reported by Werner Lemberg in:
12075         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
12076         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
12077         The casts aren't needed, since the characters in question are ASCII.
12079 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
12081         glob, etc.: port to MSVC v18 on MS-Windows 8.1
12082         * lib/dirent--.h (GNULIB_defined_opendir):
12083         * lib/dirent.in.h (GNULIB_defined_opendir)
12084         (GNULIB_defined_closedir):
12085         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
12086         #undef only if Gnulib defined it.
12088         poll: port to MSVC v18 on MS-Windows 8.1
12089         Problem reported by Gisle Vanem in:
12090         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
12091         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
12092         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
12093         Add sys_socket.
12095 2015-02-24  Pádraig Brady  <P@draigBrady.com>
12097         tests: support stderr verification with returns_()
12098         * tests/init.sh (returns_): Disable tracing for this wrapper
12099         function, so that stderr of the wrapped command is unchanged,
12100         allowing for verification of the contents.
12102 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
12104         passfd: avoid valgrind uninitalised data warning
12105         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
12106         to include just the fd we've initialized, rather than including
12107         the extra space used for alignment.
12109 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
12111         uniwbrk/u32-wordbreaks-tests: fix copyright
12112         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
12114         dup2: doc and test for Android bug
12115         Reported by Kevin Cernekee in:
12116         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
12117         * doc/posix-functions/dup2.texi (dup2): Document the bug.
12118         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
12120 2015-02-23  Kevin Cernekee  <cernekee@google.com>
12122         Replace dup2() on Android
12123         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
12124         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
12125         fails.  Using rpl_dup2() fixes this because it has an explicit test
12126         for this condition.
12128 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
12130         Android doesn't define RLIM_SAVED_*
12131         Portability problem reported by Kevin Cernekee in:
12132         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
12133         * doc/posix-headers/sys_resource.texi (sys/resource.h):
12134         Mention the portability problem.
12135         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
12136         Define if not defined.
12137         * m4/dup2.m4 (gl_FUNC_DUP2):
12138         * m4/fcntl.m4 (gl_FUNC_FCNTL):
12139         Likewise.
12141 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
12143         vasnprintf-posix-tests: use consistent test
12144         * tests/test-vasnprintf-posix.c (test_function):
12145         Use "<" in assert instead of "<=", for consistency with other tests.
12147 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
12149         printf, isinf, etc.: noncanonical != NaN
12150         Do not require that isinf, printf, etc. treat noncanonical
12151         values as NaNs.  Instead, require only that they do not crash.
12152         Problem reported by Joseph Myers in:
12153         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
12154         * doc/posix-functions/dprintf.texi (dprintf):
12155         * doc/posix-functions/fprintf.texi (fprintf):
12156         * doc/posix-functions/isfinite.texi (isfinite):
12157         * doc/posix-functions/isinf.texi (isinf):
12158         * doc/posix-functions/isnan.texi (isnan):
12159         * doc/posix-functions/printf.texi (printf):
12160         * doc/posix-functions/snprintf.texi (snprintf):
12161         * doc/posix-functions/sprintf.texi (sprintf):
12162         * doc/posix-functions/vdprintf.texi (vdprintf):
12163         * doc/posix-functions/vfprintf.texi (vfprintf):
12164         * doc/posix-functions/vprintf.texi (vprintf):
12165         * doc/posix-functions/vsnprintf.texi (vsnprintf):
12166         * doc/posix-functions/vsprintf.texi (vsprintf):
12167         Document this.
12168         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
12169         * m4/isinf.m4 (gl_ISINFL_WORKS):
12170         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
12171         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
12172         * tests/test-isfinite.c (test_isfinitel):
12173         * tests/test-isinf.c (test_isinfl):
12174         * tests/test-isnan.c (test_long_double):
12175         * tests/test-isnanl.h (main):
12176         * tests/test-snprintf-posix.h (test_function):
12177         * tests/test-sprintf-posix.h (test_function):
12178         * tests/test-vasnprintf-posix.c (test_function):
12179         * tests/test-vasprintf-posix.c (test_function):
12180 o       Test only that noncanonical values do not cause crashes, not that
12181         they are treated as NaNs.  In some cases this means a larger
12182         output buffer is needed.
12184 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
12186         fts: remove redundant close() (trivial)
12187         * lib/fts.c (fts_read): Remove redundant call to close().
12188         Spotted by coverity.
12190 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
12192         getdtablesize: port better for Android
12193         Problem reported by Kevin Cernekee in:
12194         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
12195         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
12196         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
12197         Instead, just use getrlimit, taking care to avoid Cygwin bug.
12199         poll: fixes for large fds
12200         * lib/poll.c (poll): Don't check directly for NFD too large.
12201         Don't rely on undefined behavior in FD_SET when an arg exceeds
12202         FD_SETSIZE.  Always set revents afterwards, even if to zero.
12203         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
12204         as that makes the test a bit stricter.
12206 2015-02-19  Kevin Cernekee  <cernekee@google.com>
12208         fcntl: Fix cross compiling
12209         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
12210         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
12212 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
12214         dup2, fcntl: cross-compile better for Android
12215         Problem reported by Kevin Cernekee in:
12216         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
12217         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
12218         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
12219         there's little need to cross-compile for older kernels nowadays.
12220         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
12221         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
12223 2015-02-18  Pádraig Brady  <P@draigBrady.com>
12225         getopt: don't crash on memory exhaustion
12226         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
12227         memory exhaustion.  In the _LIBC case we use alloca() as is
12228         already done in glibc, so we don't need to consider the separate
12229         error path in that awkward case.  Also fix a memory leak when
12230         ambiguous options are present.
12231         Reported by Tobias Stoeckmann
12233 2015-02-17  Mike Miller  <mtmiller@ieee.org>
12235         tempname: allow compilation with C++ (trivial)
12236         * lib/tempname.h [C++]: Specify extern "C" linkage.
12237         * lib/tempname.h (try_tempname):
12238         * lib/tempname.c (__try_tempname, __gen_tempname):
12239         Rename 'try' to 'tryfunc'.
12241 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
12243         dup2, fcntl: port to AIX
12244         * m4/dup2.m4 (gl_FUNC_DUP2):
12245         * m4/fcntl.m4 (gl_FUNC_FCNTL):
12246         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
12247         The former works on AIX 7.1 but the latter does not.
12248         Also, this may work better with Android; see:
12249         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
12251 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
12253         getdtablesize, dup2, fcntl: port to Android
12254         Problem reported by Kevin Cernekee in:
12255         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
12256         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
12257         Mention that getdtablesize doesn't work on Android.
12258         * lib/getdtablesize.c: Use getrlimit substitute only if
12259         getdtablesize is declared.  This should suffice for Cygwin
12260         while not breaking Android.
12261         * m4/dup2.m4 (gl_FUNC_DUP2):
12262         * m4/fcntl.m4 (gl_FUNC_FCNTL):
12263         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
12264         standardized but the latter is not, and sysconf works on Android.
12265         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
12266         Also check that getdtablesize is declared.
12267         This removes the need for a special case for Android.
12269 2015-02-16  Kevin Cernekee  <cernekee@google.com>
12271         localename: Implement gl_locale_name_thread_unsafe for Android
12272         * lib/localename.c: Android API level >= 21 supports two hardcoded
12273         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
12274         the internal __locale_t struct.
12276 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
12278         fts: avoid crash when a cycle is added while traversing
12279         This could be triggered by auto-mounting a recursive bind mount.
12280         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
12281         * lib/fts.c (fts_read): Avoid removing the original hash table item
12282         when leaving a directory that caused a cycle, and preserve the FTS_DC
12283         flag.
12285 2015-02-16  Daiki Ueno  <ueno@gnu.org>
12287         uniname/uniname: support character alias
12288         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
12289         Generate one-way mapping from aliases to codepoints in the
12290         generated tables.  Special case variation selectors to reduce
12291         table size.
12292         * lib/uniname/uniname.c (unicode_character_name): Special case
12293         variation selectors.
12294         (unicode_name_character): Special case variation selectors and
12295         their aliases.
12296         * lib/uniname/uninames.h: Regenerate.
12297         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
12298         * modules/uniname/uniname-tests (Files): Add
12299         tests/uniname/NameAliases.txt.
12300         * tests/uniname/test-uninames.c: Mark as static.
12301         (ALIASLEN): Define.
12302         (struct unicode_alias): New struct.
12303         (unicode_aliases): New variable.
12304         (fill_aliases): New function.
12305         (test_alias_lookup): New test function.
12306         (main): Run the 'test_alias_lookup' test if the second argument is
12307         given.
12308         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
12309         second argument.
12311 2015-02-11  Kevin Cernekee  <cernekee@google.com>
12313         Fix FILE struct compatibility with Android API level >= 21
12314         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
12315         __sferror.  Recent versions of Bionic's stdio.h no longer define
12316         __sferror.
12317         * lib/fbufmode.c: Likewise.
12318         * lib/fflush.c: Likewise.
12319         * lib/fpurge.c: Likewise.
12320         * lib/freadable.c: Likewise.
12321         * lib/freadahead.c: Likewise.
12322         * lib/freading.c: Likewise.
12323         * lib/freadptr.c: Likewise.
12324         * lib/freadseek.c: Likewise.
12325         * lib/fseeko.c: Likewise.
12326         * lib/fseterr.c: Likewise.
12327         * lib/fwritable.c: Likewise.
12329         Assume unbroken ungetc() on Android
12330         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
12331         test case passed when running on an Android host, and the code
12332         hasn't really changed since 2009.
12334         getdtablesize: Fix Android build
12335         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
12336         versions have this symbol in the .so library (at least 32-bit
12337         platforms) but are missing the declaration in the header file,
12338         causing the m4 logic to guess incorrectly.
12340         localename: Fix Android build
12341         * modules/localename (Depends-on): Add langinfo.
12343         getugroups: Fix Android build
12344         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
12345         functions.
12347         euidaccess: Fix Android build
12348         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
12349         AT_EACCESS gets declared.
12351         linkat_nofollow: Add fallback case for cross compiling
12352         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
12354         net_if: Handle content-free <net/if.h> system headers
12355         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
12356         struct if_nameindex.  If not, enable the replacement header.
12358         signal_h: Fix Android build
12359         * lib/signal.in.h: Add Android to the list of platforms that declare
12360         pthread_sigmask() in <pthread.h> instead of <signal.h>.
12362         duplocale: Fix Android build of duplocale-tests
12363         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
12364         is included by test-duplocale.c (but not by duplocale.c).
12365         * modules/duplocale-tests (configure.ac): Check for monetary.h.
12366         * tests/test-duplocale.c: Skip test if monetary.h is absent.
12367         * doc/posix-headers/monetary.texi: Add Android to the list of
12368         platforms missing monetary.h.
12370 2015-02-11  Pádraig Brady  <P@draigBrady.com>
12372         tests: avoid recent -Werror=unused-variable regression in test-locale
12373         * tests/test-locale.c (main): Reference the variable to avoid the
12374         "unused variable" warning.
12376 2015-02-11  Pádraig Brady  <P@draigBrady.com>
12378         maint: various whitespace cleanups in tempname
12379         * lib/tempname.c: Normalize spacing and line length.
12380         * lib/tempname.h: Likewise.
12381         * modules/tempname: Likewise.
12383 2015-02-11  Pádraig Brady  <P@draigBrady.com>
12385         tests: provide returns_() to simplify exit status checking
12386         * tests/init.sh (returns_): A new function for use in tests,
12387         to allow for easier checking of return values, where you expect
12388         a command to exit with failure status.  By checking for a particular
12389         exit code, you don't hide any crashes for example.
12391 2015-02-11  Pádraig Brady  <P@draigBrady.com>
12393         mountlist: only use libmount when specified
12394         There are currently many shared libs dependencies introduced by
12395         libmount with associated runtime and virt mem overhead.
12396         Therefore don't enable by default.
12397         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
12399 2015-02-08  Daiki Ueno  <ueno@gnu.org>
12401         uniname/unimame-tests: don't link with -lunistring
12402         * modules/uniname/uniname-tests (Makefile.am): Don't link against
12403         $(LIBUNISTRING).  Document the rationale why we need to
12404         conditionalize the test.
12406 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
12408         fstrcmp: don't assume strlen < INT_MAX
12409         * lib/fstrcmp.c: Include stddef.h and stdint.h.
12410         (uintptr_t): Remove, as we're now assuming stdint.
12411         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
12412         Prefer ptrdiff_t to int when the value could exceed INT_MAX
12413         if the input string is long.
12414         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
12415         uintptr_t to size_t when the underlying value is a pointer casted
12416         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
12417         * modules/fstrcmp (Depends-on): Add stdint.
12419         diffseq: prefer ptrdiff_t to ssize_t
12420         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
12421         ptrdiff_t is the natural type for signed indexes.
12422         On a few older platforms, ssize_t is narrower than size_t.
12424         xalloc: fix typo that suppressed warnings
12425         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
12426         This typo, introduced a couple of years ago, mistakenly suppressed
12427         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
12428         -Wmissing-declarations warnings.
12430         full-read: fix license notice typo
12431         * lib/full-read.h: Remove a stray line in the license notice.
12432         Reported by Sam Ellis in: http://bugs.gnu.org/19808
12434         crypto/gc: fix a -Wswitch warning
12435         Reported by Bruce Korb in:
12436         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
12437         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
12439 2015-02-03  Pádraig Brady  <P@draigBrady.com>
12441         gnulib-tool: fix handling of patch(1) diagnostics
12442         * gnulib-tool: Send diagnostics from patch(1) to stderr,
12443         as otherwise gnulib-tool will reparse that output and attempt
12444         to lookup modules.
12446 2015-02-03  Pádraig Brady  <P@draigBrady.com>
12448         bootstrap: exit immediately upon gnulib-tool failure
12449         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
12450         This was noticed when gnulib-tool exited early due to failure
12451         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
12452         but various confusing errors were then given as the build proceeded.
12454 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
12456         symlinkat: include all required header files
12457         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
12458         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
12459         Reported at https://savannah.gnu.org/bugs/index.php?44151
12460         and by Jack Howarth.
12462 2015-01-29  Pádraig Brady  <P@draigBrady.com>
12464         localename: support Solaris 12 and illumos
12465         * lib/localename.c (gl_locale_name_thread_unsafe): call
12466         getlocalename_l() on newer __sun platforms.
12467         Reported by Alexander Pyhalov.
12468         Fix suggested by Rich Burridge.
12470 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
12472         locale: fix tests on illumos (trivial)
12473         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
12474         so move from global scope to main().
12476 2015-01-24  Daiki Ueno  <ueno@gnu.org>
12478         unictype: avoid undefined left-shift behavior
12479         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
12480         gcc's -fsanitize=shift and running its tests triggered:
12481           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
12482             places cannot be represented in type 'int'
12483         Cast LHS to 'unsigned int' after integer promotion.
12484         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
12485         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
12487 2015-01-20  Daiki Ueno  <ueno@gnu.org>
12489         libunistring: bump version of unitypes dependants
12490         Due to the header file search order, all the headers which depend
12491         on unitypes.h need to be generated, when the preinstalled
12492         libunistring is older.
12493         * modules/unicase/base (configure.ac): Bump minimum version to
12494         0.9.4.
12495         * modules/uniconv/base (configure.ac): Likewise.
12496         * modules/unilbrk/base (configure.ac): Likewise.
12497         * modules/uninorm/base (configure.ac): Likewise.
12498         * modules/unistdio/base (configure.ac): Likewise.
12499         * modules/unistr/base (configure.ac): Likewise.
12500         * modules/uniwbrk/base (configure.ac): Likewise.
12501         * modules/uniwidth/base (configure.ac): Likewise.
12503 2015-01-20  Daiki Ueno  <ueno@gnu.org>
12505         unictype/category-none: fix link with libunistring
12506         Since _UC_CATEGORY_NONE is not a public symbol, it will be
12507         prefixed with "libstring_" when compiled as part of libunistring.
12508         To avoid undefined symbol at link time, increase the minimum
12509         version when the dependant modules are updated.
12510         * modules/unictype/category-none (configure.ac): Bump minimum
12511         version to 0.9.5.
12513 2015-01-20  Daiki Ueno  <ueno@gnu.org>
12515         unitypes: fix build with installed libunistring
12516         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
12517         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
12518         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
12520 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
12522         time: port to MinGW32 3.21
12523         Problem reported by Eli Zaretskii in:
12524         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
12525         * lib/time.in.h:
12526         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
12527         * modules/time (Depends-on):
12528         Fall back on unistd.h if the other include files don't define
12529         struct timespec.
12531         update-copyright: apply to self
12532         * build-aux/update-copyright: Fix copyright date.  How ironic!
12534 2015-01-15  Daiki Ueno  <ueno@gnu.org>
12536         libunistring: update to Unicode 7.0.0
12537         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
12538         Manichaean names.
12539         * lib/unictype/joininggroup_name.h: Likewise.
12540         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
12541         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
12542         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
12543         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
12544         (fill_arabicshaping, joining_group_as_c_identifier): Support those
12545         enum values.
12546         (is_property_alphabetic): Accept newly added characters to
12547         cuneiform numeric signs.
12548         (is_property_default_ignorable_code_point): Reject U+0605.
12549         (FIELDLEN): Increase from 120 to 160.
12550         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
12551         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
12552         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
12553         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
12554         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
12555         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
12556         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
12557         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
12558         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
12559         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
12560         U+1E8D0..U+1E8D6.
12561         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
12562         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12563         lib/uniwidth/width.c.
12564         * all generated files under lib/uni* and tests/uni*: Regenerate.
12566 2015-01-14  Daiki Ueno  <ueno@gnu.org>
12568         libunistring: update to Unicode 6.3.0
12569         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
12570         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
12571         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
12572         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
12573         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
12574         Update WB5, WB9, WB10, WB13a, and WB13b.
12575         * tests/uniwbrk/test-uc-wordbreaks.c
12576         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
12577         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
12578         (UC_BIDI_PDI): New enumeration values.
12579         (bidi_category_byname): Support those enum values.
12580         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
12581         dedicated property assigned.
12582         (is_property_case_ignorable): Check 0x0027.
12583         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
12584         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
12585         (output_wbp): Support those enum values.
12586         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
12587         (UC_BIDI_PDI): New enumeration values.
12588         * lib/unictype/bidi_byname.gperf: Add those property names.
12589         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
12590         U+180E, U+1A1B, and U+2066..U+2069.
12591         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12592         lib/uniwidth/width.c.
12593         * all generated files under lib/uni* and tests/uni*: Regenerate.
12595 2015-01-14  Daiki Ueno  <ueno@gnu.org>
12597         libunistring: update to Unicode 6.2.0
12598         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
12599         (unilbrk_table): Adjust table size.
12600         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
12601         for LBP_RI.
12602         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
12603         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
12604         Normalize table index skipping ignored properties.
12605         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
12606         WBP_EXTEND and WBP_FORMAT, which are now computed without using
12607         the table.
12608         * lib/uniwbrk/wbrktable.h: Adjust table size.
12609         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
12610         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
12611         Support rule GB8a.
12612         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
12613         * tests/unigbrk/test-uc-is-grapheme-break.c
12614         (graphemebreakproperty_to_string): Support GBP_RI.
12615         * tests/uniwbrk/test-uc-wordbreaks.c
12616         (wordbreakproperty_to_string): Support WBP_RI.
12617         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
12618         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
12619         (output_lbp): Support LBP_RI.  Adjust some characters changed from
12620         LBP_AL to LBP_ID.
12621         (output_lbp): Support LBP_RI.
12622         (WBP_RI): New enumeration value.
12623         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
12624         (output_wbp): Support WBP_RI.
12625         (GBP_RI): New enumeration value.
12626         (output_gbp_test, fill_org_gbp): Support GBP_RI.
12627         * all generated files under lib/uni* and tests/uni*: Regenerate.
12629 2015-01-14  Daiki Ueno  <ueno@gnu.org>
12631         libunistring: update to Unicode 6.1.0
12632         * lib/gen-uni-tables.c (output_joining_group): Switch to
12633         3-level table to accommodate joining groups defined with higher
12634         codepoint value.  Since there are only 88 groups defined in
12635         Unicode 7.0.0, use 7-bit packed format for level3 entries.
12636         (get_lbp): Update for Unicode 6.1.0.
12637         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
12638         3-level table.
12639         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
12640         joining group name.
12641         * lib/unictype/joininggroup_name.h: Likewise.
12642         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
12643         (unilbrk_table): Adjust table size.
12644         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
12645         for LBP_HL.
12646         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
12647         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
12648         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
12649         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
12650         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
12651         U+302E..U+302F.
12652         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12653         lib/uniwidth/width.c.
12654         * all generated files under lib/uni* and tests/uni*: Regenerate.
12655         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
12657 2015-01-15  Daiki Ueno  <ueno@gnu.org>
12659         uniwbrk/u32-wordbreaks-tests: add conformance test
12660         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
12661         tests/uniwbrk/test-uc-wordbreaks.c,
12662         tests/uniwbrk/test-uc-wordbreaks.sh, and
12663         tests/uniwbrk/WordBreakTest.txt.
12664         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
12665         test-uc-wordbreaks to $(check_PROGRAMS), and define
12666         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
12667         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
12668         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
12670 2015-01-15  Daiki Ueno  <ueno@gnu.org>
12672         uniwbrk: ignore Extended/Format characters at BOL not BOS
12673         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
12674         characters if the previous character property is one of
12675         WBP_NEWLINE, WBP_CR, and WBP_LF.
12677 2015-01-11  Jim Meyering  <meyering@fb.com>
12679         test-strstr.c: avoid a trivial leak
12680         * tests/test-strstr.c (main): Free haystack.
12682         update-copyright: recognize groff's \(co marker
12683         * build-aux/update-copyright (circle_c_re): Also accept
12684         uses of \(co, as found in gzip.1.
12686 2015-01-08  Pádraig Brady  <P@draigBrady.com>
12688         maint.mk: fix compatibility with OS X nm
12689         * top/maint.mk (_gl_tight_scope): Use the -g option to
12690         show exported items rather than the -e option which is
12691         ignored on all platforms except OS X where it gives an error.
12692         Reported by Assaf Gordon.
12694 2015-01-07  KO Myung-Hun  <komh@chollian.net>
12696         localcharset: improve charset detection on OS/2
12697         Use system codepage when appropriate.  Map OS/2 codepages to
12698         GNU canonical charset names if possible.
12699         * lib/config.charset: Don't output aliases if "$os" is os2*.
12700         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
12701         result for OS/2.
12702         (locale_charset) [OS2]: Use system codepage if codeset is omitted
12703         from the locale name which is neither "C" nor "POSIX".
12705 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
12707         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
12708         This reverts the last patch but one, as it shouldn't be needed now
12709         that the typo is fixed.
12710         * lib/count-leading-zeros.h (count_leading_zeros_ll):
12711         * lib/count-trailing-zeros.h:
12712         * lib/count-one-bits.h:
12713         Go back to using 64-bit intrinsics.
12715         count-leading-zeros: fix pragma typos
12716         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
12717         Fix typos in declaration of intrinsics when _MSC_VER.
12719 2015-01-06  Pádraig Brady  <P@draigBrady.com>
12721         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
12722         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
12723         intrinsics in this case.
12724         * lib/count-trailing-zeros.h: Likewise.
12725         * lib/count-one-bits.h: Likewise.
12727 2015-01-06  Daiki Ueno  <ueno@gnu.org>
12729         uniname/uniname: update to Unicode 7.0.0
12730         To accommodate new characters added since Unicode 5.1.0, this
12731         changes the internal representation of codepoint ranges.
12732         Previously, we grouped codepoint ranges by manually assigned 4-bit
12733         tag, which only allowed 16 groups.  This removes the limitation by
12734         switching to binary search on a table.  For the detail rationale
12735         and the benchmark results, see:
12736         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
12737         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
12738         to INDEX, as it no longer represents a codepoint.
12739         (range): New struct.
12740         (main): Switch to intervals list from a bit-pattern based
12741         classification.
12742         * lib/uniname/uninames.h: Regenerate.
12743         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
12744         * modules/uniname/base (configure.ac): Bump minimum version to
12745         0.9.5.
12746         * modules/uniname/uniname (configure.ac): Bump minimum version to
12747         0.9.5.
12749 2015-01-05  Eric Blake  <eblake@redhat.com>
12751         doc: update INSTALL from autoconf
12752         * doc/install.texi: Resync from autoconf.
12753         * doc/INSTALL: Reflect recent autoconf update.
12754         * doc/INSTALL.ISO: Likewise.
12755         * doc/INSTALL.UTF-8: Likewise.
12757         stdio: fix use of PRIdMAX on modern mingw
12758         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
12759         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
12760         to work with modern mingw.
12762 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
12764         pthread: detect git mingw builds with only partial pollution
12765         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
12766         pollution, as seen temporarily in Fedora 21.
12768 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
12770         lib-symbol-versions: cache script check
12771         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
12772         Cache the check for linker version scripts.
12773         From a suggestion by Christophe Curis in:
12774         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
12776 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
12778         maint: fix grammar nits in propername (trivial change)
12779         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
12780         and use an adequate verb and tense.
12782 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
12784         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
12785         * module/gendocs: Add 'doc/gendocs_template_min'.
12787         * build-aux/gendocs.sh: Change email addresses and upstream URLs
12788         from to Gnulib's.
12789         (scripturl, templateurl): Adjust accordingly.
12791 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
12793         gendocs: copyright date and version fix
12794         Reported by Karl Berry in:
12795         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
12796         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
12797         Fix copyright date.
12798         * build-aux/gendocs.sh (scriptversion): Update.
12800 2015-01-01  Karl Berry  <karl@gnu.org>
12802         * doc/install.texi,
12803         * build-aux/mdate-sh,
12804         * build-aux/depcomp,
12805         * build-aux/config.guess,
12806         * build-aux/config.sub,
12807         * build-aux/ar-lib,
12808         * build-aux/compile: revert copyright updates (some from last
12809         year) in slaved files.
12811 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
12813         version-etc: new year
12814         * doc/gnulib.texi:
12815         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
12816         * all files: Run 'make update-copyright'.
12818 2014-12-30  Pádraig Brady  <P@draigBrady.com>
12820         xstrtol: ensure errno is reset
12821         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
12822         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
12824         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
12826 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
12828         utimens: fix dependency typo
12829         * modules/utimens (Depends-on): Remove 'assure'.
12830         This bug was introduced in the recent 'assure' patch.
12832 2014-12-22  Eric Blake  <eblake@redhat.com>
12834         docs: mention why libgen.h is bad
12835         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
12837 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
12839         assure: new module
12840         This works better than 'assert' when compiling with -DNDEBUG,
12841         as it avoids some compiler diagnostics in that case.
12842         Reported by Norihiro Tanaka in:
12843         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
12844         * MODULES.html.sh (func_all_modules): Add 'assure'.
12845         * lib/assure.h, modules/assure: New files.
12846         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
12847         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
12848         Prefer 'assure' to 'assert'.
12849         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
12850         * modules/chdir-long, modules/cycle-check, modules/fchdir:
12851         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
12852         Depend on 'assure'.
12854 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
12856         stdalign: port better to HP compilers
12857         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
12858         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
12860         stdalign: work around Apple GCC 4.0 bug
12861         Reported by David Fang in:
12862         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
12863         * lib/stdalign.in.h (_Alignas):
12864         * m4/stdalign.m4 (gl_STDALIGN_H):
12865         Do not use aligned attribute with GCC 4.0 on Apple.
12867 2014-12-16  Pádraig Brady  <P@draigBrady.com>
12869         getcwd: fix test failure on OS X 10.9
12870         * m4/getcwd-path-max.m4: Avoid the replacement if it
12871         won't be effective due to the PATH_MAX limitation of lstat().
12872         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
12873         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
12874         for this case for use in tests, and also exclude this
12875         case when setting REPLACE_GETCWD.
12876         * tests/test-getcwd.c (test_long_name): Restrict the
12877         tested path length so that lstat() will not be passed
12878         a path greater than PATH_MAX.
12879         Also key a test condition on HAVE_OPENAT_SUPPORT rather
12880         than AT_FDCWD, since the latter is set unconditionally
12881         since Sep 2009 in commit 52c658e9.
12883 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
12885         parse-datetime: avoid a compiler warning with byacc (trivial)
12886         * lib/parse-datetime.y (yylex): Use the same prototype in the
12887         function definition as the declaration, to avoid a -Wstrict-prototypes
12888         warning seen when using byacc.
12890 2014-12-12  Daiki Ueno  <ueno@gnu.org>
12892         unicase/locale-language-tests: fix LOCALE_FR test
12893         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
12894         a French locale with traditional encoding.
12895         Reported by umerqayam in:
12896         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
12898 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
12900         stddef: support C11's max_align_t
12901         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
12902         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
12903         Do not undef, as that might cause max_align_t to be defined twice.
12904         Instead, change use to check for _GL_STDDEF_WINT_T too.
12905         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
12906         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
12907         Check for max_align_t.
12908         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
12909         * modules/stddef-tests (Depends-on): Add stdalign.
12910         * tests/test-stddef.c: Test max_align_t.
12912 2014-12-11  Daiki Ueno  <ueno@gnu.org>
12914         unistd: fix iOS check conditional
12915         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
12916         as 0 or 1 in <TargetConditionals.h>, and the previous check always
12917         yielded true on non-iOS environment.
12918         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
12919         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
12920         they are defined.
12922 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
12924         posixtm: avoid compiler warning in a better way
12925         * lib/posixtm.c (IF_LINT): Remove.
12926         (year, posix_time_parse):
12927         Return true (not 0) if successful.  All callers changed.
12928         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
12930 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
12932         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
12933         started with '/' on EMX.
12935 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
12937         freopen: workaround freopen() on OS/2 kLIBC
12938         * lib/freopen.c (rpl_freopen): Workaround.
12939         * m4/freopen.m4: Add os2* case.
12941         get_shared_library_fullname: port to EMX
12942         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
12943         on EMX, respectively.
12944         (_DLL_InitTerm): New on EMX.
12945         (get_shared_library_fullname): Implement on EMX.
12947         find_executable: port to EMX
12948         * lib/progreloc.c (find_executable): Implement on EMX.
12950         sched: check struct sched_param in spawn.h as well
12951         * lib/sched.in.h: Include spawn.h on kLIBC.
12952         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
12954 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
12956         bootstrap: Allow perl modules in $buildreq
12957         * build-aux/bootstrap: Add case for perl modules.
12959 2014-12-08  Pádraig Brady  <P@draigBrady.com>
12961         apply _GL_ATTRIBUTE_PURE to some inline functions
12962         clang 3.4.2 flagged these inline functions as pure
12963         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
12964         * lib/sig-handler.h (get_handler): Likewise.
12965         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
12966         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
12968 2014-12-06  Pádraig Brady  <P@draigBrady.com>
12970         vasnprintf: fix potential use after free
12971         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
12972         flagged by clang-analyzer 3.4.2.
12974 2014-12-05  Pádraig Brady  <P@draigBrady.com>
12976         filevercmp, posixtm: avoid compiler warnings with -O3
12977         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
12978         * lib/posixtm.c: (IF_LINT): Define.
12979         (posix_time_parse): Use it to void a "may be used uninitialized"
12980         warning, seen only with -O3.
12982 2014-12-05  Bruno Haible  <bruno@clisp.org>
12984         Fix LDBL80_WORDS macro on big endian platforms.
12985         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
12986         LDBL80_WORDS macro.
12987         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
12988         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
12989         * tests/test-isfinite.c (test_isfinitel): Likewise.
12990         * tests/test-isinf.c (test_isinfl): Likewise.
12991         * tests/test-isnan.c (test_long_double): Likewise.
12992         * tests/test-isnanl.h (main): Likewise.
12993         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
12994         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
12995         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
12996         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
12997         Reported by Pádraig Brady.
12999 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
13001         git-version-gen: do not print new line characters
13002         * build-aux/git-version-gen: Use printf instead of echo and tr.
13004         gnulib-tool: recognize x:* as an absolute path
13005         * gnulib-tool (func_gnulib_dir): Add ?:* case.
13006         (func_relconcat): Likewise.
13008 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
13010         argp: avoid extraneous translation and mem leak with empty pre doc
13011         * lib/argp-help.c (argp_doc): Never translate the empty string,
13012         when "\v" is the first or last character of the string, as that
13013         has a reserved meaning to return the header info from a po file.
13014         This also fixes a small memory leak in the !post case.
13015         The issue can be seen with this command for example:
13016         LC_MESSAGES=en_US grub2-mknetdir --help
13018 2014-11-27  Daiki Ueno  <ueno@gnu.org>
13020         uniname/uniname-tests: skip if system's libunistring is used
13021         * modules/uniname/uniname-tests (Makefile.am): Skip test if
13022         uniname/uniname module is not compiled.
13024 2014-11-27  Pádraig Brady  <P@draigBrady.com>
13026         printf: fix configure check on big endian systems
13027         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
13029 2014-11-22  Daiki Ueno  <ueno@gnu.org>
13031         pipe-filter-gi, pipe-filter-ii: port to AIX
13032         On AIX 7.1, 'select' is defined as static and cannot be referred
13033         to from inline function.
13034         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
13035         the definition...
13036         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
13037         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
13039 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
13041         gitlog-to-changelog: add --until
13042         * build-aux/gitlog-to-changelog: Support new --until option.
13043         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
13045 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
13047         extern-inline: update commentary about GCC bugs
13048         * m4/extern-inline.m4: Add another GCC bug number to comments.
13050 2014-11-13  Daiki Ueno  <ueno@gnu.org>
13052         gen-uni-tables: untabify
13053         * lib/gen-uni-tables.c: Untabify.
13055 2014-11-13  Daiki Ueno  <ueno@gnu.org>
13057         gen-uni-tables: check out-of-range values added to 3-level tables
13058         * lib/gen-uni-tables.c (output_category, output_bidi_category)
13059         (output_joining_type, output_ident_category): Check out-of-range
13060         values added to 3-level tables.
13062 2014-11-13  Daiki Ueno  <ueno@gnu.org>
13064         gen-uni-tables: utilize 'assert'
13065         * lib/gen-uni-tables.c: Include <assert.h>.
13066         (output_category, output_combclass, output_decimal_digit_test)
13067         (output_decimal_digit, output_digit_test, output_digit)
13068         (output_numeric, get_mirror_value, fill_properties)
13069         (fill_property30, is_property_alphabetic)
13070         (is_property_default_ignorable_code_point)
13071         (is_property_uppercase, is_property_lowercase)
13072         (is_property_cased, is_property_case_ignorable)
13073         (is_property_changes_when_lowercased, is_property_iso_control)
13074         (is_property_math, fill_arabicshaping, output_joining_group)
13075         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
13076         (output_wbp, fill_org_gbp, get_decomposition)
13077         (output_decomposition, fill_composition_exclusions)
13078         (debug_output_composition_tables, output_composition_tables)
13079         (redistribute_casefolding_rules, output_casing_rules): Use
13080         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
13081         reporting.
13083 2014-11-13  Daiki Ueno  <ueno@gnu.org>
13085         gen-uni-tables: cosmetic improvements
13086         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
13087         variables specification.
13088         (is_outdigit): Remove unused function.
13090 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
13092         fcntl-h-tests: port to PA-RISC GNU/Linux
13093         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
13095 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
13097         fts: port to C89
13098         Problem reported for MSVC 16 by Gisle Vanem in:
13099         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
13100         * lib/fts.c (fts_build): Avoid declaration before statement.
13102 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
13104         unistd: port to iOS
13105         Problem reported by André Klitzing in:
13106         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
13107         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
13109 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
13111         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
13112         Problem reported by Alan Modra in:
13113         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
13114         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
13115         Always cast the function arg, reverting this part of the previous
13116         change.
13118 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
13120         obstack: avoid potentially-nonportable function casts
13121         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
13122         Remove, replacing with ...
13123         (call_chunkfun, call_freefun): New static functions.
13124         All uses changed.  Avoid potentially-nonportable casts.
13125         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
13126         (_obstack_begin_worker): Omit last two args, since they
13127         rely on potentially-nonportable casts.  All callers changed.
13128         * lib/obstack.h (_OBSTACK_CAST): New macro.
13129         Use it everywhere the old API used a potentially-nonportable cast.
13130         The new API doesn't cast.
13131         (struct obstack): Use unions rather than requiring
13132         potentially-nonportable casts.
13133         (obstack_chunkfun, obstack_freefun): Return void.
13135 2014-11-03  Alan Modra  <amodra@gmail.com>
13137         obstack: fix macro return values
13138         * lib/obstack.h (obstack_next_free): Return void *.
13139         (obstack_1grow_fast, obstack_blank_fast): Return void.
13140         For __GNUC__ macros:
13141         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
13142         For !__GNUC__ macros:
13143         (obstack_make_room, obstack_grow, obstack_grow0)
13144         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
13146 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
13148         obstack: do not assume system-supplied obstack is size_t safe
13149         * m4/obstack.m4: New file.
13150         * modules/obstack (Files): Add it.
13152         obstack: port to platforms that #define __alignof__
13153         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
13154         not if !_LIBC.  We don't know of any platforms that #define
13155         __alignof__, but it might be useful in tests.  Conversely,
13156         glibc assumes GCC.
13158 2014-11-03  Pádraig Brady  <P@draigBrady.com>
13160         linkat: don't unconditionally replace on GNU/Linux
13161         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
13162         was redundant for a few reasons.  It was present to support compiling
13163         on new systems but running on the old narrow window of Linux 2.6.1[67].
13164         It setup and cleaned up test files which weren't actually used.
13165         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
13166         implicit in the following check.
13168 2014-11-03  Pádraig Brady  <P@draigBrady.com>
13170         linkat: wrap to handle symlinks on OS X 10.10
13171         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
13172         but not usable because it doesn't support creating hardlinks
13173         to symlinks.  Therefore add a generic test for this capability
13174         and fallback to our emulation if linkat() fails with ENOTSUP.
13176 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
13178         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
13179         * doc/posix-functions/open.texi (open):
13180         * doc/posix-functions/openat.texi (openat):
13181         Document that these functions do not set errno to ELOOP when
13182         a symlink is opened with O_NOFOLLOW.
13184 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
13186         obstack: add NEWS entry for recent incompatible changes
13187         * NEWS: Describe recent changes.
13189 2014-10-30  Pádraig Brady  <P@draigBrady.com>
13191         mountlist: don't use libmount to decide on dummy/remote
13192         * lib/mountlist.c (read_file_system_list): Don't use the libmount
13193         routines to determine whether a file system is dummy or remote,
13194         as they're not currently compatible.  For example the remoteness
13195         is determined on file system type (for which the list seems incomplete),
13196         rather than simply checking for a ':' in the device name.
13197         Also libmount currently determines that 'tmpfs' is a dummy file system
13198         even though it has associated storage.
13200 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
13202         obstack: prefer __alignof__ to alignof
13203         This is for portability to pre-4.7 GCC when compiling glibc.
13204         See Joseph S. Myers in:
13205         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
13206         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
13207         New macro, defined by including and using <alignof.h>.
13208         (MAX): New macro.
13209         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
13210         Do not use enums as they are not portable to some broken compilers.
13211         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
13213         obstack: prefer alignof to calculating alignments by hand
13214         * lib/obstack.c: Include <stdalign.h>.
13215         (struct fooalign): Remove.
13216         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
13217         * modules/obstack (Depends-on): Add stdalign.
13219 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
13221         obstack: use size_t alignments and check for overflow
13222         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
13223         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
13224         * lib/obstack.h (struct obstack.alignment_mask):
13225         Use _OBSTACK_SIZE_T, not int, for alignments.
13226         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
13227         overflows, e.g., when adding the alignment.
13229 2014-10-29  Alan Modra  <amodra@gmail.com>
13231         obstack: 64-bit obstack support, part 3
13232         This finally enables full 64-bit obstack support.  The glibc
13233         shared library specific code is removed from obstack.c too, and
13234         the error handling code conditionally compiled under control of
13235         another macro, _OBSTACK_NO_ERROR_HANDLER.
13236         * lib/obstack.h: Include string.h earlier.
13237         (_OBSTACK_INTERFACE_VERSION): Define.
13238         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
13239         * lib/obstack.c: Don't include shlib-compat.h.
13240         (OBSTACK_INTERFACE_VERSION): Delete.
13241         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
13242         glibc code is compatible with version 2.  Don't include stdio.h for
13243         __GNU_LIBRARY.
13244         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
13245         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
13246         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
13247         glibc shared library specific source.
13249         obstack: 64-bit obstack support, part 2
13250         This gets us 4G obstack support, without changing ABI
13251         compatibility, apart from possibly introducing some
13252         signed/unsigned comparison warnings in code that uses obstack.h.
13253         a) Replace "int" size parameters, return values, and macro local vars
13254            with _OBSTACK_SIZE_T, an "unsigned int" for now.
13255         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
13256         c) Make all obstack macros checking available room use obstack_room.
13257            "next_free + desired > chunk_limit" may wrap the lhs for chunks
13258            allocated near the top of memory.
13259         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
13260         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
13261         in place of "int" size parameters, return values and local vars.
13262         (_CHUNK_SIZE_T): Define.
13263         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
13264         union use an _OBSTACK_SIZE_T integer type.
13265         For __GNUC__ versions of the following macros...
13266         (obstack_room): Rename local var.
13267         (obstack_make_room): Use obstack_room.
13268         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
13269         obstack_int_grow, obstack_blank): Likewise.
13270         (obstack_finish): Use unsigned comparison when comparing aligned
13271         next_free against chunk_limit.
13272         (obstack_free): Cast OBJ to remove possible const qualifier.
13273         For !__GNUC__ versions of the following macros...
13274         (obstack_make_room): Use obstack_room.
13275         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
13276         obstack_int_grow, obstack_blank): Likewise.
13277         (obstack_finish): Use unsigned comparision when comparing aligned
13278         next_free against chunk_limit.
13279         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
13280         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
13281         _OBSTACK_SIZE_T.
13282         (_obstack_begin, _obstack_begin_1): Likewise.
13283         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
13284         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
13286         obstack: 64-bit obstack support, part 1
13287         a) Correct calls to alloc function, to use a size_t arg.  "long" is
13288            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
13289            and "size_t" 64 bits.
13290         b) Consolidate _obstack_begin and _obstack_begin1 code.
13291         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
13292         use "size_t" rather than "long".
13293         (_obstack_begin, _obstack_begin1): Likewise.
13294         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
13295         obstack_chunkfun): Update alloc function casts.
13296         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
13297         (chunkfun_type, freefun_type): New typdefs.
13298         (_obstack_begin_worker): Split out from ..
13299         (_obstack_begin, _obstack_begin_1): ..here.
13301         obstack: tidy part 2
13302         a) Don't be concerned about "not polluting the namespace with stddef.h
13303            symbols" in obstack.h, since gnulib string.h includes stddef.h
13304            anyway, and it seems unlikely that anyone would care.
13305         b) Don't roll our own slow memcpy in _obstack_newchunk.
13306         c) Rename obstack_free to _obstack_free.  This makes the naming
13307            consistent with other obstack functions and obviates the need for
13308            __obstack_free.  Ancient obstack.c defined both obstack_free and
13309            _obstack_free.  We continue to do that for _LIBC via an alias.
13310         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
13311            is clever, but nowadays gcc warns on undefined macros.  You'll get
13312            an undefined macro warning if simulating an old gcc with -U__GNUC__
13313            -U__GNUC_MINOR__ -D__GNUC__=1.
13314         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
13315         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
13316         (__obstack_free): Delete, update refs.
13317         (_obstack_free): Rename from obstack_free.
13318         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
13319         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
13320         * lib/obstack.c: Don't include stddef.h.
13321         (COPYING_UNIT): Delete.
13322         (_obstack_begin): Formatting fix.
13323         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
13324         (_obstack_free): Rename from __obstack_free, update alias.  Move
13325         undef of obstack_free to where it is needed.
13327         obstack: tidy part 1
13328         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
13329            to me, and result in overlong lines after later patches.
13330         b) Move error handling code, to avoid a forward declaration and to
13331            simplify later patches in this series.
13332         * lib/obstack.h (struct obstack <temp>): Rename fields of union
13333         and update all uses.
13334         * lib/obstack.c: Include stdlib.h earlier.
13335         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
13336         in file.
13337         (print_and_abort): Remove now redundant forward declaration.
13339 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
13341         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
13342         Without this change, in bleeding-edge fileutils Autoconf complains
13343         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
13344         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
13345         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
13346         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
13348 2014-10-24  Daiki Ueno  <ueno@gnu.org>
13350         iconv: avoid false detection of non-working iconv
13351         The INBUF arguments of iconv can be either 'const char **'
13352         or 'char **'.  If CC is g++, the difference causes a compile error
13353         and thus leads to a false detection of non-working iconv.
13354         Reported by Eli Zaretskii and Werner LEMBERG in:
13355         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
13356         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
13357         iconv.  Bump serial number.
13359 2014-10-23  Pádraig Brady  <P@draigBrady.com>
13361         bootstrap: print more diagnostics for missing programs
13362         * build-aux/bootstrap: only suppress stderr when checking for
13363         alternative program names.  This supports programs issuing non
13364         standard error messages.
13366 2014-10-23  Pádraig Brady  <P@draigBrady.com>
13368         bootstrap: only update the gnulib submodule
13369         * build-aux/bootstrap: Restrict the "submodule update" command
13370         to the gnulib path.
13372 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
13374         symlinkat: port to AIX 7.1
13375         * doc/posix-functions/symlinkat.texi (symlinkat):
13376         Mention AIX porting problem.
13377         * lib/symlinkat.c: Always include errno.h.
13378         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
13379         * lib/unistd.in.h (symlinkat): Add replacement machinery.
13380         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
13381         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
13382         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
13383         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
13384         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
13386         readlinkat: port to AIX 7.1
13387         * doc/posix-functions/readlink.texi (readlink):
13388         * doc/posix-functions/readlinkat.texi (readlinkat):
13389         Mention AIX porting problem.
13390         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
13391         New function.
13392         * lib/unistd.in.h (readlinkat): Add replacement machinery.
13393         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
13394         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
13395         * modules/readlinkat (configure.ac): Also compile replacement
13396         if REPLACE_READLINKAT.
13397         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
13399 2014-10-12  Karl Berry  <karl@gnu.org>
13401         * doc/posix-functions/dirname.texi: remove spurious {.
13403 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
13405         basename, dirname: Improve documentation.
13406         * doc/posix-functions/basename.texi: Mention dirname module and
13407         base_name() function.
13408         * doc/posix-functions/dirname.texi: Mention dir_name() and
13409         mdir_name() functions.
13410         Suggested by Werner LEMBERG <wl@gnu.org>.
13412 2014-09-24  Jim Meyering  <meyering@fb.com>
13414         exclude: declare exclude_patopts static
13415         * lib/exclude.c (exclude_patopts): Declare static,
13416         to avoid triggering a -Wmissing-prototypes warning.
13417         The alternative (declaring it in the .h file) would
13418         require publicizing the private "struct patopts".
13420 2014-09-21  Werner Lemberg  <wl@gnu.org>
13422         dirname: support compilation with C++
13423         * lib/dirname.h: Add necessary C linkage declarations.
13425 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
13427         qsort_r: include <config.h>
13428         Problem reported by Tom G. Christensen in:
13429         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
13430         * lib/qsort.c [!_LIBC]: Include <config.h> first.
13432 2014-09-16  Dylan Cali  <calid1984@gmail.com>
13434         avltree-list: avoid compiler warnings (trivial)
13435         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
13436         -Werror=suggest-attribute=pure.
13437         * lib/gl_array_list.c: Likewise.
13438         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
13439         declaration to avoid -Werror=missing-prototypes.  This is not added
13440         to a header as only exported for tests.  Add (void) to the
13441         check_invariants() call to indicate we're discarding the result
13442         in this context which avoids -Werror=unused-value.  Note we don't
13443         use ignore_value here to avoid a dependency as we know we'll not
13444         be adding __attribute__((warn_unused_result)) to check_invariants().
13445         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
13447 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
13449         qsort_r: new module, for GNU-style qsort_r
13450         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
13452 2014-09-15  Werner LEMBERG  <wl@gnu.org>
13454         strerror_r-posix: support compilation with C++
13455         * lib/strerror_r.c: Add necessary C linkage declarations.
13457 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
13459         fcntl-h: fix compilation with Intel C++ compiler (trivial)
13460         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
13462 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
13464         mountlist: use /proc/self/mountinfo when available
13465         Use libmount to propagate device IDs provided by Linux in
13466         /proc/self/mountinfo.  This will give more accurate output when
13467         using df in chroot'ed environments as the device IDs are not
13468         determined by stat() which may be inaccurate within the chroot.
13469         * lib/mountlist.c (read_file_system_list): Use the libmount routines
13470         from util-linux to parse "/proc/self/mountinfo" or fall back to
13471         standard getmntent() processing.
13472         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
13473         getmntent() is used, as is the case on GNU/Linux.
13475 2014-09-07  Eric Wong  <normalperson@yhbt.net>
13477         users.txt: add cmogstored
13478         cmogstored has used gnulib since the beginning in 2012 to support
13479         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
13481 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
13483         Trivial change.
13484         * gnulib-tool: Use same options as build-aux/bootstrap to download
13485         PO files.
13487 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
13489         Trivial change.
13490         * gnulib-tool: Fallback to wget when rsync of PO files fails.
13492 2014-09-04  Eric Blake  <eblake@redhat.com>
13494         maintainer-makefile: add syntax check for useless ';;'
13495         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
13497 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
13499         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
13500         Problem reported by Assaf Gordon in:
13501         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
13502         Apparently Ubuntu is doing some fancy link-time optimization
13503         that doesn't work with -lpthread but does work with -pthread.
13504         Work around the bug by preferring -pthread to -lpthread.
13505         * m4/pthread.m4 (gl_PTHREAD_CHECK):
13506         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
13507         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
13508         Treat -pthread like -lpthread.
13510 2014-09-04  Eric Blake  <eblake@redhat.com>
13512         error: drop spurious semicolon
13513         * lib/error.c (__error_at_line): Fix ';;'.
13515 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
13517         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
13518         * m4/gnulib-common.m4 (AC_C_RESTRICT):
13519         Override AC_C_RESTRICT unconditionally.
13520         Update from autoconf, incorporating:
13521         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
13522         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
13524 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
13526         manywarnings: add GCC 4.9 warnings
13527         Also, make it easier to maintain this in the future.
13528         * build-aux/gcc-warning.spec: Add -Wabi-tag,
13529         -Wconditionally-supported, -Wdelete-incomplete,
13530         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
13531         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
13532         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
13533         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
13534         only for older GCC versions that need them.  Handle
13535         -Wnormalized=nfc specially, so that the 'comm' command used
13536         for maintenance doesn't get confused.
13538 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
13540         vasnprintf: fix bugs in width computation
13541         * lib/vasnprintf.c (VASNPRINTF):
13542         Rework previous change, which introduced a bug,
13543         to avoid the warning in a different way.
13544         Avoid undefined behavior if the width arg is less than -INT_MAX.
13545         Avoid unnecessary use of HAS_WIDTH local.
13547 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
13549         vasnprintf: Avoid signed/unsigned comparison warning.
13550         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
13551         compare end addr of generated string w/ maximum end addr.
13553 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
13555         parse-datetime: Avoid pointer difference.
13556         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
13557         instead of calculating difference of pointers.  This removes an
13558         annoying warning, devoid of any use.
13560 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
13562         qsort_r: new module, for GNU-style qsort_r
13563         This works even on FreeBSD, which has an incompatible qsort_r API.
13564         * MODULES.html.sh: Add it.
13565         * doc/glibc-functions/qsort_r.texi: It's now supported.
13566         * lib/qsort.c: New file, taken from glibc with minor changes
13567         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
13568         removed.
13569         * lib/qsort_r.c: New file, compiled only on FreeBSD.
13570         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
13571         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
13572         * modules/qsort_r, modules/qsort_r-tests: New files.
13573         * modules/stdlib (Makefile): Set up its defaults.
13574         * tests/test-qsort_r.c: New file.
13576 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
13578         vla: new module
13579         GNU RCS can use this, mostly for documentation I expect.  See:
13580         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
13581         * MODULES.html.sh: Add vla.
13582         * lib/vla.h, modules/vla: New files.
13584 2014-08-07  Daiki Ueno  <ueno@gnu.org>
13586         localename: make gl_locale_name_thread really thread-safe on Windows
13587         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
13588         "glthread/lock.h".
13589         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
13590         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
13592 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
13594         getpass: don't assume struct termios
13595         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
13596         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
13597         * lib/getpass.c (getpass): Port to systems lacking struct termios.
13599         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
13600         Problem reported by Jonas 'Sortie' Termansen in:
13601         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
13602         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
13603         Implement via sysconf for platforms that lack getdtablesize.
13605         vararrays: modernize AC_C_VARARRAYS for C11
13606         This backports a change I recently made to Autoconf.
13607         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
13608         VLAs are not supported, as this is what C11 does.  The old macro
13609         HAVE_C_VARARRAYS is still defined if they are supported, but is
13610         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
13612 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
13614         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
13615         * build-aux/install-reloc (func_create_wrapper): Also wrap
13616         strerror-override, stat, stat.
13618 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
13620         sys_select: fix FD_ZERO problem on Solaris 10
13621         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
13622         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
13623         to expand to an expression that invoked memset without necessarily
13624         including <string.h>.  The problem was that the first include
13625         defined _SYS_TIME_H, causing the second include to short-circuit.
13626         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
13627         Also, fix what appears to be a cut-and-paste typo, by replacing
13628         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
13629         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
13631         accept: document Solaris 10 type glitch
13632         * doc/posix-functions/accept.texi (accept): Mention that
13633         Solaris 10 'accept' takes void * last arg, not socklen_t *.
13635 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
13637         extern-inline: port to FreeBSD, DragonFly
13638         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
13639         is present if either __DragonFly__ or __FreeBSD__ is defined.
13640         FreeBSD problem reported by Andrey Borzenkov in:
13641         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
13642         Also, worry about __APPLE__ only if __MACH__ is also defined,
13643         as this is more consistent with the rest of gnulib.
13644         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
13645         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
13647 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
13649         regex: Make #if/#ifdef usage consistent for DEBUG
13650         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
13651         of the inconsistent usage of #if and #ifdef as that works with
13652         both Glibc and Gnulib's style.
13654 2014-07-31  Eric Blake  <eblake@redhat.com>
13656         openat-die: use _Noreturn markup
13657         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
13658         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
13659         _Noreturn.
13661 2014-07-30  Eric Blake  <eblake@redhat.com>
13663         test-open: port to cygwin, which lacks Fortify
13664         * tests/test-open.h (ALWAYS_INLINE): New macro.
13665         (__always_inline): Don't abuse internal symbol on non-glibc.
13667 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
13669         localename: Enforce declarations before statements.
13670         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
13671         first statement.
13673 2014-07-18  Jim Meyering  <meyering@fb.com>
13675         test-userspec: don't look up numeric user names
13676         * tests/test-userspec.c: I found a system for which getpwnam("0")
13677         returned a pointer to a non-root user's entry, and that made the
13678         test fail.
13679         (T): Prefix each numeric input with "+", to inhibit lookup.
13681 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
13683         localcharset, localename: MS-Windows support for non-default locales
13684         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
13685         falling back on the default system codepage, try extracting
13686         the codepage from what 'setlocale' returns.  This allows to
13687         take into account changes of the codeset due to non-default
13688         locale set by a previous call to 'setlocale'.
13689         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
13690         Define if not already defined.
13691         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
13692         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
13693         current locale by calling 'setlocale', then converting the
13694         locale name into LCID by calling 'get_lcid'.  This allows to
13695         take into account changes in the current locale from the
13696         default one, in contrast to GetThreadLocale.
13698 2014-07-14  Daiki Ueno  <ueno@gnu.org>
13700         announce-gen: avoid failure when Digest::SHA is installed
13701         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
13702         Digest::SHA1->new in print_checksums fails.
13703         * build-aux/announce-gen (digest_classes): New associative array
13704         for available message digest implementations.
13705         (print_locations): Use it.
13707 2014-07-13  Pádraig Brady  <P@draigBrady.com>
13709         gettext: revert "update macros to version 0.19"
13710         This reverts commit 9b9370ca, as it currently requires that
13711         developers of any project that explicitly uses the gettext module
13712         or implicitly uses it through the utimens-tests or
13713         futimens-tests modules, use gettext >= 0.19.
13714         However there are some stability and availablity issues with
13715         that version at present.  We can reinstate this soon, when stability
13716         is addressed and packages are more readily available.
13718 2014-07-12  Jim Meyering  <meyering@fb.com>
13720         regex: don't deref NULL upon heap allocation failure
13721         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
13722         failure in one more place.
13723         To trigger the segfault, configure grep -with-included-regex,
13724         build it, and run these commands:
13725         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
13726         I discovered this while replying to a private report from
13727         Jens Schleusener about excessive memory consumption by grep
13728         when using a regular expression like the one above.
13730 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
13732         regex: fix memory leak in compiler
13733         Fix by Andreas Schwab in:
13734         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
13735         * lib/regcomp.c (parse_reg_exp): Deallocate partially
13736         constructed tree before returning error.
13738 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
13740         announce-gen: avoid perl warnings
13741         * build-aux/announce-gen: add two minor checks to avoid
13742         "use of uninitialized value" warnings when command-line parameters are
13743         missing.
13745 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
13747         localename: avoid -Wsuggest-attribute={const,pure} warnings
13748         * lib/localename.c (string_has): Tag internal function as pure.
13749         * lib/localename.h (gl_locale_name_default): Tag extern declaration
13750         as const when appropriate.
13752 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
13754         nl_langinfo: Fix last change.
13755         * lib/nl_langinfo.c (includes): Drop redundant include.
13757 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
13759         error: Fix -Wundef warnings in glibc
13760         * lib/error.c [_LIBC]: Define default macros for
13761         glibc.
13762         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
13763         Check _LIBC before STRERROR_R_CHAR_P.
13765         error: Sync from glibc master
13766         * lib/error.c [_LIBC]: Remove INTUSE usage.
13767         (error_tail): Remove unused macro ALLOCA_LIMIT.
13768         Fix potential buffer overflow.  Fix potential NULL dereference
13769         in strcmp.
13771 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
13773         nl_langinfo: fix build under mingw
13774         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
13776 2014-07-09  Andrew D Warshall  <warshall@99main.com>
13778         mountlist: do not classify a bind-mounted dir entry as "dummy"
13779         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
13780         1-argument getmntent() (instead of assuming absence).
13782 2014-07-08  Eric Blake  <eblake@redhat.com>
13784         maint.mk: less syntax-check noise when SIGPIPE is ignored
13785         * top/maint.mk (_sc_header_without_use)
13786         (sc_require_config_h_first): Parse full list.
13788 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
13789             Paul Eggert  <eggert@cs.ucla.edu>
13791         nl_langinfo: CODESET on MS-Windows and more items from localeconv
13792         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
13793         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
13794         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
13795         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
13796         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
13797         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
13798         Include <stdio.h> if Microsoft Windows.
13799         Include <time.h> if !REPLACE_NL_LANGINFO.
13800         (ctype_codeset): New function, taken from rpl_nl_langinfo,
13801         and with improvements for Microsoft Windows.
13802         (rpl_nl_langinfo): Use it.
13803         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
13804         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
13805         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
13806         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
13807         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
13808         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
13809         corresponding values returned by 'localeconv'.  Compute the values
13810         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
13811         'strftime' with a suitable struct tm value.
13813 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
13815         Bruno Haible has stepped down as maintainer.
13816         See Karl Berry in:
13817         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
13818         Daiki Ueno has volunteered to maintain libunistring; see:
13819         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
13820         * modules/gen-uni-tables, modules/libunistring:
13821         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
13822         * modules/unicase/base, modules/unicase/cased:
13823         * modules/unicase/empty-prefix-context:
13824         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
13825         * modules/unicase/locale-language, modules/unicase/special-casing:
13826         * modules/unicase/tocasefold, modules/unicase/tolower:
13827         * modules/unicase/totitle, modules/unicase/toupper:
13828         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
13829         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
13830         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
13831         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
13832         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
13833         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
13834         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
13835         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
13836         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
13837         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
13838         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
13839         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
13840         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
13841         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
13842         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
13843         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
13844         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
13845         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
13846         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
13847         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
13848         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
13849         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
13850         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
13851         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
13852         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
13853         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
13854         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
13855         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
13856         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
13857         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
13858         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
13859         * modules/unicase/ulc-casexfrm, modules/unicodeio:
13860         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
13861         * modules/uniconv/u16-conv-to-enc:
13862         * modules/uniconv/u16-strconv-from-enc:
13863         * modules/uniconv/u16-strconv-from-locale:
13864         * modules/uniconv/u16-strconv-to-enc:
13865         * modules/uniconv/u16-strconv-to-locale:
13866         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
13867         * modules/uniconv/u32-strconv-from-enc:
13868         * modules/uniconv/u32-strconv-from-locale:
13869         * modules/uniconv/u32-strconv-to-enc:
13870         * modules/uniconv/u32-strconv-to-locale:
13871         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
13872         * modules/uniconv/u8-strconv-from-enc:
13873         * modules/uniconv/u8-strconv-from-locale:
13874         * modules/uniconv/u8-strconv-to-enc:
13875         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
13876         * modules/unictype/bidicategory-all:
13877         * modules/unictype/bidicategory-byname:
13878         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
13879         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
13880         * modules/unictype/bidiclass-byname:
13881         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
13882         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
13883         * modules/unictype/block-all, modules/unictype/block-list:
13884         * modules/unictype/block-of, modules/unictype/block-test:
13885         * modules/unictype/category-C, modules/unictype/category-Cc:
13886         * modules/unictype/category-Cf, modules/unictype/category-Cn:
13887         * modules/unictype/category-Co, modules/unictype/category-Cs:
13888         * modules/unictype/category-L, modules/unictype/category-LC:
13889         * modules/unictype/category-Ll, modules/unictype/category-Lm:
13890         * modules/unictype/category-Lo, modules/unictype/category-Lt:
13891         * modules/unictype/category-Lu, modules/unictype/category-M:
13892         * modules/unictype/category-Mc, modules/unictype/category-Me:
13893         * modules/unictype/category-Mn, modules/unictype/category-N:
13894         * modules/unictype/category-Nd, modules/unictype/category-Nl:
13895         * modules/unictype/category-No, modules/unictype/category-P:
13896         * modules/unictype/category-Pc, modules/unictype/category-Pd:
13897         * modules/unictype/category-Pe, modules/unictype/category-Pf:
13898         * modules/unictype/category-Pi, modules/unictype/category-Po:
13899         * modules/unictype/category-Ps, modules/unictype/category-S:
13900         * modules/unictype/category-Sc, modules/unictype/category-Sk:
13901         * modules/unictype/category-Sm, modules/unictype/category-So:
13902         * modules/unictype/category-Z, modules/unictype/category-Zl:
13903         * modules/unictype/category-Zp, modules/unictype/category-Zs:
13904         * modules/unictype/category-all, modules/unictype/category-and:
13905         * modules/unictype/category-and-not, modules/unictype/category-byname:
13906         * modules/unictype/category-longname, modules/unictype/category-name:
13907         * modules/unictype/category-none, modules/unictype/category-of:
13908         * modules/unictype/category-or, modules/unictype/category-test:
13909         * modules/unictype/category-test-withtable:
13910         * modules/unictype/combining-class:
13911         * modules/unictype/combining-class-all:
13912         * modules/unictype/combining-class-byname:
13913         * modules/unictype/combining-class-longname:
13914         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
13915         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
13916         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
13917         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
13918         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
13919         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
13920         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
13921         * modules/unictype/digit, modules/unictype/joininggroup-all:
13922         * modules/unictype/joininggroup-byname:
13923         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
13924         * modules/unictype/joiningtype-all:
13925         * modules/unictype/joiningtype-byname:
13926         * modules/unictype/joiningtype-longname:
13927         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
13928         * modules/unictype/mirror, modules/unictype/numeric:
13929         * modules/unictype/property-all, modules/unictype/property-alphabetic:
13930         * modules/unictype/property-ascii-hex-digit:
13931         * modules/unictype/property-bidi-arabic-digit:
13932         * modules/unictype/property-bidi-arabic-right-to-left:
13933         * modules/unictype/property-bidi-block-separator:
13934         * modules/unictype/property-bidi-boundary-neutral:
13935         * modules/unictype/property-bidi-common-separator:
13936         * modules/unictype/property-bidi-control:
13937         * modules/unictype/property-bidi-embedding-or-override:
13938         * modules/unictype/property-bidi-eur-num-separator:
13939         * modules/unictype/property-bidi-eur-num-terminator:
13940         * modules/unictype/property-bidi-european-digit:
13941         * modules/unictype/property-bidi-hebrew-right-to-left:
13942         * modules/unictype/property-bidi-left-to-right:
13943         * modules/unictype/property-bidi-non-spacing-mark:
13944         * modules/unictype/property-bidi-other-neutral:
13945         * modules/unictype/property-bidi-pdf:
13946         * modules/unictype/property-bidi-segment-separator:
13947         * modules/unictype/property-bidi-whitespace:
13948         * modules/unictype/property-byname:
13949         * modules/unictype/property-case-ignorable:
13950         * modules/unictype/property-cased:
13951         * modules/unictype/property-changes-when-casefolded:
13952         * modules/unictype/property-changes-when-casemapped:
13953         * modules/unictype/property-changes-when-lowercased:
13954         * modules/unictype/property-changes-when-titlecased:
13955         * modules/unictype/property-changes-when-uppercased:
13956         * modules/unictype/property-combining:
13957         * modules/unictype/property-composite:
13958         * modules/unictype/property-currency-symbol:
13959         * modules/unictype/property-dash:
13960         * modules/unictype/property-decimal-digit:
13961         * modules/unictype/property-default-ignorable-code-point:
13962         * modules/unictype/property-deprecated:
13963         * modules/unictype/property-diacritic:
13964         * modules/unictype/property-extender:
13965         * modules/unictype/property-format-control:
13966         * modules/unictype/property-grapheme-base:
13967         * modules/unictype/property-grapheme-extend:
13968         * modules/unictype/property-grapheme-link:
13969         * modules/unictype/property-hex-digit:
13970         * modules/unictype/property-hyphen:
13971         * modules/unictype/property-id-continue:
13972         * modules/unictype/property-id-start:
13973         * modules/unictype/property-ideographic:
13974         * modules/unictype/property-ids-binary-operator:
13975         * modules/unictype/property-ids-trinary-operator:
13976         * modules/unictype/property-ignorable-control:
13977         * modules/unictype/property-iso-control:
13978         * modules/unictype/property-join-control:
13979         * modules/unictype/property-left-of-pair:
13980         * modules/unictype/property-line-separator:
13981         * modules/unictype/property-logical-order-exception:
13982         * modules/unictype/property-lowercase, modules/unictype/property-math:
13983         * modules/unictype/property-non-break:
13984         * modules/unictype/property-not-a-character:
13985         * modules/unictype/property-numeric:
13986         * modules/unictype/property-other-alphabetic:
13987         * modules/unictype/property-other-default-ignorable-code-point:
13988         * modules/unictype/property-other-grapheme-extend:
13989         * modules/unictype/property-other-id-continue:
13990         * modules/unictype/property-other-id-start:
13991         * modules/unictype/property-other-lowercase:
13992         * modules/unictype/property-other-math:
13993         * modules/unictype/property-other-uppercase:
13994         * modules/unictype/property-paired-punctuation:
13995         * modules/unictype/property-paragraph-separator:
13996         * modules/unictype/property-pattern-syntax:
13997         * modules/unictype/property-pattern-white-space:
13998         * modules/unictype/property-private-use:
13999         * modules/unictype/property-punctuation:
14000         * modules/unictype/property-quotation-mark:
14001         * modules/unictype/property-radical:
14002         * modules/unictype/property-sentence-terminal:
14003         * modules/unictype/property-soft-dotted:
14004         * modules/unictype/property-space:
14005         * modules/unictype/property-terminal-punctuation:
14006         * modules/unictype/property-test, modules/unictype/property-titlecase:
14007         * modules/unictype/property-unassigned-code-value:
14008         * modules/unictype/property-unified-ideograph:
14009         * modules/unictype/property-uppercase:
14010         * modules/unictype/property-variation-selector:
14011         * modules/unictype/property-white-space:
14012         * modules/unictype/property-xid-continue:
14013         * modules/unictype/property-xid-start:
14014         * modules/unictype/property-zero-width, modules/unictype/scripts:
14015         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
14016         * modules/unictype/syntax-c-whitespace:
14017         * modules/unictype/syntax-java-ident:
14018         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
14019         * modules/unigbrk/u16-grapheme-breaks:
14020         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
14021         * modules/unigbrk/u32-grapheme-breaks:
14022         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
14023         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
14024         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
14025         * modules/unigbrk/uc-is-grapheme-break:
14026         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
14027         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
14028         * modules/unilbrk/u16-width-linebreaks:
14029         * modules/unilbrk/u32-possible-linebreaks:
14030         * modules/unilbrk/u32-width-linebreaks:
14031         * modules/unilbrk/u8-possible-linebreaks:
14032         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
14033         * modules/unilbrk/ulc-possible-linebreaks:
14034         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
14035         * modules/uniname/uniname, modules/uninorm/base:
14036         * modules/uninorm/canonical-decomposition:
14037         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
14038         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
14039         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
14040         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
14041         * modules/uninorm/nfkc, modules/uninorm/nfkd:
14042         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
14043         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
14044         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
14045         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
14046         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
14047         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
14048         * modules/unistdio/base, modules/unistdio/u-printf-args:
14049         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
14050         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
14051         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
14052         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
14053         * modules/unistdio/u16-u16-sprintf:
14054         * modules/unistdio/u16-u16-vasnprintf:
14055         * modules/unistdio/u16-u16-vasprintf:
14056         * modules/unistdio/u16-u16-vsnprintf:
14057         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
14058         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
14059         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
14060         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
14061         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
14062         * modules/unistdio/u32-u32-asnprintf:
14063         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
14064         * modules/unistdio/u32-u32-sprintf:
14065         * modules/unistdio/u32-u32-vasnprintf:
14066         * modules/unistdio/u32-u32-vasprintf:
14067         * modules/unistdio/u32-u32-vsnprintf:
14068         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
14069         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
14070         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
14071         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
14072         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
14073         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
14074         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
14075         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
14076         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
14077         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
14078         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
14079         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
14080         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
14081         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
14082         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
14083         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
14084         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
14085         * modules/unistr/u16-check, modules/unistr/u16-chr:
14086         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
14087         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
14088         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
14089         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
14090         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
14091         * modules/unistr/u16-move, modules/unistr/u16-next:
14092         * modules/unistr/u16-prev, modules/unistr/u16-set:
14093         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
14094         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
14095         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
14096         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
14097         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
14098         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
14099         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
14100         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
14101         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
14102         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
14103         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
14104         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
14105         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
14106         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
14107         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
14108         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
14109         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
14110         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
14111         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
14112         * modules/unistr/u32-next, modules/unistr/u32-prev:
14113         * modules/unistr/u32-set, modules/unistr/u32-startswith:
14114         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
14115         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
14116         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
14117         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
14118         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
14119         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
14120         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
14121         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
14122         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
14123         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
14124         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
14125         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
14126         * modules/unistr/u8-check, modules/unistr/u8-chr:
14127         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
14128         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
14129         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
14130         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
14131         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
14132         * modules/unistr/u8-next, modules/unistr/u8-prev:
14133         * modules/unistr/u8-set, modules/unistr/u8-startswith:
14134         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
14135         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
14136         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
14137         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
14138         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
14139         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
14140         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
14141         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
14142         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
14143         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
14144         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
14145         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
14146         * modules/uniwbrk/base, modules/uniwbrk/table:
14147         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
14148         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
14149         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
14150         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
14151         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
14152         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
14153         * modules/uniwidth/width, modules/utf16-ucs4:
14154         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
14155         * modules/utf8-ucs4-unsafe:
14156         Change maintainer from Bruno Haible to Daiki Ueno.
14157         This is my guess at the libunistring modules; please feel free
14158         to fix if I guessed incorrectly.
14159         * modules/accept4, modules/acl, modules/acos, modules/acosf:
14160         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
14161         * modules/areadlink, modules/array-list, modules/array-mergesort:
14162         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
14163         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
14164         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
14165         * modules/binary-io, modules/bison-i18n, modules/btowc:
14166         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
14167         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
14168         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
14169         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
14170         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
14171         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
14172         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
14173         * modules/closedir, modules/concat-filename, modules/copy-file:
14174         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
14175         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
14176         * modules/csharpcomp-script, modules/csharpexec:
14177         * modules/csharpexec-script, modules/ctype, modules/diffseq:
14178         * modules/dprintf, modules/dprintf-posix, modules/dup:
14179         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
14180         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
14181         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
14182         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
14183         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
14184         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
14185         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
14186         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
14187         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
14188         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
14189         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
14190         * modules/findprog, modules/findprog-lgpl, modules/floor:
14191         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
14192         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
14193         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
14194         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
14195         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
14196         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
14197         * modules/freadable, modules/freadahead, modules/freadptr:
14198         * modules/freadseek, modules/freopen, modules/frexp:
14199         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
14200         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
14201         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
14202         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
14203         * modules/ftello, modules/full-read, modules/full-write:
14204         * modules/fwritable, modules/fwriteerror, modules/gcd:
14205         * modules/get-rusage-as, modules/get-rusage-data:
14206         * modules/getdtablesize, modules/getrusage, modules/gettext:
14207         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
14208         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
14209         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
14210         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
14211         * modules/iconv, modules/iconv-h, modules/iconv_open:
14212         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
14213         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
14214         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
14215         * modules/integer_length_ll, modules/ioctl, modules/isatty:
14216         * modules/isblank, modules/isnand, modules/isnand-nolibm:
14217         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
14218         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
14219         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
14220         * modules/javaexec, modules/javaexec-script, modules/javaversion:
14221         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
14222         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
14223         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
14224         * modules/lib-symbol-visibility, modules/libsigsegv:
14225         * modules/linked-list, modules/linkedhash-list, modules/list:
14226         * modules/localcharset, modules/locale, modules/localeconv:
14227         * modules/localename, modules/lock, modules/log, modules/log-ieee:
14228         * modules/log10, modules/log10-ieee, modules/log10f:
14229         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
14230         * modules/log1p, modules/log1p-ieee, modules/log1pf:
14231         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
14232         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
14233         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
14234         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
14235         * modules/logf, modules/logf-ieee, modules/login_tty:
14236         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
14237         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
14238         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
14239         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
14240         * modules/mbscspn, modules/mbsinit, modules/mbslen:
14241         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
14242         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
14243         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
14244         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
14245         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
14246         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
14247         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
14248         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
14249         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
14250         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
14251         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
14252         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
14253         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
14254         * modules/posix_spawn, modules/posix_spawn-internal:
14255         * modules/posix_spawn_file_actions_addclose:
14256         * modules/posix_spawn_file_actions_adddup2:
14257         * modules/posix_spawn_file_actions_addopen:
14258         * modules/posix_spawn_file_actions_destroy:
14259         * modules/posix_spawn_file_actions_init:
14260         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
14261         * modules/posix_spawnattr_getpgroup:
14262         * modules/posix_spawnattr_getschedparam:
14263         * modules/posix_spawnattr_getschedpolicy:
14264         * modules/posix_spawnattr_getsigdefault:
14265         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
14266         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
14267         * modules/posix_spawnattr_setschedparam:
14268         * modules/posix_spawnattr_setschedpolicy:
14269         * modules/posix_spawnattr_setsigdefault:
14270         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
14271         * modules/pow, modules/powf, modules/printf-frexp:
14272         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
14273         * modules/progname, modules/propername, modules/pselect:
14274         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
14275         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
14276         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
14277         * modules/read, modules/readdir, modules/readlink:
14278         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
14279         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
14280         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
14281         * modules/relocatable-script, modules/remainder:
14282         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
14283         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
14284         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
14285         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
14286         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
14287         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
14288         * modules/setlocale, modules/sh-quote, modules/shutdown:
14289         * modules/signal, modules/signbit, modules/sigpipe:
14290         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
14291         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
14292         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
14293         * modules/snippet/link-warning, modules/snippet/unused-parameter:
14294         * modules/snprintf, modules/snprintf-posix, modules/spawn:
14295         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
14296         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
14297         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
14298         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
14299         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
14300         * modules/streq, modules/strerror_r-posix, modules/striconv:
14301         * modules/striconveh, modules/striconveha, modules/strncat:
14302         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
14303         * modules/sublist, modules/sys_resource, modules/sys_utsname:
14304         * modules/sys_wait, modules/system-posix, modules/system-quote:
14305         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
14306         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
14307         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
14308         * modules/truncf, modules/truncf-ieee, modules/truncl:
14309         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
14310         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
14311         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
14312         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
14313         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
14314         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
14315         * modules/wait-process, modules/waitpid, modules/wcpcpy:
14316         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
14317         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
14318         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
14319         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
14320         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
14321         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
14322         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
14323         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
14324         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
14325         * modules/write, modules/xconcat-filename, modules/xlist:
14326         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
14327         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
14328         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
14329         * modules/y0, modules/y1, modules/yn:
14330         Remove Bruno Haible as maintainer; if he's the sole maintainer,
14331         change the maintainer to 'all'.  Let's hope someone volunteers.
14333 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
14335         mktime: merge #if/#ifdef usage from glibc
14336         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
14337         as that works with both Glibc's and Gnulib's style.
14338         See thread starting at Siddhesh Poyarekar's bug report at:
14339         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
14341 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
14343         git-version-gen: improve option descriptions
14344         * build-aux/git-version-gen: Mention that --prefix and --fallback
14345         have a mandatory argument.
14347 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
14349         regex: fix memory leak in compiler
14350         Fix by Andreas Schwab in:
14351         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
14352         * lib/regcomp.c (parse_expression): Deallocate partially
14353         constructed tree before returning error.
14355         regex: merge patch from libc
14356         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
14357         Combine __USE_BSD and __USE_SVID into __USE_MISC.
14358         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
14360 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
14362         acl: port to gcc -Wredundant-decls
14363         From a request by Dmitry Antipov in:
14364         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
14365         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
14366         "#ifndef _GL_ACL_H".
14368 2014-06-11  Bruce Korb  <bkorb@gnu.org>
14369         Jim Meyering  <meyering@fb.com>
14371         parse-duration: eliminate 68-year duration limit
14372         * lib/parse-duration.c: Include "intprops.h".
14373         (TIME_MAX): Rename to MAX_DURATION and define to
14374         TYPE_MAXIMUM(time_t).
14375         * modules/parse-duration (Depends-on): Add intprops.
14376         Reported by Jonas 'Sortie' Termansen.
14378 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
14380         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
14381         * modules/pthread (Depends-on): Add 'extensions', as it defines
14382         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
14383         (configure.ac-early): New section.
14384         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
14385         it is no longer needed.
14387 2014-06-14  Pádraig Brady  <P@draigBrady.com>
14389         pthread: define thread-safe macros on some platforms
14390         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
14391         for thread-safe operation on some platforms.
14393 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
14395         regex: don't be multithreaded if USE_UNLOCKED_IO.
14396         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
14397         * lib/regex_internal.h: Do not use multithreaded version if
14398         USE_UNLOCKED_IO is defined.  This is a hack, but it works
14399         around a porting bug with coreutils 8.22 on AIX 7.1.
14401 2014-06-11  Daiki Ueno  <ueno@gnu.org>
14403         gettext: update macros to version 0.19
14404         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
14405         depend on gl_EXTERN_INLINE and drop support for older Bison
14406         versions.
14408 2014-06-10  Pádraig Brady  <P@draigBrady.com>
14410         select,poll: fix console handle check on windows 8
14411         lib/poll.c (IsConsoleHandle): Change from testing the lower
14412         2 bits of the handle to the more expensive but accurate syscall.
14413         lib/select.c: Likewise.
14415 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
14417         select: fix waiting on anonymous pipes on MS-Windows
14418         * lib/select.c (rpl_select): Fall back to polling when select()
14419         indicates there is nothing to check, while due to the timeout not
14420         expiring, activity is indicated on one of the handles.
14421         Also clear the TIMEOUT argument if the timer does expire.
14423 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
14425         times: fix to return non constant value on MS-Windows
14426         * lib/times.c (times): Don't use the process creation time,
14427         rather clock() which on windows returns the number of
14428         clock ticks since the process started.
14430 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
14432         isatty: fix to work on windows 8
14433         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
14434         2 bits of the handle to the more expensive but accurate syscall.
14436 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
14438         maint: fix typo in fdl.texi
14439         * doc/fdl.texi: Fix typo (missing '@').
14440         Somehow this was in fdl.texi but not fdl-1.3.texi.
14442 2014-06-06  Ben Walton  <bdwalton@gmail.com>
14444         mountlist: avoid hasmntopt const type warning on solaris
14445         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
14446         with char * instead of const char *.  Passing the constant string
14447         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
14448         to avoid the warning.
14450 2014-06-04  Eric Blake  <eblake@redhat.com>
14452         maintainer-makefile: delete obsolete code
14453         * top/maint.mk (build_aux): Drop old code, as threatened.
14455         maintainer-makefile: avoid spurious error messages
14456         * top/maint.mk (syntax-check): Guard definition and use of
14457         $(shell) by whether Makefile is present.
14459 2014-06-03  Ben Walton  <bdwalton@gmail.com>
14461         rename: avoid unused-but-set-variable compiler warning
14462         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
14463         it is possible that dst_exists may be set but not used.  Mark it with
14464         the unused attribute to avoid compiler warnings.
14466 2014-06-02  Ben Walton  <bdwalton@gmail.com>
14468         rename: mark a label as potentially unused
14469         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
14470         by marking the out label as potentially unused.
14471         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
14473 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
14475         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
14476         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
14478 2014-06-02  Ben Walton  <bdwalton@gmail.com>
14480         acl: apply pure attribute to two functions
14481         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
14482         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
14484 2014-06-01  Pádraig Brady  <P@draigBrady.com>
14486         gnulib-common.m4: add _GL_UNUSED_LABEL
14487         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
14488         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
14490 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
14492         dup2, fcntl, fcntl-h: port to AIX 7.1
14493         This fixes some porting problems discovered when testing the latest
14494         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
14495         in grep but it could be important for other applications.
14496         * doc/posix-functions/dup2.texi:
14497         * doc/posix-functions/fcntl.texi:
14498         * doc/posix-headers/fcntl.texi:
14499         Document AIX bugs.
14500         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
14501         Define to 0 if outside 'int' range.
14502         * m4/dup2.m4 (gl_FUNC_DUP2):
14503         * m4/fcntl.m4 (gl_FUNC_FCNTL):
14504         Check for getdtablesize.  If it's available, test a value just
14505         outside its range instead of testing 1000000.  When cross-compiling,
14506         guess that AIX will fail this improved test.
14508 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
14510         printf, config.rpath: Port to FreeBSD 10.
14511         Problem reported by Tijl Coosemans in:
14512         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
14513         * build-aux/config.rpath (hardcode_libdir_flag_spec)
14514         (hardcode_direct): Simplify FreeBSD configuration.
14515         (library_names_spec): Don't mishandle FreeBSD 10+.
14516         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
14517         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
14518         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
14519         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
14520         Don't mishandle FreeBSD 10+ when cross-compiling.
14522         ftoastr: work around compiler bug in IBM xlc 12.1
14523         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
14524         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
14525         around a compiler bug in IBM xlc 12.1.0.0: it complains
14526         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
14527         _GL_FLT_PREC_BOUND.'
14529 2014-05-30  Kieran Colford  <colfordk@gmail.com>
14531         valgrind-tests: fixed misleading help message
14532         * m4/valgrind-tests.m4: The help message generated by configure
14533         implied that valgrind was disabled by default, which it wasn't.
14534         Adjusted the help message using s/enable/disable/ to clarify.
14536 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
14538         isfinite, isinf, isnan tests: fix for little-endian PowerPC
14539         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
14540         first double of a PowerPC "double double" pair.
14541         * tests/test-isinf.c (test_isinfl): Likewise.
14542         * tests/test-isnan.c (test_long_double): Likewise.
14543         * tests/test-isnanl.h (main): Likewise.
14544         * tests/test-signbit.c (test_signbitl): Likewise.
14546 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
14548         exclude-tests: port to AIX 7.1
14549         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
14550         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
14551         the regex code uses locks.
14553 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
14555         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
14556         Without this fix, Emacs would sometimes call sigprocmask instead
14557         of pthread_sigmask, which is a no-no in multithreaded applications.
14558         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
14559         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
14560         Suppress check for pthread_sigmask working without -lpthread if
14561         the application always links with -lpthread.  Do not link with
14562         $LIBMULTITHREAD if gl_THREADLIB is not defined.
14563         * m4/timer_time.m4 (gl_TIMER_TIME):
14564         Require gl_THREADLIB only if it is defined.  Do not append
14565         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
14567 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
14569         gnulib-tool: wget translations using --no-verbose rather than --quiet
14570         This allows the user to see error messages if any (--quiet hides them)
14571         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
14573 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
14575         gnulib-tool: adjust translation wget to avoid a https redirection
14576         Context: http://translationproject.org/latest/gnulib redirects to
14577            https://translationproject.org/latest/gnulib/
14578         Rationale: if the user falls back to wget, she doesn't have rsync and
14579         is probably in a minimal build environment, where packages such as
14580         'ca-certificates' are missing as well, resulting in a failed (and
14581         difficult to detect since ignored) translation initial fetch.
14582         Consequently let's avoid https if possible, and add the missing
14583         trailing slash.  This also avoids an unnecessary 302 redirection.
14584         * gnulib-tool: Add trailing slash to gnulib URL.
14586 2014-05-22  Pádraig Brady  <P@draigBrady.com>
14588         getlogin_r-tests: check return value rather than errno
14589         * tests/test-getlogin_r.c (main): As per POSIX we should be
14590         verifying the return value from getlogin_r() rather than errno.
14592 2014-05-22  Pádraig Brady  <P@draigBrady.com>
14594         getlogin_r-tests: fix various issues in recent change
14595         * tests/test-getlogin_r.c: Include required headers that were
14596         missed in recent commit eec20b4e.
14597         Also consistently check the errno rather than the return value from
14598         getlogin_r as POSIX only specifies that non zero is returned on error.
14599         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
14601 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
14603         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
14604         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
14605         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
14606         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
14607         * lib/spawn-pipe.c:
14608         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
14609         and then 'int open64(const char *, int, ...);', which means the
14610         declaration for 'open' gets lost if we later '#undef open'.
14611         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
14612         where the compilation reported the non-fatal error "In function
14613         'openat_proc_name' ... warning: implicit declaration of function
14614         'open'".  In this case the error is relatively harmless, but in
14615         other cases it might not be so minor.
14617 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
14619         xalloc: don't potentially generate invalid code for xmemdup calls
14620         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
14621         this function can initialize the newly-allocated storage with new
14622         pointers, which means this function is not malloc-like.  See:
14623         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
14625 2014-05-19  Pádraig Brady  <P@draigBrady.com>
14627         getlogin_r-tests: avoid false failure under sudo/ssh etc.
14628         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
14629         changes from commit 97249cf29 to not depend on environment variables.
14631 2014-05-18  Pádraig Brady  <P@draigBrady.com>
14633         getlogin-tests: avoid false failure under cron
14634         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
14635         since that's not what's under test.  Centos 6 was seen to return
14636         EINVAL for ttyname() when run from cron.
14638 2014-05-16  Jim Meyering  <meyering@fb.com>
14640         mbrtowc.m4: fix a comment typo
14641         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
14642         emitted documentation string.
14644 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
14646         mbrlen, mbrtowc: fix bug with empty input
14647         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
14648         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
14649         so this is mainly for documentation.
14650         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
14651         (gl_FUNC_MBRTOWC): Use it.
14652         * tests/test-mbrtowc.c (main): Test for the bug.
14654 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
14656         doc: document mbrtowc and mbrlen problem with empty input
14657         * doc/posix-functions/mbrlen.texi (mbrlen):
14658         * doc/posix-functions/mbrtowc.texi (mbrtowc):
14659         Document portability problem when the input string is empty.  See:
14660         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
14662         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
14663         Problem reported by Eli Zaretskii in:
14664         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
14665         * doc/posix-functions/execl.texi (execl):
14666         * doc/posix-functions/execle.texi (execle):
14667         * doc/posix-functions/execlp.texi (execlp):
14668         * doc/posix-functions/execv.texi (execv):
14669         * doc/posix-functions/execve.texi (execve):
14670         * doc/posix-functions/execvp.texi (execvp):
14671         Mention spawn+exit problem on non-Cygwin Windows platforms.
14673 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
14675         getlogin-tests: avoid false failure under sudo/ssh etc.
14676         * modules/getlogin-tests (configure.ac): Check for ttyname().
14677         * tests/test-getlogin.c (main): Don't depend on environment variables
14678         to correlate with getlogin(), since sudo and ssh etc. can tamper
14679         with the LOGNAME and USER env vars.  Instead lookup the name from
14680         the uid associated with the stdin tty.
14682 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
14684         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
14685         These were found when building the latest grep snapshot on IRIX 6.5.
14686         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
14687         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
14688         never used later.
14689         * lib/quotearg.c (quoting_options_from_style):
14690         * lib/xstrtol.c (__xstrtol):
14691         Use enum instead of 0, to pacify IRIX 6.5 cc.
14693 2014-04-18  Pádraig Brady  <P@draigBrady.com>
14695         gitlog-to-changelog: revert inclusion of git-log-fix file
14696         * build-aux/git-log-fix: Delete dummy file.
14697         * modules/gitlog-to-changelog: Don't reference (overwrite)
14698         the project specific git-log-fix file.
14700 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
14702         maint.mk: Relax the copyright check to cater for non FSF projects
14703         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
14704         to not require the "Free" suffix after the copyright years.
14706 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
14708         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
14709         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
14710         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
14711         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
14712         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
14714 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
14716         exclude: port to strict C99
14717         Strict C does not allow converting a function pointer to void *
14718         and vice versa.  Pass a pointer to a function pointer instead.
14719         * lib/exclude.c (add_exclude_file):
14720         Pass the address of the function pointer.
14721         (call_addfn): And deference the address here, to match.
14723 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
14725         regex: do not depend on malloc-gnu
14726         * modules/regex (Depends-on): Remove malloc-gnu.
14727         It's no longer needed, because of the 2012-12-29 patch
14728         "regex: port to hosts where malloc (0) == NULL".
14729         Reported by Nathan Kennedy in:
14730         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
14732 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
14734         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
14735         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
14736         * doc/posix-functions/expl.texi: Mention the workaround.
14738 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
14740         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
14741         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
14742         size to be zero even when the pointer is nonnull.  This
14743         accommodates the use case where P is malloc (0) and *PN is 0 on a
14744         host where malloc (0) yields nonnull.
14746 2014-04-09  Eric Blake  <eblake@redhat.com>
14748         fts: avoid unnecessary strlen calls
14749         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
14751 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
14753         fts: avoid unnecessary strlen calls
14754         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
14755         when that can be faster than strlen.
14757 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
14759         fts: avoid unnecessary strlen calls
14760         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
14761         (fts_build): Store the length of the dp->d_name entry in a local variable
14762         instead of calling strlen() several times via the above, removed macro.
14763         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
14764         run by ~4%, yet this reduces the execution time by about a third if run
14765         via "ltrace -c rm -rf some-dir".
14767 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
14769         obstack: Remove ancient NeXTSTEP gcc support conditional
14770         This change will ease merging with glibc.  The "#if ... __NEXT__"
14771         causes a warning with -Wundef which glibc now enables by default.
14772         Problem reported by Will Newton in
14773         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
14774         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
14775         so go with that.
14776         * lib/obstack.h (__extension__):
14778 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
14780         obstack: merge with glibc changes
14781         * lib/obstack.c, lib/obstack.h: Merge from glibc.
14782         This is mostly indenting and commentary changes.
14783         Instances of 'register' have been removed.
14785 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
14787         strftime: wrap macros in "do {...} while(0)"
14788         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
14789         this macro in "do {...} while(0)" to prevent false use as a
14790         single statement, e.g., in an un-braced "{}" else-block.
14791         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
14792         (strftime_case_): Remove 'else' after 'goto' - which was the
14793         only non-fatal, un-braced use of one of the above macros.
14794         Spotted by coverity (NESTING_INDENT_MISMATCH).
14796 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
14798         modechange: avoid memory leaks for invalid octal modes
14799         * lib/modechange.c (mode_compile): During the parsing of
14800         notations like +40, free the 'mc' buffer for invalid mode
14801         strings like +17777 (greater than the maximum octal mode),
14802         =18 (bad octal mode characters) or u=1 ('affected' with
14803         octal modes).
14804         Reproducer, e.g.:
14805             $ valgrind --leak-check=full chmod +17777 file
14806         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
14807         add notations +40, 00440, etc.".
14808         Spotted by coverity (RESOURCE_LEAK).
14810 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
14812         gitlog-to-changelog: include a dummy git-log-fix file
14813         Problem reported by Nathan Stratton Treadway in:
14814         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
14815         * build-aux/git-log-fix: New file.
14817 2014-03-13  Jim Meyering  <meyering@fb.com>
14819         gitlog-to-changelog: also include the file, git-log-fix
14820         * modules/gitlog-to-changelog (Files): Add git-log-fix.
14821         Reported by Assaf Gordon.
14823 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
14825         regex: port to OS X 10.8.5 en_US.UTF-8 locale
14826         This fixes a bug when ignoring case and when comparing the
14827         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
14828         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
14829         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
14830         titlecase letter is neither lowercase nor uppercase, but
14831         uppercasing the titlecase letter (via towupper) yields the
14832         uppercase letter, so the two letters should match when ignoring case.
14833         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
14834         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
14835         Don't test whether a character is lowercase before uppercasing it.
14837 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
14839         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
14840         This is basically one of the options Bruno Haible proposed in:
14841         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
14842         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
14843         * lib/stdint.in.h: Use it.
14844         * modules/stdint (Depends-on): Add sys_types.
14846 2014-02-26  Pádraig Brady  <P@draigBrady.com>
14848         parse-datetime: fix crash or infloop in TZ="" parsing
14849         * lib/parse-datetime.y (parse_datetime): Break out of the
14850         TZ="" parsing loop once the second significant " is found.
14851         Also skip over any subsequent whitespace to be consistent
14852         with the non TZ= case.
14853         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
14855 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
14857         savedir: new symbol for fast-read version
14858         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
14859         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
14860         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
14861         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
14863 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
14865         unistd: port readlink to Mac OS X 10.3.9
14866         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
14867         around self-include problem in Mac OS X 10.3.9 when combined with
14868         readlink module.  Problem reported by Klaus Zietler in
14869         <http://bugs.gnu.org/16825>.
14871 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
14873         diffseq: remove TOO_EXPENSIVE heuristic
14874         Problem with diffutils reported by Vincent Lefevre in
14875         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
14876         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
14877         Although appropriate for circa-1993 hardware, these days the heuristic
14878         seems to be more trouble than it's worth.
14879         * lib/diffseq.h: Modernize citations.
14880         (struct context): Remove member too_expensive.
14881         All uses changed.
14882         (struct partition): Remove members lo_minimal, hi_minimal.
14883         All uses changed.
14884         (diag, compareseq): Remove arg find_minimal.  All uses changed.
14885         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
14886         1993 to make 'diff' run faster (but not as well) on large inputs.
14887         These days, computers are fast enough that it's typically better
14888         to run slower but more accurately.
14889         * lib/fstrcmp.c: Remove duplicate comment.
14890         * lib/fstrcmp.c (strcmp_bounded):
14891         * lib/git-merge-changelog.c (compute_differences):
14892         Adjust to diffseq.h changes.
14893         * NEWS: Document the change.
14895         savedir: simplify by using stpcpy
14896         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
14897         (streamsavedir): Use stpcpy instead.
14898         * modules/savedir (Depends-on): Add stpcpy.
14900 2014-02-21  Pádraig Brady  <P@draigBrady.com>
14902         spawn: fix link error on uclibc
14903         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
14904         to incorporate -lrt if needed (on uclibc for example).
14905         * modules/posix_spawn: Reference the substituted LIB.
14907 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
14908         timer: fix uClibc detection of threading
14909         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
14910         enabled in uClibc.
14912 2014-02-21  Eric Blake  <eblake@redhat.com>
14914         maintainer-makefiles: provide AC_PROG_SED for older autoconf
14915         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
14917 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
14919         exclude: add support for posix regexps
14921         This commit adds support for POSIX extended regular expressions
14922         and fixes a long-standing memory leak (pattern buffer was never
14923         freed).  It also implements a new interface function to read
14924         exclude patterns from a FILE, which passes an additional parameter
14925         to its callback function, thereby allowing to preserve its state
14926         between invocations.
14928         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
14929         (pattern_buffer): New struct.
14930         (exclude): New member patbuf.
14931         (exclude_add_pattern_buffer): New function.
14932         (free_exclude_segment): Free regexps.
14933         (free_exclude): Free allocated pattern buffers.
14934         (exclude_patopts): New function.
14935         (file_pattern_matches): Use exclude_patopts.
14936         (add_exclude): support regexps.
14937         (add_exclude_fp): New function.
14938         (add_exclude_file): Rewrite using add_exclude_fp.
14939         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
14940         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
14941         (add_exclude_fp)
14942         (add_exclude_file): Rewrite using add_exclude_fp.
14943         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
14944         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
14945         (add_exclude_fp)
14946         (exclude_add_pattern_buffer): New prototypes.
14947         * modules/exclude: Depends on regex and filename.
14949 2014-02-20  Eric Blake  <eblake@redhat.com>
14951         maintainer-makefiles: use $(SED) for syntax check
14952         * modules/maintainer-makefile (configure.ac): Check for sane sed.
14953         * top/maint.mk: Change sed to $(SED).
14955 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
14956             Paul Eggert  <eggert@cs.ucla.edu>
14958         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
14959         Patch based on an idea by Dick Streefland in
14960         <https://savannah.gnu.org/patch/?7892>.
14961         * NEWS: Document this.
14962         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
14963         (direntry_t, comparison_function): New types.
14964         (direntry_cmp_name): New function.
14965         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
14966         (streamsavedir, savedir): New arg OPTION.
14967         (streamsavedir): Simplify memory allocation.
14968         (fdsavedir): Remove.
14969         * lib/savedir.h (enum savedir_option): New type.
14970         (streamsavedir, savedir): New arg OPTION.
14971         (fdsavedir): Remove.
14973 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
14975         file-type: add support for doors and other less-common file types
14976         Problem with S_ISDOOR reported by Rich Burridge.
14977         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
14978         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
14979         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
14981 2014-01-23  Eric Blake  <eblake@redhat.com>
14983         pthread: work around winpthread header pollution on mingw
14984         * lib/time.in.h: Move pthread workarounds...
14985         * lib/pthread.in.h: ...here.
14986         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
14987         detect macro pollution on mingw.
14988         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
14990 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
14992         qacl: check for fchmod
14993         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
14994         and qset-acl.c both use HAVE_FCHMOD.
14996 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
14998         fdopen-tests: port to Tru64
14999         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
15000         descriptor that is not open, as POSIX doesn't specify the
15001         resulting behavior and the test does not work on Tru64.
15002         Problem reported by Steven M. Schweda in:
15003         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
15005         stdalign: port to HP-UX compilers
15006         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
15007         if __HP_cc or __HP_aCC are nonzero.
15009 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
15011         strtoimax: port to platforms lacking 'long long'
15012         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
15013         check whether strtoll is declared, which causes the C file to
15014         wrongly report an error.  Problem reported by Steven M. Schweda in:
15015         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
15016         * lib/strtoimax.c (strtoull):
15017         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
15018         (strtoll): Declare only if HAVE_LONG_LONG_INT.
15020 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
15022         relocatable-perl: fix texi syntax
15023         * doc/relocatable-maint.texi: Escape braces.
15025 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
15027         relocatable-perl: like relocatable-script, but for Perl scripts
15028         * build-aux/relocatable.pl.in: Add.
15029         * doc/relocatable-maint.texi: Add documentation.
15030         * modules/relocatable-perl: Add.
15032 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
15034         tests: fix export bug in previous patch
15035         Problem reported by Jim Meyering.
15036         * tests/init.sh (re_shell): New var, which is exported instead of
15037         re_shell_.
15039         tests: simplify porting to Solaris 10 /bin/sh
15040         Some test cases in 'grep' need a shell that groks '$(';
15041         export re_shell_ for their benefit.  Problem reported for 'grep'
15042         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
15043         * tests/init.sh (re_shell_): Export if it's used.
15045 2014-01-06  Eric Blake  <eblake@redhat.com>
15047         md5, sha1, sha256, sha512: support older autoconf
15048         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
15049         for autoconf < 2.63b.
15051         include_next: port to autoconf 2.63
15052         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
15054 2014-01-04  Jim Meyering  <meyering@fb.com>
15056         maint: add a gnulib-local rule to keep non-ascii out of .texi files
15057         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
15058         so that "make sc_maint" will ding anyone who puts non-ascii
15059         in any of gnulib's .texi files.
15061 2014-01-03  Jim Meyering  <meyering@fb.com>
15063         freadable, fwritable, fwriting: declare with the "pure" attribute
15064         * lib/freadable.h (freadable): Declare with the "pure" attribute.
15065         * lib/fwritable.h (fwritable): Likewise.
15066         * lib/fwriting.h (fwriting): Likewise.
15067         Suggested by Bruno Haible.
15069         maint.mk: adapt openat.h-include-without-use test
15070         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
15071         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
15072         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
15073         With this change, running "make sc_maint" in gnulib's top-level
15074         directory now passes for me.
15076 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
15078         doc: use ASCII in .texi files where UTF-8 isn't needed
15079         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
15080         * doc/posix-functions/setkey.texi, doc/regex.texi:
15081         Use ASCII input, not UTF-8.
15083 2014-01-02  Jim Meyering  <meyering@fb.com>
15085         freading: declare with the "pure" attribute
15086         * lib/freading.h (freading): Declare with the "pure" attribute.
15088         manywarnings: remove -Wmudflap
15089         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
15090         it is no longer supported in gcc-4.9-to-be.
15092 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
15094         relocatable-script: remove unused code
15095         Problem reported by Reuben Thomas in:
15096         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
15097         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
15099 2014-01-01  Jim Meyering  <meyering@fb.com>
15101         maint: fix public-submodule-commit to work with newer git
15102         * top/maint.mk (public-submodule-commit): Remove excess quoting.
15103         We were over-quoting the test arguments, and somewhere prior to
15104         version 1.8.5.2.229, git stopped removing those excess quotes,
15105         which made the test fail, since the unexpanded strings would
15106         always differ; using GIT_TRACE=1 confirmed that the git merge-base
15107         command wasn't even being run.
15109 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
15111         doc: update main copyright year
15112         * doc/gnulib.texi: Update copyright date.
15114 2014-01-01  Eric Blake  <eblake@redhat.com>
15116         version-etc: new year
15117         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
15118         * all files: run 'make update-copyright'
15120 2013-12-24  Eric Blake  <eblake@redhat.com>
15122         passfd: give nicer error for recvfd at eof
15123         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
15124         * tests/test-passfd.c (main): Enhance test to cover this.
15126 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
15128         gettimeofday: port recent C++ fix to Emacs
15129         Without this further patch, Emacs won't build due to
15130         the portcheck failing.  Also, this simplifies the patch a bit.
15131         * lib/time.in.h (localtime, gmtime): Don't replace unless
15132         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
15133         * lib/time.in.h (localtime, gmtime):
15134         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
15135         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
15136         * modules/time (time.h):
15137         Don't worry about the possibility of localtime and gmtime
15138         being absent; they're present in all C libraries we know about.
15139         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
15140         Don't assume sys_time is present and has been initialized.
15141         Instead, use a hack that should work even if it hasn't been.
15142         Don't use a portcheck for gmtime or localtime; this supports
15143         the hack.
15144         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
15146 2013-12-17  John W. Eaton  <jwe@gnu.org>
15148         gettimeofday: fix C++ crosscompilation
15150         Never replace gmtime and localtime by macros when compiling with
15151         C++, this prevents <ctime> from being included.
15153         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
15154         define gmtime and localtime as preprocessor macros.  Instead
15155         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
15156         REPLACE_LOCALTIME substitutions.
15157         * lib/time.in.h: Declare gmtime and localtime when needed.
15158         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
15159         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
15160         * modules/time: Depend on gettimeofday, and substitute the above
15161         variables in time.h.
15163 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
15165         qacl: port to Windows better
15166         See Eli Zaretskii in
15167         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
15168         * lib/file-has-acl.c (acl_access_nontrivial):
15169         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
15170         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
15172 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
15174         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
15175         * lib/gl_openssl.h: Cast void pointers to a specific type.
15177 2013-12-07  Pádraig Brady  <P@draigBrady.com>
15179         open-tests: fix build failure with -Werror=old-style-declaration
15180         * tests/test-open.h: Reorder the inline to avoid the issue.
15182 2013-12-07  Pádraig Brady  <P@draigBrady.com>
15184         md5, sha1, sha256, sha512: fix link error with partial libcrypto
15185         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
15186         init time, so that if early checks find crypto routines,
15187         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
15188         avoiding link failures.
15190 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
15192         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
15193         This provides a new way to specify the default for
15194         gl_CRYPTO_CHECK, one that is reflected in the --help message.
15195         Emacs uses this, as well as the old way.
15196         This attempts to implement a suggestion by Pádraig Brady in
15197         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
15198         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
15199         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
15201         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
15202         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
15203         Add support for a new option, --with-openssl=auto, which causes
15204         the library to be used if available and silently ignored if not.
15205         Add support to allow configure.ac to specify its own
15206         default, by setting with_openssl_default before invoking gl_INIT.
15208 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
15210         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
15211         Problem reported by Daiki Ueno in:
15212         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
15213         * tests/test-open.h (__always_inline):
15214         New macro, if not already defined.
15215         (test_open): Use it.
15217 2013-12-04  Eric Blake  <eblake@redhat.com>
15219         include_next: minimize code duplication
15220         * modules/include_next (Depends-on): Add absolute-header.
15221         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
15222         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
15224 2013-12-04  Pádraig Brady  <P@draigBrady.com>
15226         getcwd: fix compile error in configure check
15227         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
15229 2013-12-04  Pádraig Brady  <P@draigBrady.com>
15231         regex: suppress core dumps from detection code
15232         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
15233         to suppress core dumps that may well occur on glibc systems.
15234         These core dumps might not be cleaned up automatically, or could
15235         trigger some system core dump handling logic.
15237 2013-12-03  Pádraig Brady  <P@draigBrady.com>
15239         md5, sha1, sha256, sha512: support mandating use of openssl
15240         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
15241         description, to list the now 3 separate options.  also don't
15242         mention the default=no, since this is implicit given the option
15243         is described as --with-openssl rather than --without-openssl.
15244         If projects change the default they're free to document that.
15245         with --with-openssl[=yes] we now error out when the specified
15246         hash algorithm is not available in libcrypto.
15248 2013-12-03  Ivailo  <xakepa10@gmail.com>
15250         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
15251         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
15252         -Wformat-nonliteral checks, as these edge cases are part of the test.
15254 2013-12-03  Eric Blake  <eblake@redhat.com>
15256         regex: avoid glibc deadlock during configure
15257         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
15258         glibc bug 15078 in turn triggers bug 16159.
15259         Reported by Michal Privoznik.
15261 2013-12-02  Pádraig Brady  <P@draigBrady.com>
15263         md5, sha1, sha256, sha512: use openssl routines if available.
15264         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
15265         routines will be used if available, requiring apps to link @LIB_CRYPTO@
15266         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
15267         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
15268         in the standard system location.
15269         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
15270         * m4/sha256.m4: Likewise with SHA256.
15271         * m4/sha512.m4: Likewise with SHA512.
15272         * m4/md5.m4: Likewise with MD5.
15273         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
15274         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
15275         * lib/sha256.h: Likewise with SHA256.
15276         * lib/sha512.h: Likewise with SHA512.
15277         * lib/md5.h: Likewise with MD5.
15278         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
15279         * lib/sha256.c: Likewise with SHA256.
15280         * lib/sha512.c: Likewise with SHA512.
15281         * lib/md5.c: Likewise with MD5.
15282         * modules/crypto/sha1 (Link:): Add the new optional lib.
15283         (Depends-on:): Add dependency on extern-inline.
15284         * modules/crypto/sha256: Likewise.
15285         * modules/crypto/sha512: Likewise.
15286         * modules/crypto/md5: Likewise.
15287         * modules/crypto/sha1-tests: Reference the lib here too.
15288         * modules/crypto/md5-tests: Likewise.
15289         * modules/crypto/gc-des-tests: Likewise.
15290         * modules/crypto/gc-hmac-md5-tests: Likewise.
15291         * modules/crypto/gc-hmac-sha1-tests: Likewise.
15292         * modules/crypto/gc-hmac-sha256-tests: Likewise.
15293         * modules/crypto/gc-hmac-sha512-tests: Likewise.
15294         * modules/crypto/gc-md5-tests: Likewise.
15295         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
15296         * modules/crypto/gc-sha1-tests: Likewise.
15297         * modules/crypto/gc-tests: Likewise.
15298         * modules/crypto/hmac-md5-tests: Likewise.
15299         * modules/crypto/hmac-sha1-tests: Likewise.
15300         * modules/crypto/hmac-sha256-tests: Likewise.
15301         * modules/crypto/hmac-sha512-tests: Likewise.
15303 2013-11-29  RV1971  <rv1971@web.de>
15305         base64: (trivial) fix compilation regression on some compilers
15306         * lib/base64.c: Don't return the void function,
15307         instead split to a separate return statement.
15309 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
15311         ignore-value: revert previous code change
15312         * lib/ignore-value.h (ignore_value): Use __extension__ and
15313         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
15314         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
15315         Change the comment to try to explain this better.
15317 2013-11-27  Pádraig Brady  <P@draigBrady.com>
15319         selinux-h: improve stub types and add more stub functions
15321         * lib/se-selinux.in.h: Change security_context_t to a typedef
15322         rather than a define, as it's a pointer type and so is better
15323         as a typedef to avoid issues declaring multiple variables
15324         with the comma operator.  Also add stub for string_to_security_class().
15325         * lib/se-context.in.h: Add stub functions for
15326         context_{type,range,role,user}_get().
15328 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
15330         ignore-value: prefer GCC version back through 2.0
15331         The code didn't match the comments, so I did a bit of software
15332         archaeology.  GCC 2.0 seems to support __extension__ and
15333         __typeof__, so fix both code and comments to use 2.0.
15334         * lib/ignore-value.h (ignore_value): Use __extension__ and
15335         __typeof__ for GCC 2.0 through 3.3, too.
15337 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
15339         pty: Activate the signature wrapper of forkpty.
15340         The intended preprocessor macro HAVE_FORKPTY is
15341         never defined, yet `lib/forkpty.c' depends on it.
15343         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
15344         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
15345         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
15347 2013-11-18  Jim Meyering  <meyering@fb.com>
15348         and Paul Eggert  <eggert@cs.ucla.edu>
15350         quotearg: don't attempt to store 1 << 31 into an "int"
15351         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
15352         gcc's new -fsanitize=undefined and running its tests triggered some
15353         new test failures due to undefined behavior, all with this diagnostic:
15354           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
15355             cannot be represented in type int
15356         Rather than shifting "1" left to form a mask, shift the bits right and
15357         simply use "1" as the mask.
15359 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
15361         error: depend on stdio
15362         Problem reported by Nikos Mavrogiannopoulos in
15363         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
15364         * modules/error (Depends-on): Add stdio.
15366 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
15368         * doc/relocatable-maint.texi (Supporting Relocation): Improve
15369         wording.
15370         Reported by Reuben Thomas <rrt@sc3d.org>.
15372 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
15374         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
15375         New function and macro, to work around _DARWIN_C_SOURCE problem.
15376         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
15378 2013-11-11  Pádraig Brady  <P@draigBrady.com>
15380         base64: provide a fast path for encoding well sized buffers
15381         Avoid conditionals in the base64 encoding loop,
15382         which was seen to give 60% better throughput.
15383         * lib/base64.c (base64_encode_fast): A new function to be called
15384         when we don't want to NUL terminate, and we have enough space
15385         in the output to encode the given input.
15386         (base64_encode): Call the _fast() version when appropriate.
15387         Also remove a redundant mask with 0x3F on the first encoded byte.
15389 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
15391         extern-inline: port better to OS X 10.9
15392         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
15393         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
15394         OS X 10.9, except for g++ where the bug is still present.
15395         See <http://trac.macports.org/ticket/41033>.
15397 2013-11-08  Eric Blake  <eblake@redhat.com>
15399         fpending: fix regression on DragonFly BSD
15400         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
15401         * lib/fpending.h (__fpending): Don't declare twice.
15402         Reported by GW in
15403         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
15405 2013-11-05  Jim Meyering  <meyering@fb.com>
15407         hash: relax license to LGPLv2+, for libguestfs
15408         * modules/hash (License): Change from GPL to LGPLv2+.
15410 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
15412         intprops: port to Oracle Studio c99
15413         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
15414         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
15416 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
15418         obstack: pacify HP C
15419         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
15420         warning "conversion from pointer to smaller integer" from HP
15421         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
15422         C89 or later nowadays, so cast to void instead of int.  Privately
15423         reported by H.Merijn Brand.  Also, change header to match glibc's,
15424         to make checking against glibc easier.
15426 2013-10-29  Jim Meyering  <meyering@fb.com>
15428         maint.mk: prefer gpgv2 over gpgv
15429         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
15430         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
15431         Reported by Gary Vaughan.
15433 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
15435         isnan: port to VAX
15436         Reported by John Klos for NetBSD-5/VAX in
15437         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
15438         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
15439         (FUNC): Use it.
15441 2013-10-28  Jim Meyering  <meyering@fb.com>
15443         gnulib-tool: protect against CDPATH
15444         * gnulib-tool: Many "cd" built-in functions print a directory name
15445         to stdout when CDPATH is set, e.g.,
15446           $ bash -c 'CDPATH=/; cd tmp'
15447           /tmp
15448         Unset it, when possible.  Prompted by a comment from Bruce Korb.
15450         maint.mk: restore functionality removed by recent change...
15451         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
15452         the context of a shallow-cloned gnulib repository: "git describe"
15453         would fail in such a directory.  However, that change made it so
15454         the reported gnulib revision no longer includes the version number
15455         or a commit count, even when run from a full clone.
15456         * top/maint.mk (gnulib-version): Use the full "git describe"
15457         output when possible, e.g., the form above, rather than the
15458         abbreviated, no-tag, no-commit-count string, and fall back to
15459         using a 10-byte hash, rather than the default minimal-length
15460         hash prefix, since while the minimal-length one may be fine today,
15461         it is likely not to be unique for very long.
15463 2013-10-26  Jim Meyering  <meyering@fb.com>
15465         maint.mk: fix "release" target to build _version
15466         This fixes a bug in README-release whereby following the outlined
15467         steps, one would publish a tarball whose programs would report
15468         --version output not consistent with the package version number.
15469         This bug caused grep-2.15 to produce a grep program whose
15470         --version option made it print 2.14.56-1e3d rather than 2.15.
15471         * top/maint.mk (release): Making this target build "_version"
15472         ensures that the new version number is reflected in configure.
15474 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
15476         install-reloc: Support multi-binary installation.
15477         * build-aux/install-reloc: Support installing multiple programs in
15478         one invocation, as done by Automake starting with commit
15479         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
15480         Haible <bruno@clisp.org>, archived at
15481         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
15482         Reported by Sylvain <beuc@gnu.org>.
15484 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
15486         selinux-h: Really build without selinux when library is missing.
15487         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
15488         continue without selinux, as already told in the warning message.
15490 2013-10-21  Jim Meyering  <meyering@fb.com>
15492         regex: also remove dependency on HAVE_WCSCOLL
15493         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
15495 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
15497         xfreopen: Fix typo. s/frepoen/freopen/
15498         * lib/xfreopen.c: Fix description.
15499         * modules/xfreopen: Likewise.
15501 2013-10-21  Jim Meyering  <meyering@fb.com>
15503         regex: don't depend on wcscoll
15504         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
15505         It is no longer used.
15507 2013-10-20  Jim Meyering  <meyering@fb.com>
15509         error: add the printf attribute to a static function
15510         * lib/error.c (error_tail): Add the printf attribute, to placate
15511         gcc's -Werror=suggest-attribute=format option.
15513 2013-09-30  Jim Meyering  <meyering@fb.com>
15515         fpending, obstack, strerror-override: use pure+const function attrs
15516         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
15517         * lib/obstack.c (_obstack_allocated_p): Likewise.
15518         * lib/obstack.h (_obstack_memory_used): Likewise.
15519         (_obstack_memory_used): Likewise.
15520         * lib/strerror-override.h (strerror_override): Declare with
15521         the "const" attribute.
15523 2013-10-18  Eric Blake  <eblake@redhat.com>
15525         extern-inline: make safe for -Wundef usage
15526         Reported by Vladimir 'phcoder' Serbinenko in
15527         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
15528         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
15530 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
15532         mkfifo-tests, etc.: allow HP-UX 11.11 bug
15533         Problem reported by Daniel Richard G. in
15534         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
15535         * doc/posix-functions/mkfifo.texi (mkfifo):
15536         * doc/posix-functions/mkfifoat.texi (mkfifoat):
15537         * doc/posix-functions/mknod.texi (mknod):
15538         * doc/posix-functions/mknodat.texi (mknodat):
15539         Document the HP-UX 11.11 bug.
15540         * tests/test-mkfifo.h (test_mkfifo):
15541         Allow the HP-UX 11.11 bug.
15543 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
15545         acl: allow cross-compilation to Gentoo
15546         Problem reported by Gabriel Marcano in
15547         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
15548         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
15549         test only whether it links.
15551 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
15553         mgetgroups: remove dependency on realloc-gnu
15554         The dependency violates the comment in realloc-gnu, which
15555         says that tests can't depend on realloc-gnu; some tests depend
15556         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
15557         Problem reported by Daniel Richard G. in
15558         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
15559         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
15560         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
15561         not realloc-gnu.
15563 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
15565         regex-tests: port to HP-UX 11.11
15566         Problem reported by Daniel Richard G. in
15567         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
15568         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
15570 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
15572         verify: document some 'assume' pitfalls
15573         * doc/verify.texi (Compile-time Assertions):
15574         Mention that 'assume (E)' can sometimes slow things down.
15575         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
15577 2013-10-10  Eric Blake  <eblake@redhat.com>
15579         strtoumax: fix typo in previous commit.
15580         * modules/strtoumax (Depends-on): Fix typo.
15581         * modules/strtoimax (Depends-on): Likewise.
15583 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
15585         strtoumax: port to Solaris 8
15586         This problem was introduced in the recent HP-UX patch.
15587         Reported by Tom G. Christensen in
15588         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
15589         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
15590         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
15592 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
15594         strtoimax, strtoumax: port to HP-UX 11.11
15595         Problem reported by Daniel Richard G. in
15596         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
15597         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
15598         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
15599         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
15600         REPLACE_STRTOUMAX.
15601         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
15602         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
15603         Replace the function if defined as a macro but not as a function.
15604         * modules/inttypes-incomplete (inttypes.h): Substitute
15605         REPLACE_STRTOUMAX.
15606         * modules/strtoumax (configure.ac): Replace strtoumax if
15607         REPLACE_STRTOUMAX.
15609 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
15611         strtoimax: port to HP-UX 11.11
15612         Problem reported by Daniel Richard G.
15613         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
15614         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
15615         they might clash with inttypes.h.
15617 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
15619         New module 'count-trailing-zeros'.
15620         * MODULES.html.sh: Mention it.
15621         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
15622         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
15623         * modules/count-trailing-zeros-tests:
15624         * tests/test-count-trailing-zeros.c:
15625         New files.
15627         count-leading-zeros: port to MSC; support types wider than 64 bits
15628         The ideas behind the MSC port are stolen from Emacs.
15629         * lib/count-leading-zeros.h:
15630         Don't include verify.h: it's no longer needed, as types wider than
15631         64 bits are now supported.
15632         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
15633         performance with MSC.  All uses changed.  Do not assume that TYPE
15634         has at most 64 bits.
15635         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
15636         All uses changed.  Fold the subtraction from 31 into the table.
15638         count-one-bits: port to MSC; support types wider than 64 bits
15639         The ideas behind the MSC port are stolen from Emacs.
15640         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
15641         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
15642         Don't include verify.h: it's no longer needed, as types wider than
15643         64 bits are now supported.
15644         (COUNT_ONE_BITS_GENERIC): New macro.
15645         (popcount_supported) [_MSC_VER]: New inline function.
15646         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
15647         performance with MSC.  All uses changed.  Do not assume that TYPE
15648         has at most 64 bits.
15649         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
15651 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
15653         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
15654         * lib/mountlist.c (read_file_system_list): fix leak of directory
15655         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
15657 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
15659         tests: improve diagnostic when an assertion fails
15660         * tests/macros.h (ASSERT): Report the assertion that failed.
15662 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
15664         verify: new macro 'assume'
15665         This is taken from Emacs, and should be generally useful.
15666         * doc/verify.texi (assume): Document it.
15667         * lib/verify.h (assume): New macro.
15668         (__has_builtin): Expand to 0 if not defined.
15670 2013-09-26  Eric Blake  <eblake@redhat.com>
15672         dup2, dup3: work around another cygwin crasher
15673         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
15674         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
15675         * tests/test-dup2.c (main): Likewise.
15676         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
15677         * lib/dup3.c (dup3): Likewise.
15678         * doc/posix-functions/dup2.texi (dup2): Document it.
15679         * doc/glibc-functions/dup3.texi (dup3): Likewise.
15681         getdtablesize: work around cygwin issue
15682         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
15683         * modules/getdtablesize (configure.ac): Build replacement.
15684         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
15685         * modules/unistd (Makefile.am): Expose the witness.
15686         * lib/unistd.in.h (getdtablesize): Declare replacement.
15687         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
15688         * tests/test-getdtablesize.c (main): Test it.
15689         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
15691 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
15693         pmccabe2html: escaping of special characters
15694         Escape all '<', '>', and '&' in HTML output.
15695         * build-aux/pmccabe2html (html_fnc): Call gsub()
15696         instead of sub() to capture all '<', '>', and '&'.
15697         Neither of '<' and '>' is special in a regexp,
15698         so first arguments to gsub() are corrected. Also,
15699         in replacement strings, ampersand must be escaped.
15700         Finally, '&' must be handled first, then '<' and '>'.
15702 2013-09-24  Eric Blake  <eblake@redhat.com>
15704         manywarnings: enable nicer gcc warning messages
15705         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
15706         some -f options for optimal warnings.
15708 2013-09-21  Jim Meyering  <meyering@fb.com>
15710         timespec: use the new TIMESPEC_RESOLUTION in a few more places
15711         * lib/timespec-add.c (timespec_add): Also replace 999999999
15712         with TIMESPEC_RESOLUTION - 1.
15713         * lib/timespec-sub.c (timespec_sub): Likewise.
15715 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
15717         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
15718         Problem reported by Dagobert Michelsen via Eric Blake in
15719         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
15720         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
15721         not AC_COMPILE_IFELSE.
15723 2013-09-23  Eric Blake  <eblake@redhat.com>
15725         configmake: support new --runstatedir option
15726         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
15727         even if autoconf was too old to provide the command line option.
15728         * modules/configmake (Makefile.am): Propagate it to .h file.
15730 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
15732         ctype, string: depend on extern-inline
15733         This is needed to complete the recent OS X fixes.
15734         Also, fix related documentation as suggested by Eric Blake.
15735         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
15736         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
15737         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
15738         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
15739         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
15740         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
15741         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
15742         * doc/posix-functions/toupper.texi:
15743         List the 'ctype' gnulib module.
15744         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
15745         * doc/posix-functions/strncpy.texi:
15746         List the 'string' gnulib module.
15747         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
15748         Add string.
15749         * modules/ctype, modules/string (Depends-on): Add extern-inline.
15751 2013-09-19  Pádraig Brady  <P@draigBrady.com>
15753         userspec: support optional parameters to parse_user_spec()
15754         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
15755         then avoid group processing and treat the full spec as a user.
15756         (parse_with_separator): Allow the USERNAME and GROUPNAME to
15757         be optional params (NULL), in which case they're ignored.
15759 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
15761         timespec: new function make_timespec, and new constants
15762         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
15763         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
15764         (make_timespec): New function.
15765         * lib/dtotimespec.c (dtotimespec):
15766         * lib/timespec-add.c (timespec_add):
15767         * lib/timespec-sub.c (timespec_sub):
15768         * lib/utimens.c (validate_timespec):
15769         * lib/utimensat.c (rpl_utimensat):
15770         Use these new constants and functions.
15772         stdio: OS X port of putc_unlocked + extern inline
15773         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
15774         * doc/posix-functions/putc_unlocked.texi:
15775         * doc/posix-functions/putchar_unlocked.texi:
15776         Document this portability problem.
15778         signal: OS X port of sigaddset etc. + extern inline
15779         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
15780         (sigismember): #undef on problematic Apple platforms.
15781         * doc/posix-functions/sigaddset.texi:
15782         * doc/posix-functions/sigdelset.texi:
15783         * doc/posix-functions/sigemptyset.texi:
15784         * doc/posix-functions/sigfillset.texi:
15785         * doc/posix-functions/sigismember.texi:
15786         Document this portability problem.
15788         extern-inline: do not always suppress extern inline on OS X
15789         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
15790         extern inline on Apple only if the particular compile-time
15791         configuration is known to have the problem.
15792         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
15793         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
15794         other Gnulib modules.
15796         extern-inline: document fixes for ctype and wctype macros
15797         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
15798         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
15799         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
15800         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
15801         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
15802         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
15803         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
15804         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
15805         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
15806         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
15807         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
15808         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
15809         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
15810         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
15811         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
15812         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
15813         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
15814         * doc/posix-functions/strncpy.texi:
15815         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
15816         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
15817         Document that Gnulib fixes portability problems with these
15818         functions on OS X 10.8 and earlier when called from plain inline
15819         or extern inline functions.
15821 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
15823         fflush, freadahead, fseeko: Fix for Android
15824         Suggested by Bruno Haible in:
15825         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
15826         * lib/stdio-impl.h: Use local __sfileext definition.
15828 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
15830         pmccabe2html: Portability to other awk versions.
15831         The functions systime() and strftime() are available
15832         in Gawk only.  Properly close two HTML-tags 'style'
15833         and 'span'.
15834         * build-aux/pmccabe2html (BEGIN): Store timing
15835         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
15836         systime() in HTML_COMMENT.
15837         (html_header): Correctly close tag 'style'.
15838         (END): Replace strftime() by CHRONOS_TIME.  Close
15839         tag 'span' correctly, not as 'div'.
15841 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
15843         getgroups: statement without effect
15844         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
15845         Change equality conditional to expected assignment.
15847 2013-09-09  Eric Blake  <eblake@redhat.com>
15849         glob: fix compilation
15850         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
15852 2013-09-07  Eric Blake  <eblake@redhat.com>
15854         glob: fix build for platforms without __THROW
15855         * lib/glob.in.h (__THROW): Add definition again.
15857 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
15859         regex-quote: fix buffer access out of bounds
15860         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
15861         * lib/regex-quote.c (regex_quote_spec_pcre):
15862         Fix typo that resulted in an out-of-bounds read.
15864 2013-09-04  Eric Blake  <eblake@redhat.com>
15866         glob: avoid -Wattribute warnings on glibc
15867         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
15868         __THROWNL, not __THROW, on static functions.
15869         * lib/glob.in.h (__THROW): Adjust...
15870         (__THROWNL): ...accordingly.
15872 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
15874         headers: check that _GL_INLINE_HEADER_BEGIN is defined
15875         Suggested by Bruce Korb in:
15876         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
15877         * doc/extern-inline.texi (extern inline):
15878         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
15879         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
15880         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
15881         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
15882         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
15883         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
15884         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
15885         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
15886         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
15887         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
15888         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
15889         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
15890         * lib/xtime.h:
15891         Check that _GL_INLINE_HEADER_BEGIN is defined.
15893 2013-08-29  Pádraig Brady  <P@draigBrady.com>
15895         bootstrap: remove the --version requirement from ancillary tools
15896         * build-aux/bootstrap (check_exists): A new refactored function to
15897         determine if a command exists.
15898         (find_tool): Use the new function which does not require the
15899         --version option to be supported.
15900         (check_versions): Use the new function.
15902 2013-08-26  Simon Josefsson  <simon@josefsson.org>
15904         gc: support HMAC-SHA256 and HMAC-SHA512.
15905         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
15906         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
15907         functions.
15908         (gc_hmac_md5): Use symbolic constant.
15909         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
15910         (gc_hmac_sha256, gc_hmac_sha512): New functions.
15911         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
15912         * m4/sha256.m4: Protect against empty expansion.
15913         * m4/sha512.m4: Likewise.
15914         * lib/hmac-sha256.c: New file.
15915         * lib/hmac-sha512.c: Likewise.
15916         * m4/gc-hmac-sha256.m4: Likewise.
15917         * m4/gc-hmac-sha512.m4: Likewise.
15918         * m4/gc-sha256.m4: Likewise.
15919         * m4/gc-sha512.m4: Likewise.
15920         * modules/crypto/gc-hmac-sha256: Likewise.
15921         * modules/crypto/gc-hmac-sha256-tests: Likewise.
15922         * modules/crypto/gc-hmac-sha512: Likewise.
15923         * modules/crypto/gc-hmac-sha512-tests: Likewise.
15924         * modules/crypto/hmac-sha256: Likewise.
15925         * modules/crypto/hmac-sha256-tests: Likewise.
15926         * modules/crypto/hmac-sha512: Likewise.
15927         * modules/crypto/hmac-sha512-tests: Likewise.
15928         * tests/test-gc-hmac-sha256.c: Likewise.
15929         * tests/test-gc-hmac-sha512.c: Likewise
15930         * tests/test-hmac-sha256.c: Likewise.
15931         * tests/test-hmac-sha512.c: Likewise
15933 2013-08-24  Daiki Ueno  <ueno@gnu.org>
15935         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
15936         of AC_CHECK_DECLS.
15938 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
15940         selinux-at: omit unnecessary include
15941         * lib/selinux-at.c: Don't include dosname.h; not needed, since
15942         this source file doesn't use its macros, and subsidiary files that
15943         use the macros already include it.
15945 2013-08-21  Eric Blake  <eblake@redhat.com>
15947         d-ino: avoid false negative on symlink
15948         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
15949         Reported by Stephane Chazelas.
15951 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
15953         bootstrap: port to OpenBSD sed
15954         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
15955         does not interpret `-' as a file argument to mean stdin.
15957 2013-08-15  Eric Blake  <eblake@redhat.com>
15959         warnings: minor optimization
15960         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
15962         warnings: check -Wfoo rather than -Wno-foo
15963         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
15964         -Wno-, test if the compiler recognizes the positive form instead.
15966 2013-08-15  Karl Berry  <karl@gnu.org>
15968         * config/srclist-update: add option "doclicense" to placate
15969         pulling *.texi files from Emacs.  Write terse usage
15970         documentation at the top.
15972 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
15974         xvasprintf-tests: port to GCC with hardening flags
15975         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
15976         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
15977         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
15979 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
15981         fpending: port to recent Cygwin change to stdio_ext.h
15982         Reported by LRN in
15983         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
15984         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
15985         just declare __fpending unless it's a macro.
15986         A duplicate decl shouldn't hurt.
15987         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
15988         call compiles and links, instead of separately checking for
15989         decl and lib function.
15990         * modules/fpending (configure-ac):
15991         Adjust to fpending.m4's renaming of shell variable.
15993 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
15995         sys_time: port to OpenBSD
15996         * lib/sys_time.in.h: Simply delegate to the system's header
15997         in the BSDish cases as well.  Problem reported by Mike Miller in
15998         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
15999         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
16000         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
16001         wider than time_t.
16003 2013-08-09  Pádraig Brady  <P@draigBrady.com>
16005         bootstrap: support checksum utils having -c but not --status
16006         * build-aux/bootstrap: Only look for sha1sum if updating po files.
16007         Add sha1 to the list of supported checksum utils since it's now
16008         supported through adjustments below.
16009         (update_po_files): Remove the use of --status
16010         in a way that will suppress all error messages, but since this is
16011         only used to minimize updates, it shouldn't cause an issue.
16012         Exit early if there is a problem updating the po file checksums.
16013         (find_tool): Remove the check for --version support as this
16014         is optional as per commit 86186b17.  Don't even check for the
16015         presence of the command as if that is needed, it's supported
16016         through configuring prerequisites in bootstrap.conf.
16017         Prompt that when a tool isn't found, one can define an environment
16018         variable to add to the hardcoded search list.
16020 2013-08-05  Jim Meyering  <meyering@fb.com>
16022         regex: port to non-glibc/lock-using systems
16023         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
16024         system with GNULIB_LOCK would fail due to absence of the
16025         included "glthread/lock.h".  This would affect any package
16026         for which the "lock" module is used only by the regex module,
16027         and not explicitly used.
16028         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
16029         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
16030         Add a dependency on the "lock" module.
16032 2013-07-20  Daiki Ueno  <ueno@gnu.org>
16034         localecharset: make locale_charset thread-safe on Mac OS X
16035         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
16036         instead of MB_CUR_MAX.
16038 2013-07-20  Daiki Ueno  <ueno@gnu.org>
16040         gettext: update to version 0.18.3
16041         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
16042         require AC_PROG_SED to allow user to specify custom sed command when
16043         generating en@quot PO file.
16045 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
16047         bootstrap: use correct source when copying build-aux files
16048         * build-aux/bootstrap (gnulib_extra_files): This variable is
16049         relative to upstream gnulib layout, not downstream.
16051 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
16053         tmpdir: fix bug in VMS port
16054         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
16055         See Steven M. Schweda in
16056         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
16058 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
16060         tmpdir: port to VMS, to // != /, and to long dirs
16061         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
16062         __secure_getenv, so that we're more like the glibc version.
16063         All uses changed.
16064         (path_search): Don't put slash after directory if __VMS.
16065         Problem reported by Steven M. Schweda in
16066         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
16067         Simplify code to add slash; no need for a loop.
16068         Do not remove trailing slash from "//".
16069         Do not assume dlen <= INT_MAX.
16071 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
16073         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
16074         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
16075         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
16076         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
16078         accept4, dup3, pipe2: port to Cygwin
16079         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
16080         * lib/accept4.c (accept4) [O_BINARY]:
16081         * lib/dup3.c (dup3) [O_BINARY]:
16082         * lib/pipe2.c (pipe2) [O_BINARY]:
16083         Use set_binary_mode, not setmode.
16084         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
16085         * modules/binary-io (Depends-on): Remove module indicator.
16086         These last two bits undo the previous change to pipe2 and binary-io.
16088 2013-07-09  Pádraig Brady  <P@draigBrady.com>
16090         mountlist: add support for deallocating returned list entries
16091         * lib/mountlist.c (free_mount_entry): A new exported function
16092         to deallocate a mount list entry.
16093         (read_file_system_list): Refactor to use the new deallocation function.
16094         Suggested by Anton Ovchinnikov.
16096 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
16098         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
16099         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
16100         * lib/stdalign.in.h (_Alignas, _Alignof):
16101         Port to FreeBSD 9.1, and to C11 and C++11.
16102         (_Alignas): Also support ICC.
16103         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
16104         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
16106 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
16108         fnmatch: don't goto over declaration
16109         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
16110         undefined behavior for goto over a declaration.
16111         Problem reported by Charlie Brown in
16112         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
16114         pipe2: decouple from binary-io a bit
16115         This is for Emacs, which needs pipe2 but not binary-io.
16116         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
16117         * modules/binary-io (Depends-on): Add module indicator.
16119 2013-07-03  Eric Blake  <eblake@redhat.com>
16121         mgetgroups: relax license to LGPLv2+
16122         * modules/getugroups (License): Change from GPLv3+.
16123         * modules/mgetgroups (License): Likewise.
16124         * modules/getgroups (License): Change from LGPLv3+.
16126         xalloc-oversized: relax license to LGPLv2+
16127         * modules/xalloc-oversized (License): Change from GPLv3+.
16129         nproc: relax license to LGPLv2+
16130         * modules/nproc (License): Change from LGPLv3+.
16132         bootstrap: honor --no-git
16133         * build-aux/bootstrap: Don't even try to use git when user is
16134         pointing to a static checkout.
16136 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
16138         ignore-value: port to gcc -pedantic
16139         * lib/ignore-value.h (ignore_value):
16140         Port to gcc -pedantic, by using __extension__.
16141         Reindent as per usual gnulib style nowadays.
16142         Simplify GCC version check.
16144 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
16146         extern-inline: port to gcc -std=c89
16147         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
16148         Do not use __gnu_inline__ if pedantic and pre-C99.
16150 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
16152         doc: document extern-inline
16153         * doc/extern-inline.texi: New file.
16154         * doc/gnulib.texi (alloca-opt): Include it.
16155         * m4/extern-inline.m4: Move some comments to documentation,
16156         and others closer to what they describe.
16158         doc: chatter less
16159         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
16160         (updated-stamp): Use it.  This causes 'make' to output just
16161         one file name rather than zillions.
16163         fflush, fseeko: port to musl cross-compiles
16164         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
16165         on some implementation that (1) is not known to be buggy,
16166         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
16167         cross-compiled to so we can't easily check for lack of
16168         conformance.  This is for cross-compiling to musl.
16169         Reported by Rich Felker in
16170         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
16171         * m4/fclose.m4 (gl_FUNC_FCLOSE):
16172         * m4/fflush.m4 (gl_FUNC_FFLUSH):
16173         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
16174         Adjust to above change.
16175         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
16176         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
16177         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
16178         known not to work, or unknown.
16180 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
16182         msvc-inval: port to mingw-w64
16183         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
16184         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
16185         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
16187 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
16189         getcwd-lgpl: port to Tru64
16190         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
16191         Problem reported by Steven M. Schweda in
16192         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
16194         tests: port large-fd POSIX spawn tests to OS X
16195         Problem reported by Daiki Ueno in
16196         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
16197         * tests/test-posix_spawn_file_actions_addclose.c:
16198         * tests/test-posix_spawn_file_actions_adddup2.c:
16199         * tests/test-posix_spawn_file_actions_addopen.c:
16200         Include <limits.h>, for OPEN_MAX, if available.
16201         (big_fd): New static function.
16202         (main): Use it.
16204 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
16206         tests/nap.h: use an adaptive delay to avoid ctime update issues
16207         The recent change in nap.h (5191133e) decreased the probability of lost
16208         races to about a third, however such problems could still be observed
16209         in virtual machines and openSUSE's OBS.
16210         Before, nap() detected the needed time once empirically and then used
16211         that delay (together with a small correction multiplier) in further
16212         calls.  This problem has been reported and discussed several times,
16213         including guesses about possible kernel issues:
16214         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
16215         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
16216         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
16217         http://bugs.gnu.org/12820
16218         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
16219         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
16220         Now, nap() avoids the race alltogether by verifying on a reference
16221         file whether a timestamp difference has happened.
16222         * tests/nap.h (nap_fd): Define file descriptor variable for the
16223         witness file.
16224         (nap_works): Change return value to bool.  Change passing
16225         the old file's status by value instead of by reference as this function
16226         does no longer update that timestamp; rename the function argument from
16227         st to old_st.  Remove the local variables cdiff and mdiff because that
16228         function now returns true/false instead of the precise delay.
16229         (guess_delay): Remove function.
16230         (clear_tmp_file): Add new function to close and unlink the witness file.
16231         (nap): Instead of re-using the delay which has been calculated during
16232         the first call, avoid the race by actually verifying that a timestamp
16233         difference can be observed on the current file system.  Use an adaptive
16234         approach for the delay to minimize execution time.  Assert that the
16235         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
16236         = 2^31 - 1 = 2.1s.
16237         Use atexit to call clear_tmp_file when the process terminates.
16239 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
16241         sig2str: port to C++
16242         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
16243         Reported by Daniel J Sebald in
16244         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
16246 2013-05-30  Eric Blake  <eblake@redhat.com>
16248         docs: mention cygwin shortcoming in <sys/un.h>
16249         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
16251         vasnprintf: silence mingw compiler warning
16252         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
16254 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
16256         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
16257         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
16258         This fixes a porting bug I recently reintroduced in regex, and
16259         some other instances that I discovered while testing the fix.
16260         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
16261         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
16262         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
16263         with an empty argument if this is a pedantic pre-C99 GCC.
16264         * lib/verify.h: Do not use _Static_assert if this is a pedantic
16265         pre-C11 GCC.
16267         regex: adapt to locking regime instead of depending on pthread
16268         Instead of depending on pthread, adapt to whatever thread
16269         modules are in use.  Problem reported by Ludovic Courtès in
16270         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
16271         and by Mats Erik Andersson in
16272         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
16273         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
16274         Support either the 'lock' module, or the 'pthread' module, or
16275         no module.
16276         (lock_lock, lock_unlock): New macros.
16277         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
16278         * modules/lock, modules/pthread (configure.ac): Add module indicator.
16279         * modules/regex (Depends-on): Remove pthread.
16281 2013-05-22  Eric Blake  <eblake@redhat.com>
16283         getgroups: document portability issues
16284         * doc/glibc-functions/initgroups.texi (initgroups): Mention
16285         multithread safety.
16286         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
16287         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
16288         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
16289         getugroups.
16290         * doc/posix-functions/getgroups.texi (getgroups): Mention
16291         multithread safety and mgetgroups.
16293 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
16295         test-lchown, test-chown: also skip test if chown fails with EPERM
16296         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
16297         skip this test, to handle FAT file systems.
16298         * tests/test-chown.h (test_chown): Likewise.
16300 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16302         regex: fix dfa race in multithreaded uses
16303         Problem reported by Ludovic Courtès in
16304         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
16305         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
16306         New macros.  All uses of __libc_lock_define, __libc_lock_init
16307         changed to use the first two of these.
16308         (__libc_lock_lock, __libc_lock_unlock): New macros, for
16309         non-glibc platforms.
16310         (struct re_dfa_t): Define the lock unconditionally.
16311         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
16312         '#ifdef _LIBC"s.
16313         * modules/regex (Depends-on): Add pthread, if we use the
16314         included regex.
16316         * lib/regcomp.c: Do actions that are not needed for glibc,
16317         but may be needed elsewhere.
16318         (regfree, re_compile_internal): Destroy the lock.
16319         (re_compile_internal): Check for lock-initialization failure.
16321         malloca: port to compilers that reject size-zero arrays
16322         This fixes a bug introduced in my previous patch.
16323         * lib/malloca.c (struct preliminary_header): Use an int
16324         rather than a character array of size int; that's simpler.
16325         (struct header): Remove, replacing with ...
16326         (union header): New type.  This avoids the need for declaring a
16327         character array of size zero, which is not allowed on some platforms.
16328         All uses changed.
16330 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
16332         parse-datetime, tests: don't use "string" + int
16333         Recent versions of 'clang' complain about C source code that
16334         uses expressions of the form '"string literal" + integer',
16335         I guess on the theory that it's confusing for readers who are
16336         used to C++.  On those grounds I suppose it's OK to make this
16337         minor style change.
16338         * lib/parse-datetime.y (parse_datetime):
16339         * tests/test-fchdir.c (main):
16340         * tests/test-snprintf-posix.h (test_function):
16341         * tests/test-snprintf.c (main):
16342         * tests/test-vasnprintf-posix.c (test_function):
16343         * tests/test-vasnprintf.c (test_function):
16344         * tests/test-vsnprintf.c (main):
16345         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
16346         Rewrite '"str" + E' to '&"str"[E]'.
16348 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
16350         argmatch: port to C++
16351         * lib/argmatch.h [__cplusplus]: Add extern "C".
16353         argp: typo fix
16354         * lib/argp-help.c: Typo in comment.
16356 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
16358         manywarnings: update for GCC 4.8.0
16359         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
16360         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
16361         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
16362         -Wmissing-noreturn, as they are duplicates of other warnings.
16363         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
16364         was documented to be flaky in earlier versions of GCC.
16366         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
16367         * tests/test-spawn.c (main):
16368         * tests/test-sys_socket.c (main):
16369         * tests/test-sys_wait.c (main):
16370         Don't have a switch value that isn't covered by a case.
16372         getaddrinfo-tests: port --enable-gcc-warnings to clang
16373         * tests/test-getaddrinfo.c (simple):
16374         Avoid casts from looser to stricter-aligned pointers.
16376         thread: port --enable-gcc-warnings to clang
16377         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
16378         Include <signal.h>, to pacify a warning about pthread_sigmask.
16380         stdio: use __REDIRECT for fwrite, fwrite_unlocked
16381         * lib/stdio.in.h (fwrite):
16382         When working around bug 11959, use __REDIRECT rather than '#define
16383         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
16384         fix the -Wunused-value issue with clang, and it works with GCC too.
16385         Problem with targeting reported by Eric Blake in
16386         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
16387         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
16388         debugging the fwrite issue.
16390         stdio: port --enable-gcc-warnings to clang
16391         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
16392         since the GCC workaround for fwrite does not pacify clang.
16394         sig2str: port --enable-gcc-warnings to clang
16395         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
16397         obstack: port --enable-gcc-warnings to clang
16398         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
16399         Avoid casts from looser to stricter-aligned pointers.
16401         memchr2: port --enable-gcc-warnings to clang
16402         * lib/memchr2.c (memchr2):
16403         Avoid casts from looser to stricter-aligned pointers.
16405         mbsstr: port --enable-gcc-warnings to clang
16406         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
16407         Avoid casts from looser to stricter-aligned pointers.
16409         malloca: port --enable-gcc-warnings to clang
16410         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
16411         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
16413         inttostr: port --enable-gcc-warnings to clang
16414         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
16416         warnings: port to clang
16417         Problem reported by Daniel P. Berrange via Eric Blake in
16418         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
16419         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
16420         (gl_WARN_ADD): Use it.
16422 2013-05-11  Jim Meyering  <meyering@fb.com>
16424         quotearg: do not read beyond end of buffer
16425         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
16426         end of an ARG for which no length was specified.  With an N-byte
16427         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
16428         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
16429         via coreutils' misc/sort-debug-keys.sh test and detected by running
16430         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
16431         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
16432         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
16433         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
16434         characters correctly."
16436 2013-05-11  Daiki Ueno  <ueno@gnu.org>
16438         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
16439         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
16440         compilation target is Mac OS X 10.6.
16441         Problem reported by parafin and Andoni Morales in
16442         <http://savannah.gnu.org/bugs/?37844> and
16443         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
16445 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
16447         mkdir-p: remove assumptions about umask and mode
16448         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
16449         umask is 0, or that MODE is a subset of MODE_BITS.
16451 2013-05-10  Eric Blake  <eblake@redhat.com>
16453         maint.mk: catch more abuse of HAVE_DECL in syntax-check
16454         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
16456 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
16458         deps: require Automake >= 1.9.6 in generated Makefile fragments
16460         That is the same minimal version required in the DEPENDENCIES file.
16461         Moreover, the old code generated a requirement of Automake >= 1.5,
16462         and that is an insanely outdated version.
16464         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
16465         * tests/havelib/rpathlx/Makefile.am: Likewise.
16466         * tests/havelib/rpathly/Makefile.am: Likewise.
16467         * tests/havelib/rpathlyx/Makefile.am: Likewise.
16468         * tests/havelib/rpathlz/Makefile.am: Likewise.
16469         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
16470         * tests/havelib/rpathx/Makefile.am: Likewise.
16471         * tests/havelib/rpathy/Makefile.am: Likewise.
16472         * tests/havelib/rpathz/Makefile.am: Likewise.
16474 2013-05-08  Eric Blake  <eblake@redhat.com>
16476         bootstrap: AC_INIT may have more than four parameters
16477         * build-aux/bootstrap (extract_package_name): Correctly extract
16478         non-empty tarname field.  Avoid range in regex.
16479         Based on a report by Sami Kerola <kerolasa@iki.fi>.
16481 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
16483         qacl: port to MS-Windows port of GNU Emacs
16484         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
16485         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
16486         port of GNU Emacs.  Problem reported by Eli Zaretskii in
16487         <http://bugs.gnu.org/14295#14>.
16489 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
16491         acl: include quote.h
16492         * lib/copy-acl.c: Include quote.h.
16493         * lib/set-acl.c: Likewise.
16495 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
16497         fchownat, renameat, unlinkat: update statat dependencies
16498         These modules use statat and lstatat, not fstatat; so depend on
16499         the statat module, which was split out recently from fstatat.
16500         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
16501         * modules/renameat: Likewise.  Also delete fstat.
16502         URL: http://bugs.gentoo.org/468790
16504 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
16506         Assume gnulib is checked out from Git, not CVS
16508         In fact, access to the gnulib repository through CVS has been
16509         disabled, or more precisely, got broken and was never restored; see:
16510         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
16512         Note that support for CVS is not removed completely and unthinkingly
16513         by this change: only support for CVS checkouts of gnulib itself is
16514         removed.  For example, the 'bootstrap' script still cater to .cvsingore
16515         files and CVS directories, for the benefit of those poor gnulib clients
16516         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
16518         * gnulib-tool: Simplify accordingly.
16519         * posix-modules: Likewise.
16520         * MODULES.html.sh: Likewise.
16521         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
16522         repository.
16523         * doc/gnulib-intro.texi: Likewise.
16524         * doc/gnulib-readme.texi: Likewise.
16525         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
16526         sample '.gitignore' file rather than a sample '.cvsignore'.
16527         * NEWS: Update.
16528         * m4/extensions.m4: While at it, remove a comment mistakenly referring
16529         to "CVS Autoconf" rather than "git Autoconf".
16531 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
16533         utimensat-tests, etc.: try to fix some races
16534         Problem reported by Bernhard Voelker in
16535         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
16536         I don't know whether this patch fixes that race condition, but it
16537         fixes *some* race conditions, so it should be a win.
16538         * modules/chown-tests (Depends-on):
16539         * modules/fchownat-tests (Depends-on):
16540         * modules/fdutimensat-tests (Depends-on):
16541         * modules/futimens-tests (Depends-on):
16542         * modules/lchown-tests (Depends-on):
16543         * modules/stat-time-tests (Depends-on):
16544         * modules/utimens-tests (Depends-on):
16545         * modules/utimensat-tests (Depends-on):
16546         Depend on nanosleep, not usleep.
16547         * modules/chown-tests (test_chown_LDADD):
16548         * modules/lchown-tests (test_lchown_LDADD):
16549         * modules/stat-time-tests (test_stat_time_LDADD):
16550         New macro.
16551         * modules/fchownat-tests (test_fchownat_LDADD):
16552         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
16553         * modules/futimens-tests (test_futimens_LDADD):
16554         * modules/utimens-tests (test_utimens_LDADD):
16555         * modules/utimensat-tests (test_utimensat_LDADD):
16556         Add $(LIB_NANOSLEEP).
16557         * modules/stat-time-tests (Files): Add tests/nap.h.
16558         * tests/nap.h: Include <limits.h>, for INT_MAX.
16559         (lt_mtime): Remove.
16560         (diff_timespec): New function.
16561         (get_stat): Rename from get_mtime.  All callers changed.
16562         (nap_works): Determine the needed delay by inspecting the
16563         file system's timestamp jumps; this should be more reliable.
16564         Look at both mtime and ctime, and take the maximum of the two jumps.
16565         (nap_works, guess_delay):
16566         Return a nanosecond count, not a microsecond count.
16567         All callers changed.
16568         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
16569         failure.
16570         (nap): Multiply the guess by 1.125, to accommodate the case where
16571         the file system's clock is a bit slower than nanosleep's clock.
16572         * tests/test-stat-time.c (BASE): New macro.
16573         Include nap.h.
16574         (nap): Remove; nap.h now defines this.  This removes a duplicate
16575         implementation of 'nap'.
16577         utimens, utimensat: work around Solaris UTIME_OMIT bug
16578         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
16579         Linux kernel 2.6.32 does.  Work around it in the same way.
16580         * doc/posix-functions/futimens.texi (futimens):
16581         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
16582         * lib/utimens.c (fdutimens, lutimens):
16583         * lib/utimensat.c (rpl_utimensat): Work around the bug.
16585         gettext: now it's your responsibility to add -I$(top_builddir)/intl
16586         Formerly, it was your responsibility to do this for all Makefile.ams
16587         other than Gnulib's.  Now it's your responsibility to do it for
16588         Gnulib's Makefile.am, too.
16589         * NEWS: Document this.
16590         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
16592         acl: include errno.h to get errno
16593         Reported by Daiki Ueno in
16594         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
16595         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
16597 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
16599         tests: don't assume getdtablesize () <= 10000000
16600         * modules/cloexec-tests:
16601         * modules/dup2-tests:
16602         * modules/dup3-tests:
16603         * modules/nonblocking-tests:
16604         * modules/posix_spawn_file_actions_addclose-tests:
16605         * modules/posix_spawn_file_actions_adddup2-tests:
16606         * modules/posix_spawn_file_actions_addopen-tests:
16607         * modules/unistd-safer-tests:
16608         Depend on the getdtablesize module.
16609         * tests/test-cloexec.c:
16610         * tests/test-dup-safer.c:
16611         * tests/test-dup2.c:
16612         * tests/test-dup3.c:
16613         * tests/test-fcntl.c:
16614         * tests/test-nonblocking.c:
16615         * tests/test-posix_spawn_file_actions_addclose.c:
16616         * tests/test-posix_spawn_file_actions_adddup2.c:
16617         * tests/test-posix_spawn_file_actions_addopen.c:
16618         Don't assume getdtablesize () <= 10000000.
16620 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
16622         extern-inline: work around bug in Sun c99
16623         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
16624         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
16626 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
16628         qacl: new module, broken out from the acl module
16629         This is for GNU Emacs, which wants the acl functions but does
16630         not want 'error' invoked when they fail.
16631         * lib/acl-internal.h: Do not include error.h, quote.h.
16632         (ENOSYS, ENOTSUP): Remove; no longer needed.
16633         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
16634         * lib/acl.h: Include <stdbool.h>.
16635         (acl_errno_valid): New function.
16636         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
16637         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
16638         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
16639         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
16640         (ACL_INTERNAL_INLINE): Remove; no longer needed.
16641         * lib/file-has-acl.c (file_has_acl):
16642         * lib/qcopy-acl.c (qcopy_acl):
16643         * lib/qset-acl.c (qset_acl):
16644         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
16645         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
16646         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
16647         lib/file-has-acl.c, m4/acl.m4 to qacl module.
16648         Add lib/set-acl.c.
16649         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
16650         Add qacl.
16651         (configure.ac): Move gl_FUNC_ACL to qacl module.
16652         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
16653         Rename set-mode-acl.c to set-acl.c.
16654         * lib/acl-errno-valid.c: New file.
16655         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
16656         copy_acl function remains in copy-acl.c.
16657         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
16658         (_): Remove; not needed.
16659         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
16660         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
16661         * modules/qacl: New file, moved from the old modules/acl.
16662         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
16663         Remove set-mode-acl.c, copy-acl.c.
16664         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
16666         alignof, intprops, malloca: port better to IBM's C compiler
16667         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
16668         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
16669         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
16671 2013-04-25  Daiki Ueno  <ueno@gnu.org>
16673         wctype-h: fix gettext link error on mingw
16674         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
16675         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
16676         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
16677         rpl_towupper and rpl_towupper.
16679 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
16681         regex-tests, regex: allow glibc re_search behavior
16682         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
16683         re_search input data to make the multi-character collating element
16684         in it clearly visible, and treat re_search return code 0 as valid.
16685         * m4/regex.m4 (gl_REGEX): Likewise.
16687 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
16689         stdalign: doc fix
16690         * doc/posix-headers/stdalign.texi (stdalign.h):
16691         Gnulib doesn't support '_Alignof expr'.
16693 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
16695         stdalign: port to stricter ISO C11
16696         ISO C11 says that _Alignof's operand must be a parenthesized type.
16697         Problem reported by Eli Zaretskii in
16698         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
16699         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
16700         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
16702 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
16704         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
16705         Problem reported by Marco Atzeri in
16706         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
16707         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
16708         Simply delegate to the system <sys/select.h> in this case too.
16709         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
16710         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
16711         be needed on Solaris either.
16712         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
16713         Simply delegate to the system <sys/time.h> in this case.
16715 2013-03-19  Karl Berry  <karl@gnu.org>
16717         * build-aux/gnupload: check for erroneous (with gnupload) use of
16718         ftp-upload.gnu.org, tweak help.
16720 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
16722         copy-file, rpmatch: fix problems found by cppcheck
16723         Reported by Arno Onken in
16724         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
16725         * lib/rpmatch.c (try): Fix memory leak.
16726         * lib/copy-file.c: Include "ignore-value.h".
16727         (qcopy_file_preserving): Ignore chown value.
16728         * modules/copy-file (Depends-on): Add ignore-value.
16730 2013-01-27  Jim Meyering  <jim@meyering.net>
16732         prefix-gnulib-mk: give better diagnostics
16733         * build-aux/prefix-gnulib-mk: Don't just "die".
16734         Give better diagnostics upon failure.
16736 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
16738         putenv: port to Solaris 10
16739         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
16740         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
16741         is not what is wanted here.
16742         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
16743         declaration, not for its existence.
16745 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
16747         mktime: fix configure typo
16748         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
16750 2013-03-12  Eric Blake  <eblake@redhat.com>
16752         regex-tests: skip UTF-8 test on mingw
16753         * modules/regex-tests (Depends-on): Add localcharset.
16754         * tests/test-regex.c (main): Use it to skip test on mingw.
16756 2013-03-11  Eric Blake  <eblake@redhat.com>
16758         tests: make it easier to bypass alarm time in debugger
16759         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
16760         * tests/test-memmem.c (main): Likewise.
16761         * tests/test-passfd.c (main): Likewise.
16762         * tests/test-ptsname.c (main): Likewise.
16763         * tests/test-ptsname_r.c (main): Likewise.
16764         * tests/test-strcasestr.c (main): Likewise.
16765         * tests/test-strstr.c (main): Likewise.
16767         regex: port to mingw's recent addition of undeclared alarm
16768         * doc/posix-functions/alarm.texi (alarm): Document that alarm
16769         exists but still doesn't work in newer mingw.
16770         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
16771         not existence.  Ensure SIGALRM is not trapped.
16772         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
16773         * m4/regex.m4 (gl_REGEX): Likewise.
16774         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
16775         * tests/test-regex.c (main): Use correct probe for alarm.
16777         putenv: avoid compilation warning on mingw
16778         * lib/putenv.c (_unsetenv): Protect variable declaration.
16779         (putenv): Fix indentation.
16781 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
16783         unistd: don't prevent Tru64 Unix from using gnulib strtod.
16784         * lib/unistd.in.h: be careful not to include un-needed system
16785         stdlib.h from here, because that prevents gnulib stdlib.h from
16786         defining rpl_strtod correctly.
16788 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
16790         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
16791         changesets, but for the 'precision 0' test.
16792         * tests/test-vasprintf-posix.c (test_function): Don't insist on
16793         round-to-even, since POSIX says rounding is implementation-defined
16794         and OS X 10.8.2 rounds 1.51 to 1 here.
16796         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
16797         changeset.
16798         * tests/test-vasprintf-posix.c (test_function): Don't insist on
16799         round-to-even, since POSIX says rounding is implementation-defined
16800         and OS X 10.8.2 rounds 1.5 to 1 here.
16802 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
16804         vasnprintf-posix-tests: allow rounding 1.5 to 1
16805         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
16806         round-to-even, since POSIX says rounding is implementation-defined
16807         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
16808         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
16810         bootstrap: port to FreeBSD
16811         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
16812         that treat '--' differently.  Reported by Mats Erik Andersson in
16813         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
16815 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
16817         regex: rename remaining __attribute calls to __attribute__.
16818         2012-02-25 changed definition of __attribute, but left some uses
16819         unchanged, preventing compilation of regex module on most non-gcc
16820         environments.
16821         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
16822         (lookup_collation_sequence_value, build_range_exp)
16823         (build_collating_symbol): Set attributes with newly renamed
16824         __attribute__ decorator.
16825         * lib/regex_internal.c (re_string_peek_byte_case)
16826         (re_node_set_compare, re_node_set_contains): Likewise.
16827         * lib/regexec.c (acquire_init_state_context): Likewise.
16829 2013-03-06  Bruno Haible  <bruno@clisp.org>
16831         execute: Revert last change, but use a different condition.
16832         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
16833         on Windows.
16835 2013-03-05  Eric Blake  <eblake@redhat.com>
16837         execute: drop dead code
16838         * lib/execute.c (nonintr_close, nonintr_open): Delete.
16840 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
16842         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
16843         * m4/non-recursive-gnulib-prefix-hack.m4
16844         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
16845         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
16846         <http://bugs.gnu.org/10305#237>.
16848 2013-03-04  Eric Blake  <eblake@redhat.com>
16850         test-getsockopt: avoid compiler warning
16851         * tests/test-getsockopt.c (includes): Ensure close is declared.
16853 2013-03-02  Bruno Haible  <bruno@clisp.org>
16855         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
16856         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
16858 2013-03-02  Bruno Haible  <bruno@clisp.org>
16860         gettext: Update to version 0.18.2.
16861         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
16862         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
16863                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
16865 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
16867         regex: merge patches from libc
16869         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
16870         * lib/regex_internal.h (__attribute__): Rename from __attribute.
16871         All uses changed.
16872         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
16873         (re_string_wchar_at, re_string_elem_size_at):
16874         Mark function as possibly unused.
16876         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
16877         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
16878         elements compare against the byte sequence of it, not its name.
16880 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
16882         putenv: port better to native Windows
16883         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
16884         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
16885         (_unsetenv): Use _putenv if available.
16886         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
16887         a bit less likely to cause damage.
16888         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
16889         Fix the wrong value with SetEnvironmentVariable.
16890         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
16891         code better.
16893 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
16895         regex: ignore old-style-definition warnings
16896         * lib/regex.c: Add pragma to ignore these warnings.
16897         Problem reported for GNU tar by Pavel Raiskup.
16899 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
16901         getcwd: support coreutils better
16902         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
16903         but this might not be correct in coreutils, which disables
16904         the raw decl checks.  Problem reported by Nagendra in
16905         <http://bugs.gnu.org/10305#192>.
16906         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
16907         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
16908         Test the getcwd function, not any macro, since getcwd.c wants the
16909         function.
16910         * m4/getcwd.m4 (gl_FUNC_GETCWD):
16911         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
16912         compile, as might happen if there's a macro but no function.
16914         strtod: support coreutils better
16915         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
16916         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
16917         disables the raw decl checks.  This assumes there is an underlying
16918         strtod, but that's a safe assumption these days.
16919         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
16921         mountlist: port to HP NonStop
16922         Reported by Joachim Schmitz in
16923         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
16924         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
16925         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
16927 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
16929         extern-inline: avoid compilation error with HP-UX cc
16930         Reported by Richard Lloyd in
16931         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
16932         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
16933         Suppress extern inline with HP-UX cc.  This should be safe,
16934         though it may hurt performance.  Perhaps someone with some HP-UX
16935         experience can come up with a higher-performance fix.
16937 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
16939         putenv: fix heap corruption with mixed putenv/_putenv
16940         Problem reported by Michael Goffioul in
16941         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
16942         * lib/putenv.c (putenv) [HAVE__PUTENV]:
16943         Rely on _putenv to allocate the new environment.
16944         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
16945         * modules/putenv (configure.ac): Use it.
16947 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
16949         unsetenv etc.: port to Solaris 11 + GNU Emacs
16950         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
16951         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
16952         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
16953         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
16954         idea but is too painful to fix right now), and without this gnulib
16955         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
16956         compiling unsetenv.c on Solaris 11.  Fix the problem for
16957         unsetenv.c, and fix other similar occurrences.
16959 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
16961         secure_getenv: fix C++ declaration typo
16962         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
16963         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
16964         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
16966 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
16968         careadlinkat: stop exporting careadlinkatcwd
16969         Only Emacs used it directly, and Emacs no longer needs it.
16970         * NEWS: Document this simplification.
16971         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
16972         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
16973         for readlink.
16974         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
16975         Don't include stdlib.h; no longer needed.
16976         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
16977         * lib/relocwrapper.c: Adjust comment to match new dependencies.
16978         * modules/areadlink (Depends-on): Add readlink.
16979         (Maintainer): Add self.
16980         * modules/careadlinkat (Depends-on): Remove readlink.
16982         extensions: port better to HP-UX
16983         This is merged from git Autoconf.
16984         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
16985         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
16986         so that it's compatible with the value used when compiling.
16988         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
16989         Problem reported by Mats Erik Andersson in
16990         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
16991         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
16992         openpty function exists, not merely when we intend to replace it.
16993         This corrects the 2013-01-31 patch, which mistakenly defined
16994         HAVE_OPENPTY even on hosts that lacked it.
16996 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
16998         secure_getenv: fix include typo
16999         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
17001         secure_getenv: port better to FreeBSD and Solaris
17002         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
17003         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
17004         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
17005         This works better on BSDish platforms.
17006         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
17007         Test for issetugid if __secure_getenv is missing.
17009 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
17011         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
17012         Some of these changes are merged in from git Autoconf.
17013         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
17014         When deciding whether to define _XOPEN_SOURCE, inspect the
17015         preprocessor macro __hpux instead of the more-heavyweight
17016         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
17017         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
17018         as the key for __EXTENSIONS__.
17020         unistd: avoid namespace pollution on non-glibc systems
17021         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
17022         This avoids namespace pollution on non-glibc systems, by causing
17023         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
17024         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
17025         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
17027 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
17029         tmpdir: use secure_getenv
17030         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
17031         Define to secure_getenv, not getenv.
17032         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
17033         as that's now secure_getenv's job.
17034         * modules/tmpdir (Depends-on): Add secure_getenv.
17036         tempname: use secure_getenv
17037         * lib/tempname.c (__secure_getenv) [!_LIBC]:
17038         Define to secure_getenv, not getenv.
17039         * modules/tempname (Depends-on):
17040         Add secure_getenv.
17042         secure_getenv: new module
17043         * MODULES.html.sh (Extra functions based on ANSI C 89):
17044         Add secure_getenv.
17045         * doc/glibc-functions/secure_getenv.texi: New file.
17046         * doc/gnulib.texi: Include it.
17047         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
17048         New files.
17049         * lib/stdlib.in.h (secure_getenv): New decl.
17050         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
17051         * modules/stdlib (stdlib.h):
17052         Add secure_getenv checks.
17054 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
17056         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
17057         Reported for OS X 10.8.2 by Assaf Gordon in
17058         <http://bugs.gnu.org/13516>.
17059         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
17060         !HAVE_OPENAT && !HAVE_FDOPENDIR.
17061         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
17062         so that they can be kept in sync more easily.  Avoid PATH_MAX
17063         test on the Hurd.  Sync from test-getcwd.c for errno tests after
17064         mkdir or chdir failure.
17065         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
17066         lib/getcwd.c.
17067         (test_abort_bug): Do not test for the deep directory bug unless we
17068         have openat support.  Avoid PATH_MAX test on the Hurd.
17070         regex-tests, regex: fix bug: memset undeclared
17071         * tests/test-regex.c: Don't include regex.h twice.  Include
17072         string.h, to declare memset.  Christensen's report also mentioned
17073         this issue.
17074         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
17075         test-regex.c, to avoid future problems like this.  Remove
17076         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
17077         twice.
17079         regex-tests: fix link errors on older Solaris
17080         These need to link with @LIBINTL@ to get libintl_gettext.
17081         Problem reported by Tom G. Christensen in
17082         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
17083         * modules/regex-tests (test_regex_LDADD): New macro.
17085 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
17087         regex-tests: new module
17088         * modules/regex-tests, tests/test-regex.c: New files.
17090         regex: fix off-by-one error in configure test
17091         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
17093 2013-01-31  Eric Blake  <eblake@redhat.com>
17095         regex: avoid infinite configure test
17096         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
17098 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
17100         openpty: fix bug where HAVE_OPENPTY wasn't defined
17101         See the thread starting at:
17102         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
17103         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
17104         openpty function exists, not merely when we intend to replace it.
17106 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
17108         sys_time: port to Solaris 2.6
17109         There is a circularity problem on Solaris 2.6, where <time.h> includes
17110         <sys/time.h> for struct timespec.  The include nesting is gnulib
17111         <time.h>, system <time.h>, gnulib <sys/time.h>, system
17112         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
17113         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
17114         <sys/siginfo.h>; the last, innermost file needs struct
17115         timestruc_t, which is defined in <sys/time.h>, which has not been
17116         fully parsed.  Problem reported by Tom G. Christensen in
17117         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
17118         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
17119         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
17120         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
17121         uses split double-inclusion guards.
17123 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
17125         regex: test for buffer overrun
17126         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
17127         for the just-fixed regex bug.
17129 2013-01-29  Andreas Schwab  <schwab@suse.de>
17131         regex: fix buffer overrun in regexp matcher [BZ #15078]
17132         * lib/regexec.c (extend_buffers): Add parameter min_len.
17133         (check_matching): Pass minimum needed length.
17134         (clean_state_log_if_needed): Likewise.
17135         (get_subexp): Likewise.
17137 2013-01-28  Pádraig Brady  <P@draigBrady.com>
17139         mountlist: don't consider "devtmpfs" as dummy
17140         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
17141         as there is storage associcated with it.
17143 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
17145         futimens-tests, utimens-tests: Depend on gettext.
17146         This works around a problem introduced in my 2013-01-12 patch,
17147         which added @LIBINTL@ to these modules.
17148         * modules/futimens-tests (Depends-on):
17149         * modules/utimens-tests (Depends-on): Add gettext.
17151 2013-01-26  Eric Blake  <eblake@redhat.com>
17153         test-getpeername: fix typo
17154         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
17156 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
17158         bootstrap: remove the need for a sorted .gitignore file
17159         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
17160         rename to insert_if_absent(), so that we don't need or generate
17161         a sorted .gitignore file.  We do require a .gitignore with no
17162         existing duplicate entries and enforce that.
17163         (sort_patterns): Remove this function as we now use the simpler
17164         technigue of inserting blacklist entries at the top of the file,
17165         assuming gnulib won't be inserting !whitelist entries.
17167 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
17169         readlinkat: don't depend on gl_FUNC_OPENAT
17170         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
17171         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
17172         renameat.m4, symlinkat.m4; but one thing at a time.
17174         statat: new module, split out from fstatat
17175         GNU Emacs needs the POSIX-specified fstatat, but not the
17176         gnulib-specified statat and lstat.  Split the latter two into a
17177         new module 'statat'.
17178         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
17179         * lib/openat.h, lib/statat.c (STATAT_INLINE):
17180         Rename from FSTATAT_INLINE. All uses changed.
17181         * modules/fstatat (Files): Remove lib/statat.c.
17182         (gl_MODULE_INDICATOR([fstatat])): Remove.
17183         (lib_SOURCES): Remove.
17184         (Maintainer): Add self.
17185         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
17186         * tests/test-fstatat.c (BASE): Don't define if already defined.
17187         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
17189 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
17191         tests: don't assume fd 99 is closed
17192         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
17193         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
17194         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
17195         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
17196         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
17197         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
17198         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
17199         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
17200         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
17201         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
17202         * tests/test-fwrite.c, tests/test-getpeername.c:
17203         * tests/test-getsockname.c, tests/test-getsockopt.c:
17204         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
17205         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
17206         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
17207         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
17208         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
17209         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
17210         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
17211         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
17212         * tests/test-unlinkat.c, tests/test-unlockpt.c:
17213         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
17214         Close file descriptor 99, instead of assuming it's already closed.
17216 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
17218         stpncpy: port to OS X 10.8
17219         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
17220         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
17222 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
17224         unistd: port to recent mingw
17225         * lib/unistd.in.h: Remove special invocation convention for mingw,
17226         which breaks for the latest mingw version.  See John W. Eaton in
17227         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
17229         largefile: port better to Mac OS X 10.5
17230         This patch is backported from Autoconf git.
17231         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
17232         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
17233         with ino_t size being different for configuration time versus
17234         build/run time.  Problem reported by PHO in
17235         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
17237 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
17239         doc: clarify -Werror
17240         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
17241         clarify that it's intended for developers, not for ordinary builds,
17242         and mention --enable-gcc-warnings as one possible use.
17244 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
17246         stdint: fix build with Android's Bionic fox x86
17247         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
17248         was already included as _SSIZE_T_DEFINED_ might also be defined
17249         in include/machine/_types.h, which is included by stdio.h
17251 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
17253         net_if-tests: port to Solaris 7 + GCC 3.4.6
17254         Problem reported by Tom G. Christensen in
17255         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
17256         * tests/test-net_if.c (ni): Move to next the code that uses it,
17257         so that it's declared only if needed.
17259 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
17261         net_if-tests: port to older Solaris
17262         Problem reported by Tom G. Christensen in
17263         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
17264         * modules/net_if-tests (NET_IF_LIB): New substitution.
17265         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
17266         (HAVE_IF_NAMEINDEX): New C macro.
17267         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
17269         system-quote-tests: port to older Solaris
17270         Problem reported by Tom G. Christensen in
17271         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
17272         * tests/test-system-quote-child.c (fopen, fread): Undef.
17274         c-xvasprintf etc.: fix link errors on older Solaris
17275         These need to link with @LIBINTL@ to get libintl_gettext.
17276         Problem reported by Tom G. Christensen in
17277         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
17278         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
17279         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
17280         * modules/futimens-tests (test_futimens_LDADD):
17281         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
17283 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
17285         locale: port to Solaris 2.6 and 7 + GNU gettext
17286         * lib/locale.in.h: Just include_next <locale.h> when
17287         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
17288         when combining the localename module with GNU gettext 0.18.2.
17289         Problem reported by Tom G. Christensen in
17290         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
17292 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
17294         stdlib: port to Solaris 2.6
17295         Also, the code worked on Solaris 7 through 9 only by accident.
17296         Problem reported by Tom G. Christensen in
17297         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
17298         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
17299         simply include the system stdlib.h.
17300         * lib/getopt.in.h (__need_system_stdlib_h):
17301         * lib/pthread.in.h (__need_system_stdlib_h):
17302         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
17303         Define when including <stdlib.h>, to avoid problems at least for
17304         the pthread case on Solaris 2.6 and 7.  These .h files can get by
17305         with the system stdlib.h.
17307 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
17309         doc: update main copyright year
17310         * doc/gnulib.texi: Update copyright date.
17312         doc: improve ISO 8601 discussion
17313         * doc/parse-datetime.texi (Combined date and time of day items):
17314         Specify more carefully what formats are supported and what is
17315         done with excess precision.
17317 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
17319         doc: avoid small caps
17320         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
17321         they're more trouble than they're worth.  Suggested by Karl Berry
17322         in <http://bugs.gnu.org/13360>.
17324         regex: conform to strict C
17325         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
17326         From Aharon Robbins.
17328         gnulib-tool: fix incompatibility with autopoint 0.18.2
17329         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
17330         Problem reported by Tom G. Christensen in
17331         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
17333 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
17335         fprintftime: bring back and reword fwrite comment
17336         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
17338         stdio: remove now-unnecessary stdio.c
17339         Since stdio.in.h no longer uses inline functions, we no longer
17340         need to compile the extern versions.
17341         * lib/stdio.c: Remove.
17342         * modules/stdio (Files): Remove lib/stdio.c.
17343         (lib_SOURCES): Remove.
17345         unicodeio: depend on stdio, not ignore-value
17346         * lib/unicodeio.c: Do not include ignore-value.h.
17347         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
17348         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
17350         fprintftime: depend on stdio, not ignore-value
17351         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
17352         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
17353         since the stdio module arranges to silence that warning now.
17354         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
17356 2012-10-04  Simon Josefsson  <simon@josefsson.org>
17358         stdint-tests: Fix expanded-before-required-warning.
17359         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
17361 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
17363         fwrite: silence __wur only for older glibc versions
17364         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
17365         This will help us remove this workaround some time in the far future.
17367 2013-01-03  Eric Blake  <eblake@redhat.com>
17369         fwrite: silence __wur without using inline
17370         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
17371         just gcc, and in a way that avoids inline issues.
17372         * modules/stdio (Depends-on): Drop extern-inline.
17374 2013-01-03  Jim Meyering  <jim@meyering.net>
17376         update-copyright: avoid copyright notice date corruption
17377         Given a sequence of copyright year numbers in which the final
17378         one was a two-digit number that happened to be a substring of
17379         a preceding four-digit year number, we would mistakenly update
17380         the substring (from two- to four-digit) rather than the two-digit
17381         number at the end, which, combined with the addition of the current
17382         4-digit year number would yield two 5-digit year numbers, e.g.,
17383         here, it would convert the first "99" to "1999, 2013" rather than
17384         the final one:
17385           1991, 99
17386           11999, 20131, 1999
17387         * build-aux/update-copyright: Tighten a regexp.
17388         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
17389         Reported by Joseph Myers in
17390         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
17392 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
17394         regex: omit needless signed-pointer casts
17395         * lib/regcomp.c (build_charclass, build_charclass_op):
17396         Use char *, not unsigned char *, for class name and extra.
17397         The char values are always nonnegative so there's no need to
17398         insist on unsigned char * here, and using char * removes the need
17399         for casts.  Reported by Aharon Robbins in
17400         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
17402         regex: support Gawk, which never uses alloca
17403         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
17404         Do not include in this case.  Gawk doesn't supply a substitute
17405         alloca.h and doesn't need one.
17407         regex: port __libc_lock_define usage to C89
17408         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
17409         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
17410         does not conform to C89, as it has an empty macro argument.
17411         Reported by Aharon Robbins in
17412         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
17414 2013-01-01  Eric Blake  <eblake@redhat.com>
17416         maint: update all copyright year number ranges
17417         Run "make update-copyright".
17419         version-etc: bump copyright year reported in --version
17420         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
17422 2012-12-31  Eric Blake  <eblake@redhat.com>
17424         sigprocmask-tests: skip test if pid is unexpectedly large
17425         * tests/test-sigprocmask.c (main): Add range check.
17427         git-version-gen: avoid test -z portability glitch
17428         * build-aux/git-version-gen: Prefer portable test spelling, since
17429         git-version-gen is run on more than just developer machines.
17431 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
17433         git-version-gen: add --fallback option to use if git is not present
17434         * build-aux/git-version-gen: Add support for the new option --fallback,
17435         which comes into play when there is no $tarball_version_file and
17436         git is not working.
17437         (scriptversion): Update.
17439         maint.mk: handle missing git with more grace
17440         * top/maint.mk (no-submodule-changes, public-submodule-commit):
17441         Quietly proceed if git is not present.
17443 2012-12-31  Eric Blake  <eblake@redhat.com>
17445         dup2: work around cygwin bug
17446         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
17447         * lib/dup2.c (rpl_dup2): Work around it.
17448         * doc/posix-functions/dup2.texi (dup2): Document it.
17450 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
17452         regex: remove unnecessary dependency on localcharset.h
17453         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
17454         hasn't been needed for years.
17455         * modules/regex (Depends-on): Remove localcharset.
17457         regex: revert single-byte change
17458         * lib/regexec.c (check_node_accept_bytes): Revert previous change
17459         to this function.  This was alredy fixed in a different way, at
17460         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
17461         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
17462         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
17464         regex: simplify based on Gawk version
17465         * lib/regex_internal.c (re_dfa_add_node): Simplify.
17466         Reported by Aharon Robbins in
17467         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
17469 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
17471         regex: check that pattern char is single-byte
17472         Reported by Aharon Robbins in
17473         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
17474         * lib/regexec.c (check_node_accept_bytes):
17475         Return 0 if the pattern string has a multibyte character here.
17477         regex: implement rational ranges
17478         Reported by Aharon Robbins in
17479         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
17480         * lib/regcomp.c (build_range_exp) [!_LIBC]:
17481         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
17482         Implement rational ranges.
17484         regex: avoid redefining __wctype
17485         Reported by Aharon Robbins in
17486         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
17487         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
17488         #undef before defining.
17490         regex: port to hosts where malloc (0) == NULL
17491         Reported by Aharon Robbins in
17492         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
17493         * lib/regex_internal.c (re_node_set_alloc):
17494         Don't assume that malloc (0) yields nonnull.
17495         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
17496         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
17497         * modules/regex (Files): Add m4/eealloc.m4.
17499         regex: port to C89
17500         Reported by Aharon Robbins in
17501         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
17502         * lib/regcomp.c (init_word_char): Declaration before statement.
17504         regex: merge glibc changes
17505         Also, copy the license wording from glibc.  This simplifies
17506         merging changes.  gnulib-tool will change the wording to GPL as
17507         appropriate, when importing it to other packages.  The only
17508         glibc change made since the last merge, which needs merging, is:
17509         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
17510         * lib/regex_internal.h (gettext): Remove use of INTUSE.
17512         * users.txt: Add Emacs.
17514         doc: omit mention of version when not needed
17515         * doc/gnulib-intro.texi (Portability and Application Code):
17516         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
17517         Don't mention particular dates or versions when not necessary, so
17518         that the documentation won't go out of date so quickly.
17520         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
17522 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
17524         bootstrap: pass --force to autoreconf.
17525         * build-aux/bootstrap (AUTORECONFFLAGS): New.
17526         Add "--force" so that Automake's ylwrap and other such tools
17527         be updated at each bootstrap invocation.
17528         Use it.
17530 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17532         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
17533         The earlier patch forgot to update one of the #if conditions, causing
17534         a problem on Debian testing i386 reported by Mats Erik Andersson
17535         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
17536         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
17537         (__argp_fmtstream_puts, argp_fmtstream_puts)
17538         (__argp_fmtstream_write, argp_fmtstream_write)
17539         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
17541         * doc/gnulib-readme.texi: Minor fixups.
17542         (Portability guidelines): Modernize URLs.  Remove some repetition.
17543         (Indent with spaces not TABs): Reword to avoid too-long lines.
17544         Remove some '@ifset standalone' stuff that isn't used.
17546         * doc/gnulib-readme.texi (Portability guidelines):
17547         ctype.h, not ctime.h.
17549         Correct name of POSIX.1-2001.
17550         * doc/posix-functions/fgetc.texi (fgetc):
17551         * doc/posix-functions/fgets.texi (fgets):
17552         * doc/posix-functions/fread.texi (fread):
17553         * doc/posix-functions/fscanf.texi (fscanf):
17554         * doc/posix-functions/getc.texi (getc):
17555         * doc/posix-functions/getchar.texi (getchar):
17556         * doc/posix-functions/scanf.texi (scanf):
17557         POSIX.1-2001, not POSIX-2001.
17559         doc: move README into manual
17560         * README: Move contents to new file doc/gnulib-readme.texi.
17561         Replace with a one-line summary.
17562         * doc/gnulib.texi (Brief Overview): New section,
17563         with old intro preface.  Include gnulib-readme.texi for contents.
17564         (Philosophy): Rename from "Introduction", since this
17565         section no longer introduces the rest.  Write a new preface.
17566         * doc/gnulib-readme.texi: New file, with the old contents of
17567         README texinfo-ized.  This way, the README info appears
17568         in the online and printed manual.
17570 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
17572         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
17573         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
17574         c_vasprintf() prototype.
17576 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
17578         c-vasprintf: Fix "empty declaration" warning reported by GCC.
17579         * lib/c-vasprintf.h: Remove stray semicolon.
17581 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
17583         gettext: avoid obsolete macro AM_PROG_MKDIR_P
17584         It is obsolete and is planned to be removed from Automake 1.14; see
17585         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
17586         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
17587         (installdirs-data, installdirs-data-yes):
17588         Use $(MKDIR_P), not $(mkdir_p).
17589         * m4/intl.m4 (AM_INTL_SUBDIR):
17590         * m4/po.m4 (AM_PO_SUBDIRS):
17591         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
17593 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17595         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
17596         On this platform, we are not optimizing but we are using
17597         the substitute for extern inlines, so compile as if
17598         C99-style extern inline, or a substitute, is available.
17599         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
17600         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
17601         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
17602         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
17603         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
17604         Declare as ARGP_FS_EI, not as extern.
17605         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
17606         (__option_is_short, _option_is_end, __option_is_end)
17607         [!_LIBC && __USE_EXTERN_INLINES]:
17608         Declare as ARGP_EI, not as extern.
17610 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
17612         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
17613         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
17614         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
17615         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
17616         ...), as the latter is fatal with older Autoconfs.
17617         Problem reported and fix suggested by Eric Blake in thread starting at
17618         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
17620 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
17622         AC_PROG_MKDIR_P: don't workaround if not buggy
17623         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
17624         Define only for Autoconf versions before 2.62.
17625         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
17626         undocumented m4_PACKAGE_VERSION, for consistency with the
17627         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
17628         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
17629         was introduced in 2.62.
17631 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
17633         New 'c-*printf' modules for formatted output in C locale.
17635         New module 'c-vasnprintf'.
17636         * modules/c-vasnprintf: New file.
17637         * lib/c-vasnprintf.c: New file.
17638         * lib/c-vasnprintf.h: New file.
17640         New module 'c-snprintf'.
17641         * modules/c-snprintf: New file.
17642         * modules/c-snprintf-tests: New file.
17643         * lib/c-snprintf.c: New file.
17644         * lib/c-snprintf.h: New file.
17645         * tests/test-c-snprintf.c: New file.
17646         * tests/test-c-snprintf.sh: New file.
17648         New module 'c-vsnprintf'.
17649         * modules/c-vsnprintf: New file.
17650         * modules/c-vsnprintf-tests: New file.
17651         * lib/c-vsnprintf.c: New file.
17652         * lib/c-vsnprintf.h: New file.
17653         * tests/test-c-vsnprintf.c: New file.
17654         * tests/test-c-vsnprintf.sh: New file.
17656         New module 'c-vasprintf'.
17657         * modules/c-vasprintf: New file.
17658         * modules/c-vasprintf-tests: New file.
17659         * lib/c-asprintf.c: New file.
17660         * lib/c-vasprintf.c: New file.
17661         * lib/c-vasprintf.h: New file.
17662         * tests/test-c-vasprintf.c  +: New file.
17663         * tests/test-c-vasprintf.sh: New file.
17665         New module 'c-xvasprintf'.
17666         * modules/c-xvasprintf: New file.
17667         * modules/c-xvasprintf-tests: New file.
17668         * lib/c-xasprintf.c: New file.
17669         * lib/c-xvasprintf.c: New file.
17670         * lib/c-xvasprintf.h: New file.
17671         * tests/test-c-xvasprintf.c: New file.
17672         * tests/test-c-xvasprintf.sh: New file.
17674 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
17676         argp: better 'inline'
17677         Use extern-inline module to declare extern inline functions.
17678         This avoids some bogus warning diagnostics.  Problem discovered
17679         when modifying GNU tar to use the manywarnings module.
17680         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
17681         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
17682         Define based on extern-inline.
17683         * modules/argp (Depends-on): Add extern-inline.
17685 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
17687         filemode, sys_stat: Handle MPX files a la AIX.
17688         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
17689         * lib/sys_stat.in.h (S_ISMPX): New macro.
17690         * tests/test-sys_stat.c: Add tests for MPX files.
17692 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
17694         x-to-1: honor $PERL
17695         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
17696         a chance to use his preferred version of Perl.  This is typically
17697         required by Darwin users whose default /usr/bin/perl does not have all
17698         the libraries required by help2man, and who need to use their MacPorts
17699         installation of Perl instead.
17701 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
17703         gnu-web-doc-update: add all the new files, even in new directories
17704         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
17705         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
17706         Use it.
17707         (main): Don't use cvsutils to get the list of unknown files,
17708         just add all the existing files and directories.
17710 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
17712         gnu-web-doc-update: improve --help
17713         * build-aux/gnu-web-doc-update: Move comments into --help.
17715 2012-12-07  Eric Wong  <normalperson@yhbt.net>
17717         mountlist: recognize more "dummy" file systems
17718         * lib/mountlist.c (ME_DUMMY_0):
17719         Add these dummy FS names to the list:
17720         - "debugfs" virtual filesystem for kernel debugging
17721         - "devpts" PTY slave filesystem
17722         - "devtmpfs" device filesystem on top of tmpfs/ramfs
17723         - "fusectl" control filesystem for FUSE
17724         - "mqueue" enumerates POSIX message queues
17725         - "rpc_pipefs" kernel <-> userspace bridge for NFS
17726         - "sysfs" is for exporting kernel objects
17727         - "devfs" device filesystem for Linux 2.4 and FreeBSD
17729 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
17731         extern-inline: avoid incompatibility with Darwin Libc
17732         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
17733         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
17734         Problem reported by Akim Demaille in
17735         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
17737 2012-12-11  Simon Josefsson  <simon@josefsson.org>
17739         gnupload: Work with GnuPG using gpg-agent (for smartcards).
17740         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
17741         let it handle password prompting.
17743 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
17745         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
17746         * lib/canonicalize.c (canonicalize_filename_mode):
17747         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
17748         fetching the current directory.  Don't overrun the beginning of
17749         rpath if there's no slashes after the MS-Windows drive letter.
17751 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
17753         maint.mk: avoid extra forks
17754         * top/maint.mk (_cfg_mk): The GNU make manual documents that
17755         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
17756         So use that instead of "$(shell test -f FILE && echo FILE)".
17758 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
17760         vasnprintf: fix ASCII_ONLY typo
17761         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
17762         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
17763         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
17764         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
17765         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
17767 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
17769         list, oset, xlist, xoset: fix extern inline issue with C99
17770         This was introduced by my recent changes for 'inline'.
17771         Problem reported for gettext by Daiki Ueno in
17772         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
17773         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
17774         (gl_list_nx_create, gl_list_size, gl_list_node_value)
17775         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
17776         (gl_list_previous_node, gl_list_get_at)
17777         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
17778         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
17779         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
17780         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
17781         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
17782         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
17783         (gl_list_iterator_free, gl_sortedlist_search)
17784         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
17785         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
17786         (gl_sortedlist_remove):
17787         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
17788         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
17789         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
17790         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
17791         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
17792         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
17793         (gl_list_add_at, gl_sortedlist_add):
17794         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
17795         Wrap these extern decls inside "#if 0", because they are implemented
17796         as inline functions, and extern inline is not what's wanted here.
17797         It would simplify these .h files to remove the extern decls entirely,
17798         although a downside would be less-clear separation between
17799         specification and implementation.
17801 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
17803         sys_stat: no 'static inline'
17804         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
17805         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
17807         extern-inline: no 'static inline'
17808         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
17809         Do not require AC_C_INLINE.
17810         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
17811         'static inline', for older compilers.
17813         snippet/warn-on-use: no 'static inline'
17814         * build-aux/snippet/warn-on-use.h:
17815         Remove unnecessary 'inline' in comment.
17817         rbtree-list, rbtreehash-list: no 'static inline'
17818         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
17819         * lib/gl_anytree_list2.h (node_at):
17820         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
17821         (gl_oset_first, add_nodes_to_buckets):
17822         Now static, not static inline.
17824         regex: no 'static inline'
17825         * lib/regex_internal.c (calc_state_hash):
17826         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
17827         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
17828         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
17829         Now static, not static inline.
17830         (inline) [__GNUC__ < 3 && _LIBC]:
17831         Remove macro; no longer needed.
17833         xvasprintf: no 'static inline'
17834         * lib/xvasprintf.c (xstrcat):
17835         Now static, not static inline.
17836         * m4/xvasprintf.m4 (gl_XVASPRINTF):
17837         Do not require AC_C_INLINE.
17839         parse-datetime, parse-duration: no 'static inline'
17840         * lib/parse-datetime.y (to_uchar):
17841         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
17842         (scale_n_add):
17843         Now static, not static inline.
17844         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
17845         * modules/parse-duration (configure.ac):
17846         Do not require AC_C_INLINE.
17848         getaddrinfo: no 'static inline'
17849         * lib/getaddrinfo.c (validate_family):
17850         Now static, not static inline.
17851         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
17852         Do not require AC_C_INLINE.
17854         ftruncate, fts, lstat, openat, raise: no 'static inline'
17855         * lib/ftruncate.c (chsize_nothrow):
17856         * lib/fts.c (opendirat, diropen):
17857         * lib/lstat.c (orig_lstat):
17858         * lib/openat.c (orig_openat):
17859         * lib/raise.c (raise_nothrow):
17860         Now static, not static inline.
17861         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
17862         * m4/fts.m4 (gl_FUNC_FTS_CORE):
17863         * m4/lstat.m4 (gl_PREREQ_LSTAT):
17864         * m4/openat.m4 (gl_PREREQ_OPENAT):
17865         * m4/raise.m4 (gl_PREREQ_RAISE):
17866         Do not require AC_C_INLINE.
17868         fflush, stat: no 'static inline'
17869         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
17870         (clear_ungetc_buffer, disable_seek_optimization)
17871         (restore_seek_optimization, update_fpos_cache):
17872         * lib/stat.c (orig_stat):
17873         Now static, not static inline.
17874         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
17875         (update_fpos_cache):
17876         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
17877         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
17878         * m4/stat.m4 (gl_PREREQ_STAT):
17879         Do not require AC_C_INLINE.
17881         error, filevercmp: no 'static inline'
17882         * lib/error.c (is_open, flush_stdout):
17883         * lib/filevercmp.c (order):
17884         Now static, not static inline.
17885         * m4/error.m4 (gl_PREREQ_ERROR):
17886         * modules/filevercmp (configure.ac):
17887         Do not require AC_C_INLINE.
17889         dup, execute, fatal-signal, etc.: no 'static inline'
17890         * lib/dup.c (dup_nothrow):
17891         * lib/execute.c (nonintr_close, nonintr_open):
17892         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
17893         * lib/fopen.c (orig_fopen):
17894         * lib/freadseek.c (freadptrinc):
17895         * lib/freopen.c (orig_freopen):
17896         * lib/fstat.c (orig_fstat, fstat_nothrow):
17897         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
17898         (get_rusage_as_via_iterator):
17899         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
17900         * lib/getdtablesize.c (_setmaxstdio_nothrow):
17901         * lib/isatty.c (_isatty_nothrow):
17902         * lib/open.c (orig_open):
17903         * lib/read.c (read_nothrow):
17904         * lib/sigprocmask.c (signal_nothrow):
17905         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
17906         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
17907         * lib/wait-process.c (unregister_slave_subprocess):
17908         * lib/write.c (write_nothrow):
17909         Now static, not static inline.
17910         * lib/spawn-pipe.c (nonintr_open): Define only if
17911         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
17912         * m4/dup.m4 (gl_PREREQ_DUP):
17913         * m4/execute.m4 (gl_EXECUTE):
17914         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
17915         * m4/fopen.m4 (gl_PREREQ_FOPEN):
17916         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
17917         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
17918         * m4/fstat.m4 (gl_PREREQ_FSTAT):
17919         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
17920         * m4/isatty.m4 (gl_PREREQ_ISATTY):
17921         * m4/open.m4 (gl_PREREQ_OPEN):
17922         * m4/read.m4 (gl_PREREQ_READ):
17923         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
17924         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
17925         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
17926         * m4/wait-process.m4 (gl_WAIT_PROCESS):
17927         * m4/write.m4 (gl_PREREQ_WRITE):
17928         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
17929         Do not require AC_C_INLINE.
17931         c-strtod, memcoll, readutmp: no 'static inline'
17932         * lib/c-strtod.c (c_locale):
17933         * lib/memcoll.c (strcoll_loop):
17934         * lib/readutmp.c (desirable_utmp_entry):
17935         Now static, not static inline.
17936         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
17937         * m4/memcoll.m4 (gl_MEMCOLL):
17938         * m4/readutmp.m4 (gl_READUTMP):
17939         Do not require AC_C_INLINE.
17941         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
17942         * lib/arctwo.c (to_uchar):
17943         * lib/md4.c (set_uint32):
17944         * lib/md5.c (set_uint32):
17945         * lib/sha1.c (set_uint32):
17946         * lib/sha256.c (set_uint32):
17947         * lib/sha512.c (set_uint64):
17948         Now static, not static inline.  This is a bit simpler, and doesn't
17949         affect performance with GCC and default optimization.
17950         * m4/arctwo.m4 (gl_ARCTWO):
17951         * m4/md4.m4 (gl_MD4):
17952         * m4/md5.m4 (gl_MD5):
17953         * m4/sha1.m4 (gl_SHA1):
17954         * m4/sha256.m4 (gl_SHA256):
17955         * m4/sha512.m4 (gl_SHA512):
17956         Do not require AC_C_INLINE.
17958         cond, lock, thread: better 'inline'
17959         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
17960         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
17961         New macros.  Use them instead of static inline, for header functions.
17962         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
17963         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
17964         * lib/glthread/lock.c (gl_waitqueue_init)
17965         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
17966         * lib/glthread/thread.c (get_current_thread_handle):
17967         Change 'static inline' to 'inline'.
17968         * lib/glthread/cond.h, lib/glthread/thread.h:
17969         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17970         * m4/cond.m4 (gl_COND):
17971         * m4/lock.m4 (gl_PREREQ_LOCK):
17972         * m4/thread.m4 (gl_THREAD):
17973         Do not require AC_C_INLINE.
17974         * modules/cond, modules/thread (Depends-on): Add extern-inline.
17976         chdir-long, cycle-check, savewd: better 'inline'
17977         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
17978         (find_non_slash):
17979         * lib/cycle-check.c (is_zero_or_power_of_two):
17980         * lib/savewd.c (savewd_delegating):
17981         Change 'static inline' to 'inline'.
17982         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
17983         Replace all remaining uses of 'static inline' with it.
17984         * lib/savewd.h:
17985         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17986         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
17987         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
17988         * m4/savewd.m4 (gl_SAVEWD):
17989         Do not require AC_C_INLINE.
17990         * modules/savewd (Depends-on): Add extern-inline.
17992         base32, base64: no need for 'inline'
17993         * lib/base32.c (to_uchar, get_8, decode_8):
17994         * lib/base64.c (to_uchar, get_4, decode_4):
17995         Change 'static inline' to 'inline'.
17996         * m4/base32.m4 (gl_PREREQ_BASE32):
17997         * m4/base64.m4 (gl_PREREQ_BASE64):
17998         Do not require AC_C_INLINE.
18000         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
18001         * lib/gl_array_oset.c (gl_array_nx_add_at):
18002         (gl_array_remove_at):
18003         * lib/gl_linkedhash_list.c (hash_resize_after_add)
18004         (add_to_bucket, remove_from_bucket):
18005         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
18006         Change 'static inline' to 'static', as it's simpler to omit
18007         'inline' unless there's a significant performance advantage.
18009         list, oset, xlist, xoset, xsublist: simplify via extern inline
18010         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
18011         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
18012         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
18013         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
18014         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
18015         New macro.  Replace all uses of 'static inline' with it.
18016         [HAVE_INLINE]: Implement functions as *_INLINE functions,
18017         instead of as macros FOO that are defined to static inline
18018         functions FOO_inline.
18019         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
18020         * lib/gl_xsublist.c:
18021         Reimplement from scratch, by defining the corresponding *_INLINE
18022         macro and including the corresponding .h file.  This is simpler.
18023         * modules/list, modules/oset, modules/xlist, modules/xoset:
18024         (Files): Remove m4/gl_list.m4.
18025         (configure.ac): Remove gl_LIST.
18026         * m4/gl_list.m4: Remove.
18027         * modules/list, modules/oset, modules/xlist, modules/xoset:
18028         * modules/xsublist:
18029         (Depends-on): Depend on extern-inline, not inline.
18031         xalloc: better 'inline'
18032         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
18033         New macro.  Replace all uses of 'static inline' with it.
18034         (static_inline): Remove.
18035         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
18036         Let 'extern inline' do the work automatically, instead of doing
18037         it by hand.
18038         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
18039         Remove.  All uses removed.
18040         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
18042         gethrxtime: better 'inline'
18043         * lib/xtime.c: New file.
18044         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
18045         * lib/xtime.h (XTIME_INCLUDE):
18046         New macros.  Replace all uses of 'static inline' with them.
18047         * lib/gethrxtime.c (gethrxtime): Define only if
18048         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
18049         this source file is now always compiled, because of the extern inline.
18050         * lib/gethrxtime.h, lib/xtime.h:
18051         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18052         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
18053         if gethrtime works, as they're not needed in that case.
18054         (gl_XTIME): Do not require AC_C_INLINE.
18055         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
18056         compiled now.  Move the check into gl_GETHRXTIME.
18057         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
18058         (Depends-on): Add extern-inline.
18059         (configure.ac): gethrxtime is always compiled now.
18060         (lib_SOURCES): Add gethrxtime.c.
18062         wctype-h: better 'inline'
18063         * lib/wctype-h.c: New file.
18064         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
18065         New macro.  Replace all uses of 'static inline' with it.
18066         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18067         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
18068         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
18069         (Depends-on): Add extern-inline.
18071         unistd: better 'inline'
18072         * lib/unistd.c: New file.
18073         * lib/unistd.in.h (_GL_UNISTD_INLINE):
18074         New macro.  Replace all uses of 'static inline' with it.
18075         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18076         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
18077         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
18078         (Depends-on): Add extern-inline.
18080         sys_socket: better 'inline'
18081         * lib/sys_socket.c: New file.
18082         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
18083         New macro.  Replace all uses of 'static inline' with it.
18084         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18085         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
18086         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
18087         (Depends-on): Add extern-inline.
18089         stdio: better 'inline'
18090         * lib/stdio.c: New file.
18091         * lib/stdio.in.h (_GL_STDIO_INLINE):
18092         New macro.  Replace all uses of 'static inline' with it.
18093         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18094         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
18095         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
18096         (Depends-on): Add extern-inline.
18098         sigaction: better 'inline'
18099         * lib/sig-handler.c: New file.
18100         * lib/sig-handler.h (SIG_HANDLER_INLINE):
18101         New macro.  Replace all uses of 'static inline' with it.
18102         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18103         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
18104         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
18105         (Depends-on): Add extern-inline.
18107         selinux-h: better 'inline'
18108         * lib/se-context.c, lib/se-selinux.c: New files.
18109         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
18110         * lib/se-context.in.h (SE_CONTEXT_INLINE):
18111         New macro.  Replace all uses of 'static inline' with it.
18112         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18113         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
18114         New macro.  Replace all uses of 'static inline' with it.
18115         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18116         * modules/selinux-h (Files, lib_SOURCES):
18117         Add lib/se-context.c, lib/se-selinux.c.
18118         (Depends-on): Add extern-inline.
18119         (configure.ac): Do not require AC_C_INLINE.
18121         pthread: better 'inline'
18122         * lib/pthread.c: New file.
18123         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
18124         New macro.  Replace all uses of 'static inline' with it.
18125         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18126         * m4/pthread.m4 (gl_PTHREAD_CHECK):
18127         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
18128         * modules/pthread (Files): Add lib/pthread.c.
18129         (Depends-on): Add extern-inline.
18131         math: better 'inline'
18132         * lib/math.c: New file.
18133         * lib/math.in.h (_GL_MATH_INLINE):
18134         New macro.  Replace all uses of 'static inline' with it.
18135         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18136         * m4/math_h.m4 (gl_MATH_H):
18137         Do not require AC_C_INLINE.
18138         * modules/math (Files, lib_SOURCES):
18139         Add lib/math.c.
18140         (Depends-on): Add extern-inline.
18142         count-one-bits: better 'inline'
18143         * lib/count-one-bits.c: New file.
18144         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
18145         New macro.  Replace all uses of 'static inline' with it.
18146         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18147         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
18148         Do not require AC_C_INLINE.
18149         * modules/count-one-bits (Files, lib_SOURCES):
18150         Add lib/count-one-bits.c.
18151         (Depends-on): Add extern-inline.
18153         count-leading-zeros: better 'inline'
18154         * lib/count-leading-zeros.c: New file.
18155         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
18156         New macro.  Replace all uses of 'static inline' with it.
18157         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18158         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
18159         Do not require AC_C_INLINE.
18160         * modules/count-leading-zeros (Files, lib_SOURCES):
18161         Add lib/count-leading-zeros.c.
18162         (Depends-on): Add extern-inline.
18164         bitrotate: better 'inline'
18165         * lib/bitrotate.c: New file.
18166         * lib/bitrotate.h (BITROTATE_INLINE):
18167         New macros.
18168         Replace all uses of 'static inline' with them.
18169         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18170         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
18171         (Depends-on): Add extern-inline.
18172         (configure.ac): Do not require AC_C_INLINE.
18174 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
18176         maint.mk: avoid gratuitous failure
18177         Reported by Stefano Lattarini in
18178         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
18179         * top/maint.mk (public-submodule-commit): Quote more safely.
18181 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
18183         canonicalize, canonicalize-lgpl: support MS-Windows file names
18184         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
18185         for test cases, which it'd be nice to add at some point.
18186         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
18187         * lib/canonicalize.c (canonicalize_filename_mode):
18188         * lib/canonicalize-lgpl.c (__realpath):
18189         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
18190         slash is at the beginning of the file name.  Use ISSLASH, instead
18191         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
18192         the first character with '/'.  Test for
18193         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
18194         with a drive letter.
18195         * lib/canonicalize.c (SLASHES): New macro.
18196         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
18198 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
18200         fts: introduce FTS_VERBATIM
18201         * lib/fts_.h (FTS_VERBATIM): New bit flag.
18202         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
18203         * lib/fts.c (fts_open): Honor it.
18205 2012-11-09  Pádraig Brady  <P@draigBrady.com>
18207         getlogin-tests: allow errno == ENXIO
18208         * tests/test-getlogin.c (main): Skip tests if getlogin fails
18209         with errno == ENXIO (No controlling tty).
18210         getlogin_r-tests: Likewise. Also allow errno == ENOENT
18211         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
18212         with errno == ENOENT.  This was reported to happen in various
18213         situations on GNU/Linux.
18215 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
18217         getlogin-tests: allow errno == ENOENT
18218         * tests/test-getlogin.c (main): Skip tests if getlogin fails
18219         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
18220         when running a test in an Emacs shell buffer.
18222 2012-11-08  Jim Meyering  <jim@meyering.net>
18224         tests/nap.h: avoid warning about unused variable
18225         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
18227         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
18228         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
18229         white space before each of the special-cased file names, to avoid
18230         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
18231         in http://bugs.gnu.org/12830.
18233 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
18235         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
18236         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
18237         fails with errno == EBADF when fd is opened with O_PATH.
18238         Reported by Jim Meyering in
18239         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
18240         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
18241         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
18243 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
18245         test-utimens: speed up by taking shorter naps
18246         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
18247         New functions.
18248         (nap): Use them, to do a better job of guessing the delay.
18249         On Fedora 17 with ext4 atop md atop hard disks, this made
18250         test-utimens run 10x faster, because the test napped for
18251         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
18252         <http://bugs.gnu.org/12820#11>.
18254 2012-11-07  Jim Meyering  <jim@meyering.net>
18256         mountlist.c: fix a compilation failure
18257         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
18258         I introduced while transforming commit v0.0-7683-g613bcb6
18260 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
18262         errno: port to LynxOS 178 2.2.2
18263         Problem reported by Joel Brobecker in
18264         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
18265         * doc/posix-headers/errno.texi (errno.h): Document this.
18266         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
18267         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
18268         Supply a string for EILSEQ.
18269         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
18271 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
18273         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
18274         Linux kernel 2.6.39 introduced O_PATH (see
18275         <http://lwn.net/Articles/433854/>) and this is a better fallback
18276         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
18277         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
18278         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
18279         * lib/fcntl.in.h (O_ACCMODE):
18280         * tests/test-fcntl-h.c (main):
18281         Do not reject O_ACCMODE merely because it has more than the
18282         minimal number of bits, as POSIX allows extensions here.
18284 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
18286         mountlist: do not classify a bind-mounted dir entry as "dummy"
18287         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
18288         the "none"-testing clause.
18289         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
18290         exception for bind-mounted directories.
18292 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
18294         quote: provide a means to escape strings with nul characters
18295         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
18296         (quote, quote_n): Rename formal arguments for consistency with
18297         quotearg.
18299 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
18301         test-raise: don't assume 199 is an invalid signal
18302         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
18304         sh-quote-tests: port to Solaris 9
18305         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
18306         Problem reported by Dagobert Michelsen in
18307         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
18309 2012-10-28  Jim Meyering  <jim@meyering.net>
18311         maint.mk: rename a new configurable variable
18312         * top/maint.mk (_gl_translatable_string_re): Rename from
18313         translation-markers: _gl_ prefix to insulate from user Makefile code,
18314         and the _re suffix to inform that it's a regular expression.
18316 2012-10-26  Eric Blake  <eblake@redhat.com>
18318         maint.mk: let packages tweak sc_po_check pattern
18319         * top/maint.mk (sc_po_check): Add translation-markers, to allow
18320         finding files with other translation markers.
18322 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
18324         euidaccess: speed up 'configure' on GNU hosts
18325         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
18326         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
18327         it's needed only in this case.  Use AC_CHECK_DECLS, not
18328         AC_CHECK_DECLS_ONCE.
18329         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
18330         or AC_REQUIRE for AC_FUNC_GETGROUPS.
18332         * lib/regexec.c (re_search_internal): Fix grammar in comment.
18334 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
18336         fchmodat, fchownat, fstatat: port to non-inlining compilers
18337         Problem reported for FreeBSD 9 by Jim Meyering in
18338         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
18339         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
18340         New files, which define FCHMODAT_INLINE etc.
18341         * lib/fchmodat.c (FCHMODAT_INLINE):
18342         * lib/fchownat.c (FCHOWNAT_INLINE):
18343         * lib/fstatat.c (FSTATAT_INLINE):
18344         Remove, as chmodat.c etc. now do this.
18345         * modules/fchmodat (Files): Add lib/chmodat.c.
18346         * modules/fchownat (Files): Add lib/chownat.c.
18347         * modules/fstatat (Files): Add lib/statat.c.
18349 2012-10-15  Jim Meyering  <jim@meyering.net>
18351         fchmodat.c, fchownat.c: compile-impeding typos
18352         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
18353         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
18354         Introduced in commit v0.0-7636-gd202279.
18356 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
18358         fcntl-h: support GNU flags like O_IGNORE_CTTY
18359         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
18360         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
18361         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
18362         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
18363         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
18364         Define to 0 if not already defined.
18365         * tests/test-fcntl-h.c: Test these new flags.
18367 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
18369         faccessat, etc.: support AT_FDCWD-only use
18370         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
18371         this function only if its first argument is AT_FDCWD.
18372         Emacs wants faccessat for AT_EACCESS but not for any first-arg
18373         values other than AT_FDCWD, so it doesn't want all the openat
18374         machinery with fchdir etc.
18375         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
18376         * modules/fstatat, modules/mkdirat, modules/openat (Files):
18377         * modules/unlinkat (Files):
18378         Remove lib/openat-priv.h, as at-internal supplies this file.
18379         Removing this file here allows us to support programs like Emacs
18380         that avoid at-internal.
18382         faccessat: speed up 'configure' on mainstream hosts
18383         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
18384         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
18385         since it's only on unusual platforms that we need to check for
18386         'access', and it's better not to slow 'configure' down on all
18387         platforms.
18389         faccessat: port to Solaris 10
18390         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
18391         Needed on Solaris 10, which doesn't have AT_EACCESS,
18392         so we need the Gnulib fcntl.h, which defines it.
18394 2012-10-14  Pádraig Brady  <P@draigBrady.com>
18395         canonicalize: fix C89 compilation
18396         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
18397         declarations so C89 is supported.  Also remove the comment
18398         referencing memorty allocation as the suggested feature could
18399         not be implemented as suggested.
18400         Reported by Michael Goffioul.
18402 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
18404         group-member: omit unnecessary dependencies
18405         This is for Emacs, which has its own allocator and where we
18406         don't want to use xalloc.
18407         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
18408         since we no longer use xmalloc.  Do not include stdbool.h, since
18409         the changes below happen to remove the only use of bool.
18410         (GROUPBUF_SIZE): New constant.
18411         (struct group_info): Remove n_groups member.  Add groupbuf member.
18412         This lets us get the groups without using malloc, usually.
18413         (free_group_info, get_group_info): Adjust to this.
18414         (get_group_info): Return the number of groups found, or -1 on error.
18415         Use plain malloc not xmalloc, and treat its failure as if there
18416         are no groups, as the user already loses in case of error.
18417         (group_member): Simplify, based on changes to get_group_info.
18418         * modules/group-member (Depends-on): Remove dependencies on
18419         xalloc and stdbool.  Add dependency on xalloc-oversized.
18421 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
18423         gethrxtime: port to C++
18424         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
18426 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
18428         ptsname: fix macro-name typo
18429         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
18431 2012-10-03  Simon Josefsson  <simon@josefsson.org>
18433         inttostr: Relax license.
18434         * modules/inttostr (License): Change from LGPL to LGPLv2+.
18436 2012-10-03  Eric Blake  <eblake@redhat.com>
18438         ptsname_r: support ptys returned by FreeBSD posix_openpt
18439         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
18440         lives in /dev/pts/.
18442 2012-10-02  Eric Blake  <eblake@redhat.com>
18444         pselect: reject invalid file descriptors
18445         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
18446         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
18447         * modules/pselect (Depends-on): Add dup2.
18448         * doc/posix-functions/pselect.texi (pselect): Document this.
18450         select: reject invalid file descriptors
18451         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
18452         * lib/select.c (rpl_select) [!win32]: Work around it.
18453         * modules/select (Depends-on): Add dup2.
18454         * doc/posix-functions/select.texi (select): Document this.
18456         select: enhance test
18457         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
18458         New functions.
18459         (test_function): Enhance test.
18460         (do_select_bad_fd): Avoid any stale errno values.
18462         ptsname: reject invalid file descriptors
18463         http://www.austingroupbugs.net/view.php?id=503
18464         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
18465         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
18466         * modules/stdlib (Makefile.am): Replace witness.
18467         * lib/stdlib.in.h (ptsname): Allow for replacement.
18468         * modules/ptsname (configure.ac): Trigger replacement.
18469         * doc/posix-functions/ptsname.texi (ptsname): Document this.
18471 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
18473         hash-pjw-bare: new module
18474         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
18475         * lib/hash-pjw-bare.h: Likewise.
18476         * modules/hash-pjw-bare: New file.
18477         * MODULES.html.sh (Misc): Add it.
18479 2012-10-02  Eric Blake  <eblake@redhat.com>
18481         manywarnings: cater to more gcc infelicities
18482         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
18483         -Wuninitialized without -O.
18485 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
18487         select, poll tests: Make setsockopt invocation effective.
18488         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
18489         the bind() call.
18490         * tests/test-select.h (open_server_socket): Likewise.
18492 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
18494         sockets, sys_stat: restore AC_C_INLINE
18495         This undoes the 2012-09-22 patch.
18496         * m4/sockets.m4 (gl_SOCKETS):
18497         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
18498         Restore AC_C_INLINE, since MSVC requires __inline or _inline
18499         and does not support plain 'inline'.  Reported by Bruno Haible in
18500         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
18502 2012-09-30  Bruno Haible  <bruno@clisp.org>
18504         localeconv tests: Avoid test failure on OpenIndiana.
18505         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
18506         skip the 'grouping' and 'mon_grouping' tests.
18507         Reported by Jim Meyering.
18509 2012-09-30  Bruno Haible  <bruno@clisp.org>
18511         havelib: Follow libtool developments.
18512         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
18513         Suggested by Simon Josefsson.
18515 2012-09-29  Jim Meyering  <meyering@redhat.com>
18517         fstatat.c: fix a compile-impeding typo
18518         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
18519         Introduced in commit v0.0-7636-gd202279.
18520         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
18522 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
18524         extern-inline: provide a -Wundef safe config.h
18525         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
18526         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
18527         to produce a -Wundef warning free config.h.
18529 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
18531         hash-pjw: relax license to LGPLv2+
18532         * modules/hash-pjw (License): Relax, with consent of author.
18534 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
18536         maint.mk: fix strict vs. lazy variable issues with RELEASE
18537         * top/maint.mk (_equal): New function.
18538         (member_check): Strip the result to avoid spurious spaces.
18539         (url_dir_list): Do not use ifeq, which is strict, as it will
18540         require RELEASE_TYPE to be defined.
18541         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
18542         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
18543         (announcement_Cc_alpha,announcement_mail_headers_alpha)
18544         (announcement_Cc_beta,announcement_mail_headers_beta)
18545         (announcement_Cc_stable,announcement_mail_headers_stable): these.
18546         (release): Do not depend on $(release-type), as it forces its
18547         evaluation.  Bounce to it.
18549 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
18551         maint.mk: formatting changes
18552         * top/maint.mk: Indent bodies of if's.
18554 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
18556         maint.mk: factor the validation of RELEASE_TYPE
18557         With help from Jim Meyering.
18558         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
18559         * top/maint.mk (_empty, _sp): Move their definition earlier.
18560         (member-check, release-type): New.
18561         Use the latter instead of $(RELEASE_TYPE).
18562         Remove now useless local checks.
18564 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
18566         maint.mk: provide "make upload" to ease uploading
18567         See
18568         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
18569         Do not depend simply on the current $(VERSION), as there may have been
18570         new commits since the tarball generation.  Rather, rely on $(RELEASE),
18571         as "make release-commit" already does.
18573         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
18574         "make TYPE".
18576         * top/maint.mk (upload_command, upload, release): New.
18577         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
18578         (VERSION): first word of $(RELEASE) is always right.
18579         (emit_upload_commands): Adjust.
18580         * top/README-release: Update.
18582 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
18584         maint.mk: silent rules
18585         With help from Stefano Lattarini.
18586         * top/maint.mk (writable-files): Use $(AM_V_GEN).
18587         (announcement): Use $(AM_V_at).
18589 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
18591         localename: port gl_locale_name_thread_unsafe to FreeBSD
18592         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
18593         and use the simpler FreeBSD implementation on Mac OS X as well.
18594         Original idea suggested by Ed Maste in
18595         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
18597 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
18599         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
18600         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
18601         * lib/mbuiter.c, lib/xsize.c: New files.
18602         * lib/binary-io.h (BINARY_IO_INLINE):
18603         * lib/eealloc.h (EEALLOC_INLINE):
18604         * lib/mbfile.h (MBFILE_INLINE):
18605         * lib/mbiter.h (MBITER_INLINE):
18606         * lib/mbuiter.h (MBUITER_INLINE):
18607         * lib/xsize.h (XSIZE_INLINE):
18608         New macros.
18609         Replace all uses of 'static inline' with them.
18610         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18611         * m4/eealloc.m4 (gl_EEALLOC):
18612         * m4/mbfile.m4 (gl_MBFILE):
18613         * m4/mbiter.m4 (gl_MBITER):
18614         * m4/xsize.m4 (gl_XSIZE):
18615         Do not require AC_C_INLINE.
18616         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
18617         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
18618         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
18619         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
18620         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
18621         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
18622         * modules/binary-io, modules/eealloc, modules/mbfile:
18623         * modules/mbiter, modules/mbuiter:
18624         (Depends-on): Add extern-inline.
18626         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
18627         * lib/pipe-filter-aux.c: New file.
18628         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
18629         Replace all uses of 'static inline' with it.
18630         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18631         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
18632         (filter_retcode): No real need for inline here.
18633         * modules/pipe-filter-gi, modules/pipe-filter-ii:
18634         (Files): Add lib/pipe-filter-aux.c.
18635         (Depends-on): Add extern-inline.
18636         (configure.ac): Do not require AC_C_INLINE.
18637         (lib_SOURCES): Add pipe-filter-aux.c.
18639         fdutimensat: omit unnecessary AC_C_INLINE
18640         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
18642         fchmodat, fchownat, fstatat: use extern-inline
18643         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
18644         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
18645         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
18646         New macros.
18647         * lib/openat.h:
18648         Replace all uses of 'static inline' with them.
18649         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18650         * modules/fchmodat, modules/fchownat, modules/fstatat:
18651         * modules/openat-h:
18652         (Depends-on):
18653         Add extern-inline.
18654         (configure.ac): Remove AC_C_INLINE.
18656         acl, mbchar, priv-set: use extern-inline
18657         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
18658         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
18659         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
18660         New macros.
18661         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
18662         Replace all uses of 'static inline' with it.
18663         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18664         * m4/acl.m4 (gl_FUNC_ACL):
18665         * m4/mbchar.m4 (gl_MBCHAR):
18666         * m4/priv-set.m4 (gl_PRIV_SET):
18667         Remove AC_C_INLINE, since 'inline' is no longer used directly.
18668         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
18669         Add extern-inline.
18671         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
18672         * m4/sockets.m4 (gl_SOCKETS):
18673         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
18674         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
18675         environments where it's already guaranteed to work, so we needn't
18676         check for it at 'configure'-time.
18678         tls-tests: omit unnecessary 'inline'
18679         * tests/test-tls.c (perhaps_yield): No longer inline.
18680         Simplicity and portability trump efficiency in test cases.
18682         utimens-tests: avoid unnecessary 'inline'
18683         * modules/fdutimensat-tests (configure.ac):
18684         * modules/futimens-tests (configure.ac):
18685         * modules/utimens-tests (configure.ac):
18686         * modules/utimensat-tests (configure.ac):
18687         Remove AC_C_INLINE.
18688         * tests/test-utimens-common.h (ctime_compare):
18689         No longer inline.  Simplicity and portability trump efficiency here.
18691         misc: don't limit commentary to inline functions
18692         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
18693         * lib/xalloc-oversized.h, lib/xsize.h:
18694         Contrast macros to functions in general, not just to inline functions,
18695         when the commentary does not apply only to inline functions.
18697 2012-09-20  Jim Meyering  <meyering@redhat.com>
18699         non-recursive-gnulib-prefix-hack: new module
18700         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
18701         the file that originated in Bison.
18702         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
18703         largely copied from a snippet that resided in bison's configure.ac.
18704         * modules/non-recursive-gnulib-prefix-hack: New file.
18705         * MODULES.html.sh (Support for maintaining and releasing projects):
18706         Add it.
18708 2012-09-18  Jim Meyering  <meyering@redhat.com>
18710         maint.mk: generalize _gl_tight_scope for non-recursive make
18711         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
18712         that *.h would describe additional .h files in the directory
18713         specified by $(_gl_TS_dir).  I.e., add this...
18714         (_gl_TS_other_headers): New variable.
18716         maint.mk: exempt trailing blanks found in "binary" files
18717         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
18718         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
18719         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
18721 2012-09-17  Jim Meyering  <meyering@redhat.com>
18723         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
18724         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
18725         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
18726         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
18728 2012-09-17  Jim Meyering  <meyering@redhat.com>
18730         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
18731         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
18732         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
18733         It is not in the same category as "exit (0)" or "exit (1)", and
18734         besides, I know of no symbolic name for that 77.  Reported by
18735         Richard W.M. Jones in
18736         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
18738 2012-09-17  Jim Meyering  <meyering@redhat.com>
18740         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
18741         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
18742         all uses of #define, not just those that start in column 1.
18743         Richard W.M. Jones reported a false positive in
18744         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
18746 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
18748         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
18749         * lib/localcharset.c (locale_charset) [DARWIN7]:
18750         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
18751         as these two values are incompatible.  Problem reported by Max Horn.
18752         For more discussion, please see
18753         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
18755         doc: document sticky-EOF issue
18756         * doc/posix-functions/fgetc.texi (fgetc):
18757         * doc/posix-functions/fgets.texi (fgets):
18758         * doc/posix-functions/fread.texi (fread):
18759         * doc/posix-functions/fscanf.texi (fscanf):
18760         * doc/posix-functions/getc.texi (getc):
18761         * doc/posix-functions/getchar.texi (getchar):
18762         * doc/posix-functions/scanf.texi (scanf):
18763         Mention that glibc and default Solaris do not conform to
18764         C99 and POSIX-2001 or later, with respect to how getchar
18765         etc. behave when feof reports nonzero.
18767 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
18769         poll: fix poll(0, NULL, msec)
18770         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
18771         but nfd is 0.  In that case poll should behave like select.
18773 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
18774             Paolo Bonzini  <bonzini@gnu.org>
18776         poll: fix for systems that can't recv() on a non-socket
18777         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
18778         is readable.  In this case POLLHUP will not be supported.
18779         * doc/posix-functions/poll.texi: Document this.
18781 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
18783         poll/select: document portability problems not fixed by Gnulib.
18784         * doc/posix-functions/poll.texi: poll does not work well on
18785         pipes under Windows.  It has the same limitations as select on
18786         BeOS.
18787         * doc/posix-functions/select.texi: select does not work well
18788         on pipes under Windows.
18790 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
18792         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
18793         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
18794         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
18795         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
18797 2012-09-06  Eric Blake  <eblake@redhat.com>
18799         net_if: give more details about the bug being fixed
18800         * doc/posix-headers/net_if.texi: Add clarification.
18802 2012-09-05  Eric Blake  <eblake@redhat.com>
18804         net_if: new module
18805         * modules/net_if: New module, borrowing ideas from netinet_in.
18806         * m4/net_if_h.m4: New file.
18807         * lib/net_if.in.h: Likewise.
18808         * doc/posix-headers/net_if.texi (net/if.h): Document it.
18809         * MODULES.html.sh (lacking POSIX:2008): Likewise.
18810         * tests/test-net_if.c: Make function checks conditional.
18811         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
18813 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
18815         readutmp: fix non-portable UT_PID use
18816         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
18817         Use `UT_PID (u) > 0' as absolute condition.
18819 2012-09-04  Jim Meyering  <meyering@redhat.com>
18821         fts: reduce two or more trailing spaces to just one, usually
18822         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
18823         or more slashes, trim all but the final one.  But if a name consists
18824         solely of two slashes, don't modify it.  If it consists solely of
18825         three or more slashes, strip all but one.
18827         This is part of the solution to a minor problem with rm:
18828         it would print a bogus ELOOP diagnostic when failing to remove
18829         the slash-decorated name of a symlink-to-directory:
18831             $ mkdir d && ln -s d s && env rm -r s/
18832             rm: cannot remove 's': Too many levels of symbolic links
18834         With the change below and a trivial don't-trim-trailing-slashes
18835         adjustment to remove.c, it does this:
18837             $ env rm -r s/
18838             rm: cannot remove 's/': Not a directory
18840         Improved by: Eric Blake
18842         fts: when there is no risk of overlap, use memcpy, not memmove
18843         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
18845 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
18847         stdbool: be more compatible with mixed C/C++ compiles
18848         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
18849         Define to bool, true, false, respectively, as GCC's builtin
18850         stdbool.h does.  Problem reported by Michael Goffioul in
18851         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
18853 2012-08-28  Jim Meyering  <meyering@redhat.com>
18855         revert last change: it was not needed
18856         * tests/test-vc-list-files-git.sh: There's already a test for
18857         a working git, just below.
18859 2012-08-28  Jim Meyering  <meyering@redhat.com>
18861         tests: test-vc-list-files-git.sh: skip if git is not available
18862         * tests/test-vc-list-files-git.sh: Skip this test when git is
18863         not available.
18865 2012-08-26  Bruno Haible  <bruno@clisp.org>
18867         gnulib-tool: Remove no-op option --no-changelog.
18868         * gnulib-tool (func_usage): Don't mention --no-changelog.
18869         (do_changelog): Remove variable.
18870         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
18872 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
18874         doc: remove fdl-1.2.texi
18875         It is no longer used or maintained, and its use of @acronym
18876         is problematic.  See the thread containing
18877         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
18878         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
18879         * doc/old-licenses/fdl-1.2.texi: Remove.
18881         execinfo: port to FreeBSD
18882         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
18883         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
18884         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
18885         * modules/execinfo (Link): Add $(LIB_EXECINFO).
18887 2012-08-23  Jim Meyering  <meyering@redhat.com>
18889         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
18890         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
18891         to placate gcc's -Wold-style-declaration.
18893 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
18895         doc: do not use @acronym
18896         * doc/inet_ntoa.texi (inet_ntoa):
18897         * doc/parse-datetime.texi (Seconds since the Epoch)
18898         (Specifying time zone rules):
18899         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
18900         Don't use @acronym.  Problem reported by John Darlington in
18901         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
18903 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
18905         stdnoreturn: port to newer GCCs
18906         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
18907         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
18908         Problem reported by Jim Meyering in
18909         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
18910         Also, rename the 'test' function to a void a clash with the
18911         already-supplied 'main' function; this fixes a bug that incorrectly
18912         rejected GCC 4.7.1's <stdnoreturn.h>.
18913         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
18914         Document GCC problem.
18916 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
18918         pipe-filter: fix comment typo
18919         * lib/pipe-filter.h: Mention correct function.
18921 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
18923         execinfo: new module
18924         This is for Emacs.  Currently, it provides a no-effect stub
18925         on all platforms where it does not already work.
18926         It already works on glibc-based systems, and on Solaris 11.
18927         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
18928         New files.
18929         * doc/glibc-headers/execinfo.texi (execinfo.h):
18930         * MODULES.html.sh (Misc): Document it.
18932 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
18934         extern-inline: support old GCC 'inline'
18935         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
18936         if available.  This applies to GCC versions 2.7 through 4.2, or
18937         when newer GCC is using -fgnu89-inline.  The goal is to address
18938         some of the performance issues mentioned by Bruno Haible in
18939         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
18941 2012-08-20  Eric Blake  <eblake@redhat.com>
18943         maint.mk: avoid redundant file name in message
18944         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
18945         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
18946         (sc_makefile_path_separator_check): Remove bogus $(ME).
18948 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
18950         timer-time: fix link order when static linking on glibc
18951         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
18952         _after_ -lrt so that it's significant.
18954 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
18956         timespec: omit unnecessary AC_C_INLINE
18957         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
18959         stat-time: omit unnecessary AC_C_INLINE
18960         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
18961         Do not require AC_C_INLINE.
18963         ignore-value: omit unnecessary AC_C_INLINE
18964         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
18966         sys_select: avoid 'static inline'
18967         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
18969         mktime: avoid 'static inline'
18970         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
18971         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
18973 2012-08-19  Bruno Haible  <bruno@clisp.org>
18975         gnulib-tool: Improve coding style.
18976         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
18977         func_emit_lib_Makefile_am.
18978         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
18980 2012-08-19  Bruno Haible  <bruno@clisp.org>
18982         gnulib-tool: Fix indentation.
18983         * gnulib-tool (func_import): Fix indentation.
18985 2012-08-19  Bruno Haible  <bruno@clisp.org>
18987         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
18988         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
18989         on the list of removed files.
18991 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
18993         test-parse-datetime: avoid glibc leap-second glitch
18994         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
18995         with the 2012 rules.  Problem reported by Bruce Dubbs in
18996         <http://bugs.gnu.org/12206>.
18998 2012-08-14  Bruno Haible  <bruno@clisp.org>
19000         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
19001         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
19002         from argument.
19003         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
19005 2012-08-14  Eric Blake  <eblake@redhat.com>
19007         ldexp: relax license
19008         * modules/ldexp (License): Trivial relax, since the module only
19009         provides a permissively licensed m4 file.
19011 2012-08-13  Bruno Haible  <bruno@clisp.org>
19013         gnulib-tool: Fix persistence of --witness-c-macro option.
19014         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
19015         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
19017 2012-08-11  Eric Blake  <eblake@redhat.com>
19019         count-leading-zeros: use a lookup table on non-gcc compilers
19020         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
19021         alternate implementation, suggested by Jim Meyering.
19023 2012-08-10  Eric Blake  <eblake@redhat.com>
19025         count-leading-zeros: new module
19026         * modules/count-leading-zeros: New module.
19027         * m4/count-leading-zeros.m4: New file.
19028         * lib/count-leading-zeros.h: Likewise.
19029         * modules/count-leading-zeros-tests: New test.
19030         * tests/test-count-leading-zeros.c: New file.
19031         * MODULES.html.sh (Integer arithmetic functions): Document it.
19033 2012-08-07  Simon Josefsson  <simon@josefsson.org>
19034             Jim Meyering  <meyering@redhat.com>
19036         maintainer-makefile: Fix syntax error with dash.
19037         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
19038         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
19040 2012-08-05  Jim Meyering  <meyering@redhat.com>
19042         extern-inline: also ignore -Wmissing-declarations
19043         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
19044         required with gcc-4.8.0-to-be.
19046         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
19047         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
19048         for /error ?([^,]*)/.  This avoids false-positives for strings like
19049         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
19051 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
19053         gnumakefile: better interaction with Automake-NG
19054         * modules/gnumakefile [Makefile.am]: The makefiles generated by
19055         Automake-NG always contain a definition of VPATH, even in non-VPATH
19056         builds (its value being simply '.' in that case).  So, in the
19057         'clean-GNUmakefile' rule, to determine whether running under a
19058         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
19059         '$(VPATH)' expands to the empty string.
19061 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
19063         base64: Use extern C scope in header file, for C++.
19064         * lib/base64.h: Add C++ namespace protection.
19066 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
19068         stat-time, timespec, u64: support naive out-of-dir builds
19069         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
19070         Use '#include "foo.h"', not '#include <foo.h>', when including
19071         one's own interface.  This works better when configuring with
19072         out-of-directory builds, since packages need not add an
19073         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
19075 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
19077         utimens: use extern-inline
19078         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
19079         * lib/utimens.h: Add copyright notice, since this is now large enough
19080         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19081         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
19082         * modules/utimens (Depends-on): Add extern-inline.
19084         u64: use extern-inline
19085         * lib/u64.c: New file.
19086         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19087         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
19088         * modules/u64 (Files): Add lib/u64.c.
19089         (Depends-on): Add extern-inline.
19090         (configure.ac): No need to require AC_C_INLINE, since extern-inline
19091         does that now.
19092         (lib_SOURCES): Add u64.c.
19094         timespec: use extern-inline
19095         * lib/timespec.c: New file.
19096         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19097         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
19098         * modules/timespec (Files): Add lib/timespec.c.
19099         (Depends-on): Add extern-inline.
19100         (lib_SOURCES): Add timespec.c.
19102         stat-time: use extern-inline
19103         * lib/stat-time.c: New file.
19104         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19105         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
19106         * modules/stat-time (Files): Add lib/stat-time.c.
19107         (Depends-on): Add extern-inline.
19108         (lib_SOURCES): Add stat-time.c.
19110         extern-inline: new module
19111         * modules/extern-inline, m4/extern-inline.m4: New files.
19112         This is for better support of 'extern inline' a la ISO C99,
19113         with a portable alternative on compilers that do not support
19114         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
19115         of the Emacs executable, when compiled with debugging disabled,
19116         which is a typical way that Emacs is built while developing.
19118 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
19120         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
19121         * build-aux/do-release-commit-and-tag: Move variable definitions
19122         together.
19123         ($branch): Instead of defaulting to "master", default to the current
19124         branch (as gnu-web-doc-update does).
19125         (help): Display the current values of the option arguments.
19126         * top/maint.mk (release-commit): New.
19127         * top/README-release: Simplify the corresponding step.
19129 2012-07-30  Eric Blake  <eblake@redhat.com>
19131         passfd: fix comment on recvfd
19132         * lib/passfd.c (recvfd): Fix comment.
19133         Reported by Jann Horn <jannhorn@googlemail.com>.
19135 2012-07-30  Jim Meyering  <meyering@redhat.com>
19137         maint.mk: avoid a sub-shell
19138         * top/maint.mk (release-prep): Remove unneeded sub-shell.
19140 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
19142         maint.mk: use silent-rules support from Automake
19143         * top/maint.mk (news-check, vc-diff-check, announcement)
19144         (no-submodule-changes, alpha beta stable, release-prep)
19145         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
19147 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
19149         maint.mk: provide a web-manual-update target
19150         * top/maint.mk: here.
19151         * top/README-release: Use it to simplify the web manual update step.
19153 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
19155         README-release: shorten the circuit to post a news
19156         * top/README-release: Point directly to the news submission form.
19158 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
19160         gnu-web-doc-update: fix --help
19161         * build-aux/gnu-web-doc-update: The information "top level" was written
19162         twice.
19164 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
19166         maint.mk: absolute VPATH issue
19167         * top/maint.mk (release-prep): Help Git find .git/.
19168         From Jim Meyering.
19170 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
19172         gitlog-to-changelog: fix previous change
19173         * build-aux/gitlog-to-changelog: Fix condition.
19174         Add missing ";".
19176 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
19178         gitlog-to-changelog: don't expect .git to be in $srcdir
19179         Reported by Bruno Haible.
19180         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
19181         * build-aux/gitlog-to-changelog (&git_dir_option): New.
19182         Use it.
19184 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
19186         maint.mk: absolute VPATH build fix
19187         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
19188         $(srcdir) is not a parent of $(builddir).
19190 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
19192         clean-temp: Fix memory leak.
19193         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
19194         'files' members of tmpdir.
19196 2012-07-27  Jim Meyering  <meyering@redhat.com>
19198         maint.mk: new rule: refresh-gnulib-patches
19199         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
19200         Use this rule to refresh them.
19201         * top/maint.mk (refresh-gnulib-patches): New rule.
19203 2012-07-24  Bruno Haible  <bruno@clisp.org>
19205         gnulib-tool: Fix handling of inctests variable.
19206         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
19207         Reported by Nick Bowler <nbowler@elliptictech.com>.
19209 2012-07-22  Bruno Haible  <bruno@clisp.org>
19211         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
19212         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
19213         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
19214         Remove exemption for getpass.h.
19215         Suggested by Eric Blake.
19217 2012-07-20  Eric Blake  <eblake@redhat.com>
19219         verify: document conflict with -Wnested-externs
19220         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
19222         maint.mk: forbid exit(-1)
19223         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
19225 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
19227         fsusage: port back to Solaris
19228         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
19229         error (fsd not declared) on Solaris 10.  Reported privately by
19230         Andrew Borodin.
19232 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
19234         gnu-web-doc-update: fix error messages
19235         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
19237         gnu-web-doc-update: check the requirements.
19238         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
19239         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
19240         * build-aux/bootstrap (find_tool): Comment change.
19242 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
19244         maint.mk: minor simplication.
19245         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
19246         for default values.
19248 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
19250         gitlog-to-changelog: VPATH build issues
19251         If builddir is not a subdirectory of srcdir, running git from it will
19252         fail.
19253         * build-aux/gitlog-to-changelog (--srcdir): New option.
19255 2012-07-15  Bruno Haible  <bruno@clisp.org>
19257         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
19258         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
19259         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
19260         Remove exemption for fpending.h.
19261         Suggested by Eric Blake.
19263 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
19265         pthread_sigmask: fix bug on FreeBSD 9
19266         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
19267         Include string.h.
19268         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
19269         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
19270         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
19271         but pthread_sigmask (1729, NULL, NULL) returns zero.
19272         See <http://bugs.gnu.org/11884>.
19273         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
19274         by inspecting whether the main call changed the old mask.
19276 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
19278         README-release: make it more legible
19279         * top/README-release: Improve typography slightly.
19281 2012-07-15  Jim Meyering  <meyering@redhat.com>
19283         maint: require that each sc_... command start with "@"
19284         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
19285         "make sc_maint" helps us avoid this nit.
19287 2012-07-15  Jim Meyering  <meyering@redhat.com>
19289         maint.mk: add leading "@" to quiet new "make syntax-check" rule
19290         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
19292 2012-07-13  Eric Blake  <eblake@redhat.com>
19294         maint.mk: new syntax check for HAVE_DECL checks
19295         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
19296         * cfg.mk
19297         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
19298         Exempt some false positives.
19299         Based on a report by Karel Zak.
19301         argp: make HAVE_DECL usage consistent
19302         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
19303         macros, not whether they are defined.
19304         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
19305         convention with other declaration checks.
19306         Reported by Karel Zak, with suggestions from Paul Eggert.
19308         stat-time: relax license to LGPLv2+
19309         * modules/stat-time (License): Relax, with consent of all authors.
19311         strndup: fix m4 usage error
19312         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
19313         defined, to either 0 or 1.
19314         Reported by Karel Zak.
19316 2012-07-11  Jim Meyering  <meyering@redhat.com>
19318         maint: enable the sc_avoid_if_before_free syntax-check rule
19319         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
19320         (if_before_free_offenders_): Define.
19321         (if_before_free_basename_re_): Define.
19322         Exempt current files with useless if-before-free.
19324 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
19326         gettext: do not assume '#define ... defined ...' behavior
19327         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
19328         Do not use '#define FOO ... defined BAR ...', as the C standard says
19329         it's not portable to expect that this works after macro expansion.
19330         Problem reported for gzip by Steven M. Schweda in
19331         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
19333 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
19335         getloadavg: clean out old Emacs and Autoconf cruft
19336         See Glenn Morris in <http://bugs.gnu.org/11905>.
19337         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
19338         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
19339         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
19340         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
19342 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
19344         bootstrap: let warn be like tests/init.sh's warn_
19345         Reported by Jim Meyering.
19346         * build-aux/bootstrap (warn): Remove, replaced by...
19347         (warnf_, warn_): these.
19348         Adjust callers.
19349         Shorten messages that no longer fit in 80 columns.
19351 2012-07-09  Bruno Haible  <bruno@clisp.org>
19353         getopt: Simplify after Emacs changed.
19354         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
19355         (gl_GETOPT_IFELSE): Remove macro.
19357 2012-07-09  Jim Meyering  <meyering@redhat.com>
19359         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
19360         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
19362         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
19363         Bugs in both of those conspired to make the
19364         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
19365         _sc_search_regexp's handling of non-empty $in_files would filter
19366         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
19367         choice of in_files value meant there would be no match in most
19368         projects, due to the presence of two or more Makefile.in files.
19369         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
19370         Fix a bug in how a non-empty $$in_files was processed:
19371         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
19372         in spite of the name, it's a regexp, not a list of file names.
19374 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
19376         getloadavg, getopt: fix commentary re configure.in
19377         Autoconf is deprecating the name 'configure.in', so change it to
19378         to the new name 'configure.ac' in a couple of places.
19379         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
19380         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
19381         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
19382         Emacs has renamed it to configure.ac, and it no longer refers
19383         to these macros anyway.
19385         timespec: mark functions with const attributes
19386         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
19387         Mark with _GL_ATTRIBUTE_CONST.
19389 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
19391         canonicalize[-lgpl]: handle "guessing" values when cross-building
19392         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
19393         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
19394         matches "*yes" instead of just "yes".  Regression introduced in commit
19395         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
19397 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
19398             Bruno Haible  <bruno@clisp.org>
19400         canonicalize: make the right guess when cross-compiling to GNU
19401         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
19402         determine whether cross-compiling to glibc systems, so as to
19403         include GNU/Hurd.
19405 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
19407         timespec-sub: avoid duplicate include
19408         * lib/timespec-sub.c: Do not include <config.h> twice.
19409         Reported by Juanma Barranquero.
19411 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
19413         bootstrap: use a more consistent error reporting scheme
19414         * build-aux/bootstrap (warn, die): New.
19415         Use them.
19417 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
19419         sys_time: allow too-wide tv_sec
19420         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
19421         timeval even if tv_sec is wider than time_t.  This allows
19422         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
19423         as without this patch gnulib replaces struct timeval
19424         and OpenBSD futimes therefore has a type mismatch.
19425         * doc/posix-headers/sys_time.texi: Mention this.
19427         pthread: check for both pthread_create and pthread_join
19428         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
19429         alter the check so that it tests for both pthread_create and
19430         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
19431         Suggested by Bruno Haible and Richard Yao in
19432         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
19434         parse-datetime: doc tuneup
19435         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
19436         spacing issues.
19438 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
19440         do-release-commit-and-tag: fix the previous commit
19441         * build-aux/do-release-commit-and-tag: Actually the test was right,
19442         but the comment and the error message were misleading.
19443         Fix comment, and improve error message.
19444         Perform check first, so that NEWS is not modified uselessly.
19446         do-release-commit-and-tag: fix typo
19447         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
19448         _not_ start with a stub.
19450 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
19452         pthread: check for pthread_create, not pthread_join
19453         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
19454         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
19455         pthread_join in libc.  I hope this removes the need for all the
19456         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
19457         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
19459 2012-07-04  Jim Meyering  <meyering@redhat.com>
19461         parse-datetime: fix failure to diagnose invalid input
19462         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
19463         rather than diagnosing the invalid input.  Now it reports this:
19464         date: invalid date '\260'
19465         * lib/parse-datetime.y (to_uchar): Define.
19466         (yylex): Don't sign-extend "other" bytes.
19467         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
19468         Thanks to Bruno Haible for the patch to this file.
19469         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
19470         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
19472 2012-07-03  Jim Meyering  <meyering@redhat.com>
19474         bootstrap: do not require now-removed build-aux/missing
19475         Now that build-aux/missing is, er, missing, bootstrap would
19476         silently fail.
19477         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
19478         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
19479         no longer part of gnulib.
19480         Diagnose the failure.
19482 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
19484         alloca: add support for HP NonStop TNS/E native
19485         * lib/alloca.in.h (alloca): Support the new host.
19486         From a suggestion by Joachim Schmitz in
19487         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
19489 2012-07-02  Pádraig Brady  <P@draigBrady.com>
19491         fsusage: remove code not needed on non GNU/Linux systems.
19493         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
19494         Don't include headers no longer needed in this case.
19495         * lib/fsusage.c [STAT_STATVFS &&
19496         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
19497         STAT_STATFS2_FRSIZE to exclude code not used in this case.
19499 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
19501         fsusage: include files needed for glibc 2.6 fallback
19502         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
19503         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
19504         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
19505         Problem reported by Ludovic Courtès in
19506         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
19508         fsusage: avoid needless check on GNU/Linux
19509         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
19510         on GNU/Linux systems, since it can't possibly work.
19512 2012-07-01  Bruno Haible  <bruno@clisp.org>
19514         log: Fix an autoconf >= 2.64 warning.
19515         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
19516         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
19518 2012-06-28  Bruno Haible  <bruno@clisp.org>
19520         log10f: Fix possible configuration problem.
19521         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
19522         $LOGF_LIBM.
19523         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
19525 2012-06-28  Bruno Haible  <bruno@clisp.org>
19527         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
19528         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
19529         not gl_cv_func_unlink_works.
19530         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
19532 2012-06-27  Eric Blake  <eblake@redhat.com>
19534         config: drop scripts that automake says are not independent
19535         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
19536         * build-aux/elisp-comp: Delete.
19537         * build-aux/missing: Likewise.
19538         * build-aux/ylwrap: Likewise.
19539         * modules/elisp-comp: Likewise.
19540         * MODULES.html.sh: Drop mention of elisp-comp.
19541         * NEWS: Mention this.
19543 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
19545         root-uid: new module
19546         This is for portability to Tandem's NonStop Kernel.
19547         * lib/root-uid.h, modules/root-uid: New files.
19548         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
19549         * lib/write-any-file.c, tests/test-sethostname2.c:
19550         Include "root-uid.h".
19551         * lib/euidaccess.c (euidaccess):
19552         * lib/pt_chown.c (main):
19553         * lib/unlinkdir.c (cannot_unlink_dir):
19554         * lib/write-any-file.c (can_write_any_file):
19555         * m4/mknod.m4 (gl_FUNC_MKNOD):
19556         * tests/test-sethostname2.c (geteuid, main):
19557         Don't assume ROOT_UID == 0.
19558         * modules/euidaccess (Depends-on):
19559         * modules/pt_chown (Depends-on):
19560         * modules/sethostname-tests (Depends-on):
19561         * modules/unlinkdir (Depends-on):
19562         * modules/write-any-file (Depends-on):
19563         Add root-uid.
19565         regex: use locale-independent comparison for codeset name
19566         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
19567         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
19568         for codeset name.
19569         * lib/regex_internal.h: Do not include <strings.h>, since we
19570         no longer use strcasecmp.
19571         * modules/regex (Depends-on): Remove strcase.
19573 2012-06-23  Bruno Haible  <bruno@clisp.org>
19575         getopt-posix: No longer guarantee that option processing is resettable.
19576         * doc/posix-functions/getopt.texi: Drop description of problem with
19577         internal state. Fix info about mingw and msvc9.
19578         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
19579         option processing by getopt(). Run three test programs instead of one.
19580         Simplify cross-compilation guess.
19581         * NEWS: Mention the change.
19582         Reported by Rich Felker <dalias@aerifal.cx>.
19584 2012-06-26  Bruno Haible  <bruno@clisp.org>
19586         argp, regex: Ensure strcasecmp gets declared.
19587         * lib/argp-help.c: Include <strings.h>.
19588         * lib/regex_internal.h: Likewise.
19589         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
19591 2012-06-24  Bruno Haible  <bruno@clisp.org>
19593         ptsname_r: Make it consistent with ptsname on AIX.
19594         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
19595         implementation as for OSF/1.
19596         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
19597         a pty master.
19599         ptsname_r: Make it consistent with ptsname on OSF/1.
19600         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
19601         OSF/1.
19603 2012-06-24  Bruno Haible  <bruno@clisp.org>
19605         ttyname_r: Fix result on OSF/1, Solaris.
19606         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
19608 2012-06-24  Bruno Haible  <bruno@clisp.org>
19610         ptsname_r: Add support for Solaris.
19611         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
19612         Solaris.
19614         ptsname_r: Fix test failure on native Windows.
19615         * modules/ptsname_r (Depends-on): Add isatty.
19617         ptsname_r: Fix test failures on IRIX, Solaris.
19618         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
19619         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
19620         accordingly.
19621         * lib/ptsname_r.c: Include <fcntl.h>.
19622         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
19623         set errno if fd is invalid.
19624         * tests/test-isatty.c (main): Update comments.
19626 2012-06-24  Bruno Haible  <bruno@clisp.org>
19628         ptsname test: Extend test.
19629         * tests/test-ptsname.c: Include <errno.h>.
19630         (main): Test behaviour with invalid file descriptor.
19632 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
19634         time: fix obsolete comment
19635         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
19636         reference to HAVE_STRUCT_TIMESPEC in comment.
19638 2012-06-23  Bruno Haible  <bruno@clisp.org>
19640         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
19641         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
19642         does not handle abbreviated long options with equivalent
19643         disambiguations, set gl_replace_getopt to yes.
19644         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
19646 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
19648         time_r: fix typo that always overrode localtime_r decl
19649         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
19650         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
19651         not in a standard include.
19653 2012-06-22  Bruno Haible  <bruno@clisp.org>
19655         Write "Mac OS X" instead of "MacOS X".
19656         * README: Write "Mac OS X" instead of "MacOS X".
19657         * build-aux/bootstrap: Likewise.
19658         * build-aux/install-reloc: Likewise.
19659         * lib/acl-internal.h: Likewise.
19660         * lib/acl_entries.c: Likewise.
19661         * lib/argp-ba.c: Likewise.
19662         * lib/argp-pv.c: Likewise.
19663         * lib/config.charset: Likewise.
19664         * lib/copy-acl.c: Likewise.
19665         * lib/csharpexec.c: Likewise.
19666         * lib/euidaccess.c: Likewise.
19667         * lib/fbufmode.c: Likewise.
19668         * lib/fflush.c: Likewise.
19669         * lib/file-has-acl.c: Likewise.
19670         * lib/filemode.h: Likewise.
19671         * lib/fpurge.c: Likewise.
19672         * lib/freadable.c: Likewise.
19673         * lib/freadahead.c: Likewise.
19674         * lib/freading.c: Likewise.
19675         * lib/freadptr.c: Likewise.
19676         * lib/freadseek.c: Likewise.
19677         * lib/fseeko.c: Likewise.
19678         * lib/fseterr.c: Likewise.
19679         * lib/fsusage.c: Likewise.
19680         * lib/fwritable.c: Likewise.
19681         * lib/fwriting.c: Likewise.
19682         * lib/get-rusage-as.c: Likewise.
19683         * lib/get-rusage-data.c: Likewise.
19684         * lib/getdomainname.c: Likewise.
19685         * lib/idpriv-drop.c: Likewise.
19686         * lib/idpriv-droptemp.c: Likewise.
19687         * lib/localcharset.c: Likewise.
19688         * lib/locale.in.h: Likewise.
19689         * lib/localename.c: Likewise.
19690         * lib/mbsrtowcs-state.c: Likewise.
19691         * lib/nproc.c: Likewise.
19692         * lib/passfd.c: Likewise.
19693         * lib/posix_openpt.c: Likewise.
19694         * lib/printf-parse.c: Likewise.
19695         * lib/progreloc.c: Likewise.
19696         * lib/safe-read.h: Likewise.
19697         * lib/safe-write.h: Likewise.
19698         * lib/sched.in.h: Likewise.
19699         * lib/set-mode-acl.c: Likewise.
19700         * lib/signal.in.h: Likewise.
19701         * lib/stdint.in.h: Likewise.
19702         * lib/stdio-impl.h: Likewise.
19703         * lib/stdlib.in.h: Likewise.
19704         * lib/strtod.c: Likewise.
19705         * lib/sys_select.in.h: Likewise.
19706         * lib/tcgetsid.c: Likewise.
19707         * lib/unistd.in.h: Likewise.
19708         * lib/unlockpt.c: Likewise.
19709         * lib/vasnprintf.c: Likewise.
19710         * lib/vma-iter.c: Likewise.
19711         * lib/wcsrtombs-state.c: Likewise.
19712         * m4/acl.m4: Likewise.
19713         * m4/acosl.m4: Likewise.
19714         * m4/asinl.m4: Likewise.
19715         * m4/atanl.m4: Likewise.
19716         * m4/c-stack.m4: Likewise.
19717         * m4/cosl.m4: Likewise.
19718         * m4/expl.m4: Likewise.
19719         * m4/extensions.m4: Likewise.
19720         * m4/fdatasync.m4: Likewise.
19721         * m4/fmal.m4: Likewise.
19722         * m4/frexp.m4: Likewise.
19723         * m4/frexpf.m4: Likewise.
19724         * m4/frexpl.m4: Likewise.
19725         * m4/fsusage.m4: Likewise.
19726         * m4/getdomainname.m4: Likewise.
19727         * m4/getloadavg.m4: Likewise.
19728         * m4/getopt.m4: Likewise.
19729         * m4/gettext.m4: Likewise.
19730         * m4/gnulib-common.m4: Likewise.
19731         * m4/intdiv0.m4: Likewise.
19732         * m4/intlmacosx.m4: Likewise.
19733         * m4/largefile.m4: Likewise.
19734         * m4/ldexpl.m4: Likewise.
19735         * m4/link-follow.m4: Likewise.
19736         * m4/locale-ar.m4: Likewise.
19737         * m4/locale-fr.m4: Likewise.
19738         * m4/locale-ja.m4: Likewise.
19739         * m4/locale-tr.m4: Likewise.
19740         * m4/locale-zh.m4: Likewise.
19741         * m4/locale_h.m4: Likewise.
19742         * m4/lock.m4: Likewise.
19743         * m4/logl.m4: Likewise.
19744         * m4/mathfunc.m4: Likewise.
19745         * m4/minus-zero.m4: Likewise.
19746         * m4/mktime.m4: Likewise.
19747         * m4/mmap-anon.m4: Likewise.
19748         * m4/multiarch.m4: Likewise.
19749         * m4/nanosleep.m4: Likewise.
19750         * m4/nocrash.m4: Likewise.
19751         * m4/poll.m4: Likewise.
19752         * m4/printf-frexpl.m4: Likewise.
19753         * m4/printf.m4: Likewise.
19754         * m4/signbit.m4: Likewise.
19755         * m4/sinl.m4: Likewise.
19756         * m4/sqrtl.m4: Likewise.
19757         * m4/strerror_r.m4: Likewise.
19758         * m4/tanl.m4: Likewise.
19759         * m4/threadlib.m4: Likewise.
19760         * m4/ttyname_r.m4: Likewise.
19761         * m4/unlink.m4: Likewise.
19762         * m4/visibility.m4: Likewise.
19763         * m4/wcwidth.m4: Likewise.
19764         * tests/minus-zero.h: Likewise.
19765         * tests/test-alloca-opt.c: Likewise.
19766         * tests/test-copy-acl.sh: Likewise.
19767         * tests/test-copy-file.sh: Likewise.
19768         * tests/test-fdatasync.c: Likewise.
19769         * tests/test-file-has-acl.sh: Likewise.
19770         * tests/test-flock.c: Likewise.
19771         * tests/test-fsync.c: Likewise.
19772         * tests/test-localename.c: Likewise.
19773         * tests/test-malloca.c: Likewise.
19774         * tests/test-nonblocking-pipe.h: Likewise.
19775         * tests/test-nonblocking-socket.h: Likewise.
19776         * tests/test-openpty.c: Likewise.
19777         * tests/test-posix_openpt.c: Likewise.
19778         * tests/test-ptsname.c: Likewise.
19779         * tests/test-ptsname_r.c: Likewise.
19780         * tests/test-sameacls.c: Likewise.
19781         * tests/test-select.h: Likewise.
19782         * tests/test-set-mode-acl.sh: Likewise.
19783         * tests/test-snprintf-posix.h: Likewise.
19784         * tests/test-sprintf-posix.h: Likewise.
19785         * tests/test-strtod.c: Likewise.
19786         * tests/test-time.c: Likewise.
19787         * tests/test-vasnprintf-posix.c: Likewise.
19788         * tests/test-vasprintf-posix.c: Likewise.
19789         * doc/acl-resources.txt: Likewise.
19790         * doc/**/*.texi: Likewise.
19791         Reported by Max Horn <max@quendi.de>.
19793 2012-06-22  Bruno Haible  <bruno@clisp.org>
19795         grantpt: Relax requirement regarding invalid file descriptors.
19796         * lib/grantpt.c: Don't include <fcntl.h>.
19797         (grantpt): Don't verify the validity of the file descriptor.
19798         * modules/grantpt (Depends-on): Remove fcntl-h.
19799         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
19800         file descriptors.
19801         * doc/posix-functions/grantpt.texi: Document more platforms on which
19802         grantpt succeeds for invalid file descriptors.
19803         Reported by Rich Felker <dalias@aerifal.cx>.
19805 2012-06-22  Bruno Haible  <bruno@clisp.org>
19807         fbufmode test: Don't test unportable behaviour.
19808         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
19809         (main): Invoke it three times.
19810         Reported by Szabolcs Nagy <nsz@port70.net>
19811         and Rich Felker <dalias@aerifal.cx>.
19813 2012-06-21  Bruno Haible  <bruno@clisp.org>
19815         gnulib-tool: Refactor inctests variable.
19816         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
19817         (func_modules_transitive_closure,
19818         func_modules_transitive_closure_separately,
19819         func_import, func_create_testdir): Update.
19821         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
19822         * gnulib-tool: Accept option --without-tests.
19823         (func_usage): Document --without-tests option. Rearrange.
19824         (inctests): Normalize according to the mode.
19825         * NEWS: Mention the change.
19826         Suggested by Simon Josefsson.
19828 2012-06-21  Bruce Korb  <bkorb@gnu.org>
19830         parse-duration test: Avoid spurious output.
19831         * tests/test-parse-duration.sh: Reindent with leading tabs.
19833 2012-06-21  Jim Meyering  <meyering@redhat.com>
19835         maint: disable the strncpy prohibition
19836         * cfg.mk: Do not prohibit strncpy here.
19838 2012-06-21  Bruno Haible  <bruno@clisp.org>
19840         nonblocking: Avoid compilation error on mingw64.
19841         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
19842         fscanf.
19843         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
19844         * modules/vfscanf (configure.ac): Likewise.
19845         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
19846         definition only if stdio.h has prepared it.
19847         Reported by Daniel P. Berrange <berrange@redhat.com>.
19849 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
19851         gnulib-tool: Use readlink if it is available.
19852         * gnulib-tool (func_readlink): Choose function more appropriately.
19854 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
19856         posixtm-tests: port to buggy compiler
19857         Problem reported by Simon Josefsson in
19858         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
19859         * modules/posixtm-tests (Depends-on): Add stdint.
19860         * tests/test-posixtm.c (struct posixtm_test.t_expected):
19861         Now of type int_least64_t, not int64_t, both because that's
19862         what INT64_C returns and because int_least64_t works even
19863         on 72-bit hosts.
19864         (T): Use INT64_C on constants outside the traditional int range,
19865         to work around compiler bug noted by Simon.
19867         mktime: fix integer overflow in 'configure'-time test
19868         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
19869         after integer overflow.  Problem reported by Rich Felker in
19870         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
19871         Also, don't look for further instances of a bug if we've already
19872         found one instance; this helps 'configure' run faster.
19874 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
19876         tmpfile, clean-temp: Fix invocation of GetVersionEx.
19877         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
19878         GetVersionEx correctly.
19879         * lib/clean-temp.c (supports_delete_on_close): Likewise.
19881 2012-06-20  Bruno Haible  <bruno@clisp.org>
19883         fdopen: Allow implementations that don't reject invalid fd arguments.
19884         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
19885         succeeds.
19886         Reported by Rich Felker <dalias@aerifal.cx>.
19888 2012-06-20  Simon Josefsson  <simon@josefsson.org>
19890         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
19891         bring in LIBINTL.
19893 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
19895         init.sh: do not rely on autoupated PWD
19896         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
19897         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
19898         Although Nelson's bug was not necessarily fixed by this patch,
19899         it seems wise to make the change for safety.
19900         * tests/init.sh (path_prepend_): Do not rely on PWD updating
19901         automagically after 'cd'; this is not reliable on older shells.
19902         (setup_): Fail if we cannot cd to temporary directory.
19904 2012-06-19  Bruno Haible  <bruno@clisp.org>
19906         stat, fstat: Avoid warnings on mingw64.
19907         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
19908         redefining.
19909         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
19910         Reported by Daniel P. Berrange <berrange@redhat.com>.
19912 2012-06-19  Bruno Haible  <bruno@clisp.org>
19914         stdioext: Add support for musl libc.
19916         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
19917         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
19919         * m4/fseterr.m4: New file.
19920         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
19921         function exists.
19922         * modules/fseterr (Files): Add m4/fseterr.m4.
19923         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
19924         __fseterr does not exist.
19925         (Makefile.am): Remove fseterr.c from lib_SOURCES.
19927         * lib/freadable.h: Update comment.
19929         * lib/fwritable.h: Update comment.
19931         * lib/freading.h: Update comment.
19933         * lib/fwriting.h: Update comment.
19935         * m4/freadahead.m4: New file.
19936         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
19937         that function exists.
19938         * modules/freadahead (Files): Add m4/freadahead.m4.
19939         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
19940         __freadahead does not exist.
19941         (Makefile.am): Remove freadahead.c from lib_SOURCES.
19943         * m4/freadptr.m4: New file.
19944         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
19945         function exists.
19946         * modules/freadptr (Files): Add m4/freadptr.m4.
19947         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
19948         __freadptr does not exist.
19949         (Makefile.am): Remove freadptr.c from lib_SOURCES.
19951         * m4/freadseek.m4: New file.
19952         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
19953         exists.
19954         * modules/freadseek (Files): Add m4/freadseek.m4.
19955         (configure.ac): Invoke gl_FUNC_FREADSEEK.
19957         * lib/fpurge.c (fpurge): Update comment.
19959         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
19961 2012-06-19  Bruno Haible  <bruno@clisp.org>
19963         *printf-posix: Put more info into config.log.
19964         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
19965         exit code into config.log.
19967 2012-06-19  Bruno Haible  <bruno@clisp.org>
19969         getopt-gnu: Fix exit code overflow in autoconf test.
19970         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
19971         to keep them below < 128.
19973 2012-06-17  Jim Meyering  <meyering@redhat.com>
19975         maint.mk: fix typo in code to derive GPG key at release time
19976         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
19978 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
19980         regex: avoid warning when pointers are not long
19981         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
19982         and uintptr_t, not long, for portability to hosts where pointers and
19983         long have different sizes.  Issue noted by Daniel P. Berrange in
19984         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
19985         and fix suggested by Bruno Haible in
19986         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
19988 2012-06-17  Bruno Haible  <bruno@clisp.org>
19990         dummy: Relicense into the public domain.
19991         * modules/dummy (License): Set to "public domain".
19992         Suggested by Reuben Thomas.
19994 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
19996         announce-gen: VPATH issues
19997         * build-aux/announce-gen (--srcdir): New option, used to trim the
19998         $srcdir part of the path from $builddir to NEWS.
19999         * top/maint.mk (announcement): Adjust.
20001 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
20003         gnu-web-doc-update: VPATH builds
20004         * build-aux/gnu-web-doc-update (--builddir): New option.
20005         Revamp the handling of options.
20006         Prefer $(...) to `...`.
20007         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
20008         the template, and it is GNU mktemp specific.
20009         Prefer set -e to long series of &&.
20010         Restore the initial git branch, not "master".
20011         Properly initialize submodules (don't rely only on bootstrap).
20012         Do not reconfigure blindly, use config.status.
20013         * top/README-release: Update instructions for gnu-web-doc-update.
20015 2012-06-11  Jim Meyering  <meyering@redhat.com>
20017         maint.mk: revert most of the previous change re "all these"
20018         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
20019         For rationale, see the discussion at
20020         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
20022 2012-06-10  Karl Berry  <karl@gnu.org>
20024         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
20026         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
20028 2012-06-10  Bruce Korb  <bkorb@gnu.org>
20030         parse-duration: Relicense under LGPLv2+.
20031         * modules/parse-duration (License): Change to LGPLv2+.
20033 2012-06-10  Jim Meyering  <meyering@redhat.com>
20035         maint.mk: prohibit common grammar error: "all these"
20036         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
20037         the list of prohibited word sequences.  It should be "all of these".
20038         * lib/tempname.c (__gen_tempname): Fix one of them.
20040 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
20042         do-release-commit-and-tag: support VPATH builds
20043         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
20044         (noteworthy): Defined earlier to factor its value.
20045         (noteworthy_stub): New.
20046         Use it to factor.
20047         (help_version): Split into...
20048         (help, version): these.
20049         Adjust the option processing part.
20050         Support "--option=value" in addition to "--option value".
20051         (builddir): New.
20052         (--builddir): New option.
20053         * top/README-release: Document this.
20054         Reword slightly so that the reader cannot understand that he
20055         has to do these steps before calling do-release-commit-and-tag.
20057 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
20059         readme-release: also require announce-gen and maintainer-makefile
20060         * modules/readme-release (Depends-on): here.
20061         * modules/announce-gen, modules/do-release-commit-and-tag,
20062         modules/gnu-web-doc-update, modules/maintainer-makefile
20063         (Description): Point to readme-release.
20065 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
20067         maint.mk: fix VPATH issues.
20068         * top/maint.mk (news-check): GNU Make understand $< very well.
20069         (release-prep): NEWS is in $(srcdir).
20071 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
20073         readme-release: require the promoted modules.
20074         * modules/readme-release (Depends-on): Add
20075         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
20076         in this text.
20078 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
20079             Bruno Haible  <bruno@clisp.org>
20081         error, strerror-override: Support mingw64 from Fedora 17.
20082         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
20083         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
20084         EINPROGRESS.
20085         * lib/strerror-override.h (strerror_override): Test it.
20086         * lib/strerror-override.c (strerror_override): Likewise.
20087         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
20089 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
20090             Bruno Haible  <bruno@clisp.org>
20092         error, strerror-override: Support mingw64 from Fedora 17.
20093         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
20094         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
20095         * lib/strerror-override.h (strerror_override): Test it.
20096         * lib/strerror-override.c (strerror_override): Likewise.
20098 2012-06-03  Bruno Haible  <bruno@clisp.org>
20100         error, strerror-override: Support new errno values from POSIX:2008.
20101         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
20102         ENOTRECOVERABLE.
20103         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
20104         platforms.
20105         * lib/strerror-override.c (strerror_override): Conditionalize the
20106         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
20107         * lib/strerror-override.h (strerror_override): Declare also if
20108         GNULIB_defined_EOWNERDEAD is defined.
20109         * tests/test-errno.c (e130, e131): New variables.
20110         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
20111         ENOTRECOVERABLE.
20112         Reported by Paolo Bonzini.
20114 2012-05-31  Jim Meyering  <meyering@redhat.com>
20116         savewd: add missing dependency on sys_wait module
20117         * modules/savewd (Depends-on): Add sys_wait, needed at least
20118         for MSVC.  Report and suggested change by Michael Goffioul.
20120 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
20122         system-quote-tests: port to CentOS 5
20123         Problem reported by Tom G. Christensen in
20124         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
20125         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
20127 2012-05-29  Jim Meyering  <meyering@redhat.com>
20129         maint: fix typos in comments and ChangeLog
20130         Culprits identified and fixed mostly automatically using these commands:
20131         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
20132         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
20133         using http://github.com/lyda/misspell-check
20134         * ChangeLog: Fix typos.
20135         * doc/solaris-versions: Likewise.
20136         * lib/regexec.c (re_search_stub): Likewise.
20137         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
20139 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
20141         manywarnings: remove duplicate -Wmultichar entry
20142         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
20143         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
20144         so keep the entry marked as documented.
20146 2012-05-27  Karl Berry  <karl@gnu.org>
20148         * config/srclist.txt (mktime.c): remove last libc sync,
20149         perhaps just temporarily.
20151 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
20153         regex: don't assume uint64_t or uint32_t
20154         * lib/regcomp.c (init_word_char): Don't assume that the types
20155         uint64_t and uint32_t exist.  The C standard doesn't guarantee
20156         them, and on some 32-bit compilers there is no uint64_t.
20157         Problem reported by Gianluigi Tiesi in
20158         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
20160 2012-05-25  Jim Meyering  <meyering@redhat.com>
20162         maint.mk: add strncpy-prohibiting syntax-check rule
20163         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
20165 2012-05-24  Jim Meyering  <meyering@redhat.com>
20167         maint.mk: compute $(gpg_key_ID) more portably
20168         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
20169         That use of sed is not portable to some fringe systems.
20170         Reported by Paul Eggert in
20171         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
20173 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
20175         mktime: sync from glibc
20176         * config/srclist.txt: Uncomment mktime.c.
20177         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
20178         First, indent with tabs, since glibc uses tabs and doesn't want to
20179         change and we'd rather be identical to glibc.  Also, two small
20180         coding changes:
20181         (isdst_differ): Use &&, not &, as && is the usual style.
20182         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
20183         for clarity.
20185 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
20187         announce-gen: du -h is more portable than du --human
20188         * build-aux/announce-gen (sizes): Invoke du with -h instead
20189         of --human.  Accept leading white space in its output.
20191 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
20193         announce-gen: Improve diagnostics.
20194         * build-aux/announce-gen: When parsing command line options,
20195         prefer "announce-gen: option --release-type requires an argument"
20196         to "Option release-type requires an argument".
20198 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
20200         maint.mk: gpg_key_ID: use sed more portably
20201         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
20202         the closing brace.
20203         (refresh-po): Fuse two sed invocations into one.
20205 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
20207         gitlog-to-changelog: support the log message format used in Bison.
20208         * build-aux/gitlog-to-changelog: Support --strip-tab and
20209         --strip-cherry-picked.
20211 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
20213         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
20214         the rest of the current time slice to another thread in the current
20215         process. So if the thread that feeds the file decscriptor we're
20216         polling is not in the current process, we get busy-waiting.
20217         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
20218         Patch from Theodore Leblond.
20219         * lib/select.c: Split polling out of the loop that sets the output
20220         fd_sets.  Check for zero result and loop if the wait timeout is
20221         infinite.
20223 2012-05-21  Simon Josefsson  <simon@josefsson.org>
20225         select: Fix build error on IRIX 6.5.
20226         * lib/select.c: Include stddef.h for NULL.
20228 2012-05-21  Simon Josefsson  <simon@josefsson.org>
20230         gc: fix libgcrypt detection on older machines.
20231         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
20232         copyright years because the file has been distributed every year
20233         since it was created.
20235 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
20237         crypto: fix bug in large buffer handling
20238         Problem reported by Serge Belyshev for glibc in
20239         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
20240         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
20241         * lib/md4.c (md4_process_block):
20242         * lib/md5.c (md5_process_block):
20243         * lib/sha1.c (sha1_process_block):
20244         * lib/sha256.c (sha256_process_block):
20245         Don't assume the buffer length is less than 2**32.
20246         * lib/sha512.c (sha512_process_block): Likewise.
20247         Here, the bug is present only in the rare case where the host does
20248         not support uint64_t or where size_t is wider than 64 bits.
20249         Use u64size to work around the problems.
20250         * lib/u64.h (u64size): New macro.
20252 2012-05-15  Pádraig Brady  <P@draigBrady.com>
20254         fsusage: fix block size returned on older Linux 2.6
20256         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
20257         which is available since Linux 2.6.
20258         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
20259         when the member is available so it can be used as a fallback.
20260         * doc/posix-functions/statvfs.texi: Mention the hang issue
20261         on Linux < 2.6.36.
20263 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
20265         bootstrap: suppress stderr chatter
20266         * build-aux/bootstrap (insert_sorted_if_absent, main program):
20267         Omit unnecessary chatter to stderr.  The main program chatter
20268         was there only inadvertantly.
20270         bootstrap: .gitignore files created by autopoint, libtool
20271         I ran into this problem when bootstrapping the latest diffutils.
20272         After './bootstrap', 'git status' reported lots of untracked files
20273         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
20274         autopoint and do not need to be version-controlled.
20275         * build-aux/bootstrap: Put into .gitignore the files that
20276         autopoint and libtool create, by keeping track of files that exist
20277         after but not before these programs are run.
20278         (version_controlled_file): Move up.  2nd arg is now full file
20279         name, not base name; this is more convenient.  Put CVS at the end,
20280         as it's now somewhat deprecated.
20282 2012-05-14  Jim Meyering  <meyering@redhat.com>
20284         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
20285         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
20286         definition.  Reported by Bruno Haible.
20288 2012-05-13  Bruno Haible  <bruno@clisp.org>
20289             Paul Eggert  <eggert@cs.ucla.edu>
20291         binary-io: Define set_binary_mode function.
20292         * lib/binary-io.h (set_binary_mode): New function.
20293         (SET_BINARY): Define in terms of set_binary_mode.
20294         * modules/binary-io (configure.ac): Require AC_C_INLINE.
20295         * tests/test-binary-io.c (main): Accept an argument, and test either
20296         set_binary_mode or SET_BINARY depending on the argument.
20297         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
20298         argument. Clean up also t-bin-out0.tmp.
20300 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
20302         bootstrap: take advantage of POSIX shell features
20304         The 'bootstrap' script offered by Gnulib script already uses POSIX
20305         shell features (like $((...)) arithmetic expansions) that are not
20306         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
20307         means that bootstrap must already be run using a proper POSIX shell,
20308         which will thus provide more features, like ${var#pattern} parameter
20309         expansion or inversion of a command exit status with '!'.  We can
20310         thus use these features to improve the clarity and the performances
20311         of the bootstrap script.
20313         Suggested by Eric Blake.
20315         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
20316         of sed/expr plus command substitutions, to save some forks.  While
20317         we are at it, prefer the POSIX $(...) form of command substitution,
20318         rather than the legacy form `...` (since the former is visually
20319         clearer and interacts better with quoting), and prefer the idiom:
20320           "if ! CMD; then ACTION ..."
20321         over the idiom:
20322           "if CMD; then :; else ACTION ..."
20323         which was required by legacy Bourne shells not supporting '!'.
20325 2012-05-12  Bruno Haible  <bruno@clisp.org>
20327         system-quote: Add more comments.
20328         * lib/system-quote.h: Add more comments about wilcards and limitations.
20329         Suggested by Eli Zaretskii <eliz@gnu.org>.
20331         sh-quote, system-quote: Add comments about wildcards.
20332         * lib/sh-quote.h: Clarify what happens with wildcard characters.
20333         * lib/system-quote.h: Likewise.
20334         Reported by Eli Zaretskii <eliz@gnu.org>.
20336 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
20338         fsusage: check for GNU/Linux statvfs problem dynamically
20339         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
20340         Define STAT_STATFS2_BSIZE too, since in this case the code now
20341         checks dynamically whether statvfs is reliable, falling back on
20342         Linux-style statfs otherwise.
20343         (statvfs_works): New function, for dynamically testing statvfs.
20344         (get_fs_usage) [STAT_STATVFS]: Use it.
20345         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
20346         statvfs on GNU/Linux hosts, since it's now done dynamically.
20348 2012-05-10  Bruno Haible  <bruno@clisp.org>
20350         system-quote, execute, spawn-pipe: Escape '?' on Windows.
20351         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
20352         '?' character.
20353         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
20354         * tests/test-system-quote-main.c (check_all): Check also strings like
20355         "??????????".
20356         Reported by Eli Zaretskii <eliz@gnu.org>.
20358 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
20360         _Noreturn: port config.h to gcc -Wundef
20361         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
20362         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
20363         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
20365 2012-05-10  Bruno Haible  <bruno@clisp.org>
20367         system-quote: Refactor.
20368         * lib/system-quote.h (system_quote_copy): Fix comment.
20369         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
20370         New functions, extracted from system_quote_copy.
20371         (system_quote_length, system_quote_copy): Use these functions.
20372         Reported by Paul Eggert.
20374 2012-05-08  Bruno Haible  <bruno@clisp.org>
20376         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
20377         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
20379 2012-05-08  Bruno Haible  <bruno@clisp.org>
20381         Tests for module 'system-quote'.
20382         * modules/system-quote-tests: New file.
20383         * tests/test-system-quote.sh: New file.
20384         * tests/test-system-quote-main.c: New file.
20385         * tests/test-system-quote-child.c: New file.
20387         New module 'system-quote'.
20388         * lib/system-quote.h: New file.
20389         * lib/system-quote.c: New file.
20390         * modules/system-quote: New file.
20392 2012-05-08  Bruno Haible  <bruno@clisp.org>
20394         sh-quote: Make C++ safe and allow multiple inclusion.
20395         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
20396         declarations in extern "C".
20398 2012-05-08  Bruno Haible  <bruno@clisp.org>
20400         sh-quote tests: Make tests stricter.
20401         * tests/test-sh-quote.c (check_one): Check the return value of
20402         shell_quote_copy.
20403         (main): Check a string with a CR character. Check a string that
20404         contains UCHAR_MAX.
20406 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
20408         warnings.m4: provide a means to specify the program to compile.
20409         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
20410         (gl_WARN_ADD): here.
20411         Use gl_AS_VAR_APPEND.
20412         Support an argument to specify the program to compile.
20413         (gl_WARN_ADD): Accept an argument to specify the program to compile.
20414         AC_SUBST the WARN_CFLAGS when they are used.
20415         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
20416         leave this to gl_WARN_ADD.
20418 2012-05-08  Eric Blake  <eblake@redhat.com>
20420         doc: recommendations on gettext version
20421         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
20422         choice between versions.
20423         * DEPENDENCIES (gettext): Cover both approaches.
20425 2012-05-08  Jim Meyering  <meyering@redhat.com>
20427         init.sh: explain why EXEEXT support uses aliases rather than functions
20428         * tests/init.sh: Add a comment.
20430         init.sh: don't let bash aliases interfere with tests
20431         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
20432         is bash.  This avoids problems for those who alias standard commands to
20433         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
20434         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
20436 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
20438         stdint: be more consistent with glibc, SunOS libc
20439         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
20440         (gl_int_fast16_t, gl_uint_fast16_t)
20441         (gl_int_fast32_t, gl_uint_fast32_t)
20442         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
20443         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
20444         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
20445         Be consistent with glibc by default, and with SunOS 5.10 and later
20446         if __sun is defined.  This lessens the likelihood of clashes if
20447         code compiled for older hosts is combined with code compiled for
20448         newer ones.  Problem reported by Niels Möller in
20449         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
20451 2012-05-07  Eric Blake  <eblake@redhat.com>
20453         isatty: relax license to LGPLv2+
20454         * modules/isatty (License): Relax license.
20456 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
20458         stat-size: comment fix
20459         * lib/stat-size.h: Remove obsolete comment about indenting.
20461 2012-05-06  Bruno Haible  <bruno@clisp.org>
20463         Tests for module 'sh-quote'.
20464         * modules/sh-quote-tests: New file.
20465         * tests/test-sh-quote.c: New file.
20467 2012-05-06  Bruno Haible  <bruno@clisp.org>
20469         sh-quote: Improve shell_quote_argv's signature.
20470         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
20471         * lib/sh-quote.c (shell_quote_argv): Likewise.
20473 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
20475         stdint: document issues with int_fast8_t etc.
20476         * doc/posix-headers/stdint.texi (stdint.h): Say that other
20477         stdint.h substitutes may define these types differently.  See
20478         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
20480 2012-05-05  Bruno Haible  <bruno@clisp.org>
20482         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
20483         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
20484         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
20485         or 'guessing no (mishandles large arguments)'.
20487 2012-05-05  Bruno Haible  <bruno@clisp.org>
20489         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
20490         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
20491         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
20492         set gl_cv_func_link_follows_symlink to "guessing no".
20494 2012-05-05  Bruno Haible  <bruno@clisp.org>
20496         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
20497         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
20498         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
20499         "guessing no".
20500         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
20502 2012-05-05  Bruno Haible  <bruno@clisp.org>
20504         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
20505         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
20506         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
20507         set gl_cv_struct_dirent_d_ino to "guessing yes".
20509 2012-05-05  Bruno Haible  <bruno@clisp.org>
20511         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
20512         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
20513         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
20514         "guessing yes".
20516 2012-05-05  Bruno Haible  <bruno@clisp.org>
20518         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
20519         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
20520         compiling to a glibc system, set gl_cv_func_signbit and
20521         gl_cv_func_signbit_gcc to "guessing yes".
20523 2012-05-05  Bruno Haible  <bruno@clisp.org>
20525         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
20526         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
20527         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
20528         to "guessing yes".
20529         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
20530         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
20532 2012-05-05  Bruno Haible  <bruno@clisp.org>
20534         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
20535         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
20536         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
20537         gl_cv_func_realpath_works to "guessing yes".
20539 2012-05-05  Bruno Haible  <bruno@clisp.org>
20541         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
20542         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
20543         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
20545 2012-05-04  Bruno Haible  <bruno@clisp.org>
20547         Tweak last commit.
20548         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
20549         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20551 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
20553         unistd_h: make it easier to avoid sys_types_h
20554         This is useful for Emacs, which has its own method of porting to
20555         Windows, and which therefore does not need the sys_types_h module.
20556         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
20557         code moved here from gl_SYS_TYPES_H.
20558         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
20559         using the code directly.
20560         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
20561         gl_SYS_TYPES_H.
20562         * modules/sys_types (Files):
20563         * modules/unistd (Files): Add m4/off_t.m4.
20565 2012-05-03  Bruno Haible  <bruno@clisp.org>
20567         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
20568         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
20569         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
20570         "guessing yes" or "guessing no".
20571         (gl_FUNC_LSTAT): Update.
20572         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
20573         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
20574         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
20576 2012-05-03  Bruno Haible  <bruno@clisp.org>
20578         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
20579         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
20580         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
20581         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
20582         cross-compiling, choose the first alternative on glibc systems.
20583         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
20585 2012-05-03  Bruno Haible  <bruno@clisp.org>
20587         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
20588         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
20589         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
20591 2012-05-03  Bruno Haible  <bruno@clisp.org>
20593         chown: Avoid "guessing no" when cross-compiling to glibc systems.
20594         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
20596 2012-05-03  Bruno Haible  <bruno@clisp.org>
20598         Avoid "guessing no" guesses when cross-compiling to glibc systems.
20599         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
20600         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
20601         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
20602         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
20603         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
20604         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
20605         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
20606         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
20607         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
20608         compiling to glibc systems, set gl_cv_func_chown_slash_works,
20609         gl_cv_func_chown_ctime_works to "guessing yes".
20610         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
20611         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
20612         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
20613         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
20614         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
20615         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
20616         compiling to glibc systems, set gl_cv_func_open_directory_works to
20617         "guessing yes".
20618         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
20619         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
20620         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
20621         "guessing yes".
20622         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
20623         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
20624         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
20625         compiling to glibc systems, set gl_cv_func_floorf_ieee to
20626         "guessing yes".
20627         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
20628         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
20629         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
20630         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
20631         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
20632         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
20633         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
20634         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
20635         "guessing yes".
20636         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
20637         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
20638         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
20639         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
20640         "guessing yes".
20641         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
20642         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
20643         "guessing yes".
20644         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
20645         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
20646         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
20647         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
20648         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
20649         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
20650         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
20651         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
20652         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
20653         compiling to glibc systems, set gl_cv_func_log10f_ieee to
20654         "guessing yes".
20655         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
20656         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
20657         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
20658         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
20659         "guessing yes".
20660         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
20661         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
20662         "guessing yes".
20663         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
20664         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
20665         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
20666         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
20667         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
20668         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
20669         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
20670         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
20671         compiling to glibc systems, set gl_cv_func_mkfifo_works to
20672         "guessing yes".
20673         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
20674         compiling to glibc systems, set gl_cv_func_mknod_works to
20675         "guessing yes".
20676         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
20677         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
20678         "guessing yes".
20679         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
20680         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
20681         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
20682         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
20683         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
20684         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
20685         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
20686         compiling to glibc systems, set gl_cv_func_svid_putenv to
20687         "guessing yes".
20688         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
20689         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
20690         "guessing yes".
20691         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
20692         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
20693         "guessing yes".
20694         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
20695         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
20696         to "guessing yes".
20697         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
20698         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
20699         to "guessing yes".
20700         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
20701         compiling to glibc systems, set gl_cv_func_rmdir_works to
20702         "guessing yes".
20703         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
20704         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
20705         gl_cv_func_unlink_parent_fails to "guessing yes".
20706         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
20707         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
20708         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
20709         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
20710         gl_cv_func_rename_dest_works to "guessing yes".
20711         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
20712         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
20713         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
20714         compiling to glibc systems, set gl_cv_func_roundf_ieee to
20715         "guessing yes".
20716         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
20717         compiling to glibc systems, set gl_cv_func_roundl_ieee to
20718         "guessing yes".
20719         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
20720         compiling to glibc systems, set gl_cv_func_setenv_works to
20721         "guessing yes".
20722         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
20723         compiling to glibc systems, set gl_cv_func_unsetenv_works to
20724         "guessing yes".
20725         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
20726         compiling to glibc systems, set gl_cv_func_sleep_works to
20727         "guessing yes".
20728         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
20729         compiling to glibc systems, set gl_cv_func_stat_file_slash to
20730         "guessing yes".
20731         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
20732         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
20733         "guessing yes".
20734         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
20735         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
20736         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
20737         compiling to glibc systems, set gl_cv_func_truncf_ieee to
20738         "guessing yes".
20739         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
20740         compiling to glibc systems, set gl_cv_func_truncl_ieee to
20741         "guessing yes".
20742         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
20743         compiling to glibc systems, set gl_cv_func_usleep_works to
20744         "guessing yes".
20745         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
20746         compiling to glibc systems, set gl_cv_func_futimesat_works to
20747         "guessing yes".
20749 2012-05-03  Bruno Haible  <bruno@clisp.org>
20751         Say "guessing yes" or "guessing no" when cross-compiling.
20752         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
20753         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
20754         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
20755         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
20756         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
20757         am_cv_func_working_getline to "guessing yes" or "guessing no".
20758         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
20759         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
20760         (gl_FUNC_MEMMEM): When cross-compiling, set
20761         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
20762         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
20763         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
20764         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
20765         set gl_cv_func_strcasestr_works_always to "guessing yes" or
20766         "guessing no".
20767         (gl_FUNC_STRCASESTR): When cross-compiling, set
20768         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
20769         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
20770         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
20771         (gl_FUNC_STRSTR): When cross-compiling, set
20772         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
20773         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
20774         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
20775         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
20776         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
20778 2012-05-01  Bruno Haible  <bruno@clisp.org>
20780         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
20781         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
20782         * build-aux/reloc-ldflags: Likewise.
20783         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
20785 2012-05-01  Bruno Haible  <bruno@clisp.org>
20787         gnulib-tool: Remove transitional code.
20788         * gnulib-tool: Don't warn about --import with 0 arguments any more.
20789         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
20791 2012-05-01  Bruno Haible  <bruno@clisp.org>
20793         getcwd: Fix misindentation.
20794         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
20796 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
20798         exclude: process exclude and include directives in order
20799         This restores the pre-2009 behavior, and is part of a fix of a
20800         grep bug reported by Quentin Arce in
20801         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
20802         * lib/exclude.c (struct exclude): Remove 'tail' member.
20803         (new_exclude_segment): Prepend the new segment instead of appending.
20804         Return void, since that's now more convenient.
20805         (file_pattern_matches): Renamed from excluded_file_pattern_p.
20806         (file_name_matches): Renamed from excluded_file_name_p.
20807         (file_pattern_matches, file_name_matches):
20808         Return true if the pattern matches, not if it excludes.
20809         All callers changed.
20810         (excluded_file_name): Process the list in reverse order;
20811         since the list is now reversed this restores the pre-2009 behavior.
20812         (add_exclude): Adjust to new reversed-order list.  Use local var
20813         rather than macro, for clarity.
20814         * tests/test-exclude7.sh: Adjust to corrected behavior.
20816         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
20817         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
20818         it's not possible here.  Handle the case of \ at end of pattern
20819         without dumping core.
20820         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
20822         _Noreturn: future-proof non-GNU and non-MSVC compilers
20823         * build-aux/snippet/_Noreturn.h (_Noreturn):
20824         * m4/gnulib-common.m4 (gl_COMMON_BODY):
20825         Do not define _Noreturn if __STDC_VERSION__ indicates this is
20826         C11 or later.  This is more likely to work with random future C
20827         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
20828         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
20830         exclude: handle wildcards with FNM_EXTMATCH
20831         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
20832         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
20833         comment that "has wildcards" really means "has or may have
20834         wildcards".  Simplify by avoiding the need to call strcspn.
20836 2012-04-29  Bruno Haible  <bruno@clisp.org>
20838         gnulib-tool: Fix list of authors.
20839         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
20841 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
20843         bootstrap: support Automake-NG in $buildreq
20844         * bootstrap (check_versions): Handle automake and aclocal from
20845         Automake-NG specially.  They can be specified as respectively
20846         the "automake-ng" and "aclocal-ng" requirements.
20848 2012-04-25  Eric Blake  <eblake@redhat.com>
20850         bootstrap: only force latest Makefile.in.in for gettext module
20851         * build-aux/bootstrap (with_gettext): Only install latest
20852         Makefile.in.in for projects requesting bleeding edge gettext.
20854 2012-04-22  Bruno Haible  <bruno@clisp.org>
20856         doc: Mention reason for replacement on glibc/Linux systems.
20857         * doc/posix-functions/dprintf.texi: Mention the problem with special
20858         'long double' values.
20859         * doc/posix-functions/fprintf.texi: Likewise.
20860         * doc/posix-functions/printf.texi: Likewise.
20861         * doc/posix-functions/snprintf.texi: Likewise.
20862         * doc/posix-functions/sprintf.texi: Likewise.
20863         * doc/posix-functions/vdprintf.texi: Likewise.
20864         * doc/posix-functions/vfprintf.texi: Likewise.
20865         * doc/posix-functions/vprintf.texi: Likewise.
20866         * doc/posix-functions/vsnprintf.texi: Likewise.
20867         * doc/posix-functions/vsprintf.texi: Likewise.
20868         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
20869         platforms with F_DUPFD_CLOEXEC problems.
20870         * doc/posix-functions/glob.texi: Mention which platforms are affected
20871         by the problem with symbolic links.
20872         * doc/posix-functions/linkat.texi: Mention the problem with
20873         AT_SYMLINK_FOLLOW on Linux.
20875 2012-04-22  Bruno Haible  <bruno@clisp.org>
20877         pwrite: Don't replace on all platforms.
20878         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
20880 2012-04-22  Bruno Haible  <bruno@clisp.org>
20882         rint* tests: Avoid gcc warnings.
20883         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
20884         * tests/test-rintf.c (INFINITY, NAN): Likewise.
20885         * tests/test-rintl.c (INFINITY, NAN): Likewise.
20887 2012-04-21  Bruno Haible  <bruno@clisp.org>
20889         users.txt: Update.
20890         * users.txt: Add freedink, wdiff. Update URLs for projects that have
20891         switched from CVS to git, bzr, or svn.
20893 2012-04-21  Bruno Haible  <bruno@clisp.org>
20895         Large File Support for native Windows platforms.
20897         * m4/largefile.m4 (gl_LARGEFILE): New macro.
20898         * modules/largefile (configure.ac): Require gl_LARGEFILE.
20900         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
20901         type.
20902         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
20903         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
20904         * doc/posix-headers/sys_types.texi: Mention the effect of the
20905         'largefile' module.
20907         * lib/fcntl.in.h: Add comments about off_t.
20908         * modules/fcntl-h (Depends-on): Add sys_types.
20910         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
20911         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
20912         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
20913         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
20914         * modules/unistd (Depends-on): Add sys_types.
20915         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
20917         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
20918         instead of lseek.
20919         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
20920         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
20921         * modules/lseek (Depends-on): Add sys_types.
20923         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
20924         msvc-nothrow.h.
20925         (SetFileSize): New function.
20926         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
20927         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
20928         if Large File Support is requested.
20929         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
20930         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
20932         * lib/stdio.in.h: Add comments about off_t.
20933         * modules/stdio (Depends-on): Add sys_types.
20935         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
20936         instead of ftello.
20937         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
20938         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
20939         (gl_PREREQ_FTELLO): New macro.
20940         * modules/ftello (Depends-on): Add sys_types.
20941         (configure.ac): Incoke gl_PREREQ_FTELLO.
20943         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
20944         instead of fseeko.
20945         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
20946         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
20947         (gl_PREREQ_FSEEKO): New macro.
20948         * modules/fseeko (Depends-on): Add sys_types.
20949         (configure.ac): Invoke gl_PREREQ_FSEEKO.
20951         * lib/sys_stat.in.h: Add comments about off_t.
20952         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
20953         64-bit integer for st_size in 'struct stat'.
20954         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
20955         Define _GL_WINDOWS_64_BIT_ST_SIZE.
20956         * modules/sys_stat (Depends-on): Add sys_types.
20957         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
20959         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
20960         instead of stat or _stat.
20962         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
20963         'struct _stati64' instead of fstat and 'struct stat'.
20964         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
20965         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
20967         Reported by Ray Satiro <raysatiro@yahoo.com>.
20969 2012-04-19  Eric Blake  <eblake@redhat.com>
20971         bootstrap: accommodate older libtool
20972         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
20973         Reported by Daniel P. Berrange.
20975 2012-04-19  Jim Meyering  <meyering@redhat.com>
20977         announce-gen: avoid failure due to lack of Digest::SHA1
20978         Even with the preferred Digest::SHA available, this script
20979         would fail when the backup module, Digest::SHA1, was not installed.
20980         * build-aux/announce-gen: Quote the conditional use of "use".
20981         Reported by Reuben Thomas in:
20982         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
20984         bootstrap: don't let a user's CDPATH setting affect this script
20985         When CDPATH is set, cd will sometimes generate output.
20986         When "cd" is run in a subshell whose output matters, that
20987         surprising-to-some output can cause malfunction.
20988         Unsetting CDPATH turns off this shell "feature."
20989         * build-aux/bootstrap (CDPATH): Unset.
20990         Reported by Reuben Thomas in:
20991         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
20992         and inspired by his patch here:
20993         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
20995 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
20996         and Jim Meyering  <meyering@redhat.com>
20998         maint.mk: catch "see @xref{}" and similar
20999         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
21000         prohibit "See also @xref{", "Also see @pxref{", and similar.
21002 2012-04-16  Jim Meyering  <meyering@redhat.com>
21004         bootstrap: really use gnulib's po/Makefile.in.in
21005         * build-aux/bootstrap: Correct the source file name in previous change.
21006         Reported by Akim Demaille.
21008         configmake: correct minor inconsistency in Makefile rule
21009         * modules/configmake (Makefile.am): All other rules like this one
21010         run the final "mv -f ..." in the same backslash-continued command
21011         as the one that does everything else.  This one put the mv -f ...
21012         command on a separate, non-backslash-continued line.
21013         Make it like the others.
21015         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
21016         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
21017         the one from gettext.  Reported by Akim Demaille.
21019 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
21021         Fix recursion of install-* into po directories.
21022         Bison's install-pdf bug reported by Hans Aberg at
21023         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
21024         * build-aux/po/Makefile.in.in (install-dvi, install-html)
21025         (install-info, install-pdf, install-ps): New targets.
21027 2012-04-16  Jim Meyering  <meyering@redhat.com>
21029         maint: avoid spurious "make sc_maint" failure
21030         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
21031         exempt all *.class file names, for lib/javaversion.class.
21033 2012-04-15  Bruno Haible  <bruno@clisp.org>
21035         lseek: Make configure test independent of environment.
21036         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
21037         Windows, we know that lseek() on pipes is broken; skip the runtime
21038         test.
21040 2012-04-14  Bruno Haible  <bruno@clisp.org>
21042         stat: Bypass buggy override in mingw64.
21043         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
21044         * lib/stat.c (stat) [mingw64]: Define to _stat.
21045         * doc/posix-functions/stat.texi: Mention mingw64 bug.
21047 2012-04-14  Bruno Haible  <bruno@clisp.org>
21049         pathmax: Fix compilation error on MSVC 9.
21050         * modules/pathmax (Depends-on): Add unistd.
21052 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
21054         README: document pointer comparison assumption
21055         * README (Portability guidelines): Document assumption about
21056         pointer comparisons, in response to a recent bug-gnulib comment by
21057         Jeffrey Kegler.
21059 2012-04-12  Bruno Haible  <bruno@clisp.org>
21061         Tests for module 'getrusage'.
21062         * modules/getrusage-tests: New file.
21063         * tests/test-getrusage.c: New file.
21065         New module 'getrusage'.
21066         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
21067         warn-on-use.h.
21068         (getrusage): New declaration.
21069         * lib/getrusage.c: New file.
21070         * m4/getrusage.m4: New file.
21071         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
21072         is declared.
21073         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
21074         HAVE_GETRUSAGE.
21075         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
21076         snippet/c++defs, snippet/warn-on-use.
21077         (Makefile.am): Update generation of sys/resource.h. Substitute
21078         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
21079         * modules/getrusage: New file.
21080         * doc/posix-functions/getrusage.texi: Mention the new module.
21082 2012-04-12  Bruno Haible  <bruno@clisp.org>
21084         Tests for module 'sys_resource'.
21085         * modules/sys_resource-tests: New file.
21086         * tests/test-sys_resource.c: New file.
21088         New module 'sys_resource'.
21089         * lib/sys_resource.in.h: New file.
21090         * m4/sys_resource_h.m4: New file.
21091         * modules/sys_resource: New file.
21092         * doc/posix-headers/sys_resource.texi: Mention the new module.
21094 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
21096         ioctl: Fix compilation error on mingw.
21097         * lib/ioctl.c: Include <windows.h>.
21098         Also reported by Ray Satiro <raysatiro@yahoo.com>.
21100 2012-04-04  Jim Meyering  <meyering@redhat.com>
21102         regex: correct #pragma guard expression
21103         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
21104         not 4.3.  Correct its cpp guard expression.
21106 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
21108         regex: remove unnecessary type punning
21109         Problem reported by Vladimir Serbinenko in
21110         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
21111         * lib/regex.h (struct re_pattern_buffer): Change the type of
21112         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
21113         Fix comment to match code.
21114         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
21115         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
21116         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
21117         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
21118         (set_regs):
21119         Omit no-longer-necessary casts.
21121 2012-04-03  Bruno Haible  <bruno@clisp.org>
21123         Tests for module 'ilogbl'.
21124         * modules/ilogbl-tests: New file.
21125         * tests/test-ilogbl.c: New file.
21127         New module 'ilogbl'.
21128         * lib/math.in.h (ilogbl): New declaration.
21129         * lib/ilogbl.c: New file.
21130         * m4/ilogbl.m4: New file.
21131         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
21132         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
21133         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
21134         Split sed invocation, to avoid the limit of 100 substitutions of
21135         HP-UX 'sed'.
21136         * modules/ilogbl: New file.
21137         * tests/test-math-c++.cc: Check the declaration of ilogbl.
21138         * doc/posix-functions/ilogbl.texi: Mention the new module.
21140 2012-04-03  Bruno Haible  <bruno@clisp.org>
21142         Tests for module 'ilogbf'.
21143         * modules/ilogbf-tests: New file.
21144         * tests/test-ilogbf.c: New file.
21146         New module 'ilogbf'.
21147         * lib/math.in.h (ilogbf): New declaration.
21148         * lib/ilogbf.c: New file.
21149         * m4/ilogbf.m4: New file.
21150         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
21151         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
21152         REPLACE_ILOGBF.
21153         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
21154         REPLACE_ILOGBF.
21155         * modules/ilogbf: New file.
21156         * tests/test-math-c++.cc: Check the declaration of ilogbf.
21157         * doc/posix-functions/ilogbf.texi: Mention the new module.
21159 2012-04-03  Bruno Haible  <bruno@clisp.org>
21161         Tests for module 'ilogb'.
21162         * modules/ilogb-tests: New file.
21163         * tests/test-ilogb.c: New file.
21164         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
21165         tests/test-logb-ieee.h.
21167         New module 'ilogb'.
21168         * lib/math.in.h (ilogb): New declaration.
21169         * lib/ilogb.c: New file.
21170         * m4/ilogb.m4: New file.
21171         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
21172         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
21173         REPLACE_ILOGB.
21174         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
21175         REPLACE_ILOGB.
21176         * modules/ilogb: New file.
21177         * tests/test-math-c++.cc: Check the declaration of ilogb.
21178         * doc/posix-functions/ilogb.texi: Mention the new module.
21180 2012-04-03  Bruno Haible  <bruno@clisp.org>
21182         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
21183         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
21184         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
21185         (main): Check their values.
21186         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
21187         problem.
21189 2012-04-03  Bruno Haible  <bruno@clisp.org>
21191         Tests for module 'logbl-ieee'.
21192         * modules/logbl-ieee-tests: New file.
21193         * tests/test-logbl-ieee.c: New file.
21195         New module 'logbl-ieee'.
21196         * modules/logbl-ieee: New file.
21198         Tests for module 'logb-ieee'.
21199         * modules/logb-ieee-tests: New file.
21200         * tests/test-logb-ieee.c: New file.
21202         New module 'logb-ieee'.
21203         * modules/logb-ieee: New file.
21205         Tests for module 'logbf-ieee'.
21206         * modules/logbf-ieee-tests: New file.
21207         * tests/test-logbf-ieee.c: New file.
21208         * tests/test-logb-ieee.h: New file.
21210         New module 'logbf-ieee'.
21211         * modules/logbf-ieee: New file.
21213 2012-04-03  Bruno Haible  <bruno@clisp.org>
21215         Tests for module 'logbl'.
21216         * modules/logbl-tests: New file.
21217         * tests/test-logbl.c: New file.
21219         New module 'logbl'.
21220         * lib/math.in.h (logbl): New declaration.
21221         * lib/logbl.c: New file.
21222         * m4/logbl.m4: New file.
21223         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
21224         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
21225         REPLACE_LOGBL.
21226         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
21227         REPLACE_LOGBL.
21228         * modules/logbl: New file.
21229         * tests/test-math-c++.cc: Check the declaration of logbl.
21230         * doc/posix-functions/logbl.texi: Mention the new module.
21232 2012-04-02  Bruno Haible  <bruno@clisp.org>
21234         Tests for module 'logbf'.
21235         * modules/logbf-tests: New file.
21236         * tests/test-logbf.c: New file.
21238         New module 'logbf'.
21239         * lib/math.in.h (logbf): New declaration.
21240         * lib/logbf.c: New file.
21241         * m4/logbf.m4: New file.
21242         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
21243         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
21244         REPLACE_LOGBF.
21245         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
21246         REPLACE_LOGBF.
21247         * modules/logbf: New file.
21248         * tests/test-math-c++.cc: Check the declaration of logbf.
21249         * doc/posix-functions/logbf.texi: Mention the new module.
21251 2012-04-02  Bruno Haible  <bruno@clisp.org>
21253         logb tests: More tests.
21254         * tests/test-logb.h: New file, based on tests/test-logb.c and
21255         tests/test-frexp.h.
21256         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
21257         (main): Just invoke test_function.
21258         * modules/logb-tests (Files): Add tests/test-logb.h,
21259         tests/minus-zero.h, tests/randomd.c.
21260         (Makefile.am): Add randomd.c to test_logb_SOURCES.
21262         logb: Provide replacement and workarounds.
21263         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
21264         is 1.
21265         * lib/logb.c: New file.
21266         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
21267         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
21268         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
21269         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
21270         * modules/logb (Files): Add lib/logb.c.
21271         (Depends-on): Add isfinite, frexp, isnand.
21272         (configure.ac): Compile the replacement code logb.c if needed.
21273         * tests/test-math-c++.cc: Check the declaration of logb.
21274         * doc/posix-functions/logb.texi: Mention the replacement and the bug
21275         with subnormal numbers.
21277 2012-04-02  Bruno Haible  <bruno@clisp.org>
21279         log10* tests: Speed up.
21280         * tests/test-log10.h (test_function): Reduce amount of random numbers
21281         to test.
21283 2012-04-01  Bruno Haible  <bruno@clisp.org>
21285         logf-ieee: Fix test whether logf works.
21286         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
21288 2012-04-01  Bruno Haible  <bruno@clisp.org>
21290         log10l: Work around log10l-ieee test failure on IRIX 6.5.
21291         * lib/log10l.c: Include <float.h>
21292         (log10l): On IRIX, normalize the +Infinity value.
21293         * modules/log10l (Depends-on): Add 'float'.
21294         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
21295         +Infinity.
21297         log10f-ieee: Work around test failure on NetBSD 5.1.
21298         * m4/log10f-ieee.m4: New file.
21299         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
21300         test whether log10f works with a negative argument. Replace it if not.
21301         * lib/log10f.c (log10f): For negative arguments, return NaN.
21302         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
21303         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
21304         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
21306         log10f-ieee: Work around test failure on Solaris 9.
21307         * modules/log10f-ieee (Depends-on): Add log10-ieee.
21308         (configure.ac): Require gl_FUNC_LOG10F.
21310         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
21311         * m4/log10-ieee.m4: New file.
21312         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
21313         whether log10 works with a negative argument. Replace it if not.
21314         * lib/log10.c (log10): For negative arguments, return NaN.
21315         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
21316         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
21317         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
21319         Tests for module 'log10l-ieee'.
21320         * modules/log10l-ieee-tests: New file.
21321         * tests/test-log10l-ieee.c: New file.
21323         New module 'log10l-ieee'.
21324         * modules/log10l-ieee: New file.
21326         Tests for module 'log10-ieee'.
21327         * modules/log10-ieee-tests: New file.
21328         * tests/test-log10-ieee.c: New file.
21330         New module 'log10-ieee'.
21331         * modules/log10-ieee: New file.
21333         Tests for module 'log10f-ieee'.
21334         * modules/log10f-ieee-tests: New file.
21335         * tests/test-log10f-ieee.c: New file.
21336         * tests/test-log10-ieee.h: New file.
21338         New module 'log10f-ieee'.
21339         * modules/log10f-ieee: New file.
21341 2012-04-01  Bruno Haible  <bruno@clisp.org>
21343         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
21344         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
21345         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
21346         workaround.
21347         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
21348         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
21349         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
21350         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
21351         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
21352         (Depends-on): Update conditions.
21353         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
21354         IRIX 6.5, OSF/1 5.1 problems.
21356 2012-04-01  Bruno Haible  <bruno@clisp.org>
21358         log10f: Work around OSF/1 5.1 bug.
21359         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
21360         * lib/log10f.c (log10f): If logf exists, use it and provide just the
21361         workaround.
21362         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
21363         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
21364         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
21365         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
21366         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
21367         (Depends-on): Update conditions.
21368         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
21370 2012-04-01  Bruno Haible  <bruno@clisp.org>
21372         log10: Work around OSF/1 5.1 bug.
21373         * lib/math.in.h (log10): New declaration.
21374         * lib/log10.c: New file.
21375         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
21376         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
21377         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
21378         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
21379         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
21380         * modules/log10 (Files): Add lib/log10.c.
21381         (Depends-on): Add math.
21382         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
21383         * tests/test-math-c++.cc: Check the declaration of log10.
21384         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
21386 2012-03-31  Bruno Haible  <bruno@clisp.org>
21388         log10l tests: More tests.
21389         * modules/log10l-tests (Files): Add tests/test-log10l.h,
21390         tests/minus-zero.h, tests/randoml.c.
21391         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
21392         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
21393         (main): Invoke test_function.
21395         log10f tests: More tests.
21396         * modules/log10f-tests (Files): Add tests/test-log10.h,
21397         tests/minus-zero.h, tests/randomf.c.
21398         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
21399         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
21400         (main): Invoke test_function.
21402         log10 tests: More tests.
21403         * tests/test-log10.h: New file.
21404         * modules/log10-tests (Files): Add tests/test-log10.h,
21405         tests/minus-zero.h, tests/randomd.c.
21406         (Makefile.am): Add randomd.c to test_log10_SOURCES.
21407         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
21408         (main): Invoke test_function.
21410 2012-03-31  Simon Josefsson  <simon@josefsson.org>
21412         fflush: Fix syntax error.
21413         * lib/fflush.c: Include unused-parameter.h, needed for
21414         _GL_UNUSED_PARAMETER.
21415         * modules/fflush (Depends-on): Add snippet/unused-parameter.
21417 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
21419         regex: pacify GCC when compiling GRUB
21420         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
21421         a diagnostic.  Reported by Vladimir Serbinenko in
21422         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
21424 2012-03-29  Eric Blake  <eblake@redhat.com>
21426         stdio: don't assume gets any more
21427         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
21428         support.
21429         * modules/stdio (Makefile.am): Likewise.
21430         * lib/stdio-read.c (gets): Likewise.
21431         * tests/test-stdio-c++.cc: Likewise.
21432         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
21433         * lib/stdio.in.h (gets): Make warning occur in more places.
21434         * doc/posix-functions/gets.texi (gets): Update documentation.
21435         Reported by Christer Solskogen.
21437         maint.mk: fix syntax checks without exclusions
21438         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
21439         Reported by Daniel P. Berrange.
21441         strerror_r: avoid compiler warning
21442         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
21443         level.
21445         fflush: avoid compiler warning
21446         * lib/fflush.c (update_fpos_cache): Mark variables that are
21447         potentially unused.
21449 2012-03-25  Bruno Haible  <bruno@clisp.org>
21451         Tests for module 'localeconv'.
21452         * modules/localeconv-tests: New file.
21453         * tests/test-localeconv.c: New file.
21455         New module 'localeconv'.
21456         * lib/locale.in.h (localeconv): New declaration.
21457         * lib/localeconv.c: New file.
21458         * m4/localeconv.m4: New file.
21459         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
21460         REPLACE_LOCALECONV.
21461         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
21462         REPLACE_LOCALECONV.
21463         * modules/localeconv: New file.
21464         * modules/nl_langinfo (Depends-on): Add localeconv.
21465         * modules/human (Depends-on): Likewise.
21466         * doc/posix-functions/localeconv.texi: Mention the new module.
21468 2012-03-25  Bruno Haible  <bruno@clisp.org>
21470         locale: Provide a complete 'struct lconv'.
21471         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
21472         'struct lconv' does not contain int_p_cs_precedes.
21473         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
21474         * doc/posix-headers/locale.texi: Update.
21476         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
21477         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
21478         * doc/posix-headers/locale.texi: Update.
21480         locale: Provide a working 'struct lconv'.
21481         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
21482         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
21483         'struct lconv' does not even contain decimal_point.
21484         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
21485         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
21486         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
21487         * doc/posix-headers/locale.texi: Mention the problems with
21488         'struct lconv'.
21489         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
21491 2012-03-24  Bruno Haible  <bruno@clisp.org>
21493         Enable common subexpression optimization in GCC.
21494         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
21495         macros.
21496         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
21497         GCC attribute 'const'.
21498         (uc_locale_language): Declare with GCC attribute 'pure'.
21499         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
21500         with GCC attribute 'const'.
21501         * lib/unictype.in.h (uc_is_general_category_withtable,
21502         uc_combining_class, uc_combining_class_name,
21503         uc_combining_class_long_name, uc_bidi_class_name,
21504         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
21505         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
21506         uc_decimal_value, uc_digit_value, uc_numeric_value,
21507         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
21508         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
21509         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
21510         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
21511         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
21512         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
21513         Declare with GCC attribute 'const'.
21514         (uc_general_category_name, uc_general_category_long_name,
21515         uc_general_category_byname, uc_general_category,
21516         uc_is_general_category, uc_combining_class_byname,
21517         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
21518         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
21519         Declare with GCC attribute 'pure'.
21520         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
21521         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
21522         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
21523         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
21524         with GCC attribute 'pure'.
21525         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
21526         'const'.
21527         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
21528         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
21529         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
21530         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
21531         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
21532         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
21533         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
21534         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
21535         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
21536         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
21537         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
21538         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
21539         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
21540         GCC attribute 'pure'.
21541         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
21542         'const'.
21543         * lib/uniwidth.in.h (uc_width): Simplify declaration.
21544         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
21545         u32_strwidth): Declare with GCC attribute 'pure'.
21547         Enable common subexpression optimization in GCC.
21548         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
21549         (alphasort): Declare with GCC attribute 'pure'.
21550         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
21551         (atoll): Declare with GCC attribute 'pure'.
21552         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
21553         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
21554         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
21555         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
21556         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
21557         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
21558         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
21560 2012-03-24  Bruno Haible  <bruno@clisp.org>
21562         gnulib-tool: Avoid unintended error output from 'cmp'.
21563         * gnulib-tool (func_add_file, func_update_file, func_import): Use
21564         "cmp -s", not "cmp > /dev/null".
21566 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
21568         gnulib-tool: fix imprecise comments w.r.t. an automake bug
21570         It's not just Automake versions < 1.9b that creates an empty
21571         pkgdatadir at installation time if pkgdata_DATA is specified
21572         to empty; modern automake versions do this as well, at least
21573         until automake 1.11.4 (not yet released at the moment of writing,
21574         but soon to appear).  That behaviour was generally considered a
21575         feature rather than a bug, at least until this discussion:
21576         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
21578         See also automake bugs #10997 and #11030.
21580         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
21581         reference to relevant automake bug numbers.
21582         (func_emit_tests_Makefile_am): Likewise.
21584 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
21586         announce-gen: use Digest::SHA when possible
21587         * build-aux/announce-gen: Use Digest::SHA when possible, falling
21588         back to Digest::SHA1 if necessary.
21590 2012-03-20  Jim Meyering  <meyering@redhat.com>
21592         tests: avoid gcc warnings about argv vs. const initializers
21593         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
21594         warnings about discarding 'const' qualifier from pointer target type.
21595         * tests/test-posix_spawn2.c (main): Likewise.
21597 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
21599         README-release: simplify slightly
21600         * top/README-release: Run "git checkout master" only once.
21602 2012-03-15  Mark Wielaard  <mark@klomp.org>
21604         git-merge-changelog: add specific example on how to use with hg.
21605         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
21607 2012-03-18  Mark Wielaard  <mark@klomp.org>
21609         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
21611 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
21613         git-version-gen: don't let "prefix" envvar cause trouble
21614         * build-aux/git-version-gen (prefix): Initialize properly,
21615         so as not to use a value specified via the environment.
21616         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
21618 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
21620         regex: diagnose too-large repeat counts in EREs
21621         Previously, the code did not diagnose the too-large repeat count
21622         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
21623         as if it were 'b\{1000000000}', which is unexpected.
21624         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
21625         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
21626         is a reasonable one for this problem.  Another option would be to
21627         create a new REG_OVERFLOW error for repeat counts that are too large.
21628         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
21629         count is too large, so that the caller can distinguish the two cases.
21630         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
21631         "Too large" return code, and that repeat counts are one example of this.
21633 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
21635         doc: some glibc x32 integer width issues
21636         * doc/posix-headers/sys_types.texi (sys/types.h):
21637         * doc/posix-headers/time.texi (time.h):
21638         Mention that glibc x32 does not conform to POSIX in a couple of
21639         areas related to integer widths.
21641 2012-03-15  Bruno Haible  <bruno@clisp.org>
21643         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
21644         * lib/fma.c (VOLATILE): New macro.
21645         (FUNC): Use it to work around a GCC compiler bug.
21647 2012-03-13  Bruno Haible  <bruno@clisp.org>
21649         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
21650         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
21651         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
21652         REPLACE_HYPOTL to 1.
21653         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
21655 2012-03-13  Bruno Haible  <bruno@clisp.org>
21657         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
21658         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
21659         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
21660         REPLACE_REMAINDERL to 1.
21661         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
21662         bug.
21664 2012-03-13  Bruno Haible  <bruno@clisp.org>
21666         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
21667         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
21668         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
21669         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
21670         too big rounding errors.
21671         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
21672         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
21673         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
21674         (Depends-on): Update conditions.
21675         * tests/test-sqrtl.c (my_ldexpl): New function.
21676         (main): Add test of a particular value.
21677         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
21679 2012-03-13  Pádraig Brady  <P@draigBrady.com>
21681         doc: Update timer_* platform portability notes.
21682         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
21683         that always return ENOSYS.
21684         * doc/posix-functions/timer_delete.texi: Likewise.
21685         * doc/posix-functions/timer_gettime.texi: Likewise.
21686         * doc/posix-functions/timer_settime.texi: Likewise.
21688 2012-03-13  Bruno Haible  <bruno@clisp.org>
21690         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
21691         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
21692         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
21693         REPLACE_CBRTL to 1.
21694         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
21696 2012-03-13  Bruno Haible  <bruno@clisp.org>
21698         remainderl: Avoid compilation error on AIX >= 5.2.
21699         * lib/math.in.h (remainderl): Undefine macro from the system header.
21701 2012-03-13  Bruno Haible  <bruno@clisp.org>
21703         Avoid compilation errors with MSVC option -fp:strict.
21704         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
21705         * lib/cbrtf.c: Likewise.
21706         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
21708 2012-03-12  Bruno Haible  <bruno@clisp.org>
21710         uninorm: Don't crash in out-of-memory conditions.
21711         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
21712         gracefully.
21713         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
21714         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
21716 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
21718         quote: fix syntax-check
21719         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
21720         also exports quote_quoting_options.
21722 2012-03-12  Simon Josefsson  <simon@josefsson.org>
21724         Collapse list of copyright years to ranges.  See
21725         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
21726         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
21727         build-aux/csharpexec.sh.in, build-aux/gnupload,
21728         build-aux/install-reloc, build-aux/javacomp.sh.in,
21729         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
21730         build-aux/move-if-change, build-aux/reloc-ldflags,
21731         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
21733 2012-03-11  Bruno Haible  <bruno@clisp.org>
21735         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
21736         * m4/log2f-ieee.m4: New file.
21737         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
21738         whether log2f works with a minus zero argument. Replace it if not.
21739         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
21740         (Depends-on): Add log2-ieee.
21741         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
21742         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
21744         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
21745         * m4/log2-ieee.m4: New file.
21746         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
21747         whether log2 works with a minus zero argument. Replace it if not.
21748         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
21749         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
21750         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
21752         Tests for module 'log2l-ieee'.
21753         * modules/log2l-ieee-tests: New file.
21754         * tests/test-log2l-ieee.c: New file.
21756         New module 'log2l-ieee'.
21757         * modules/log2l-ieee: New file.
21759         Tests for module 'log2-ieee'.
21760         * modules/log2-ieee-tests: New file.
21761         * tests/test-log2-ieee.c: New file.
21763         New module 'log2-ieee'.
21764         * modules/log2-ieee: New file.
21766         Tests for module 'log2f-ieee'.
21767         * modules/log2f-ieee-tests: New file.
21768         * tests/test-log2f-ieee.c: New file.
21769         * tests/test-log2-ieee.h: New file.
21771         New module 'log2f-ieee'.
21772         * modules/log2f-ieee: New file.
21774 2012-03-11  Bruno Haible  <bruno@clisp.org>
21776         Tests for module 'log2l'.
21777         * modules/log2l-tests: New file.
21778         * tests/test-log2l.c: New file.
21780         New module 'log2l'.
21781         * lib/math.in.h (log2l): New declaration.
21782         * lib/log2l.c: New file.
21783         * m4/log2l.m4: New file.
21784         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
21785         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
21786         REPLACE_LOG2L.
21787         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
21788         REPLACE_LOG2L.
21789         * modules/log2l: New file.
21790         * tests/test-math-c++.cc: Check the declaration of log2l.
21791         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
21792         and OSF/1 problems.
21794 2012-03-11  Bruno Haible  <bruno@clisp.org>
21796         Tests for module 'log2f'.
21797         * modules/log2f-tests: New file.
21798         * tests/test-log2f.c: New file.
21800         New module 'log2f'.
21801         * lib/math.in.h (log2f): New declaration.
21802         * lib/log2f.c: New file.
21803         * m4/log2f.m4: New file.
21804         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
21805         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
21806         REPLACE_LOG2F.
21807         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
21808         REPLACE_LOG2F.
21809         * modules/log2f: New file.
21810         * tests/test-math-c++.cc: Check the declaration of log2f.
21811         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
21812         and OSF/1 and Cygwin problems.
21814 2012-03-11  Bruno Haible  <bruno@clisp.org>
21816         Tests for module 'log2'.
21817         * modules/log2-tests: New file.
21818         * tests/test-log2.c: New file.
21819         * tests/test-log2.h: New file.
21821         New module 'log2'.
21822         * lib/math.in.h (log2): New declaration.
21823         * lib/log2.c: New file.
21824         * m4/log2.m4: New file.
21825         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
21826         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
21827         REPLACE_LOG2.
21828         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
21829         REPLACE_LOG2.
21830         * modules/log2: New file.
21831         * tests/test-math-c++.cc: Check the declaration of log2.
21832         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
21833         and OSF/1 and Cygwin problems.
21835 2012-03-11  Bruno Haible  <bruno@clisp.org>
21837         exp2* tests: More tests.
21838         * tests/test-exp2.h (test_function): Test all integral arguments that
21839         don't need to overflow or denormalized numbers.
21840         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
21841         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
21842         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
21844 2012-03-10  Bruno Haible  <bruno@clisp.org>
21846         log1pl-ieee: Work around test failure on AIX 7.1.
21847         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
21849         log1pl-ieee: Work around test failure on IRIX 6.5.
21850         * m4/log1pl-ieee.m4: New file.
21851         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
21852         test whether log1pl works with a minus zero argument. Replace it if
21853         not.
21854         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
21855         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
21856         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
21857         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
21858         (Depends-on): Update conditions.
21859         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
21860         m4/signbit.m4.
21861         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
21862         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
21864         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
21865         * m4/log1pf-ieee.m4: New file.
21866         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
21867         test whether log1pf works with a minus zero argument. Replace it if
21868         not.
21869         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
21870         m4/signbit.m4.
21871         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
21872         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
21874         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
21875         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
21876         (configure.ac): Require gl_FUNC_LOG1PF.
21878         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
21879         * m4/log1p-ieee.m4: New file.
21880         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
21881         whether log1p works with a minus zero argument. Replace it if not.
21882         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
21883         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
21884         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
21885         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
21886         (Depends-on): Update conditions.
21887         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
21888         m4/signbit.m4.
21889         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
21890         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
21892         Tests for module 'log1pl-ieee'.
21893         * modules/log1pl-ieee-tests: New file.
21894         * tests/test-log1pl-ieee.c: New file.
21896         New module 'log1pl-ieee'.
21897         * modules/log1pl-ieee: New file.
21899         Tests for module 'log1p-ieee'.
21900         * modules/log1p-ieee-tests: New file.
21901         * tests/test-log1p-ieee.c: New file.
21903         New module 'log1p-ieee'.
21904         * modules/log1p-ieee: New file.
21906         Tests for module 'log1pf-ieee'.
21907         * modules/log1pf-ieee-tests: New file.
21908         * tests/test-log1pf-ieee.c: New file.
21909         * tests/test-log1p-ieee.h: New file.
21911         New module 'log1pf-ieee'.
21912         * modules/log1pf-ieee: New file.
21914 2012-03-10  Bruno Haible  <bruno@clisp.org>
21916         Tests for module 'log1pl'.
21917         * modules/log1pl-tests: New file.
21918         * tests/test-log1pl.c: New file.
21920         New module 'log1pl'.
21921         * lib/math.in.h (log1pl): New declaration.
21922         * lib/log1pl.c: New file.
21923         * m4/log1pl.m4: New file.
21924         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
21925         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
21926         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
21927         * modules/log1pl: New file.
21928         * tests/test-math-c++.cc: Check the declaration of log1pl.
21929         * doc/posix-functions/log1pl.texi: Mention the new module.
21931 2012-03-10  Bruno Haible  <bruno@clisp.org>
21933         Tests for module 'log1pf'.
21934         * modules/log1pf-tests: New file.
21935         * tests/test-log1pf.c: New file.
21937         New module 'log1pf'.
21938         * lib/math.in.h (log1pf): New declaration.
21939         * lib/log1pf.c: New file.
21940         * m4/log1pf.m4: New file.
21941         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
21942         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
21943         REPLACE_LOG1PF.
21944         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
21945         REPLACE_LOG1PF.
21946         * modules/log1pf: New file.
21947         * tests/test-math-c++.cc: Check the declaration of log1pf.
21948         * doc/posix-functions/log1pf.texi: Mention the new module.
21950 2012-03-10  Bruno Haible  <bruno@clisp.org>
21952         log1p tests: More tests.
21953         * tests/test-log1p.h: New file.
21954         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
21955         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
21956         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
21957         (main): Invoke test_function.
21959         log1p: Provide replacement for Minix and MSVC.
21960         * lib/math.in.h (log1p): New declaration.
21961         * lib/log1p.c: New file.
21962         * m4/log1p.m4: New file.
21963         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
21964         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
21965         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
21966         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
21967         (Depends-on): Add math, isnand, log, round.
21968         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
21969         HAVE_LOG1P is 0.
21970         * tests/test-math-c++.cc: Check the declaration of log1p.
21971         * doc/posix-functions/log1p.texi: Mention the replacement.
21973 2012-03-10  Bruno Haible  <bruno@clisp.org>
21975         math tests: Small simplification.
21976         * tests/test-exp.h (test_function): Use the same err_bound for
21977         'double' on platforms with sizeof (long double) == sizeof (double)
21978         than on platforms with sizeof (long double) > sizeof (double).
21979         * tests/test-exp2.h (test_function): Likewise.
21980         * tests/test-expm1.h (test_function): Likewise.
21981         * tests/test-log.h (test_function): Likewise.
21983 2012-03-10  Bruno Haible  <bruno@clisp.org>
21985         Fix some comments.
21986         * lib/expl.c: Fix an ambiguous comment.
21987         * lib/expm1.c: Likewise.
21988         * lib/expm1l.c: Likewise.
21989         * lib/exp2.c: Likewise.
21990         * lib/exp2l.c: Likewise.
21992 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
21994         regex: allow inclusion of <regex.h> before <limits.h>
21995         Without this patch, portable programs had to include <limits.h> before
21996         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
21997         I ran into this problem with a test version of GNU grep on Solaris 8.
21998         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
21999         This is done conditionally so that this change can be merged
22000         back to glibc.
22001         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
22002         using the included regex.
22004         fts: depend on fdopendir
22005         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
22006         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
22007         problem was introduced when fdopendir was split out.
22009 2012-03-10  Bruno Haible  <bruno@clisp.org>
22011         Remove unused variables.
22012         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
22013         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
22015 2012-03-10  Bruno Haible  <bruno@clisp.org>
22017         isnanf-nolibm: Fix last commit.
22018         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
22020         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
22021         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
22023 2012-03-10  Bruno Haible  <bruno@clisp.org>
22025         logf-ieee: Work around test failure on NetBSD 5.1.
22026         * m4/logf-ieee.m4: New file.
22027         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
22028         whether logf works with a negative argument. Replace it if not.
22029         * lib/logf.c (logf): For negative arguments, return NaN.
22030         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
22031         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
22032         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
22034         logf-ieee: Work around test failure on Solaris 9.
22035         * modules/logf-ieee (Depends-on): Add log-ieee.
22036         (configure.ac): Require gl_FUNC_LOGF.
22038         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
22039         * m4/log-ieee.m4: New file.
22040         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
22041         log works with a negative argument. Replace it if not.
22042         * lib/log.c (log): For negative arguments, return NaN.
22043         * modules/log-ieee (Files): Add m4/log-ieee.m4.
22044         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
22045         * doc/posix-functions/log.texi: Mention the log-ieee module.
22047         Tests for module 'logl-ieee'.
22048         * modules/logl-ieee-tests: New file.
22049         * tests/test-logl-ieee.c: New file.
22051         New module 'logl-ieee'.
22052         * modules/logl-ieee: New file.
22054         Tests for module 'log-ieee'.
22055         * modules/log-ieee-tests: New file.
22056         * tests/test-log-ieee.c: New file.
22058         New module 'log-ieee'.
22059         * modules/log-ieee: New file.
22061         Tests for module 'logf-ieee'.
22062         * modules/logf-ieee-tests: New file.
22063         * tests/test-logf-ieee.c: New file.
22064         * tests/test-log-ieee.h: New file.
22066         New module 'logf-ieee'.
22067         * modules/logf-ieee: New file.
22069 2012-03-10  Bruno Haible  <bruno@clisp.org>
22071         log: Fix bug introduced on 2012-03-09.
22072         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
22074 2012-03-10  Pádraig Brady  <P@draigBrady.com>
22076         timer-time: link explicitly with pthreads on glibc
22077         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
22078         to support static linking, when newer glibc is
22079         detected, as that contains pthread emulation of
22080         POSIX timer functions where required.
22081         * modules/timer-time: Depend on threadlib to
22082         pull in the appropriate library to link.
22084 2012-03-10  Bruno Haible  <bruno@clisp.org>
22086         log* tests: More tests.
22087         * tests/test-log.h: New file.
22088         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
22089         (main): Invoke test_function.
22090         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
22091         (main): Invoke test_function.
22092         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
22093         (main): Invoke test_function.
22094         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
22095         tests/randomd.c.
22096         (Makefile.am): Add randomd.c to test_log_SOURCES.
22097         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
22098         tests/randomf.c.
22099         (Makefile.am): Add randomf.c to test_logf_SOURCES.
22100         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
22101         tests/randoml.c.
22102         (Depends-on): Add 'float'.
22103         (Makefile.am): Add randoml.c to test_logl_SOURCES.
22105 2012-03-09  Bruno Haible  <bruno@clisp.org>
22107         logl: Work around OSF/1 5.1 bug.
22108         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
22109         * lib/logl.c (logl): If logl exists, use it and provide just the
22110         workaround.
22111         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
22112         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
22113         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
22114         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
22115         * modules/logl (configure.ac): Consider REPLACE_LOGL.
22116         (Depends-on): Update conditions.
22117         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
22119 2012-03-09  Bruno Haible  <bruno@clisp.org>
22121         logf: Work around OSF/1 5.1 bug.
22122         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
22123         * lib/logf.c (logf): If logf exists, use it and provide just the
22124         workaround.
22125         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
22126         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
22127         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
22128         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
22129         * modules/logf (configure.ac): Consider REPLACE_LOGF.
22130         (Depends-on): Update conditions.
22131         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
22133 2012-03-09  Bruno Haible  <bruno@clisp.org>
22135         log: Work around OSF/1 5.1 bug.
22136         * lib/math.in.h (log): New declaration.
22137         * lib/log.c: New file.
22138         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
22139         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
22140         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
22141         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
22142         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
22143         * modules/log (Files): Add lib/log.c.
22144         (Depends-on): Add math.
22145         (configure.ac): If REPLACE_LOG is 1, compile an override.
22146         * tests/test-math-c++.cc: Check the declaration of log.
22147         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
22149 2012-03-09  Jim Meyering  <meyering@redhat.com>
22151         readtokens.c: adjust wording in a comment
22152         * lib/readtokens.c: Insert omitted "that" in a comment.
22154 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
22156         modechange: add notations +40, 00440, etc.
22157         * lib/modechange.c (mode_compile): Support new notations
22158         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
22160 2012-03-08  Bruno Haible  <bruno@clisp.org>
22162         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
22163         * m4/exp2l-ieee.m4: New file.
22164         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
22165         test whether exp2l works with a NaN argument and with a negative
22166         infinity argument. Replace it if not.
22167         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
22168         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
22169         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
22170         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
22171         (Depends-on): Update conditions.
22172         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
22173         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
22174         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
22176         Tests for module 'exp2l-ieee'.
22177         * modules/exp2l-ieee-tests: New file.
22178         * tests/test-exp2l-ieee.c: New file.
22180         New module 'exp2l-ieee'.
22181         * modules/exp2l-ieee: New file.
22183         Tests for module 'exp2-ieee'.
22184         * modules/exp2-ieee-tests: New file.
22185         * tests/test-exp2-ieee.c: New file.
22187         New module 'exp2-ieee'.
22188         * modules/exp2-ieee: New file.
22190         Tests for module 'exp2f-ieee'.
22191         * modules/exp2f-ieee-tests: New file.
22192         * tests/test-exp2f-ieee.c: New file.
22193         * tests/test-exp2-ieee.h: New file.
22195         New module 'exp2f-ieee'.
22196         * modules/exp2f-ieee: New file.
22198 2012-03-08  Bruno Haible  <bruno@clisp.org>
22200         Tests for module 'exp2l'.
22201         * modules/exp2l-tests: New file.
22202         * tests/test-exp2l.c: New file.
22204         New module 'exp2l'.
22205         * lib/math.in.h (exp2l): New declaration.
22206         * lib/exp2l.c: New file.
22207         * lib/expl-table.c: New file, extracted from lib/expl.c.
22208         * lib/expl.c (gl_expl_table): New declaration.
22209         (expl): Remove expl_table. Update reference.
22210         * m4/exp2l.m4: New file.
22211         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
22212         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
22213         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
22214         * modules/exp2l: New file.
22215         * modules/expl (Files): Add lib/expl-table.c.
22216         (configure.ac): Compile also expl-table.c.
22217         * tests/test-math-c++.cc: Check the declaration of exp2l.
22218         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
22219         problem.
22221 2012-03-08  Bruno Haible  <bruno@clisp.org>
22223         Tests for module 'exp2f'.
22224         * modules/exp2f-tests: New file.
22225         * tests/test-exp2f.c: New file.
22227         New module 'exp2f'.
22228         * lib/math.in.h (exp2f): New declaration.
22229         * lib/exp2f.c: New file.
22230         * m4/exp2f.m4: New file.
22231         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
22232         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
22233         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
22234         * modules/exp2f: New file.
22235         * tests/test-math-c++.cc: Check the declaration of exp2f.
22236         * doc/posix-functions/exp2f.texi: Mention the new module and the
22237         IRIX problem.
22239 2012-03-08  Bruno Haible  <bruno@clisp.org>
22241         Tests for module 'exp2'.
22242         * modules/exp2-tests: New file.
22243         * tests/test-exp2.c: New file.
22244         * tests/test-exp2.h: New file.
22246         New module 'exp2'.
22247         * lib/math.in.h (exp2): New declaration.
22248         * lib/exp2.c: New file.
22249         * m4/exp2.m4: New file.
22250         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
22251         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
22252         REPLACE_EXP2.
22253         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
22254         REPLACE_EXP2.
22255         * modules/exp2: New file.
22256         * tests/test-math-c++.cc: Check the declaration of exp2.
22257         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
22258         and OpenBSD problems.
22260 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
22262         savedir: fix comment typo
22263         * lib/savedir.c (savedirstream): Fix typo in comment.
22265 2012-03-08  Bruno Haible  <bruno@clisp.org>
22267         test-readtokens.c: use const; remove unwarranted cast
22268         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
22270 2012-03-08  Bruno Haible  <bruno@clisp.org>
22272         fmal: Avoid compilation error on AIX.
22273         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
22274         AIX 5.2..7.1.
22276 2012-03-08  Bruno Haible  <bruno@clisp.org>
22278         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
22279         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
22280         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
22281         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
22282         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
22283         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
22284         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
22286 2012-03-08  Bruno Haible  <bruno@clisp.org>
22288         remainderf: Override buggy system function on IRIX 6.5.
22289         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
22290         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
22291         when it exists.
22292         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
22294 2012-03-08  Jim Meyering  <meyering@redhat.com>
22296         test-readtokens.c: avoid const-related compilation warnings
22297         * tests/test-readtokens.c: Avoid const-related compilation warnings.
22299 2012-03-07  Jim Meyering  <meyering@redhat.com>
22300             Bruno Haible  <bruno@clisp.org>
22302         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
22303         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
22304         tests/randomd.c.
22305         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
22306         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
22307         tests/randoml.c.
22308         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
22310 2012-03-07  Bruno Haible  <bruno@clisp.org>
22312         expm1l: Avoid compilation error on AIX.
22313         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
22314         AIX 5.2..7.1.
22316 2012-03-07  Bruno Haible  <bruno@clisp.org>
22318         expm1l: Don't override undeclared system function on IRIX 6.5.
22319         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
22320         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
22321         it exists. Set HAVE_DECL_EXPM1L.
22322         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
22323         HAVE_EXPM1L.
22324         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
22325         HAVE_EXPM1L.
22326         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
22328 2012-03-07  Bruno Haible  <bruno@clisp.org>
22330         remainderl: Don't override undeclared system function on IRIX 6.5.
22331         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
22332         HAVE_REMAINDERL.
22333         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
22334         declared when it exists. Set HAVE_DECL_REMAINDERL.
22335         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
22336         not HAVE_REMAINDERL.
22337         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
22338         HAVE_REMAINDERL.
22339         * doc/posix-functions/remainderl.texi: Mention missing declaration
22340         problem.
22342 2012-03-07  Bruno Haible  <bruno@clisp.org>
22344         rintf: Don't override undeclared system function on IRIX 6.5.
22345         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
22346         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
22347         exists. Set HAVE_DECL_RINTF.
22348         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
22349         HAVE_RINTF.
22350         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
22351         HAVE_RINTF.
22352         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
22354 2012-03-07  Bruno Haible  <bruno@clisp.org>
22356         roundl: Avoid compilation error on AIX.
22357         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
22358         AIX 5.2..7.1.
22360 2012-03-07  Bruno Haible  <bruno@clisp.org>
22362         roundl: Don't override undeclared system function on IRIX 6.5.
22363         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
22364         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
22365         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
22366         * modules/roundl (configure.ac): For replacement code, test
22367         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
22368         (Depends-on): Update conditions.
22369         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
22371 2012-03-07  Bruno Haible  <bruno@clisp.org>
22373         roundf: Don't override undeclared system function on IRIX 6.5.
22374         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
22375         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
22376         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
22377         * modules/roundf (configure.ac): For replacement code, test
22378         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
22379         (Depends-on): Update conditions.
22380         * modules/roundf-ieee (Depends-on): Update conditions.
22381         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
22383 2012-03-07  Bruno Haible  <bruno@clisp.org>
22385         round: Don't override undeclared system function on IRIX 6.5.
22386         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
22387         argument.
22388         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
22389         also when it is not declared. Set HAVE_ROUND. For replacement code,
22390         test HAVE_ROUND, not HAVE_DECL_ROUND.
22391         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
22392         not HAVE_DECL_ROUND.
22393         (Depends-on): Update conditions.
22394         * modules/round-ieee (Depends-on): Update conditions.
22395         * doc/posix-functions/round.texi: Mention the IRIX problem.
22397 2012-03-07  Bruno Haible  <bruno@clisp.org>
22399         copysignf: Don't override undeclared system function on IRIX 6.5.
22400         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
22401         HAVE_COPYSIGNF.
22402         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
22403         declared when it exists. Set HAVE_DECL_COPYSIGNF.
22404         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
22405         not HAVE_COPYSIGNF.
22406         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
22407         HAVE_COPYSIGNF.
22408         * doc/posix-functions/copysignf.texi: Mention missing declaration
22409         problem.
22411 2012-03-07  Jim Meyering  <meyering@redhat.com>
22413         readtokens: add tests
22414         * modules/readtokens-tests: New file.
22415         * tests/test-readtokens.c: New file.
22417 2012-03-07  Jim Meyering  <meyering@redhat.com>
22419         quotearg: the module must now include quote.h
22420         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
22421         So must the module.
22422         * modules/quotearg (Files): Add quote.h.
22424 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
22426         readtokens: avoid core dumps with unusual calling patterns
22427         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
22428         * lib/readtokens.c: Include limits.h.
22429         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
22430         (readtoken): Don't cache the delimiters; the cache code was buggy
22431         if !delim && saved_delim, or if the new n_delim differs from the old.
22432         Also, it wasn't thread-safe.
22434 2012-03-07  Bruno Haible  <bruno@clisp.org>
22436         quote: Adhere to common module description layout.
22437         * modules/quote (Makefile.am): Add back empty section.
22439 2012-03-06  Akim Demaille  <demaille@gostai.com>
22441         quote: fuse into quotearg
22442         This patch is made for the benefit of Bison.
22443         quote does not leave the choice of the quoting style to the user.
22444         quoting_style provides poor customizability, yet quoting_options,
22445         which is very rich, is hidden inside quotearg.c.  So in order to
22446         allow quote customization, move its implementation to quotearg.c.
22447         * lib/quote.c: Remove.
22448         * modules/quote: Adjust.
22449         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
22450         warning: provide all the members of literal structs.
22451         (quote_quoting_options): New.
22452         (quote, quote_n): Import implementation from quote.c.
22453         * lib/quote.h: Import the comments from quote.c.
22454         (quote_quoting_options): New.
22456 2012-03-06  Bruno Haible  <bruno@clisp.org>
22458         Tests for module 'expm1l-ieee'.
22459         * modules/expm1l-ieee-tests: New file.
22460         * tests/test-expm1l-ieee.c: New file.
22462         New module 'expm1l-ieee'.
22463         * modules/expm1l-ieee: New file.
22465         Tests for module 'expm1f-ieee'.
22466         * modules/expm1f-ieee-tests: New file.
22467         * tests/test-expm1f-ieee.c: New file.
22469         New module 'expm1f-ieee'.
22470         * modules/expm1f-ieee: New file.
22472         Tests for module 'expm1-ieee'.
22473         * modules/expm1-ieee-tests: New file.
22474         * tests/test-expm1-ieee.c: New file.
22475         * tests/test-expm1-ieee.h: New file.
22477         New module 'expm1-ieee'.
22478         * modules/expm1-ieee: New file.
22479         * m4/expm1-ieee.m4: New file.
22480         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
22481         whether expm1 works with a minus zero argument. Replace it if not.
22482         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
22483         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
22484         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
22485         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
22486         (Depends-on): Update conditions.
22487         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
22488         AIX problem.
22490 2012-03-06  Bruno Haible  <bruno@clisp.org>
22492         Work around expm1f bug on IRIX 6.5.
22493         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
22494         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
22495         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
22496         not work.
22497         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
22498         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
22499         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
22500         (Depends-on): Update conditions.
22501         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
22503 2012-03-06  Bruno Haible  <bruno@clisp.org>
22505         Tests for module 'expm1l'.
22506         * modules/expm1l-tests: New file.
22507         * tests/test-expm1l.c: New file.
22509         New module 'expm1l'.
22510         * lib/math.in.h (expm1l): New declaration.
22511         * lib/expm1l.c: New file.
22512         * m4/expm1l.m4: New file.
22513         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
22514         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
22515         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
22516         * modules/expm1l: New file.
22517         * tests/test-math-c++.cc: Check the declaration of expm1l.
22518         * doc/posix-functions/expm1l.texi: Mention the new module.
22520 2012-03-06  Bruno Haible  <bruno@clisp.org>
22522         Tests for module 'expm1f'.
22523         * modules/expm1f-tests: New file.
22524         * tests/test-expm1f.c: New file.
22526         New module 'expm1f'.
22527         * lib/math.in.h (expm1f): New declaration.
22528         * lib/expm1f.c: New file.
22529         * m4/expm1f.m4: New file.
22530         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
22531         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
22532         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
22533         * modules/expm1f: New file.
22534         * tests/test-math-c++.cc: Check the declaration of expm1f.
22535         * doc/posix-functions/expm1f.texi: Mention the new module.
22537 2012-03-06  Bruno Haible  <bruno@clisp.org>
22539         Tests for module 'expm1'.
22540         * modules/expm1-tests: New file.
22541         * tests/test-expm1.c: New file.
22542         * tests/test-expm1.h: New file.
22544         New module 'expm1'.
22545         * lib/math.in.h (expm1): New declaration.
22546         * lib/expm1.c: New file.
22547         * m4/expm1.m4: New file.
22548         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
22549         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
22550         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
22551         * modules/expm1: New file.
22552         * tests/test-math-c++.cc: Check the declaration of expm1.
22553         * doc/posix-functions/expm1.texi: Mention the new module.
22555 2012-03-06  Bruno Haible  <bruno@clisp.org>
22557         math: Ensure declarations of math functions.
22558         * modules/acosf (Depends-on): Add 'extensions'.
22559         * modules/asinf (Depends-on): Likewise.
22560         * modules/atan2f (Depends-on): Likewise.
22561         * modules/atanf (Depends-on): Likewise.
22562         * modules/cbrt (Depends-on): Likewise.
22563         * modules/cbrtf (Depends-on): Likewise.
22564         * modules/cbrtl (Depends-on): Likewise.
22565         * modules/copysignf (Depends-on): Likewise.
22566         * modules/copysignl (Depends-on): Likewise.
22567         * modules/cosf (Depends-on): Likewise.
22568         * modules/coshf (Depends-on): Likewise.
22569         * modules/expf (Depends-on): Likewise.
22570         * modules/fabsf (Depends-on): Likewise.
22571         * modules/fabsl (Depends-on): Likewise.
22572         * modules/fmaf (Depends-on): Likewise.
22573         * modules/fmal (Depends-on): Likewise.
22574         * modules/fmodf (Depends-on): Likewise.
22575         * modules/fmodl (Depends-on): Likewise.
22576         * modules/frexpf (Depends-on): Likewise.
22577         * modules/frexpl (Depends-on): Likewise.
22578         * modules/hypot (Depends-on): Likewise.
22579         * modules/hypotf (Depends-on): Likewise.
22580         * modules/hypotl (Depends-on): Likewise.
22581         * modules/ldexpf (Depends-on): Likewise.
22582         * modules/ldexpl (Depends-on): Likewise.
22583         * modules/log10f (Depends-on): Likewise.
22584         * modules/log10l (Depends-on): Likewise.
22585         * modules/log1p (Depends-on): Likewise.
22586         * modules/logb (Depends-on): Likewise.
22587         * modules/logf (Depends-on): Likewise.
22588         * modules/modff (Depends-on): Likewise.
22589         * modules/modfl (Depends-on): Likewise.
22590         * modules/powf (Depends-on): Likewise.
22591         * modules/remainderf (Depends-on): Likewise.
22592         * modules/remainderl (Depends-on): Likewise.
22593         * modules/rintf (Depends-on): Likewise.
22594         * modules/rintl (Depends-on): Likewise.
22595         * modules/sinf (Depends-on): Likewise.
22596         * modules/sinhf (Depends-on): Likewise.
22597         * modules/sqrtf (Depends-on): Likewise.
22598         * modules/tanf (Depends-on): Likewise.
22599         * modules/tanhf (Depends-on): Likewise.
22600         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
22601         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
22602         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
22603         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
22604         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
22605         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
22606         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
22607         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
22608         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
22609         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
22610         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
22611         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
22612         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
22613         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
22614         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
22615         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
22616         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
22617         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
22618         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
22619         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
22620         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
22621         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
22622         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
22623         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
22624         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
22625         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
22626         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
22627         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
22628         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
22629         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
22630         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
22631         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
22632         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
22633         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
22634         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
22635         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
22636         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
22637         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
22638         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
22639         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
22640         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
22642 2012-03-06  Bruno Haible  <bruno@clisp.org>
22644         math: Update module names in warnings.
22645         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
22646         tanl): Use specific module name in warn-on-use warning.
22648 2012-03-06  Bruno Haible  <bruno@clisp.org>
22650         expl: Simplify computation.
22651         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
22653 2012-03-05  Bruno Haible  <bruno@clisp.org>
22655         exp* tests: More tests.
22656         * tests/test-exp.h: New file.
22657         * tests/test-exp.c: Include <float.h> and test-exp.h.
22658         (main): Invoke test_function.
22659         * tests/test-expf.c: Include <float.h> and test-exp.h.
22660         (main): Invoke test_function.
22661         * tests/test-expl.c: Include <float.h> and test-exp.h.
22662         (main): Invoke test_function.
22663         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
22664         (Makefile.am): Add randomd.c to test_exp_SOURCES.
22665         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
22666         (Makefile.am): Add randomf.c to test_expf_SOURCES.
22667         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
22668         (Depends-on): Add 'float'.
22669         (Makefile.am): Add randoml.c to test_expl_SOURCES.
22671         expl: Fix precision of computed result.
22672         * lib/expl.c: Completely rewritten.
22673         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
22674         (Maintainer): Add me.
22675         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
22677 2012-03-05  Bruno Haible  <bruno@clisp.org>
22679         cbrt* tests: More tests.
22680         * tests/test-cbrt.h: New file.
22681         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
22682         (main): Invoke test_function.
22683         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
22684         (main): Invoke test_function.
22685         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
22686         (main): Invoke test_function.
22687         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
22688         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
22689         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
22690         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
22691         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
22692         (Depends-on): Add 'float'.
22693         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
22695 2012-03-05  Bruno Haible  <bruno@clisp.org>
22697         hypot* tests: More tests.
22698         * tests/test-hypot.h: New file, partially extracted from
22699         tests/test-hypotl.c.
22700         * tests/test-hypot.c: Include test-hypot.h.
22701         (main): Invoke test_function.
22702         * tests/test-hypotf.c: Include test-hypot.h.
22703         (main): Invoke test_function.
22704         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
22705         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
22706         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
22707         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
22708         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
22709         tests/randomf.c.
22710         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
22711         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
22712         tests/randoml.c.
22713         (Depends-on): Add 'fpucw', 'float'.
22714         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
22716 2012-03-05  Bruno Haible  <bruno@clisp.org>
22718         fpucw: Doc about FreeBSD.
22719         * lib/fpucw.h: Mention FreeBSD in comments.
22721 2012-03-04  Bruno Haible  <bruno@clisp.org>
22723         sqrt* tests: More tests.
22724         * tests/test-sqrt.h: New file.
22725         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
22726         (main): Invoke test_function.
22727         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
22728         (main): Invoke test_function.
22729         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
22730         (main): Invoke test_function.
22731         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
22732         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
22733         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
22734         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
22735         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
22736         (Depends-on): Add 'float'.
22737         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
22739 2012-03-04  Bruno Haible  <bruno@clisp.org>
22741         remainder* tests: More tests.
22742         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
22743         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
22744         (main): Invoke test_function.
22745         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
22746         (main): Invoke test_function.
22747         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
22748         (main): Invoke test_function.
22749         * modules/remainder-tests (Files): Add tests/test-remainder.h,
22750         tests/randomd.c.
22751         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
22752         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
22753         tests/randomf.c.
22754         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
22755         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
22756         tests/randoml.c.
22757         (Depends-on): Add 'float'.
22758         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
22760 2012-03-04  Bruno Haible  <bruno@clisp.org>
22762         remainder, remainderf, remainderl: Fix computation for large quotients.
22763         * lib/remainder.c: Completely rewritten.
22764         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
22765         USE_FLOAT.
22766         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
22767         USE_LONG_DOUBLE.
22768         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
22769         isnand, isinf. Remove round, fma.
22770         * modules/remainderf (Files): Add lib/remainder.c.
22771         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
22772         Remove roundf, fmaf.
22773         * modules/remainderl (Files): Add lib/remainder.c.
22774         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
22775         isinf. Remove roundl, fmal.
22776         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
22777         REMAINDER_LIBM.
22778         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
22779         REMAINDERF_LIBM.
22780         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
22781         REMAINDERL_LIBM.
22783 2012-03-04  Bruno Haible  <bruno@clisp.org>
22785         fmod* tests: More tests.
22786         * tests/test-fmod.h (my_ldexp): New function.
22787         (test_function): Reduce amount of random numbers to test. Add tests
22788         of very large quotients x / y.
22789         * tests/test-fmod.c (MAX_EXP): New macro.
22790         * tests/test-fmodf.c (MAX_EXP): Likewise.
22791         * tests/test-fmodl.c (MAX_EXP): Likewise.
22793 2012-03-04  Bruno Haible  <bruno@clisp.org>
22795         fmod, fmodl: Fix computation for large quotients x / y.
22796         * lib/fmod.c: Completely rewritten.
22797         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
22798         USE_LONG_DOUBLE.
22799         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
22800         isnand. Remove fma.
22801         * modules/fmodl (Files): Add lib/fmod.c.
22802         (Depends-on): Add float, isfinite, signbit, fabsl,
22803         frexpl, ldexpl, isnanl. Remove fma.
22804         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
22805         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
22807 2012-03-03  Bruno Haible  <bruno@clisp.org>
22809         fmod* tests: More tests.
22810         * tests/test-fmod.h: New file.
22811         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
22812         (main): Invoke test_function.
22813         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
22814         (main): Invoke test_function.
22815         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
22816         (main): Invoke test_function.
22817         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
22818         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
22819         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
22820         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
22821         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
22822         (Depends-on): Add 'float'.
22823         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
22825 2012-03-03  Bruno Haible  <bruno@clisp.org>
22827         rint* tests: More tests.
22828         * tests/test-rint.h: New file, partially extracted from
22829         tests/test-rintl.c.
22830         * tests/test-rint.c: Include test-rint.h.
22831         (main): Invoke test_function.
22832         * tests/test-rintf.c: Include test-rint.h.
22833         (main): Invoke test_function.
22834         * tests/test-rintl.c: Include test-rint.h.
22835         (main): Invoke test_function.
22836         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
22837         (Makefile.am): Add randomd.c to test_rint_SOURCES.
22838         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
22839         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
22840         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
22841         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
22843 2012-03-03  Bruno Haible  <bruno@clisp.org>
22845         modf* tests: More tests.
22846         * tests/test-modf.h: New file.
22847         * tests/test-modf.c: Include <float.h> and test-modf.h.
22848         (main): Invoke test_function.
22849         * tests/test-modff.c: Include <float.h> and test-modf.h.
22850         (main): Invoke test_function.
22851         * tests/test-modfl.c: Include <float.h> and test-modf.h.
22852         (main): Invoke test_function.
22853         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
22854         (Makefile.am): Add randomd.c to test_modf_SOURCES.
22855         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
22856         (Makefile.am): Add randomf.c to test_modff_SOURCES.
22857         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
22858         (Depends-on): Add 'float'.
22859         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
22861 2012-03-03  Bruno Haible  <bruno@clisp.org>
22863         fabs* tests: More tests.
22864         * tests/test-fabs.h: New file, partially extracted from
22865         tests/test-fabsl.c.
22866         * tests/test-fabs.c (RANDOM): New macro.
22867         * tests/test-fabsf.c (RANDOM): New macro.
22868         * tests/test-fabsl.c (RANDOM): New macro.
22869         * modules/fabs-tests (Files): Add tests/randomd.c.
22870         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
22871         * modules/fabsf-tests (Files): Add tests/randomf.c.
22872         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
22873         * modules/fabsl-tests (Files): Add tests/randoml.c.
22874         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
22876 2012-03-03  Bruno Haible  <bruno@clisp.org>
22878         ldexp* tests: More tests.
22879         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
22880         * tests/test-ldexp.c (RANDOM): New macro.
22881         * tests/test-ldexpf.c (RANDOM): New macro.
22882         * tests/test-ldexpl.c (RANDOM): New macro.
22883         * modules/ldexp-tests (Files): Add tests/randomd.c.
22884         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
22885         * modules/ldexpf-tests (Files): Add tests/randomf.c.
22886         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
22887         * modules/ldexpl-tests (Files): Add tests/randoml.c.
22888         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
22890 2012-03-03  Bruno Haible  <bruno@clisp.org>
22892         frexp* tests: More tests.
22893         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
22894         * tests/test-frexp.c (RANDOM): New macro.
22895         * tests/test-frexpf.c (RANDOM): New macro.
22896         * tests/test-frexpl.c (RANDOM): New macro.
22897         * modules/frexp-tests (Files): Add tests/randomd.c.
22898         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
22899         * modules/frexpf-tests (Files): Add tests/randomf.c.
22900         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
22901         * modules/frexpl-tests (Files): Add tests/randoml.c.
22902         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
22904 2012-03-03  Bruno Haible  <bruno@clisp.org>
22906         Support for pseudo-random numbers in tests.
22907         * tests/randomf.c: New file.
22908         * tests/randomd.c: New file.
22909         * tests/randoml.c: New file.
22910         * tests/macros.h (randomf, randomd, randoml): New declarations.
22912 2012-03-03  Bruno Haible  <bruno@clisp.org>
22914         frexp* tests: Refactor.
22915         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
22916         * tests/test-frexp.c: Include and use it.
22917         * tests/test-frexpf.c: Likewise.
22918         * tests/test-frexpl.c: Likewise.
22919         * modules/frexp-tests (Files): Add tests/test-frexp.h.
22920         * modules/frexpf-tests (Files): Likewise.
22921         * modules/frexpl-tests (Files): Likewise.
22923 2012-03-02  Jim Meyering  <meyering@redhat.com>
22925         maint: don't specify XZ_OPT=-9ev in dist-related rule
22926         Using xz's -9 option is warranted only if you have a very large
22927         tarball (see xz's documentation for the sizes vs. presets), and
22928         requires 64MiB of memory at decompression time.
22929         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
22930         Automake's default of just "-e" is fine.  Override on a
22931         per-package basis by setting XZ_OPT e.g., in cfg.mk.
22933 2012-03-01  Eric Blake  <eblake@redhat.com>
22935         maint.mk: allow announcement for non-gnulib project
22936         * maint.mk (announcement): Skip gnulib version if not used.
22938 2012-03-01  Jim Meyering  <meyering@redhat.com>
22940         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
22941         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
22942         envvar settings cannot interfere.  Otherwise, setting envvars like
22943         prohibit=foo require=bar, etc. would cause spurious test failures.
22945 2012-03-01  Eric Blake  <eblake@redhat.com>
22947         maint.mk: add per-line exclusions to prohibitions
22948         * maint.mk (_sc_search_regexp): Add $exclude parameter.
22949         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
22950         (sc_const_long_option): Use it.
22952 2012-03-01  Bruno Haible  <bruno@clisp.org>
22954         Tests for module 'expl-ieee'.
22955         * modules/expl-ieee-tests: New file.
22956         * tests/test-expl-ieee.c: New file.
22958         New module 'expl-ieee'.
22959         * modules/expl-ieee: New file.
22961         Tests for module 'exp-ieee'.
22962         * modules/exp-ieee-tests: New file.
22963         * tests/test-exp-ieee.c: New file.
22965         New module 'exp-ieee'.
22966         * modules/exp-ieee: New file.
22968         Tests for module 'expf-ieee'.
22969         * modules/expf-ieee-tests: New file.
22970         * tests/test-expf-ieee.c: New file.
22971         * tests/test-exp-ieee.h: New file.
22973         New module 'expf-ieee'.
22974         * modules/expf-ieee: New file.
22976 2012-02-29  Bruno Haible  <bruno@clisp.org>
22978         cbrtl-ieee: Work around test failure on IRIX 6.5.
22979         * m4/cbrtl-ieee.m4: New file.
22980         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
22981         test whether cbrtl works with a minus zero argument. Replace it if not.
22982         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
22983         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
22984         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
22985         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
22986         (Depends-on): Update conditions.
22987         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
22988         m4/signbit.m4.
22989         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
22990         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
22991         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
22993         Tests for module 'cbrtl-ieee'.
22994         * modules/cbrtl-ieee-tests: New file.
22995         * tests/test-cbrtl-ieee.c: New file.
22997         New module 'cbrtl-ieee'.
22998         * modules/cbrtl-ieee: New file.
23000         Tests for module 'cbrt-ieee'.
23001         * modules/cbrt-ieee-tests: New file.
23002         * tests/test-cbrt-ieee.c: New file.
23004         New module 'cbrt-ieee'.
23005         * modules/cbrt-ieee: New file.
23007         Tests for module 'cbrtf-ieee'.
23008         * modules/cbrtf-ieee-tests: New file.
23009         * tests/test-cbrtf-ieee.c: New file.
23010         * tests/test-cbrt-ieee.h: New file.
23012         New module 'cbrtf-ieee'.
23013         * modules/cbrtf-ieee: New file.
23015 2012-02-29  Bruno Haible  <bruno@clisp.org>
23017         cbrtf: Work around bug in IRIX 6.5 system function.
23018         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
23019         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
23020         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
23021         work.
23022         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
23023         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
23024         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
23025         (Depends-on): Update conditions.
23026         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
23028 2012-02-29  Bruno Haible  <bruno@clisp.org>
23030         Tests for module 'cbrtl'.
23031         * modules/cbrtl-tests: New file.
23032         * tests/test-cbrtl.c: New file.
23034         New module 'cbrtl'.
23035         * lib/math.in.h (cbrtl): New declaration.
23036         * lib/cbrtl.c: New file.
23037         * m4/cbrtl.m4: New file.
23038         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
23039         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
23040         HAVE_DECL_CBRTL.
23041         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
23042         HAVE_DECL_CBRTL.
23043         * modules/cbrtl: New file.
23044         * tests/test-math-c++.cc: Check the declaration of cbrtl.
23045         * doc/posix-functions/cbrtl.texi: Mention the new module.
23047 2012-02-29  Bruno Haible  <bruno@clisp.org>
23049         Tests for module 'cbrtf'.
23050         * modules/cbrtf-tests: New file.
23051         * tests/test-cbrtf.c: New file.
23053         New module 'cbrtf'.
23054         * lib/math.in.h (cbrtf): New declaration.
23055         * lib/cbrtf.c: New file.
23056         * m4/cbrtf.m4: New file.
23057         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
23058         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
23059         HAVE_DECL_CBRTF.
23060         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
23061         HAVE_DECL_CBRTF.
23062         * modules/cbrtf: New file.
23063         * tests/test-math-c++.cc: Check the declaration of cbrtf.
23064         * doc/posix-functions/cbrtf.texi: Mention the new module.
23066 2012-02-29  Bruno Haible  <bruno@clisp.org>
23068         cbrt: Provide replacement on MSVC and Minix.
23069         * lib/math.in.h (cbrt): New declaration.
23070         * lib/cbrt.c: New file.
23071         * m4/cbrt.m4: New file.
23072         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
23073         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
23074         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
23075         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
23076         (Depends-on): Add dependencies.
23077         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
23078         * tests/test-math-c++.cc: Check the declaration of cbrt.
23079         * doc/posix-functions/cbrt.texi: Mention that the module provides a
23080         replacement.
23082 2012-02-29  Bruno Haible  <bruno@clisp.org>
23084         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
23085         * m4/hypotl-ieee.m4: New file.
23086         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
23087         test whether hypotl works with mixed NaN and Infinity arguments.
23088         Replace it if not.
23089         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
23090         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
23091         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
23092         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
23093         (Depends-on): Update conditions.
23094         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
23095         (Depends-on): Add hypot-ieee.
23096         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
23097         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
23099         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
23100         * m4/hypotf-ieee.m4: New file.
23101         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
23102         test whether hypotf works with mixed NaN and Infinity arguments.
23103         Replace it if not.
23104         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
23105         (Depends-on): Add hypot-ieee.
23106         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
23107         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
23109         hypot-ieee: Work around test failure on OSF/1 and native Windows.
23110         * lib/math.in.h (hypot): New declaration.
23111         * lib/hypot.c: New file.
23112         * m4/hypot-ieee.m4: New file.
23113         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
23114         whether hypot works with mixed NaN and Infinity arguments. Replace it
23115         if not.
23116         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
23117         REPLACE_HYPOT.
23118         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
23119         * modules/hypot (Files): Add lib/hypot.c.
23120         (Depends-on): Add dependencies.
23121         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
23122         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
23123         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
23124         * tests/test-math-c++.cc: Check the declaration of hypot.
23125         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
23127         Tests for module 'hypotl-ieee'.
23128         * modules/hypotl-ieee-tests: New file.
23129         * tests/test-hypotl-ieee.c: New file.
23131         New module 'hypotl-ieee'.
23132         * modules/hypotl-ieee: New file.
23134         Tests for module 'hypot-ieee'.
23135         * modules/hypot-ieee-tests: New file.
23136         * tests/test-hypot-ieee.c: New file.
23138         New module 'hypot-ieee'.
23139         * modules/hypot-ieee: New file.
23141         Tests for module 'hypotf-ieee'.
23142         * modules/hypotf-ieee-tests: New file.
23143         * tests/test-hypotf-ieee.c: New file.
23144         * tests/test-hypot-ieee.h: New file.
23146         New module 'hypotf-ieee'.
23147         * modules/hypotf-ieee: New file.
23149 2012-02-29  Bruno Haible  <bruno@clisp.org>
23151         Remove unused variables.
23152         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
23153         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
23154         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
23155         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
23157 2012-02-29  Eric Blake  <eblake@redhat.com>
23159         termios: fix pid_t always, not just for tcgetsid
23160         * doc/posix-headers/termios.texi (termios.h): Mention problem.
23161         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
23162         just when building tcgetsid.
23164 2012-02-29  Bruno Haible  <bruno@clisp.org>
23166         Tests for module 'hypotl'.
23167         * modules/hypotl-tests: New file.
23168         * tests/test-hypotl.c: New file.
23170         New module 'hypotl'.
23171         * lib/math.in.h (hypotl): New declaration.
23172         * lib/hypotl.c: New file.
23173         * m4/hypotl.m4: New file.
23174         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
23175         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
23176         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
23177         * modules/hypotl: New file.
23178         * tests/test-math-c++.cc: Check the hypotl declaration.
23179         * doc/posix-functions/hypotl.texi: Mention the new module.
23181 2012-02-29  Eric Blake  <eblake@redhat.com>
23183         tcgetsid: fix cygwin header bug
23184         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
23186         docs: update cygwin progress
23187         * doc/posix-functions/llround.texi (llround): Added in cygwin
23188         1.7.8.
23189         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
23190         * doc/glibc-functions/program_invocation_name.texi
23191         (program_invocation_name): Likewise.
23192         * doc/glibc-functions/program_invocation_short_name.texi
23193         (program_invocation_short_name): Likewise.
23194         * doc/glibc-functions/madvise.texi (madvise): Likewise.
23195         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
23196         Likewise.
23197         * doc/posix-functions/pthread_spin_destroy.texi
23198         (pthread_spin_destroy): Added in cygwin 1.7.10.
23199         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
23200         Likewise.
23201         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
23202         Likewise.
23203         * doc/posix-functions/pthread_spin_trylock.texi
23204         (pthread_spin_trylock): Likewise.
23205         * doc/posix-functions/pthread_spin_unlock.texi
23206         (pthread_spin_unlock): Likewise.
23207         * doc/posix-functions/pthread_setschedprio.texi
23208         (pthread_setschedprio): Likewise.
23209         * doc/posix-functions/pthread_attr_getstack.texi
23210         (pthread_attr_getstack): Likewise.
23211         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
23212         (pthread_attr_getstackaddr): Likewise.
23213         * doc/glibc-functions/pthread_getattr_np.texi
23214         (pthread_getattr_np): Likewise.
23215         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
23216         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
23217         * doc/posix-functions/clock_settime.texi (clock_settime):
23218         Likewise.
23219         * doc/posix-functions/pthread_attr_getguardsize.texi
23220         (pthread_attr_getguardsize): Likewise.
23221         * doc/posix-functions/pthread_attr_setguardsize.texi
23222         (pthread_attr_setguardsize): Likewise.
23223         * doc/posix-functions/pthread_attr_setstack.texi
23224         (pthread_attr_setstack): Likewise.
23225         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
23226         (pthread_attr_setstackaddr): Likewise.
23227         * doc/posix-functions/clock_getcpuclockid.texi
23228         (clock_getcpuclockid): Likewise.
23229         * doc/posix-functions/pthread_getcpuclockid.texi
23230         (pthread_getcpuclockid): Likewise.
23231         * doc/glibc-functions/error.texi (error): Likewise.
23232         * doc/glibc-functions/error_at_line.texi (error_at_line):
23233         Likewise.
23234         * doc/glibc-functions/error_message_count.texi
23235         (error_message_count): Likewise.
23236         * doc/glibc-functions/error_one_per_line.texi
23237         (error_one_per_line): Likewise.
23238         * doc/glibc-functions/error_print_progname.texi
23239         (error_print_progname): Likewise.
23240         * doc/posix-functions/pthread_condattr_getclock.texi
23241         (pthread_condattr_getclock): Likewise.
23242         * doc/posix-functions/pthread_condattr_setclock.texi
23243         (pthread_condattr_setclock): Likewise.
23244         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
23245         Likewise.
23246         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
23247         * doc/glibc-functions/getpt.texi (getpt): Likewise.
23248         * doc/glibc-functions/get_current_dir_name.texi
23249         (get_current_dir_name): Likewise.
23250         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
23251         Likewise.
23252         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
23253         wrong return type.
23254         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
23255         1.7.11.
23257 2012-02-29  Bruno Haible  <bruno@clisp.org>
23259         Tests for module 'hypotf'.
23260         * modules/hypotf-tests: New file.
23261         * tests/test-hypotf.c: New file.
23263         New module 'hypotf'.
23264         * lib/math.in.h (hypotf): New declaration.
23265         * lib/hypotf.c: New file.
23266         * m4/hypotf.m4: New file.
23267         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
23268         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
23269         REPLACE_HYPOTF.
23270         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
23271         REPLACE_HYPOTF.
23272         * modules/hypotf: New file.
23273         * tests/test-math-c++.cc: Check the hypotf declaration.
23274         * doc/posix-functions/hypotf.texi: Mention the new module.
23276         hypot: Prepare for hypotf module.
23277         * m4/hypot.m4: New file.
23278         * modules/hypot (Files): Add m4/hypot.m4.
23279         (configure.ac): Invoke gl_FUNC_HYPOT.
23281 2012-02-29  Bruno Haible  <bruno@clisp.org>
23283         hypot tests: More tests.
23284         * tests/test-hypot.c: Include <float.h>.
23285         (main): Add tests about overflow and underflow.
23287 2012-02-29  Bruno Haible  <bruno@clisp.org>
23289         math code: Add comments.
23290         * lib/acosl.c: Add comment about related glibc source files.
23291         * lib/asinl.c: Likewise.
23292         * lib/atanl.c: Likewise.
23293         * lib/expl.c: Likewise.
23294         * lib/logl.c: Likewise.
23295         * lib/sincosl.c: Likewise.
23296         * lib/sinl.c: Likewise.
23297         * lib/tanl.c: Likewise.
23298         * lib/trigl.c: Likewise.
23299         * lib/cosl.c: Likewise. Fix comments.
23301 2012-02-28  Bruno Haible  <bruno@clisp.org>
23303         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
23304         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
23305         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
23306         HUGE_VALL are defined.
23307         (numeric_equald): Renamed from numeric_equal.
23308         (numeric_equalf, numeric_equall): New functions.
23309         (main): Check also HUGE_VALF, HUGE_VALL.
23310         * modules/math-tests (Files): Add tests/macros.h.
23311         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
23312         HUGE_VALL.
23314 2012-02-28  Bruno Haible  <bruno@clisp.org>
23316         doc: Move ISO C11 feature notes into POSIX chapters.
23317         * doc/posix-functions/aligned_alloc.texi: Renamed from
23318         doc/glibc-functions/aligned_alloc.texi.
23319         * doc/posix-functions/quick_exit.texi: Renamed from
23320         doc/glibc-functions/quick_exit.texi.
23321         * doc/posix-headers/uchar.texi: Renamed from
23322         doc/glibc-headers/uchar.texi.
23323         * doc/posix-functions/c16rtomb.texi: Renamed from
23324         doc/glibc-functions/c16rtomb.texi.
23325         * doc/posix-functions/c32rtomb.texi: Renamed from
23326         doc/glibc-functions/c32rtomb.texi.
23327         * doc/posix-functions/mbrtoc16.texi: Renamed from
23328         doc/glibc-functions/mbrtoc16.texi.
23329         * doc/posix-functions/mbrtoc32.texi: Renamed from
23330         doc/glibc-functions/mbrtoc32.texi.
23331         * doc/gnulib.texi: Update.
23332         (Glibc uchar.h): Remove section.
23333         Suggested by Eric Blake.
23335 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
23337         stdnoreturn: port to MSVC better
23338         MSVC standard headers use __declspec(noreturn), so #define noreturn
23339         to empty on that platform.  Reported by Bruno Haible in
23340         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
23341         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
23342         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
23344 2012-02-28  Bruno Haible  <bruno@clisp.org>
23346         doc: Mention new glibc headers and functions.
23347         * doc/glibc-headers/uchar.texi: New file.
23348         * doc/glibc-functions/aligned_alloc.texi: New file.
23349         * doc/glibc-functions/c16rtomb.texi: New file.
23350         * doc/glibc-functions/c32rtomb.texi: New file.
23351         * doc/glibc-functions/clock_adjtime.texi: New file.
23352         * doc/glibc-functions/fanotify_init.texi: New file.
23353         * doc/glibc-functions/fanotify_mark.texi: New file.
23354         * doc/glibc-functions/inet6_opt_append.texi: New file.
23355         * doc/glibc-functions/inet6_opt_find.texi: New file.
23356         * doc/glibc-functions/inet6_opt_finish.texi: New file.
23357         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
23358         * doc/glibc-functions/inet6_opt_init.texi: New file.
23359         * doc/glibc-functions/inet6_opt_next.texi: New file.
23360         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
23361         * doc/glibc-functions/inet6_rth_add.texi: New file.
23362         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
23363         * doc/glibc-functions/inet6_rth_init.texi: New file.
23364         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
23365         * doc/glibc-functions/inet6_rth_segments.texi: New file.
23366         * doc/glibc-functions/inet6_rth_space.texi: New file.
23367         * doc/glibc-functions/login.texi: New file.
23368         * doc/glibc-functions/mbrtoc16.texi: New file.
23369         * doc/glibc-functions/mbrtoc32.texi: New file.
23370         * doc/glibc-functions/name_to_handle_at.texi: New file.
23371         * doc/glibc-functions/ntp_gettimex.texi: New file.
23372         * doc/glibc-functions/open_by_handle_at.texi: New file.
23373         * doc/glibc-functions/prlimit.texi: New file.
23374         * doc/glibc-functions/process_vm_readv.texi: New file.
23375         * doc/glibc-functions/process_vm_writev.texi: New file.
23376         * doc/glibc-functions/recvmmsg.texi: New file.
23377         * doc/glibc-functions/scandirat.texi: New file.
23378         * doc/glibc-functions/sendmmsg.texi: New file.
23379         * doc/glibc-functions/setns.texi: New file.
23380         * doc/glibc-functions/timespec_get.texi: New file.
23381         * doc/gnulib.texi: Include them.
23382         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
23383         sections.
23384         Reported by Eric Blake.
23386 2012-02-28  Bruno Haible  <bruno@clisp.org>
23388         Avoid compilation errors with MSVC option -fp:strict.
23389         * lib/floor.c: Use MSVC specific pragma fenv_access.
23390         * lib/ceil.c: Likewise.
23391         * lib/trunc.c: Likewise.
23392         * lib/round.c: Likewise.
23393         * lib/rint.c: Likewise.
23394         * lib/fma.c: Likewise.
23395         * lib/integer_length.c: Likewise.
23396         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
23397         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
23398         * tests/test-floor2.c: Likewise.
23399         * tests/test-floorf2.c: Likewise.
23400         * tests/test-ceil2.c: Likewise.
23401         * tests/test-ceilf2.c: Likewise.
23402         * tests/test-trunc2.c: Likewise.
23403         * tests/test-truncf2.c: Likewise.
23404         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
23406 2012-02-27  Bruno Haible  <bruno@clisp.org>
23408         Tests for module 'sqrtl-ieee'.
23409         * modules/sqrtl-ieee-tests: New file.
23410         * tests/test-sqrtl-ieee.c: New file.
23412         New module 'sqrtl-ieee'.
23413         * modules/sqrtl-ieee: New file.
23415         Tests for module 'sqrt-ieee'.
23416         * modules/sqrt-ieee-tests: New file.
23417         * tests/test-sqrt-ieee.c: New file.
23419         New module 'sqrt-ieee'.
23420         * modules/sqrt-ieee: New file.
23422         Tests for module 'sqrtf-ieee'.
23423         * modules/sqrtf-ieee-tests: New file.
23424         * tests/test-sqrtf-ieee.c: New file.
23425         * tests/test-sqrt-ieee.h: New file.
23427         New module 'sqrtf-ieee'.
23428         * modules/sqrtf-ieee: New file.
23430 2012-02-27  Bruno Haible  <bruno@clisp.org>
23432         remainderl-ieee: Work around test failure on OSF/1.
23433         * m4/remainderl-ieee.m4: New file.
23434         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
23435         present, test whether remainderl works with a zero second argument.
23436         Replace it if not.
23437         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
23438         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
23439         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
23440         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
23441         (Depends-on): Update conditions.
23442         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
23443         (Depends-on): Add remainder-ieee.
23444         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
23445         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
23446         module.
23448         remainderf-ieee: Work around test failure on OSF/1.
23449         * m4/remainderf-ieee.m4: New file.
23450         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
23451         present, test whether remainderf works with a zero second argument.
23452         Replace it if not.
23453         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
23454         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
23455         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
23456         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
23457         (Depends-on): Update conditions.
23458         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
23459         (Depends-on): Add remainder-ieee.
23460         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
23461         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
23462         module.
23464         remainder-ieee: Work around test failure on OSF/1.
23465         * m4/remainder-ieee.m4: New file.
23466         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
23467         present, test whether remainder works with a zero second argument.
23468         Replace it if not.
23469         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
23470         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
23471         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
23472         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
23473         (Depends-on): Update dependencies.
23474         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
23475         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
23476         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
23478         Tests for module 'remainderl-ieee'.
23479         * modules/remainderl-ieee-tests: New file.
23480         * tests/test-remainderl-ieee.c: New file.
23482         New module 'remainderl-ieee'.
23483         * modules/remainderl-ieee: New file.
23485         Tests for module 'remainder-ieee'.
23486         * modules/remainder-ieee-tests: New file.
23487         * tests/test-remainder-ieee.c: New file.
23489         New module 'remainder-ieee'.
23490         * modules/remainder-ieee: New file.
23492         Tests for module 'remainderf-ieee'.
23493         * modules/remainderf-ieee-tests: New file.
23494         * tests/test-remainderf-ieee.c: New file.
23495         * tests/test-remainder-ieee.h: New file.
23497         New module 'remainderf-ieee'.
23498         * modules/remainderf-ieee: New file.
23500 2012-02-27  Bruno Haible  <bruno@clisp.org>
23502         modff, modfl: Fix configure syntax error.
23503         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
23504         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
23506 2012-02-27  Bruno Haible  <bruno@clisp.org>
23508         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
23509         * m4/fmodl-ieee.m4: New file.
23510         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
23511         whether fmodl works with zero arguments. Replace it if not.
23512         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
23513         (Depends-on): Add fmod-ieee.
23514         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
23515         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
23517         fmodf-ieee: Work around test failure on OSF/1.
23518         * m4/fmodf-ieee.m4: New file.
23519         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
23520         whether fmodf works with zero arguments. Replace it if not.
23521         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
23522         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
23523         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
23524         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
23525         (Depends-on): Update dependencies.
23526         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
23527         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
23528         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
23530         fmodf-ieee: Work around test failure on MSVC 9.
23531         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
23532         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
23534         fmod-ieee: Work around test failures on OSF/1, mingw.
23535         * m4/fmod-ieee.m4: New file.
23536         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
23537         whether fmod works with zero arguments. Replace it if not.
23538         * lib/math.in.h (fmod): New declaration.
23539         * lib/fmod.c: New file.
23540         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
23541         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
23542         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
23543         * modules/fmod (Files): Add lib/fmod.c.
23544         (Depends-on): Add math, isinf, trunc, fma.
23545         (configure.ac): Arrange to compile lib/fmod.c if needed.
23546         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
23547         m4/signbit.m4.
23548         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
23549         * tests/test-math-c++.cc: Check the declaration of fmod.
23550         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
23552         fmodl-ieee: Fix test failures.
23553         * lib/fmodl.c (fmodl): Treat Inf specially.
23554         * modules/fmodl (Depends-on): Add isinf.
23556         Tests for module 'fmodl-ieee'.
23557         * modules/fmodl-ieee-tests: New file.
23558         * tests/test-fmodl-ieee.c: New file.
23560         New module 'fmodl-ieee'.
23561         * modules/fmodl-ieee: New file.
23563         Tests for module 'fmod-ieee'.
23564         * modules/fmod-ieee-tests: New file.
23565         * tests/test-fmod-ieee.c: New file.
23567         New module 'fmod-ieee'.
23568         * modules/fmod-ieee: New file.
23570         Tests for module 'fmodf-ieee'.
23571         * modules/fmodf-ieee-tests: New file.
23572         * tests/test-fmodf-ieee.c: New file.
23573         * tests/test-fmod-ieee.h: New file.
23575         New module 'fmodf-ieee'.
23576         * modules/fmodf-ieee: New file.
23578 2012-02-27  Bruno Haible  <bruno@clisp.org>
23580         Tests for module 'rintl-ieee'.
23581         * modules/rintl-ieee-tests: New file.
23582         * tests/test-rintl-ieee.c: New file.
23584         New module 'rintl-ieee'.
23585         * modules/rintl-ieee: New file.
23587         Tests for module 'rint-ieee'.
23588         * modules/rint-ieee-tests: New file.
23589         * tests/test-rint-ieee.c: New file.
23591         New module 'rint-ieee'.
23592         * modules/rint-ieee: New file.
23594         Tests for module 'rintf-ieee'.
23595         * modules/rintf-ieee-tests: New file.
23596         * tests/test-rintf-ieee.c: New file.
23597         * tests/test-rint-ieee.h: New file.
23599         New module 'rintf-ieee'.
23600         * modules/rintf-ieee: New file.
23602 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
23604         regex: re_search etc. should return -2 when memory exhausted
23605         This bug was uncovered when testing 'grep'.  Without the fix,
23606         re_search and friends return -1 when memory is exhausted, but -1
23607         means no match, and this causes grep to falsely report no-match
23608         instead of memory-exhaustion.  See
23609         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
23610         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
23611         trouble; this can occur if re_search_internal ran out of memory.
23613 2012-02-26  Bruno Haible  <bruno@clisp.org>
23615         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
23616         * m4/modfl-ieee.m4: New file.
23617         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
23618         whether modfl works with Inf. Replace it if not.
23619         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
23620         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
23621         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
23622         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
23623         (Depends-on): Update dependencies.
23624         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
23625         m4/signbit.m4.
23626         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
23627         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
23629         modfl-ieee: Fix dependencies.
23630         * modules/modfl-ieee (Depends-on): Add modf-ieee.
23632         modfl-ieee: Fix test failures.
23633         * lib/modfl.c (modfl): Treat NaN and Inf specially.
23634         * modules/modfl (Depends-on): Add isfinite, isinf.
23636         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
23637         * m4/modff-ieee.m4: New file.
23638         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
23639         whether modff works with NaN and Inf. Replace it if not.
23640         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
23641         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
23642         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
23643         * modules/modff (configure.ac): Consider REPLACE_MODFF.
23644         (Depends-on): Update dependencies.
23645         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
23646         m4/signbit.m4.
23647         (Depends-on): Add modf-ieee.
23648         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
23649         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
23651         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
23652         * m4/modf-ieee.m4: New file.
23653         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
23654         whether modf works with NaN and Inf. Replace it if not.
23655         * lib/math.in.h (modf): New declaration.
23656         * lib/modf.c: New file.
23657         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
23658         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
23659         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
23660         * modules/modf (Files): Add lib/modf.c.
23661         (Depends-on): Add math, isfinite, trunc, isinf.
23662         (configure.ac): Addrange to compile lib/modf.c if needed.
23663         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
23664         m4/signbit.m4.
23665         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
23666         * tests/test-math-c++.cc: Check the declaration of modf.
23667         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
23669         Tests for module 'modfl-ieee'.
23670         * modules/modfl-ieee-tests: New file.
23671         * tests/test-modfl-ieee.c: New file.
23673         New module 'modfl-ieee'.
23674         * modules/modfl-ieee: New file.
23676         Tests for module 'modf-ieee'.
23677         * modules/modf-ieee-tests: New file.
23678         * tests/test-modf-ieee.c: New file.
23680         New module 'modf-ieee'.
23681         * modules/modf-ieee: New file.
23683         Tests for module 'modff-ieee'.
23684         * modules/modff-ieee-tests: New file.
23685         * tests/test-modff-ieee.c: New file.
23686         * tests/test-modf-ieee.h: New file.
23688         New module 'modff-ieee'.
23689         * modules/modff-ieee: New file.
23691 2012-02-26  Bruno Haible  <bruno@clisp.org>
23693         Tests for module 'fabsl-ieee'.
23694         * modules/fabsl-ieee-tests: New file.
23695         * tests/test-fabsl-ieee.c: New file.
23697         New module 'fabsl-ieee'.
23698         * modules/fabsl-ieee: New file.
23700         Tests for module 'fabs-ieee'.
23701         * modules/fabs-ieee-tests: New file.
23702         * tests/test-fabs-ieee.c: New file.
23704         New module 'fabs-ieee'.
23705         * modules/fabs-ieee: New file.
23707         Tests for module 'fabsf-ieee'.
23708         * modules/fabsf-ieee-tests: New file.
23709         * tests/test-fabsf-ieee.c: New file.
23710         * tests/test-fabs-ieee.h: New file.
23712         New module 'fabsf-ieee'.
23713         * modules/fabsf-ieee: New file.
23715 2012-02-26  Bruno Haible  <bruno@clisp.org>
23717         Tests for module 'fmal-ieee'.
23718         * modules/fmal-ieee-tests: New file.
23719         * tests/test-fmal-ieee.c: New file.
23721         New module 'fmal-ieee'.
23722         * modules/fmal-ieee: New file.
23724         Tests for module 'fma-ieee'.
23725         * modules/fma-ieee-tests: New file.
23726         * tests/test-fma-ieee.c: New file.
23728         New module 'fma-ieee'.
23729         * modules/fma-ieee: New file.
23731         Tests for module 'fmaf-ieee'.
23732         * modules/fmaf-ieee-tests: New file.
23733         * tests/test-fmaf-ieee.c: New file.
23734         * tests/test-fma-ieee.h: New file.
23736         New module 'fmaf-ieee'.
23737         * modules/fmaf-ieee: New file.
23739 2012-02-26  Bruno Haible  <bruno@clisp.org>
23741         Tests for module 'ldexpl-ieee'.
23742         * modules/ldexpl-ieee-tests: New file.
23743         * tests/test-ldexpl-ieee.c: New file.
23745         New module 'ldexpl-ieee'.
23746         * modules/ldexpl-ieee: New file.
23748         Tests for module 'ldexp-ieee'.
23749         * modules/ldexp-ieee-tests: New file.
23750         * tests/test-ldexp-ieee.c: New file.
23752         New module 'ldexp-ieee'.
23753         * modules/ldexp-ieee: New file.
23755         Tests for module 'ldexpf-ieee'.
23756         * modules/ldexpf-ieee-tests: New file.
23757         * tests/test-ldexpf-ieee.c: New file.
23758         * tests/test-ldexp-ieee.h: New file.
23760         New module 'ldexpf-ieee'.
23761         * modules/ldexpf-ieee: New file.
23763 2012-02-26  Bruno Haible  <bruno@clisp.org>
23765         Refactor frexp*-ieee tests.
23766         * tests/test-frexp-ieee.h: New file.
23767         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
23768         (main): Just call test_function.
23769         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
23770         (main): Just call test_function.
23771         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
23772         (main): Just call test_function.
23773         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
23774         * modules/frexp-ieee-tests (Files): Likewise.
23775         * modules/frexpl-ieee-tests (Files): Likewise.
23777         Tests for module 'frexpl-ieee'.
23778         * modules/frexpl-ieee-tests: New file.
23779         * tests/test-frexpl-ieee.c: New file.
23781         New module 'frexpl-ieee'.
23782         * modules/frexpl-ieee: New file.
23784         Tests for module 'frexp-ieee'.
23785         * modules/frexp-ieee-tests: New file.
23786         * tests/test-frexp-ieee.c: New file.
23788         New module 'frexp-ieee'.
23789         * modules/frexp-ieee: New file.
23791         Tests for module 'frexpf-ieee'.
23792         * modules/frexpf-ieee-tests: New file.
23793         * tests/test-frexpf-ieee.c: New file.
23795         New module 'frexpf-ieee'.
23796         * modules/frexpf-ieee: New file.
23798 2012-02-26  Bruno Haible  <bruno@clisp.org>
23800         roundl-ieee tests: More tests.
23801         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
23802         (main): Add tests for [MX] shaded specification in POSIX.
23803         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23804         (Depends-on): Add isnanl-nolibm.
23806         round-ieee tests: More tests.
23807         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
23808         (main): Add tests for [MX] shaded specification in POSIX.
23809         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23810         (Depends-on): Add isnand-nolibm.
23812         roundf-ieee tests: More tests.
23813         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
23814         (main): Add tests for [MX] shaded specification in POSIX.
23815         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23816         (Depends-on): Add isnanf-nolibm.
23818         truncl-ieee tests: More tests.
23819         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
23820         (main): Add tests for [MX] shaded specification in POSIX.
23821         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23822         (Depends-on): Add isnanl-nolibm.
23824         trunc-ieee tests: More tests.
23825         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
23826         (main): Add tests for [MX] shaded specification in POSIX.
23827         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23828         (Depends-on): Add isnand-nolibm.
23830         truncf-ieee tests: More tests.
23831         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
23832         (main): Add tests for [MX] shaded specification in POSIX.
23833         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23834         (Depends-on): Add isnanf-nolibm.
23836         ceill-ieee tests: More tests.
23837         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
23838         (main): Add tests for [MX] shaded specification in POSIX.
23839         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23840         (Depends-on): Add isnanl-nolibm.
23842         ceil-ieee tests: More tests.
23843         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
23844         (main): Add tests for [MX] shaded specification in POSIX.
23845         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23846         (Depends-on): Add isnand-nolibm.
23848         ceilf-ieee tests: More tests.
23849         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
23850         (main): Add tests for [MX] shaded specification in POSIX.
23851         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23852         (Depends-on): Add isnanf-nolibm.
23854         floorl-ieee tests: More tests.
23855         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
23856         (main): Add tests for [MX] shaded specification in POSIX.
23857         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23858         (Depends-on): Add isnanl-nolibm.
23860         floor-ieee tests: More tests.
23861         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
23862         (main): Add tests for [MX] shaded specification in POSIX.
23863         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23864         (Depends-on): Add isnand-nolibm.
23866         floorf-ieee tests: More tests.
23867         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
23868         (main): Add tests for [MX] shaded specification in POSIX.
23869         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23870         (Depends-on): Add isnanf-nolibm.
23872 2012-02-26  Bruno Haible  <bruno@clisp.org>
23874         fpieee: More comments.
23875         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
23877 2012-02-25  Bruno Haible  <bruno@clisp.org>
23879         Tests for module 'log10l'.
23880         * modules/log10l-tests: New file.
23881         * tests/test-log10l.c: New file.
23882         * tests/test-math-c++.cc: Check the declaration of log10l.
23884         New module 'log10l'.
23885         * lib/math.in.h (log10l): New declaration.
23886         * lib/log10l.c: New file.
23887         * m4/log10l.m4: New file.
23888         * modules/log10l: New file.
23889         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
23890         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
23891         HAVE_DECL_LOG10L.
23892         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
23893         HAVE_DECL_LOG10L.
23894         * doc/posix-functions/log10l.texi: Mention the new module.
23896 2012-02-25  Bruno Haible  <bruno@clisp.org>
23898         fmodl, remainder*: Avoid wrong results due to rounding errors.
23899         * lib/fmodl.c (fmodl): Correct the result if it is not within the
23900         expected bounds.
23901         * lib/remainderf.c (remainderf): Likewise.
23902         * lib/remainder.c (remainder): Likewise.
23903         * lib/remainderl.c (remainderl): Likewise.
23905 2012-02-25  Bruno Haible  <bruno@clisp.org>
23907         Tests for module 'remainderl'.
23908         * modules/remainderl-tests: New file.
23909         * tests/test-remainderl.c: New file.
23910         * tests/test-math-c++.cc: Check the declaration of remainderl.
23912         New module 'remainderl'.
23913         * lib/math.in.h (remainderl): New declaration.
23914         * lib/remainderl.c: New file.
23915         * m4/remainderl.m4: New file.
23916         * modules/remainderl: New file.
23917         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
23918         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
23919         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
23920         HAVE_REMAINDERL.
23921         * doc/posix-functions/remainderl.texi: Mention the new module.
23923 2012-02-25  Bruno Haible  <bruno@clisp.org>
23925         Tests for module 'remainderf'.
23926         * modules/remainderf-tests: New file.
23927         * tests/test-remainderf.c: New file.
23928         * tests/test-math-c++.cc: Check the declaration of remainderf.
23930         New module 'remainderf'.
23931         * lib/math.in.h (remainderf): New declaration.
23932         * lib/remainderf.c: New file.
23933         * m4/remainderf.m4: New file.
23934         * modules/remainderf: New file.
23935         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
23936         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
23937         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
23938         HAVE_REMAINDERF.
23939         * doc/posix-functions/remainderf.texi: Mention the new module.
23941 2012-02-25  Bruno Haible  <bruno@clisp.org>
23943         remainder: Support for MSVC.
23944         * lib/math.in.h (remainder): New declaration.
23945         * lib/remainder.c: New file.
23946         * m4/remainder.m4: New file.
23947         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
23948         (Depends-on): Add math, round, fma.
23949         (configure.ac): Use results of gl_FUNC_REMAINDER.
23950         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
23951         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
23952         HAVE_DECL_REMAINDER.
23953         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
23954         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
23955         * tests/test-math-c++.cc: Check the declaration of remainder.
23956         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
23957         problems are fixed.
23959 2012-02-25  Bruno Haible  <bruno@clisp.org>
23961         Tests for module 'fmodl'.
23962         * modules/fmodl-tests: New file.
23963         * tests/test-fmodl.c: New file.
23964         * tests/test-math-c++.cc: Check the declaration of fmodl.
23966         New module 'fmodl'.
23967         * lib/math.in.h (fmodl): New declaration.
23968         * lib/fmodl.c: New file.
23969         * m4/fmodl.m4: New file.
23970         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
23971         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
23972         REPLACE_FMODL.
23973         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
23974         REPLACE_FMODL.
23975         * modules/fmodl: New file.
23976         * doc/posix-functions/fmodl.texi: Mention the new module.
23978 2012-02-25  Bruno Haible  <bruno@clisp.org>
23980         Tests for module 'modfl'.
23981         * modules/modfl-tests: New file.
23982         * tests/test-modfl.c: New file.
23983         * tests/test-math-c++.cc: Check the declaration of modfl.
23985         New module 'modfl'.
23986         * lib/math.in.h (modfl): New declaration.
23987         * lib/modfl.c: New file.
23988         * m4/modfl.m4: New file.
23989         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
23990         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
23991         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
23992         * modules/modfl: New file.
23993         * doc/posix-functions/modfl.texi: Mention the new module.
23995 2012-02-25  Bruno Haible  <bruno@clisp.org>
23997         Tests for module 'fabsl'.
23998         * modules/fabsl-tests: New file.
23999         * tests/test-fabsl.c: New file.
24000         * tests/test-math-c++.cc: Check the declaration of fabsl.
24002         New module 'fabsl'.
24003         * lib/math.in.h (fabsl): New declaration.
24004         * lib/fabsl.c: New file.
24005         * m4/fabsl.m4: New file.
24006         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
24007         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
24008         REPLACE_FABSL.
24009         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
24010         REPLACE_FABSL.
24011         * modules/fabsl: New file.
24012         * doc/posix-functions/fabsl.texi: Mention the new module.
24014 2012-02-25  Bruno Haible  <bruno@clisp.org>
24016         fabs tests: More tests.
24017         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
24018         (zero): New variable.
24019         (main): Add tests for signed zero.
24020         * modules/fabs-tests (Files): Add tests/minus-zero.h.
24022         fabsf tests: More tests.
24023         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
24024         (zero): New variable.
24025         (main): Add tests for signed zero.
24026         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
24028 2012-02-24  Bruno Haible  <bruno@clisp.org>
24030         atanl: Provide function definition on MSVC.
24031         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
24032         function pointer.
24033         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
24035 2012-02-24  Bruno Haible  <bruno@clisp.org>
24037         acosl: Provide function definition on MSVC.
24038         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
24039         function pointer.
24040         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
24042 2012-02-24  Bruno Haible  <bruno@clisp.org>
24044         asinl: Provide function definition on MSVC.
24045         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
24046         function pointer.
24047         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
24049 2012-02-24  Bruno Haible  <bruno@clisp.org>
24051         tanl: Provide function definition on MSVC.
24052         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
24053         function pointer.
24054         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
24056 2012-02-24  Bruno Haible  <bruno@clisp.org>
24058         cosl: Provide function definition on MSVC.
24059         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
24060         function pointer.
24061         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
24063 2012-02-24  Bruno Haible  <bruno@clisp.org>
24065         sinl: Provide function definition on MSVC.
24066         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
24067         function pointer.
24068         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
24070 2012-02-24  Bruno Haible  <bruno@clisp.org>
24072         logl: Provide function definition on MSVC.
24073         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
24074         function pointer.
24075         * lib/math.in.h (logl): Undefine if it does not exist as a function.
24077 2012-02-24  Bruno Haible  <bruno@clisp.org>
24079         expl: Provide function definition on MSVC.
24080         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
24081         function pointer.
24082         * lib/math.in.h (expl): Undefine if it does not exist as a function.
24084 2012-02-24  Bruno Haible  <bruno@clisp.org>
24086         sqrtl: Provide function definition on MSVC.
24087         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
24088         a function pointer.
24089         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
24091 2012-02-24  Bruno Haible  <bruno@clisp.org>
24093         ceill: Provide function definition on MSVC.
24094         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
24095         used as a function pointer.
24096         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
24098 2012-02-24  Bruno Haible  <bruno@clisp.org>
24100         floorl: Provide function definition on MSVC.
24101         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
24102         used as a function pointer.
24103         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
24105 2012-02-24  Bruno Haible  <bruno@clisp.org>
24107         ceilf: Provide function definition on MSVC.
24108         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
24109         used as a function pointer.
24110         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
24112 2012-02-24  Bruno Haible  <bruno@clisp.org>
24114         floorf: Provide function definition on MSVC.
24115         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
24116         used as a function pointer.
24117         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
24119 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
24121         stdnoreturn: new module
24122         This implements a replacement for C11's <stdnoreturn.h>.
24123         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
24124         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
24125         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
24126         * tests/test-stdnoreturn.c: New files.
24128 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
24130         regex: fix false multibyte matches in some regular expressions
24131         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
24132         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
24133         * lib/regex_internal.c (re_string_skip_chars):
24134         Fix miscomputation of remain_len that may cause incomplete
24135         multi-byte character and false match.
24137 2012-02-24  Jim Meyering  <meyering@redhat.com>
24139         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
24140         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
24141         uses with "==" *before* the call, e.g., 0 == strcmp (...)
24142         Remove now-unnecessary str''cmp obfuscation.
24143         Suggested by Akim Demaille.
24145 2012-02-24  Bruno Haible  <bruno@clisp.org>
24147         streq: Rename macro.
24148         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
24149         * NEWS: Mention the change.
24150         * lib/mbrtowc.c (mbrtowc): Update.
24151         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
24152         * lib/wcwidth.c (wcwidth): Update.
24153         Suggested by Akim Demaille and Jim Meyering.
24155 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
24157         regex: fix typo in definition of MIN
24158         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
24159         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
24161 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
24162             Bruno Haible  <bruno@clisp.org>
24164         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
24165         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
24166         entries into a stack-allocated buffer directly.
24167         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
24169 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
24170             Bruno Haible  <bruno@clisp.org>
24172         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
24174          - There were several instances of this pattern:
24176              for (;;) {
24177                n = acl (f, GETACLCNT, 0, NULL);
24178                [ allocate an array A of size N ]
24179                if (acl (f, GETACL, n, a) == n)
24180                  break;
24181              }
24183            This loop might never terminate if some other process is constantly
24184            manipulating the file's ACL.  The loop should be rewritten to
24185            terminate.
24187          - The acl (... GETACLNT ...) call is merely an optimization; its value
24188            is merely a hint as to how big to make the array.  A better
24189            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
24190            and just guess a reasonably-big size, growing the size and trying
24191            again if it's not large enough.  This guarantees termination, and
24192            saves a system call.
24194         * lib/acl-internal.h: Include <limits.h>.
24195         (MIN, SIZE_MAX): New macros.
24196         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
24197         a stack-allocated buffer, and use malloc if it does not fit. Don't
24198         use GETACLCNT.
24199         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
24201 2012-02-19  Bruno Haible  <bruno@clisp.org>
24203         acl: Fix endless loop on Solaris with vxfs.
24204         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
24205         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
24206         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
24207         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
24208         * tests/test-sameacls.c (main)[Solaris]: Likewise.
24209         Reported by Bill Jones in
24210         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
24212 2012-02-19  Bruno Haible  <bruno@clisp.org>
24214         acl: Fix copy-acl test failure on Solaris 11.0.
24215         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
24216         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
24217         that this function returns 0 in some more cases.
24219 2012-02-19  Bruno Haible  <bruno@clisp.org>
24221         acl: Update doc references.
24222         * doc/acl-resources.txt: Update links to Solaris documentation.
24224 2012-02-19  Bruno Haible  <bruno@clisp.org>
24226         Fix test failure in many locales on Solaris 11.
24227         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
24228         'tr' arguments.
24229         * tests/test-pipe-filter-ii1.c (main): Likewise.
24230         * build-aux/bootstrap (check_versions): Run 'tr' command with range
24231         expressions in the C locale.
24232         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
24233         * m4/host-os.m4 (gl_HOST_OS): Likewise.
24235 2012-02-19  Bruno Haible  <bruno@clisp.org>
24237         gnulib-tool: Improve usage message.
24238         * gnulib-tool (func_usage): Move doc of --help and --version to the
24239         section "Operation modes".
24241 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
24243         README-release: make it easier to execute commands
24244         * top/README-release: break commands out on to separate lines.
24246 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
24248         GNUmakefile: simplify detection of unconfigured trees
24249         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
24250         whether the tree make is being run from is already configured or
24251         not.  Related simplifications.
24253 2012-02-13  Simon Josefsson  <simon@josefsson.org>
24255         * gnulib-tool (func_usage): Document --help and --version.
24257 2012-02-11  Jim Meyering  <meyering@redhat.com>
24259         bootstrap: don't exit 0 upon gnulib-tool failure
24260         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
24261         its exit status, not 0.
24263 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
24265         README-release: various improvements
24266         * top/README-release: Give a command to push changes for the
24267         release.  Add "distcheck" to list of other pre-release checks.
24268         Fix instance of "make stable" which should be "make TYPE".
24270 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
24272         maint: replace FSF snail-mail addresses with URLs
24273         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
24274         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
24275         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
24276         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
24277         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
24278         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
24279         * lib/check-version.c, lib/check-version.h, lib/config.charset:
24280         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
24281         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
24282         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
24283         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
24284         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
24285         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
24286         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
24287         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
24288         * lib/glthread/thread.c, lib/glthread/thread.h:
24289         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
24290         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
24291         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
24292         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
24293         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
24294         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
24295         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
24296         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
24297         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
24298         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
24299         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
24300         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
24301         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
24302         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
24303         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
24304         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
24305         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
24306         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
24307         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
24308         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
24309         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
24310         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
24311         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
24312         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
24313         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
24314         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
24315         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
24316         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
24317         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
24318         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
24319         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
24320         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
24321         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
24322         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
24323         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
24324         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
24325         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
24326         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
24327         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
24328         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
24329         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
24330         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
24331         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
24332         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
24333         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
24334         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
24335         * tests/test-poll.c, tests/test-quotearg-simple.c:
24336         * tests/test-quotearg.c, tests/test-quotearg.h:
24337         * tests/test-round-ieee.c, tests/test-round1.c:
24338         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
24339         * tests/test-roundl-ieee.c, tests/test-roundl.c:
24340         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
24341         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
24342         * tests/test-strerror.c, tests/test-strerror_r.c:
24343         * tests/test-strsignal.c, tests/test-strverscmp.c:
24344         * tests/test-xmemdup0.c:
24345         Replace FSF snail mail addresses with URLs, as per GNU coding
24346         standards.  See glibc bug
24347         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
24349 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
24351         README-release: capitalize a word and split a line
24352         * top/README-release: Fix punctuation and spacing.
24354 2012-02-08  Akim Demaille  <demaille@gostai.com>
24356         fatal-signal: use C prototypes (with explicit void).
24357         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
24358         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
24360 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
24362         regex: spelling fix
24363         * lib/regexec.c: spelling fix
24365         regex: rely on stdint.h for SIZE_MAX
24366         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
24368 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
24370         regex: merge glibc changes
24372         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
24373         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
24374         (init_word_char): Work even if bitset words are not exactly 32 or
24375         64 bits wide.  Don't assume there are no padding bits.
24376         * lib/regex.c [_LIBC]: Do not include <config.h>.
24377         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
24378         and -Wtype-limits.
24379         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
24380         needless disagreement with glibc.  All uses changed.  Define it to
24381         1 only if _GNU_SOURCE, to match glibc.
24382         (_REG_RM_NAME): Remove; no longer needed, since the names in
24383         question are now all protected by __USE_GNU.
24384         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
24385         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
24386         * lib/regex_internal.h (MIN): New macro.
24388         2012-01-03 Ulrich Drepper <drepper@gmail.com>
24389         * lib/regcomp.c (init_word_char): Optimize regex a bit.
24391         2011-12-30 Jakub Jelinek <jakub@redhat.com>
24392         * lib/regex_internal.c (re_string_fetch_byte_case):
24393         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
24394         is miscompiled, and it turns out it is because of an incorrect
24395         attribute on re_string_fetch_byte_case.  Unlike
24396         re_string_peek_byte_case, this one is really not pure, it modifies
24397         memory (increments pstr->cur_idx), and with the pure attribute GCC
24398         assumed it doesn't and it cached the presumed value of
24399         regexp->cur_idx in a variable across the
24400          for (;; ++i)
24401            {
24402              if (i >= BRACKET_NAME_BUF_SIZE)
24403                return REG_EBRACK;
24404              if (token->type == OP_OPEN_CHAR_CLASS)
24405                ch = re_string_fetch_byte_case (regexp);
24406              else
24407                ch = re_string_fetch_byte (regexp);
24408              if (re_string_eoi(regexp))
24409                return REG_EBRACK;
24410              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
24411                break;
24412              elem->opr.name[i] = ch;
24413            }
24415         2011-11-29 Andreas Schwab <schwab@redhat.com>
24416         * lib/regcomp.c (build_equiv_class):
24417         Fix access after end of search string in regex matcher.
24419         2011-11-12 Ulrich Drepper <drepper@redhat.com>
24420         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
24422         2011-10-12 Ulrich Drepper <drepper@redhat.com>
24423         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
24425         2011-10-11 Ulrich Drepper <drepper@redhat.com>
24426         * lib/regcomp.c (parse_branch, parse_sub_exp):
24427         More regex memory leak fixes and tests.
24428         (parse_sub_exp, parse_bracket_exp):
24429         Fix memory leak for some invalid regular expressions.
24431         2011-05-28 Ulrich Drepper <drepper@gmail.com>
24432         * lib/regex_internal.c, lib/regexec.c:
24433         Fix unnecessary overallocation due to incomplete character.  When
24434         incomplete characters are found at the end of a string the code
24435         ran amok and allocated lots of memory.  Stricter limits are now in
24436         place.
24438         2011-05-20 Reuben Thomas <rrt@sc3d.org>
24439         * lib/regex.h: Update documentation.
24441         2011-05-16 Aharon Robbins <arnold@skeeve.com>
24442         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
24444         2010-05-05 Andreas Schwab <schwab@redhat.com>
24445         * lib/regexec.c (find_collation_sequence_value):
24446         Fix lookup of collation sequence value during regexp matching.
24448         2010-01-22 Ulrich Drepper <drepper@redhat.com>
24449         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
24451         2008-01-16 Ulrich Drepper <drepper@redhat.com>
24452         * lib/regex.h: Cleanup namespace.
24454         2007-11-26 Ulrich Drepper <drepper@redhat.com>
24455         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
24457         2007-08-26 Ulrich Drepper <drepper@redhat.com>
24458         * lib/regex_internal.h: Prevent some declarations and definitions
24459         to be seen when used in tests.
24461         2005-05-06 Ulrich Drepper <drepper@redhat.com>
24462         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
24463         __libc_lock_* macros if not _LIBC.
24464         (struct re_dfa_t): Add lock.
24466 2012-02-07  Eric Blake  <eblake@redhat.com>
24468         maint.mk: also prohibit lower-case @var@
24469         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
24470         lower case, like @top_srcdir@.
24472 2012-02-04  Eric Blake  <eblake@redhat.com>
24474         canonicalize: avoid uninitialized memory use
24475         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
24476         random '/' left in dest.
24477         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
24479 2012-02-04  Bruno Haible  <bruno@clisp.org>
24481         isatty: Fix test failure of ptsname_r on native Windows.
24482         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
24483         and don't set errno.
24484         (isatty): Test first whether fd is valid. Set errno when returning 0.
24486 2012-02-04  Bruno Haible  <bruno@clisp.org>
24488         spawn-pipe tests: Fix a NULL program name in a diagnostic.
24489         * tests/test-spawn-pipe-main.c: Include progname.h.
24490         (main): Invoke set_program_name.
24491         * modules/spawn-pipe-tests (Depends-on): Add progname.
24493         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
24494         * tests/test-nonblocking-socket-main.c: Include progname.h.
24495         (main): Invoke set_program_name.
24496         * modules/nonblocking-socket-tests (Depends-on): Add progname.
24498         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
24499         * tests/test-nonblocking-pipe-main.c: Include progname.h.
24500         (main): Invoke set_program_name.
24501         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
24503 2012-02-04  Eric Blake  <eblake@redhat.com>
24505         canonicalize-lgpl: fix // handling
24506         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
24508         canonicalize: fix // handling
24509         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
24510         /// to //, since only // is special.
24512 2012-02-04  Bruno Haible  <bruno@clisp.org>
24514         ioctl: Fix test failure on native Windows.
24515         * lib/ioctl.c: Include msvc-nothrow.h.
24516         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
24518 2012-02-04  Bruno Haible  <bruno@clisp.org>
24520         fsync: Avoid test failure on native Windows.
24521         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
24522         read-only.
24524 2012-02-04  Bruno Haible  <bruno@clisp.org>
24526         sys_select: Avoid syntax error on OpenBSD 5.0.
24527         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
24528         currently being included, just include the system's <sys/select.h>.
24530 2012-02-04  Bruno Haible  <bruno@clisp.org>
24532         sys_select: Avoid syntax error on OpenBSD 5.0.
24533         * lib/sys_select.in.h: Include <signal.h> only after the include_next
24534         <sys/select.h>, not before.
24535         Reported by Jiri B <jirib@devio.us>.
24537 2012-02-04  Bruno Haible  <bruno@clisp.org>
24539         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
24540         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
24541         global variables.
24542         * tests/test-get-rusage-data.c (main): Likewise.
24543         Reported by Jim Meyering.
24545 2012-02-04  Bruno Haible  <bruno@clisp.org>
24547         stdioext: Fix last commit.
24548         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
24550 2012-02-03  Bruno Haible  <bruno@clisp.org>
24552         stdioext: Add tentative support for Plan9.
24553         * lib/stdio-impl.h: Include <errno.h>.
24554         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
24555         * lib/freadable.c (freadable): Likewise.
24556         * lib/fwritable.c (fwritable): Likewise.
24557         * lib/fbufmode.c (fbufmode): Likewise.
24558         * lib/freading.c (freading): Likewise.
24559         * lib/fwriting.c (fwriting): Likewise.
24560         * lib/freadptr.c (freadptr): Likewise.
24561         * lib/freadseek.c (freadptrinc): Likewise.
24562         * lib/freadahead.c (freadahead): Likewise.
24563         * lib/fpurge.c (fpurge): Likewise.
24564         * lib/fseeko.c (rpl_fseeko): Likewise.
24565         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
24566         Reported by Jens Staal <staal1978@gmail.com>.
24568 2012-02-02  Jim Meyering  <meyering@redhat.com>
24570         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
24571         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
24572         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
24573         not even to try to add the attribute.  Instead, add a pragma to suppress
24574         the suggestion/warning.
24576 2012-01-31  Karl Berry  <karl@gnu.org>
24578         setstate doc: typo.
24579         * doc/posix-functions/setstate.texi (setstate): { not (.
24581 2012-01-31  Bruno Haible  <bruno@clisp.org>
24583         popen: Make more robust on Windows.
24584         * lib/popen.c: On native Windows, use the _popen based code even if
24585         HAVE_POPEN is set.
24586         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
24587         environment variable on native Windows.
24589 2012-01-30  Bruno Haible  <bruno@clisp.org>
24591         pclose: Fix typo.
24592         * lib/stdio.in.h (pclose): Fix typo in warning message.
24594 2012-01-30  Bruno Haible  <bruno@clisp.org>
24596         doc about getlogin_r, setstate.
24597         * doc/posix-functions/getlogin_r.texi: List the incompatible
24598         declaration problem under "not fixed by gnulib".
24599         * doc/posix-functions/setstate.texi: Mention incompatible declaration
24600         problem on Solaris 11 and other platforms.
24602 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
24603             Bruno Haible  <bruno@clisp.org>
24605         poll tests: Make test more robust.
24606         * tests/test-poll.c: Include macros.h.
24607         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
24608         return value of various I/O operations.
24609         * modules/poll-tests (Files): Add tests/macros.h.
24611 2012-01-30  Bruno Haible  <bruno@clisp.org>
24613         sys_stat: Fix support for mingw64 and MSVC.
24614         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
24615         header files already do it.
24616         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
24617         stat itself.
24618         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
24620 2012-01-30  Bruno Haible  <bruno@clisp.org>
24622         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
24623         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
24624         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
24626 2012-01-29  Bruno Haible  <bruno@clisp.org>
24628         quotearg: Fix test failure on MacOS X 10.5.
24629         * tests/test-quotearg-simple.c: Include localcharset.h.
24630         (main): If the locale encoding is not ASCII, bypass the tests of
24631         locale_quoting_style and clocale_quoting_style.
24632         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
24634 2012-01-29  Jim Meyering  <meyering@redhat.com>
24636         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
24637         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
24638         detect uses of canonicalize_file_name.
24640 2012-01-28  Bruno Haible  <bruno@clisp.org>
24642         test-framework-sh: Fix test failure with AIX 7.1 diff.
24643         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
24644         in column 1, like 'diff -c' does.
24645         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
24646         whether 'diff -u' is used. Instead, test whether the output contains
24647         some '@' character.
24649 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
24651         strtoimax: eliminate need for stdint.h, inttypes.h checks
24652         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
24653         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
24654         the prerequisites for a recently-introduced strtoimax test.
24655         I guess this might cause strtoimax to be replaced when not
24656         strictly necessary on older hosts, but this shouldn't introduce
24657         any bugs and it should make Emacs 'configure' faster on typical
24658         modern hosts.  Problem discovered when importing the latest gnulib
24659         to an Emacs test version.
24660         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
24662 2012-01-28  Bruno Haible  <bruno@clisp.org>
24664         sys_time: Override 'struct timeval' on some native Windows platforms.
24665         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
24666         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
24667         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
24668         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
24669         needs to be overridden.
24670         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
24671         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
24672         * tests/test-sys_select.c: Check that the tv_sec member has the same
24673         size as a 'time_t'.
24674         * tests/test-sys_time.c: Likewise.
24675         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
24676         is set, set also REPLACE_GETTIMEOFDAY.
24677         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
24678         convert the resulting 'struct timeval' before returning.
24679         * lib/select.c: Include <sys/time.h>.
24680         (select, timeval): Undefine at the right place.
24681         * modules/select (Depends-on): Add sys_time.
24682         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
24683         some Windows platforms.
24684         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
24686 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
24688         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
24689         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
24690         an integer.
24691         * lib/fcntl.c (dupfd): Likewise.
24692         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
24694 2012-01-28  Bruno Haible  <bruno@clisp.org>
24696         fcntl: Avoid compilation error on native Windows.
24697         * modules/fcntl (Depends-on): Add 'close'.
24699 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
24701         select, poll, isatty: Avoid warnings on x86_64 mingw64.
24702         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
24703         pointer to an integer.
24704         * lib/poll.c (IsConsoleHandle): Likewise.
24705         * lib/isatty.c (IsConsoleHandle): Likewise.
24707 2012-01-28  Jim Meyering  <meyering@redhat.com>
24709         doc: clarify README-release
24710         * top/README-release: Clarify: you should make a point to have
24711         the latest stable versions of build tools in your PATH, and the
24712         reference to buildreq is solely for its list of tool names, not
24713         for its minimal-functional version numbers.
24714         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
24716         maint.mk: use more readable (yet functionally equivalent) quoting
24717         It is common to quote a single quote in a single quoted string like
24718         this:  '...'\''...'.  Unless you know the idiom, that looks like
24719         gibberish, so prefer to double-quote the string when possible.
24720         Then you can use a more readable, lone single quote: "...'..."
24721         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
24722         "don't" is more readable than the equivalent 'don'\''t'.
24723         (sc_cast_of_x_alloc_return_value): Likewise.
24724         (sc_cast_of_alloca_return_value): Likewise.
24725         (sc_makefile_path_separator_check): Similar: use ":" in '...',
24726         rather than '\'':'\''.
24728 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
24730         stdalign: relax _Alignof and tighten _Alignas test
24731         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
24732         as it was too strict: alignof must divide offsetof, but it need
24733         not equal offsetof.  Inspired by Joseph S. Myers's comment
24734         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
24735         Conversely, tighten the _Alignas test a bit, as the resulting
24736         alignment must be exactly 8.
24738 2012-01-27  Bruno Haible  <bruno@clisp.org>
24740         stdalign: Document the last change.
24741         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
24743 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
24745         stdalign: check that alignof and offsetof are consistent
24746         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
24747         Problem reported for gnulib by Richard W.M. Jones in
24748         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
24750 2012-01-27  Jim Meyering  <meyering@redhat.com>
24752         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
24753         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
24754         convert a sequence with gaps to the minimal containing range.
24755         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
24756         * tests/test-update-copyright.sh: Test for this.
24757         The FSF confirmed it is ok to do this, assuming there is at
24758         least one significant change per year in the affected range:
24759         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
24761 2012-01-26  Bruno Haible  <bruno@clisp.org>
24763         pipe2: refine doc about thread-safety
24764         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
24765         multithread-safety problem.
24766         * doc/glibc-functions/accept4.texi: Likewise.
24768 2012-01-26  Bruno Haible  <bruno@clisp.org>
24770         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
24771         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
24772         In the test program, include <fcntl.h>, for O_RDONLY.
24774 2012-01-26  Eric Blake  <eblake@redhat.com>
24776         pipe2: document lack of thread-safety in replacement
24777         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
24778         issue in replacement.
24779         * doc/glibc-functions/accept4.texi (accept4): Likewise.
24780         Based on a report by Eric Wong.
24782 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
24783             Bruno Haible  <bruno@clisp.org>
24785         malloca: Avoid warnings on x86_64 mingw64.
24786         * lib/malloca.c: Include <stdint.h>.
24787         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
24788         * modules/malloca (Depends-on): Add stdint.
24789         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
24791 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
24793         obstack: remove __STDC__ conditionals
24794         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
24795         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
24796         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
24797         m4/include_next.m4 as the only gnulib-maintained places that still
24798         refer to __STDC__.
24800 2012-01-24  Bruno Haible  <bruno@clisp.org>
24802         havelib: Modern quoting.
24803         * build-aux/config.rpath: Quote 'like this', not `like this', as per
24804         the recent change to the GNU coding standards.
24806 2012-01-24  Bruno Haible  <bruno@clisp.org>
24808         stdint: Improve support for Android.
24809         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
24810         Reported by Simon Josefsson <simon@josefsson.org>.
24812 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24814         doc: omit trailing empty lines from INSTALL etc.
24815         * doc/Makefile (INSTALL): Omit trailing empty lines.
24816         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
24817         omit trailing empty lines.  This simplifies the build procedure.
24819 2012-01-23  Jim Meyering  <meyering@redhat.com>
24821         tests: avoid spurious warnings about gl_sockets_startup
24822         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
24823         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
24824         reporting a "statement with no effect".
24825         * tests/test-accept.c (main): Mark as "(void)".
24826         * tests/test-accept4.c (main): Likewise.
24827         * tests/test-bind.c (main): Likewise.
24828         * tests/test-connect.c (main): Likewise.
24829         * tests/test-getpeername.c (main): Likewise.
24830         * tests/test-getsockname.c (main): Likewise.
24831         * tests/test-getsockopt.c (main): Likewise.
24832         * tests/test-listen.c (main): Likewise.
24833         * tests/test-recv.c (main): Likewise.
24834         * tests/test-recvfrom.c (main): Likewise.
24835         * tests/test-send.c (main): Likewise.
24836         * tests/test-sendto.c (main): Likewise.
24837         * tests/test-setsockopt.c (main): Likewise.
24838         * tests/test-shutdown.c (main): Likewise.
24840 2012-01-21  Bruno Haible  <bruno@clisp.org>
24842         locale-fr.m4: Fix for Android.
24843         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
24844         failure of the test program on Bionic libc.
24846 2012-01-21  Jim Meyering  <meyering@redhat.com>
24848         bootstrap: fail when bootstrap_post_import_hook fails
24849         Otherwise, it's far too easy to miss diagnostics emitted
24850         between gnulib-tool's output and that of running configure.
24851         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
24853 2012-01-17  Jim Meyering  <meyering@redhat.com>
24855         maint: enable sc_trailing_blank
24856         * build-aux/pmccabe.css: Remove trailing blanks.
24857         * doc/acl-cygwin.txt: Likewise.
24858         * doc/gnu-oids.texi: Likewise
24859         * cfg.mk: Enable sc_trailing_blank.
24860         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
24862 2012-01-17  Jim Meyering  <meyering@redhat.com>
24864         maint: enable sc_prohibit_openat_without_use
24865         * cfg.mk: Enable sc_prohibit_openat_without_use.
24866         Exempt lib/selinux-at.c.
24868 2012-01-17  Jim Meyering  <meyering@redhat.com>
24870         maint: enable sc_prohibit_cloexec_without_use
24871         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
24872         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
24874 2012-01-17  Jim Meyering  <meyering@redhat.com>
24876         maint: enable sc_prohibit_intprops_without_use
24877         * cfg.mk: Enable sc_prohibit_intprops_without_use
24878         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
24880 2012-01-17  Jim Meyering  <meyering@redhat.com>
24882         maint: enable sc_prohibit_hash_pjw_without_use
24883         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
24884         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
24885         to match any use of \<hash_pjw\>, i.e., not necessarily with a
24886         following " (".
24888 2012-01-17  Jim Meyering  <meyering@redhat.com>
24890         maint: enable double-word-prohibiting rule
24891         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
24892         Exempt three files.
24894 2012-01-17  Jim Meyering  <meyering@redhat.com>
24896         maint: remove empty lines at EOF, but excluding modules/*
24897         Apply syntax rules at home as well as abroad.  Most changes
24898         were induced by running this:
24899           make srcdir=. _build-aux=build-aux -f top/maint.mk \
24900             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
24901             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
24902         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
24903         Exempt modules/* and two binary files.
24904         Also exempt doc/INSTALL*, per request from Bruno Haible.
24905         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
24906         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
24907         * doc/Copyright/request-assign.future: Likewise.
24908         * doc/Copyright/request-disclaim.changes: Likewise.
24909         * doc/INSTALL: Likewise.
24910         * doc/INSTALL.ISO: Likewise.
24911         * doc/INSTALL.UTF-8: Likewise.
24912         * doc/acl-cygwin.txt: Likewise.
24913         * doc/acl-resources.txt: Likewise.
24914         * doc/fdl-1.2.texi: Likewise.
24915         * doc/fdl-1.3.texi: Likewise.
24916         * doc/fdl.texi: Likewise.
24917         * lib/argp-pin.c: Likewise.
24918         * lib/round.c: Likewise.
24919         * lib/unicase/u16-totitle.c: Likewise.
24920         * lib/unictype/block_test.c: Likewise.
24921         * lib/uninorm/canonical-decomposition.c: Likewise.
24922         * m4/README: Likewise.
24923         * m4/relocatable-lib.m4: Likewise.
24924         * tests/test-isnand-nolibm.c: Likewise.
24925         * tests/test-isnand.c: Likewise.
24926         * tests/uninorm/NormalizationTest.txt: Likewise.
24928 2012-01-17  Jim Meyering  <meyering@redhat.com>
24930         maint: add framework to run syntax-check rules against gnulib sources
24931         * cfg.mk: New file, to disable all currently-failing tests.
24932         We'll enable them one by one, as they are made to pass.
24933         * Makefile (sc_maint): New rule.
24935 2012-01-21  Bruno Haible  <bruno@clisp.org>
24937         stdint: Add support for Android.
24938         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
24939         include the system's <stdint.h>.
24940         Reported by Simon Josefsson <simon@josefsson.org>.
24942 2012-01-19  Jim Meyering  <meyering@redhat.com>
24944         bootstrap: add bootstrap_post_import_hook
24945         Bison does still need something like the gnulib_mk_hook whose
24946         invocation I had to remove along with slurp in commit 767ccd40.
24947         Technically, we could get along without it, but doing so would
24948         have required living with a warning and a mandatory post-bootstrap
24949         automake rerun.
24950         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
24951         (bootstrap_post_import_hook): New function.
24952         Invoke it after gnulib-tool --import and before autoreconf.
24954 2012-01-18  Jim Meyering  <meyering@redhat.com>
24956         gitlog-to-changelog: don't use "no_"-prefixed variable name
24957         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
24958         to enable both --cluster and --no-cluster.  Change variable name,
24959         s/\$no_cluster/$cluster/, and reverse usage to match.
24961         gitlog-to-changelog: use "||", not "or" in expressions
24962         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
24963         expressions.
24965 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
24967         gitlog-to-changelog: new option --no-cluster
24968         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
24969         clustering of adjacent commit messages.
24971 2012-01-17  Jim Meyering  <meyering@redhat.com>
24973         maint: spell file systems with two words, not one
24974         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
24975         two words, not one.
24977 2012-01-16  Jim Meyering  <meyering@redhat.com>
24979         bootstrap: add a FIXME comment to ensure we eventually remove the hack
24980         * build-aux/bootstrap (gnulib_tool_options): Add comment.
24982 2012-01-16  Eric Blake  <eblake@redhat.com>
24984         bootstrap: cater to autoconf 2.59
24985         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
24986         is not available.
24988         bootstrap: properly check for libtool
24989         * build-aux/bootstrap (libtoolize): Also run libtool when older
24990         usage is detected.
24992 2012-01-15  Bruno Haible  <bruno@clisp.org>
24994         Improve support for MSVC 9.
24995         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
24996         clashes on MSVC.
24997         * lib/fcntl.in.h: Likewise.
24998         * lib/stdlib.in.h: Likewise.
24999         * lib/sys_stat.in.h: Likewise.
25001 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
25003         gnupload: we hold the master copy of this script now
25004         For motivation and more information, see:
25005         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
25006         * build-aux/gnupload: Make it clear in the heading comments that the
25007         master copy of this file is maintained by gnulib.  Since we are at
25008         it, bump its copyright year and ...
25009         ($scriptversion): ... the date in its version.
25010         ($usage): Patches and bug reports should be sent to the gnulib list,
25011         not the automake one.
25012         * config/srclist.txt: Don't try to sync 'gnupload' from automake
25013         anymore.
25015 2012-01-15  Bruno Haible  <bruno@clisp.org>
25017         Fix module 'random'.
25018         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
25019         initstate, setstate are declared.
25021 2012-01-14  Bruno Haible  <bruno@clisp.org>
25023         Tests for module 'random'.
25024         * modules/random-tests: New file.
25025         * tests/test-random.c: New file, based on tests/test-random_r.c.
25027         New module 'random'.
25028         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
25029         declarations.
25030         * lib/random.c: New file, based on glibc/stdlib/random.c.
25031         * m4/random.m4: New file.
25032         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
25033         HAVE_RANDOM.
25034         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
25035         * modules/random: New file.
25036         * config/srclist.txt: Add an entry for random.c.
25037         * doc/posix-functions/random.texi: Mention the 'random' module.
25038         * doc/posix-functions/initstate.texi: Likewise.
25039         * doc/posix-functions/setstate.texi: Likewise.
25040         * doc/posix-functions/srandom.texi: Likewise.
25042 2012-01-12  Bruno Haible  <bruno@clisp.org>
25044         random_r: Use common idioms.
25045         * lib/random_r.c: Include <stdlib.h> first.
25047         random_r: Override incompatible API on AIX, OSF/1.
25048         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
25049         Override the system function if REPLACE_RANDOM_R is 1.
25050         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
25051         and OSF/1, set REPLACE_RANDOM_R.
25052         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
25053         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
25054         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
25055         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
25056         * doc/glibc-functions/random_r.texi: Likewise.
25057         * doc/glibc-functions/setstate_r.texi: Likewise.
25059         random_r: Support for MSVC 9.
25060         * lib/random_r.c: Include stdint.h, not inttypes.h.
25062 2012-01-12  Eric Blake  <eblake@redhat.com>
25064         inet_ntop: guard extra work by IF_LINT
25065         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
25066         better code generation when not checking for warnings.
25067         Suggested by Paul Eggert and Jim Meyering.
25069         strptime: fix regression on mingw
25070         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
25071         Fix regression.  Reported by Bruno Haible.
25073 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
25074             Bruno Haible  <bruno@clisp.org>
25076         copy-file: add error-code-returning variant.
25077         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
25078         (qcopy_file_preserving): New declaration.
25079         * lib/copy-file.c (qcopy_file_preserving): Renamed from
25080         copy_file_preserving. Change return type to 'int'. Don't emit an error
25081         message here.
25082         (copy_file_preserving): New function.
25083         * tests/test-copy-file.c: Include <stdlib.h>.
25084         (main): Test qcopy_file_preserving if the environment variable
25085         NO_STDERR_OUTPUT is set.
25086         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
25087         with NO_STDERR_OUTPUT
25088         * tests/test-copy-file-2.sh: Likewise.
25090 2012-01-10  Bruno Haible  <bruno@clisp.org>
25092         copy-file: Use 'quote' module consistently.
25093         * lib/copy-file.c (copy_file_preserving): Use quote().
25095         copy-file: Refactor.
25096         * lib/copy-file.c: Include quote.h.
25097         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
25098         message here.
25099         * modules/copy-file (Depends-on): Add quote.
25101         acl: Export qcopy_acl.
25102         * lib/acl.h (qcopy_acl): New declaration.
25103         * lib/copy-acl.c (qcopy_acl): Make non-static.
25105         acl: Rename a local variable.
25106         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
25108         acl: Align return values of copy_acl and qcopy_acl.
25109         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
25110         maybe < -1.
25112 2012-01-11  Eric Blake  <eblake@redhat.com>
25114         strptime: silence gcc warnings
25115         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
25116         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
25117         Reported by Daniel P. Berrange.
25119         inet_ntop: silence gcc warning
25120         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
25121         Reported by Daniel P. Berrange.
25123 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
25125         getloadavg test: skip the test on GNU/Linux without /proc mounted
25126         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
25127         file.  When /proc is not mounted, it always fails with ENOENT.
25128         * tests/test-getloadavg.c (main): Treat ENOENT return code from
25129         getloadavg(3) the same way as ENOSYS and ENOTSUP.
25131 2012-01-10  Bruno Haible  <bruno@clisp.org>
25133         regex: Avoid link error on MSVC 9.
25134         * modules/regex (Depends-on): Add wctype.
25136 2012-01-10  Bruno Haible  <bruno@clisp.org>
25138         doc: Mention --with-tests option.
25139         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
25140         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
25141         --with-tests.
25142         Reported by Reuben Thomas.
25144 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
25146         users.txt: order package names lexicographically.
25147         * users.txt: Order package names lexicographically.
25149 2012-01-10  Jim Meyering  <meyering@redhat.com>
25151         maint.mk: fix description in comment
25152         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
25154         ignore-value: remove deprecated ignore_ptr function
25155         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
25156         * NEWS: Note this.
25158 2012-01-09  Jim Meyering  <meyering@redhat.com>
25160         test-init.sh: avoid a subshell
25161         * tests/test-init.sh: Remove protective subshell.
25162         Suggested by Bernhard Voelker.  While a subshell is normally
25163         required to protect against older shells (Solaris, FreeBSD) that
25164         warn about a missing program before performing redirection, the
25165         shell-selection tests performed by init.sh probably exclude any
25166         offending shell.
25168 2012-01-08  Bruno Haible  <bruno@clisp.org>
25170         setlocale tests: Avoid test failure on Solaris 11.0.
25171         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
25172         variable.
25174 2012-01-08  Bruno Haible  <bruno@clisp.org>
25176         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
25177         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
25178         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
25179         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
25180         macro.
25181         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
25182         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
25183         * lib/spawn_faction_addopen.c: Add workaround implementation if
25184         HAVE_WORKING_POSIX_SPAWN.
25185         * modules/spawn (Makefile): Substitute
25186         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
25187         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
25188         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
25189         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
25190         (Depends-on): Update conditions.
25191         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
25192         the Solaris 11 bug.
25194 2012-01-08  Bruno Haible  <bruno@clisp.org>
25196         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
25197         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
25198         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
25199         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
25200         macro.
25201         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
25202         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
25203         * lib/spawn_faction_adddup2.c: Add workaround implementation if
25204         HAVE_WORKING_POSIX_SPAWN.
25205         * modules/spawn (Makefile): Substitute
25206         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
25207         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
25208         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
25209         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
25210         (Depends-on): Update conditions.
25211         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
25212         the Solaris 11 bug.
25214 2012-01-08  Bruno Haible  <bruno@clisp.org>
25216         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
25217         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
25218         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
25219         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
25220         HAVE_WORKING_POSIX_SPAWN.
25221         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
25222         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
25223         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
25224         * lib/spawn_faction_addclose.c: Add workaround implementation if
25225         HAVE_WORKING_POSIX_SPAWN.
25226         * modules/spawn (Makefile): Substitute
25227         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
25228         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
25229         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
25230         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
25231         (Depends-on): Update conditions.
25232         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
25233         the Solaris 11 bug.
25235 2012-01-08  Bruno Haible  <bruno@clisp.org>
25237         doc: Update for Solaris 11.0.
25238         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
25239         * m4/printf.m4: Update comments.
25241 2012-01-08  Bruno Haible  <bruno@clisp.org>
25243         mktime: Avoid compilation error on Solaris 11.
25244         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
25246 2012-01-08  Bruno Haible  <bruno@clisp.org>
25248         doc: Small fix.
25249         * doc/posix-headers/nl_types.texi: Correct platforms list.
25251 2012-01-08  Simon Josefsson  <simon@josefsson.org>
25253         Add lgpl-3.0 module.
25254         * MODULES.html.sh (Support for building documentation): Add
25255         lgpl-3.0.
25256         * modules/lgpl-3.0: New file.
25258 2012-01-08  Jim Meyering  <meyering@redhat.com>
25260         select.c: indent with spaces, not TABs
25261         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
25263 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
25265         quotearg: do not use grave accent for left quote
25266         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
25267         locale_quoting_style.
25268         (quotearg_buffer_restyled): Fix example.
25269         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
25271 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
25273         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
25274         Most programs do not have translation catalogs for English and much
25275         less separate catalogs for British and American English.  Drop the
25276         suggestion to translators about these two, and provide it
25277         automatically for Unicode locales.  Like most programs, even those
25278         using American English, we use single quotation marks.  This conflicts
25279         with the American typographic convention, but works better when you
25280         cite the entire error message within double quotes.  It also tries not
25281         to clash with established practice and with what non-gnulib programs
25282         will usually do.
25283         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
25284         using an UTF-8 or GB-18030 locale.  The list of other locales with
25285         quotes was provided by Bruno Haible.
25286         (quotearg_buffer_restyled): Adjust instructions to translators.
25287         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
25288         text, since this would be wrong when using Unicode.
25289         * modules/quotearg: Depend on c-strcaseeq.
25291 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
25293         quotearg: fix Wikipedia link
25294         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
25296 2012-01-07  Simon Josefsson  <simon@josefsson.org>
25298         Fix for mingw with MSVC9.
25299         * m4/ld-version-script.m4: Check that compiler rejects version
25300         scripts with syntax errors.  Reported by Bruno Haible
25301         <bruno@clisp.org>.
25303 2012-01-06  Bruno Haible  <bruno@clisp.org>
25305         Talk about "native Windows API", not "Woe32".
25306         * lib/accept4.c: Update comments to mention native Windows.
25307         * lib/execute.c: Likewise.
25308         * lib/fatal-signal.c: Likewise.
25309         * lib/localcharset.c: Likewise.
25310         * lib/nanosleep.c: Likewise.
25311         * lib/nl_langinfo.c: Likewise.
25312         * lib/pclose.c: Likewise.
25313         * lib/pipe-filter-gi.c: Likewise.
25314         * lib/pipe-filter-ii.c: Likewise.
25315         * lib/pipe.c: Likewise.
25316         * lib/pipe2.c: Likewise.
25317         * lib/popen.c: Likewise.
25318         * lib/progreloc.c: Likewise.
25319         * lib/relocatable.c: Likewise.
25320         * lib/sigaction.c: Likewise.
25321         * lib/sigprocmask.c: Likewise.
25322         * lib/spawn-pipe.h: Likewise.
25323         * lib/spawn-pipe.c: Likewise.
25324         * lib/spawni.c: Likewise.
25325         * lib/stat-time.h: Likewise.
25326         * lib/w32spawn.h: Likewise.
25327         * tests/test-isatty.c: Likewise.
25328         * lib/config.charset: More comments.
25329         * doc/gnulib-intro.texi: Mention native Windows.
25330         * doc/posix-functions/_Exit_C99.texi: Likewise.
25331         * doc/posix-headers/fcntl.texi: Likewise.
25333 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
25335         argp: Avoid crash if translator uses % characters in a translation.
25336         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
25337         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
25339 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
25341         doc: C11 and C++11 are now official
25342         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
25343         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
25344         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
25345         * modules/stdalign:
25346         Replace references to draft C1X to C11, and to draft C++0X to C++11.
25348 2012-01-06  Bruno Haible  <bruno@clisp.org>
25350         uc-is-grapheme-break tests: Tweak.
25351         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
25352         message.
25354 2012-01-06  Bruno Haible  <bruno@clisp.org>
25356         test-init.sh: correct the test for diff -u
25357         * tests/test-init.sh: Also redirect stdout to /dev/null.
25359 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
25361         Use ', not `, for quoting output.
25362         * build-aux/announce-gen (usage, sizes, print_news_deltas)
25363         (print_changelog_deltas, get_tool_versions, main program):
25364         * build-aux/git-version-gen:
25365         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
25366         * build-aux/move-if-change (help):
25367         * build-aux/useless-if-before-free (usage, main program):
25368         * check-module (parse_module_file, usage)
25369         (find_included_lib_files, check_module):
25370         * lib/argmatch.c (main) [TEST]:
25371         * lib/argp-help.c (_help):
25372         * lib/getopt1.c (main) [TEST]:
25373         * lib/git-merge-changelog.c (usage):
25374         * lib/xstrtol-error.c (xstrtol_error):
25375         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
25376         * m4/argz.m4 (gl_FUNC_ARGZ):
25377         * m4/bison.m4 (gl_BISON):
25378         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
25379         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
25380         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
25381         * m4/fpending.m4 (gl_PREREQ_FPENDING):
25382         * m4/gc-random.m4 (gl_GC_RANDOM):
25383         * m4/intl.m4 (gt_CHECK_DECL):
25384         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
25385         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
25386         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
25387         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
25388         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
25389         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
25390         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
25391         * tests/test-dirname.c (main):
25392         * tests/test-getpass.c (main):
25393         * tests/test-iconvme.c (main):
25394         * tests/test-parse-datetime.c (LOG):
25395         * tests/test-xstrtoimax.sh:
25396         * tests/test-xstrtol.sh:
25397         * tests/test-xstrtoll.sh:
25398         * tests/test-xstrtoumax.sh:
25399         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
25400         * top/GNUmakefile (abort-due-to-no-makefile):
25401         Quote 'like this', not `like this', as per the recent change to
25402         the GNU coding standards.
25404 2012-01-05  Bruno Haible  <bruno@clisp.org>
25406         strtoimax: Don't force a replacement on systems where intmax_t is int.
25407         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
25408         'intmax_t' is not larger than 'int'.
25409         Reported by Pádraig Brady <P@draigBrady.com>.
25411 2012-01-05  Bruno Haible  <bruno@clisp.org>
25413         doc: Mention NetBSD bugs.
25414         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
25415         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
25417 2012-01-05  Bruno Haible  <bruno@clisp.org>
25419         strtoumax tests: Enhance tests.
25420         * tests/test-strtoumax.c (main): Add tests for large values.
25422 2012-01-05  Bruno Haible  <bruno@clisp.org>
25424         strtoimax: Work around AIX 5.1 bug.
25425         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
25426         definition.
25427         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
25428         Set HAVE_STRTOIMAX.
25429         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
25430         REPLACE_STRTOIMAX.
25431         * modules/inttypes-incomplete (Makefile.am): Substitute
25432         REPLACE_STRTOIMAX.
25433         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
25434         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
25435         (Depends-on): Update conditions.
25436         * tests/test-strtoimax.c (main): Add tests for large values.
25437         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
25439 2012-01-05  Bruno Haible  <bruno@clisp.org>
25441         inttypes: Modernize.
25442         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
25443         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
25444         (Makefile.am): Update inttypes.h rule.
25446 2012-01-05  Jim Meyering  <meyering@redhat.com>
25448         init.sh: don't waste a subshell just to redirect stderr
25449         * tests/init.sh: In testing for diff -u and diff -c, use a
25450         stderr-redirecting exec inside `...` rather than a subshell.
25452         test-init.sh: avoid failure on HP-UX 11.00
25453         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
25454         resolves to diff -c or cmp.  Reported by Bruno Haible.
25456 2012-01-05  Bruno Haible  <bruno@clisp.org>
25458         Tests for module 'strtoull'.
25459         * modules/strtoull-tests: New file.
25460         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
25462 2012-01-05  Bruno Haible  <bruno@clisp.org>
25464         Tests for module 'strtoll'.
25465         * modules/strtoll-tests: New file.
25466         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
25468 2012-01-05  Bruno Haible  <bruno@clisp.org>
25470         Tests for module 'strtoul'.
25471         * modules/strtoul-tests: New file.
25472         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
25474 2012-01-05  Bruno Haible  <bruno@clisp.org>
25476         Tests for module 'strtol'.
25477         * modules/strtol-tests: New file.
25478         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
25480 2012-01-04  Jim Meyering  <meyering@redhat.com>
25482         test-init.sh: accommodate Solaris 5.10's different diff -u output
25483         * tests/test-init.sh: Also exempt @@ lines from the comparison
25484         of diff output, since Solaris 5.10 and GNU diff formats differ.
25485         Reported by Stefano Lattarini.
25487 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
25489         test-posixtm: don't assume signed integer wraparound
25490         * tests/test-posixtm.c (main): Don't assume wraparound semantics
25491         after signed integer overflow.  Inspired by (though it may not
25492         fix) Bruno Haible's bug report in
25493         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
25495         Spell out "Windows 9x" and "Windows XP".
25496         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
25497         "Windows 9x" and "WinXP" with "Windows XP".
25499 2012-01-04  Jim Meyering  <meyering@redhat.com>
25501         test-vc-list-files-cvs.sh: remove obsolete comment
25502         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
25503         double exit.  Now that's all encapsulated via skip_ and Exit.
25505 2012-01-04  Bruno Haible  <bruno@clisp.org>
25507         Talk about "native Windows API", not "Win32".
25508         * lib/classpath.c: Update comments to mention native Windows.
25509         * lib/csharpexec.c: Likewise.
25510         * lib/dup2.c: Likewise.
25511         * lib/error.c: Likewise.
25512         * lib/fcntl.c: Likewise.
25513         * lib/filename.h: Likewise.
25514         * lib/findprog.c: Likewise.
25515         * lib/get-rusage-as.c: Likewise.
25516         * lib/get-rusage-data.c: Likewise.
25517         * lib/getpagesize.c: Likewise.
25518         * lib/javaexec.c: Likewise.
25519         * lib/msvc-inval.c: Likewise.
25520         * lib/msvc-nothrow.c: Likewise.
25521         * lib/nanosleep.c: Likewise.
25522         * lib/nonblocking.c: Likewise.
25523         * lib/printf-parse.c: Likewise.
25524         * lib/setlocale.c: Likewise.
25525         * lib/sigaction.c: Likewise.
25526         * lib/strerror_r.c: Likewise.
25527         * lib/tmpdir.c: Likewise.
25528         * lib/vasnprintf.c: Likewise.
25529         * lib/w32spawn.h: Likewise.
25530         * lib/waitpid.c: Likewise.
25531         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
25532         * m4/locale-ar.m4: Likewise.
25533         * m4/locale-fr.m4: Likewise.
25534         * m4/locale-ja.m4: Likewise.
25535         * m4/locale-tr.m4: Likewise.
25536         * m4/locale-zh.m4: Likewise.
25537         * m4/printf.m4: Likewise.
25538         * tests/test-cloexec.c: Likewise.
25539         * tests/test-copy-acl.sh: Likewise.
25540         * tests/test-copy-file.sh: Likewise.
25541         * tests/test-file-has-acl.sh: Likewise.
25542         * tests/test-set-mode-acl.sh: Likewise.
25543         * tests/test-dup-safer.c: Likewise.
25544         * tests/test-dup2.c: Likewise.
25545         * tests/test-dup3.c: Likewise.
25546         * tests/test-fcntl.c: Likewise.
25547         * tests/test-nonblocking-pipe.h: Likewise.
25548         * tests/test-nonblocking-socket.h: Likewise.
25549         * tests/test-pipe.c: Likewise.
25550         * tests/test-pipe2.c: Likewise.
25551         * tests/test-spawn-pipe-child.c: Likewise.
25552         * doc/acl-resources.txt: Likewise.
25553         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
25554         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
25555         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
25556         * lib/localcharset.c: Update comments to mention native Windows.
25557         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
25558         * lib/localename.c: Likewise.
25559         * lib/progreloc.c: Likewise.
25560         * lib/relocatable.c: Likewise.
25561         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
25562         (windows_compute_revents): Renamed from win32_compute_revents.
25563         (windows_compute_revents_socket): Renamed from
25564         win32_compute_revents_socket.
25565         * lib/select.c: Update comments to mention native Windows.
25566         (windows_poll_handle): Renamed from win32_poll_handle.
25567         * m4/threadlib.m4: Update comments to mention native Windows.
25568         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
25569         --enable-threads=windows instead of --enable-threads=win32. Set
25570         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
25571         * lib/glthread/lock.h: Update comments to mention native Windows.
25572         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
25573         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
25574         USE_WIN32_THREADS.
25575         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
25576         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
25577         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
25578         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
25579         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
25580         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
25581         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
25582         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
25583         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
25584         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
25585         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
25586         * tests/test-tls.c: Likewise.
25587         Rationale:
25588         Microsoft renamed the "Win32 API" to "Windows API", as it is available
25589         on both 32-bit and 64-bit Windows systems.
25590         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
25591         line of distinction is between "native Windows" on one side and Unix/
25592         POSIX systems on the other side. More details in
25593         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
25594         Suggested by Paul Eggert.
25596 2012-01-03  Bruno Haible  <bruno@clisp.org>
25598         isatty: Support for MSVC 9.
25599         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
25600         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
25601         (_isatty_nothrow): New function.
25602         (isatty): Use it instead of _isatty.
25603         (IsConsoleHandle): Add comment, from Paolo Bonzini.
25604         * lib/poll.c (IsConsoleHandle): Likewise.
25605         * lib/select.c (IsConsoleHandle): Likewise.
25606         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
25607         (gl_PREREQ_ISATTY): New macro.
25608         * modules/isatty (Depends-on): Add msvc-inval.
25609         (configure.ac): Invoke gl_PREREQ_ISATTY.
25611 2012-01-03  Jim Meyering  <meyering@redhat.com>
25613         maint.mk: remove temporary transition aid from over 1.5 years ago
25614         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
25615         purpose was to aid in the transition (avoiding silent malfunction)
25616         from that old name to the new _sc_search_regexp.  This shim was
25617         added by commit 219c504b.
25619         init.sh: do not try to accommodate compare arguments starting with "-"
25620         * tests/init.sh (compare_dev_null_): Do not try to accommodate
25621         compare arguments that start with "-".  Besides, we do not worry
25622         about this when invoking diff or cmp; why start now with sed?
25623         Using "--" to separate options from argument would trigger sed
25624         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
25625         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
25627 2012-01-02  Bruno Haible  <bruno@clisp.org>
25629         Enhance tests for module 'isatty'.
25630         * modules/isatty-tests (Depends-on): Add pipe-posix.
25631         * tests/test-isatty.c: Include <fcntl.h>.
25632         (DEV_NULL): New macro.
25633         (main): Test the resut of isatty() also on regular files, pipes, and
25634         /dev/null.
25636         New module 'isatty'.
25637         * lib/unistd.in.h (isatty): New declaration.
25638         * lib/isatty.c: New file, based on an idea of
25639         Bastien Roucariès <roucaries.bastien@gmail.com>.
25640         * m4/isatty.m4: New file.
25641         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
25642         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
25643         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
25644         REPLACE_ISATTY.
25645         * modules/isatty: New file.
25646         * doc/posix-functions/isatty.texi: Mention the new module.
25647         Suggested by Paolo Bonzini.
25649 2012-01-02  Bruno Haible  <bruno@clisp.org>
25651         canonicalize: Tweak 2011-12-29 commit.
25652         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
25653         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
25655 2012-01-02  Jim Meyering  <meyering@redhat.com>
25657         gitlog-to-changelog: describe input syntax in --help output
25658         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
25660         gitlog-to-changelog: fix typo in --help: show backslash before email @
25661         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
25662         in sources, but not in actual output.
25664 2011-12-30  Jim Meyering  <meyering@redhat.com>
25666         gitlog-to-changelog: don't malfunction when name contains %-directive
25667         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
25668         in a name string cause trouble.  E.g., with a user name of "%s",
25669         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
25671 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
25673         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
25674         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
25675         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
25676         the "  (tiny change)" notation that is appended to the standard
25677         ChangeLog "date  name  email" header line.
25679 2012-01-01  Jim Meyering  <meyering@redhat.com>
25681         test-framework-sh: init.sh: fix "make dist" failure
25682         When using gnulib-tool's --with-tests option and any module that
25683         depends on test-framework-sh, "make dist" would fail due to the
25684         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
25685         in the gltests directory, and not in the gllib/ directory.
25686         One way to work around that is to move the EXTRA_DIST += init.sh
25687         from the primary module to the -tests one:
25688         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
25689         * modules/test-framework-sh (Makefile.am): ...not here.
25690         Reported by Tom G. Christensen in
25691         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
25693         version-etc: update copyright year reported by --version
25694         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
25696 2011-12-31  Pádraig Brady  <P@draigBrady.com>
25698         canonicalize: only stat() if required
25699         * lib/canonicalize.c (canonicalize_filename_mode):
25700         Avoid calling l?stat() when both CAN_MISSING,
25701         and CAN_NOLINKS are set, as we neither need
25702         to resolve symlinks or test component existence.
25704 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
25706         doc: cover st_ino issues once; add OpenVMS etc.
25707         * doc/posix-functions/stat.texi (stat):
25708         * doc/posix-functions/lstat.texi (lstat):
25709         * doc/posix-functions/fstatat.texi (fstatat):
25710         * doc/posix-functions/fstat.texi (fstat):
25711         Move general 'struct stat' stuff to sys_stat.texi,
25712         leaving behind a pointer.
25713         * doc/posix-headers/sys_stat.texi (sys/stat.h):
25714         Merge duplicate info about 'struct stat' problems into here.
25715         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
25716         and suggest partial workarounds.
25718         same-inode: port to OpenVMS
25719         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
25720         three st_ino values.
25722 2011-12-30  Pádraig Brady  <P@draigBrady.com>
25724         canonicalize: fix references to stat() and lstat()
25725         * lib/canonicalize.c (canonicalize_filename_mode):
25726         Ensure references always resolve to a replacement
25727         function if required (even via a macro).
25729 2011-12-30  Jim Meyering  <meyering@redhat.com>
25731         gitlog-to-changelog: remove a little duplication
25732         * build-aux/gitlog-to-changelog (main): Grep @lines once,
25733         rather than twice.
25735 2011-12-29  Pádraig Brady  <P@draigBrady.com>
25737         canonicalize: add support for not resolving symlinks
25738         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
25739         indicate we don't want to follow symlinks.  Also
25740         provide CAN_MODE_MASK to aid setting these existing
25741         mutually exclusive values.
25742         * lib/canonicalize.c (canonicalize_filename_mode):
25743         Extract the flags from can_mode parameter, which
25744         are currently just used to select between stat()
25745         and lstat().  Also ensure that mutually exclusive
25746         values are flagged immediately as invalid.
25747         * tests/test-canonicalize.c: Verify symlinks are
25748         not followed, and that invalid flag combinations
25749         are diagnosed.
25751 2011-12-25  Jim Meyering  <meyering@redhat.com>
25753         gitlog-to-changelog: do not clump multi-paragraph entries
25754         Identical header lines (date,name,email+coauthors) are suppressed,
25755         thus putting all entries with those same characteristics under
25756         a single header.  However, when a log entry consists of two or
25757         more paragraphs, it may not be clear where it starts and ends.
25758         This change makes it so that such an entry is always separated
25759         from others by a header line, even when that header would
25760         otherwise be suppressed.
25761         * build-aux/gitlog-to-changelog: Implement the above.
25762         Inspired by a related request from Stefano Lattarini in
25763         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
25765 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
25767         announce-gen: fix `cmd' typo in diagnostic
25768         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
25769         diagnostic: a missing '$' meant that the command was not output.
25771 2011-12-23  Jim Meyering  <meyering@redhat.com>
25773         test-framework-sh: distribute init.sh
25774         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
25775         Otherwise, "make -C gnulib-tests check" (at least in grep) would
25776         fail due to the lack of init.sh.
25778         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
25779         * modules/atexit-tests: Rather than listing tests/init.sh,
25780         now that there's a module for it, simply depend on that new module.
25781         * modules/closein-tests: Likewise.
25782         * modules/exclude-tests: Likewise.
25783         * modules/getcwd-tests: Likewise.
25784         * modules/perror-tests: Likewise.
25785         * modules/pread-tests: Likewise.
25786         * modules/pwrite-tests: Likewise.
25787         * modules/vc-list-files-tests: Likewise.
25788         * modules/verify-tests: Likewise.
25789         * modules/xalloc-die-tests: Likewise.
25790         * modules/xstrtoimax-tests: Likewise.
25791         * modules/xstrtol-tests: Likewise.
25792         * modules/xstrtoll-tests: Likewise.
25793         * modules/xstrtoumax-tests: Likewise.
25794         * modules/yesno-tests: Likewise.
25796 2011-12-22  Jim Meyering  <meyering@redhat.com>
25798         test-framework-sh: add minimal tests of init.sh's compare function
25799         * modules/test-framework-sh-tests: New file.
25800         * tests/test-init.sh: New file.
25802         test-framework-sh: new module
25803         * modules/test-framework-sh: New file.
25804         * MODULES.html.sh (Support for maintaining and releasing projects):
25805         List it.
25807         init.sh: do not emit simulated diff output to stderr
25808         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
25810 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
25812         .gitignore: ignore gnulib.dvi and regex.info
25813         * doc/.gitignore:add gnulib.dvi and regex.info
25815 2011-12-22  Jim Meyering  <meyering@redhat.com>
25817         init.sh: correct previous change
25818         * tests/init.sh (compare): My previous change was wrong.
25819         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
25821         init.sh: avoid unwarranted test failure when using "set -e"
25822         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
25823         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
25824         a use like "compare exp out" would get evoke an unconditional failure.
25826 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
25828         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
25829         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
25830         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
25831         autoreconf that did not.
25832         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
25833         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
25835 2011-12-17  Jim Meyering  <meyering@redhat.com>
25837         bootstrap: remove some now-unneeded code
25838         This script arose back when gnulib-tool was young.
25839         Since then, it has seen improvements that render much of this
25840         script unnecessary.  In particular, it can now make symlinks
25841         to the files it uses.  Also, I no longer see as much value in
25842         marking files as read-only via comments.
25843         If you relied on the symlink-creation feature of the preceding
25844         version of this script, you can get most of that functionality
25845         by adding the --symlink option to the definition of
25846         gnulib_tool_option_extras in your bootstrap.conf file.
25847         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
25848         Run autopoint and libtoolize *before* gnulib-tool.
25849         After it, run an abbreviated autoreconf, rather than a loop around
25850         all tools.
25851         (slirp, bt_mark_as_generated): Remove functions.
25853 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
25855         ftoastr: fix typo
25856         * lib/ftoastr.h: Fix misspelling in comment.
25858 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
25860         * top/README-release: fix punctuation.
25862 2011-12-17  Jim Meyering  <meyering@redhat.com>
25864         bootstrap: correct the recent buildreq change
25865         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
25866         had no effect.
25867         * build-aux/bootstrap (buildreq): Bracket each search term with
25868         "*...*", so that the shell "case" statement works as intended.
25869         Add comments.
25871 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
25873         build: let bootstrap resort to wget when downloading .po files
25874         * build-aux/bootstrap (download_po_files): Fallback to wget when
25875         downloading the .po files via rsync fails.  This is necessary to
25876         bootstrap from behind a strict firewall.
25878 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
25880         stdint: don't assume C++11 when compiling with g++
25881         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
25882         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
25883         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
25884         work also in C++ before C++11, as that improperly inhibits
25885         generating a substitute stdint.h for that case.
25887 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
25889         alloca: protect comment from gnulib-tool
25890         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
25891         that gnulib-tool doesn't think it's a license, and munge it to
25892         say "GCC version 3".
25894 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
25896         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
25897         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
25898         $(abs_top_builddir) instead of $(top_builddir).
25900 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
25902         strftime-tests: also test nanoseconds
25903         * tests/test-strftime.c (T): Add a test of %N.
25905 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
25907         inttypes, stdint: add C++11 support
25908         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
25909         when including inttypes.h and stdint.h.  Support this change to
25910         the standard.
25911         * doc/posix-headers/inttypes.texi (inttypes.h):
25912         * doc/posix-headers/stdint.texi (stdint.h): Document this.
25913         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
25914         Define if not defined already, for the benefit of pre-C++11 hosts.
25915         Define the standard format macros (e.g., PRId8) always.
25916         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
25917         Likewise, if __cpluspus.  Define the standard constant and limit
25918         macros (e.g., INT8_C, INT8_MAX) always.
25919         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
25920         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
25921         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
25922         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
25923         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
25924         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
25925         Likewise.
25927 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
25929         nonblocking tests: Fix test failure on Linux/PPC.
25930         Suggested by Prerna Saxena in
25931         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
25932         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
25933         Set to 1100000.
25935 2011-12-12  Jim Meyering  <meyering@redhat.com>
25937         argmatch: don't hard-code `' when listing valid option arguments
25938         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
25939         use the quote function to add quotes.  Use fputs rather than
25940         fprintf for the format string with no format directive.
25942 2011-12-07  Eric Blake  <eblake@redhat.com>
25944         bootstrap: detect tools required by gnulib-tool
25945         * build-aux/bootstrap (buildreq): Provide minimum implicit
25946         dependencies.
25947         * DEPENDENCIES: Mention patch as a prereq.
25949 2011-12-04  Bruno Haible  <bruno@clisp.org>
25951         sethostname: Port to Windows platforms.
25952         * lib/sethostname.c: Provide an alternate implementation for Windows
25953         platforms.
25954         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
25955         (main): Skip the test if sethostname() fails with EPERM. On Windows
25956         platforms, don't check the result of gethostname().
25958 2011-12-04  Bruno Haible  <bruno@clisp.org>
25959             Jim Meyering  <meyering@redhat.com>
25961         tests: Avoid spurious error message on platforms without mktemp program.
25962         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
25964 2011-12-04  Bruno Haible  <bruno@clisp.org>
25966         sethostname: Fix documentation.
25967         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
25968         "not fixed" section.
25970 2011-12-03  Bruno Haible  <bruno@clisp.org>
25972         gnulib-tool: Verify that the License field is present and non-empty.
25973         * gnulib-tool (func_get_license_raw): New function, extracted from
25974         func_get_license.
25975         (func_get_license): Use it. Warn if the module is not a test module and
25976         has no license.
25977         Suggested by Jim Meyering.
25979 2011-12-03  Bruno Haible  <bruno@clisp.org>
25981         sethostname tests: Fix link error on mingw.
25982         * tests/test-sethostname1.c: New file, extracted from
25983         tests/test-sethostname.c.
25984         * tests/test-sethostname2.c: New file, extracted from
25985         tests/test-sethostname.c.
25986         * tests/test-sethostname.c: Remove file.
25987         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
25988         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
25989         (Depends-on): Add gethostname.
25990         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
25991         Link the latter with $(GETHOSTNAME_LIB).
25993         sethostname tests: Fix compilation error on mingw.
25994         * tests/test-sethostname.c: Don't include <sys/types.h>.
25995         (geteuid): Use a dummy value without uid_t.
25996         * modules/sethostname-tests (Depends-on): Remove sys_types.
25998         sethostname tests: Avoid a gcc warning.
25999         * tests/test-sethostname.c (main): Remove an unused variable.
26001         Tweak last commit.
26002         * modules/sethostname-tests (Files): Sort by decreasing importance.
26003         (configure.ac): Check for geteuid.
26004         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
26005         the test when there's nothing to test. Drop an unnecessary cast.
26006         Improve an error message. Verify that the final sethostname() call
26007         succeeds.
26009 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
26011         Add a test suite for the sethostname module.
26012         * modules/sethostname-tests: New file.  A test program
26013         for the sethostname module.
26014         * tests/test-sethostname.c: Likewise.
26016 2011-12-03  Bruno Haible  <bruno@clisp.org>
26018         Tweak last commit.
26019         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
26020         Fix preprocessor directives indentation. Fix typos.
26021         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
26022         * modules/unistd (Makefile): Likewise.
26024 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
26026         Integrate the sethostname module into unistd.
26027         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
26028         into the unistd.h header.
26029         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
26030         preprocessor directives.
26031         * modules/unistd: Setup the Makefile substitutions of the
26032         SETHOSTNAME preprocessor directives.
26034 2011-12-03  Bruno Haible  <bruno@clisp.org>
26036         Tweak last commit.
26037         * lib/sethostname.c: Don't include <string.h>.
26038         (sethostname): No need to copy the argument string to the stack. Don't
26039         call clearerr. Preserve errno when fprintf failed.
26040         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
26041         Don't invoke AC_REPLACE_FUNCS.
26042         * modules/sethostname (Link): Remove empty section.
26043         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
26044         failure problem.
26046 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
26048         New module 'sethostname'.
26049         * lib/sethostname.c (sethostname): New file.  Provide sethostname
26050         for systems that lack it.
26051         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
26052         sethostname declaration and function.
26053         * modules/sethostname: New file.  Define the sethostname module.
26055 2011-12-03  Bruno Haible  <bruno@clisp.org>
26057         Tweak last commit.
26058         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
26060 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
26062         Split the HOST_NAME_MAX detection into a separate m4 macro.
26063         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
26064         macro so it can be used by the pending sethostname module.
26066 2011-12-03  Bruno Haible  <bruno@clisp.org>
26068         Fix module descriptions syntax.
26069         * modules/argv-iter (License): Fix syntax.
26070         * modules/di-set (License): Likewise.
26071         * modules/ino-map (License): Likewise.
26072         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
26074 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
26076         stdalign: port to Clang 3.0
26077         Problem reported by Simon Josefsson in
26078         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
26079         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
26080         which has <stdalign.h> but which does not define alignof.
26081         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
26083 2011-12-01  Eric Blake  <eblake@redhat.com>
26085         mktempd: silence dd usage
26086         * build-aux/mktempd (rand_bytes): Silence dd.
26088 2011-11-30  Simon Josefsson  <simon@josefsson.org>
26090         manywarnings: Don't mention gcc version in docstring.
26091         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
26092         Jim Meyering <meyering@redhat.com>.
26094 2011-11-30  Jim Meyering  <meyering@redhat.com>
26096         hash: mark a few floating point constants with "f" suffix
26097         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
26098         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
26099         floating point constants with "f", since they're destined to be
26100         saved/used as "float"s.
26102 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
26104         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
26105         * tests/test-float.c (test_long_double): Correct and re-enable the
26106         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
26108 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
26110         Avoid subtracting two pointers that don't point into the same block.
26111         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
26112         only pointers into the same memory block are subtracted. We cannot
26113         assume that sizeof (ptrdiff_t) == sizeof (void *).
26115 2011-11-29  Eric Blake  <eblake@redhat.com>
26117         maint.mk: add syntax check for use of compare from init.sh
26118         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
26119         moved here from coreutils.
26121         manywarnings: drop -Wunsuffixed-float-constants
26122         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
26123         '1.0D', which is the only way to silence this warning for 'double'.
26125 2011-11-29  Jim Meyering  <meyering@redhat.com>
26127         hash: mark compute_bucket_size with the pure attribute
26128         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
26130         quotearg, propername: correct pragma guard expression
26131         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
26132         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
26134 2011-11-28  Jim Meyering  <meyering@redhat.com>
26136         propername: do not mark proper_name with the const attribute
26137         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
26138         since it examines data pointed to by its parameter.
26139         * lib/propername.c (proper_name): Instead, add a pragma to suppress
26140         the suggestion from -Wsuggest-attribute=const.
26142         propername: mark one more function as const
26143         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
26145 2011-11-27  Jim Meyering  <meyering@redhat.com>
26147         mark functions with const and pure attributes
26149         Mark functions per suggestions from gcc-4.6 when using these options:
26150         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
26151         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
26152         Follow these guidelines: when possible, apply the attribute to
26153         an extern declaration, not to its definition.  Apply it to the
26154         definition only when the definition is static.
26155         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
26156         * lib/argv-iter.h (argv_iter_n_args): Likewise.
26157         * lib/base64.h (isbase64): Likewise.
26158         * lib/basename-lgpl.c (last_component, base_len): Likewise.
26159         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
26160         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
26161         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
26162         (c_tolower, c_toupper): Likewise.
26163         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
26164         * lib/chdir-long.c (find_non_slash): Likewise.
26165         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
26166         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
26167         * lib/file-type.h (file_type): Likewise.
26168         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
26169         * lib/filevercmp.c (verrevcmp): Likewise.
26170         * lib/freadahead.h (freadahead): Likewise.
26171         * lib/fts.c (fts_maxarglen): Likewise.
26172         * lib/hash-pjw.h (hash_pjw): Likewise.
26173         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
26174         * lib/hash.c (is_prime, next_prime): Likewise.
26175         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
26176         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
26177         (hash_table_ok, hash_get_first, hash_string): Likewise.
26178         (compute_bucket_size): Likewise.
26179         * lib/i-ring.h (i_ring_empty): Likewise.
26180         * lib/isnan.c (isnanl): Likewise.
26181         * lib/math.h (isnanl, rpl_isnanl): Likewise.
26182         * lib/memcasecmp.h (memcasecmp): Likewise.
26183         * lib/memchr2.h (memchr2): Likewise.
26184         * lib/memcmp2.h (memcmp2): Likewise.
26185         * lib/parse-datetime.y (lookup_zone): Likewise.
26186         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
26187         [!WINDOWS_SOCKETS]: Likewise.
26188         * lib/strnlen1.h (strnlen1): Likewise.
26189         * lib/uniwidth.in.h (uc_width): Likewise.
26190         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
26191         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
26192         (quoting_options_from_style): Add a comment.
26193         * lib/propername.h (proper_name): Add a comment.
26195 2011-11-27  Bruno Haible  <bruno@clisp.org>
26197         Remove unused macros from !_LIBC code in glibc-borrowed files.
26198         * lib/fnmatch.c (STRCOLL): Remove macro.
26199         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
26200         * lib/glob.c (__stat, __readdir64): Remove macros.
26201         * lib/tempname.c (__open64, __xstat64): Remove macros.
26202         Suggested by Paul Eggert.
26204 2011-11-27  Bruno Haible  <bruno@clisp.org>
26206         getcwd: Fix link error on MSVC 9.
26207         * modules/getcwd (Depends-on): Add readdir, rewinddir.
26209 2011-11-27  Bruno Haible  <bruno@clisp.org>
26211         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
26212         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
26213         HAVE_OPENDIR is 0.
26214         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
26215         HAVE_CLOSEDIR is 0.
26216         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
26217         is 0.
26218         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
26220 2011-11-27  Bruno Haible  <bruno@clisp.org>
26222         getcwd: Fix bug from 2011-08-17.
26223         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
26224         platforms that need it.
26225         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
26226         code of 4 to be a failure, not a success. This ensures that
26227         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
26229 2011-11-27  Bruno Haible  <bruno@clisp.org>
26231         binary-io tests: Avoid test failure on mingw when libtool is used.
26232         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
26233         Don't verify the size of t-bin-out1.tmp here.
26234         * tests/test-binary-io.sh: Verify it here.
26235         Reported by Simon Josefsson.
26237 2011-11-26  Bruno Haible  <bruno@clisp.org>
26239         Fix conflict between two instantiations of module 'unistd'.
26240         * gnulib-tool (func_emit_autoconf_snippet): Substitute
26241         ${include_guard_prefix} also in the autoconf snippet.
26242         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
26243         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
26244         GNULIB_UNISTD_H_GETOPT.
26245         * modules/getopt-posix (configure.ac): Set the
26246         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
26247         * modules/getopt-gnu (configure.ac): Likewise.
26248         * modules/unistd (Makefile.am): Change the substitution value of
26249         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
26250         Reported by Simon Josefsson.
26252 2011-11-25  Bruno Haible  <bruno@clisp.org>
26254         pagealign_alloc: Doc and comments.
26255         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
26256         module.
26257         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
26259 2011-11-25  Jim Meyering  <meyering@redhat.com>
26261         test-update-copyright.sh: avoid false-positive failure
26262         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
26263         around false positive failure on Cygwin/Windows.  The latter was
26264         matching erroneously-created files with names like
26265         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
26267 2011-11-25  Simon Josefsson  <simon@josefsson.org>
26269         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
26270         * m4/valgrind-tests.m4: Check that the parameters that will be
26271         used works, not just a subset of them.  Reported by Bruno Haible
26272         <bruno@clisp.org>.
26274 2011-11-24  Jim Meyering  <meyering@redhat.com>
26276         test-stdalign.c: comment out long double tests
26277         * tests/test-stdalign.c: Don't try to reduce alignment of long double
26278         variables.  That provokes errors like this from gcc-4.7.0 20111124:
26279         error: '_Alignas' specifiers cannot reduce alignment of \
26280         'static_longdouble_alignas'.
26282 2011-11-22  Jim Meyering  <meyering@redhat.com>
26284         init.sh: make "compare /dev/null FILE" output more readable
26285         * tests/init.sh (compare_): Document the preferred order of arguments.
26286         (emit_diff_u_header_): New function.
26287         (compare_dev_null_): Emit a simulated diff, rather than just the
26288         contents of the unexpected file.  Suggestion from Bruno Haible.
26290 2011-11-21  Jim Meyering  <meyering@redhat.com>
26291             Eric Blake  <eblake@redhat.com>
26293         init.sh: work around OSF/1 5.1's mishandling of /dev/null
26294         * tests/init.sh: Make our compare function slightly more portable.
26295         Reported by Bruno Haible in
26296         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
26298 2011-11-21  Simon Josefsson  <simon@josefsson.org>
26300         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
26301         before using it, in code that ends up in config.h.
26303 2011-11-20  Bruno Haible  <bruno@clisp.org>
26305         getcwd: Work around getcwd bug on AIX 5..7.
26306         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
26307         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
26308         Use a different value for gl_cv_func_getcwd_path_max. Move the
26309         definition of HAVE_PARTLY_WORKING_GETCWD from here...
26310         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
26311         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
26312         Define HAVE_MINIMALLY_WORKING_GETCWD.
26313         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
26314         where it is not even minimally working, that is, on AIX.
26315         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
26316         m4/getcwd-path-max.m4.
26317         (main): Update exit code computation.
26318         * doc/posix-functions/getcwd.texi: Mention list of platforms where
26319         getcwd does not handle long file names.
26321 2011-11-20  Bruno Haible  <bruno@clisp.org>
26323         getcwd: Fix bug from 2009-09-10.
26324         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
26325         like "no".
26327 2011-11-20  Simon Josefsson  <simon@josefsson.org>
26329         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
26331 2011-11-20  Bruno Haible  <bruno@clisp.org>
26333         fma tests: Avoid shadowing local variables.
26334         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
26335         expected.
26337 2011-11-20  Bruno Haible  <bruno@clisp.org>
26339         copysignf tests: Fix.
26340         * tests/test-copysignf.c: Fix signature check.
26342 2011-11-20  Bruno Haible  <bruno@clisp.org>
26344         fma: Remove unused code.
26345         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
26346         unused macros.
26348 2011-11-20  Bruno Haible  <bruno@clisp.org>
26350         sethostname: Fix doc about AIX.
26351         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
26352         sethostname; it has it.
26354         sethostname: Mention more portability problems.
26355         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
26356         problem.
26357         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
26359 2011-11-19  Bruno Haible  <bruno@clisp.org>
26361         Depend on module fcntl-h when AT_FDCWD is used.
26362         * modules/utimens (Depends-on): Add fcntl-h.
26363         * modules/areadlinkat (Depends-on): Likewise.
26364         * modules/areadlinkat-with-size (Depends-on): Likewise.
26365         * modules/faccessat (Depends-on): Likewise.
26366         * modules/fchmodat (Depends-on): Likewise.
26367         * modules/fchownat (Depends-on): Likewise.
26368         * modules/getcwd (Depends-on): Likewise.
26369         * modules/mkdirat (Depends-on): Likewise.
26370         * modules/mkfifoat (Depends-on): Likewise.
26371         * modules/readlinkat (Depends-on): Likewise.
26372         * modules/symlinkat (Depends-on): Likewise.
26373         * modules/dup2-tests (Depends-on): Likewise.
26374         * modules/fdutimensat-tests (Depends-on): Likewise.
26375         * modules/futimens-tests (Depends-on): Likewise.
26377 2011-11-19  Bruno Haible  <bruno@clisp.org>
26379         euidaccess: Update a comment.
26380         * lib/euidaccess.c: Update comment about platforms with faccessat.
26382 2011-11-19  Bruno Haible  <bruno@clisp.org>
26384         openat: Fix file list.
26385         * modules/openat (Files): Remove lib/at-func.c.
26387 2011-11-19  Bruno Haible  <bruno@clisp.org>
26389         fstatat: Simplify.
26390         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
26391         gnulib should define rpl_fstatat, there is a
26392         "#define fstatat rpl_fstatat" in <sys/stat.h>.
26394 2011-11-19  Bruno Haible  <bruno@clisp.org>
26396         Ensure 'inline' can be used in tests/test-utimens-common.h.
26397         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
26398         * modules/futimens-tests (configure.ac): Likewise.
26399         * modules/utimens-tests (configure.ac): Likewise.
26400         * modules/utimensat-tests (configure.ac): Likewise.
26402 2011-11-19  Simon Josefsson  <simon@josefsson.org>
26404         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
26405         not hash_insert0.
26406         (hash_insert_if_absent): Doc fix.
26408 2011-11-19  Simon Josefsson  <simon@josefsson.org>
26410         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
26412 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
26414         test-getcwd: disambiguate exit status
26415         * tests/test-getcwd.c (test_long_name): Return 0..7.
26416         (main): Exit with an unambiguous exit status.  The old
26417         code yielded a mysterious mixture of two failure codes.
26419         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
26420         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
26421         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
26422         rpl_fstatat or fstatat.  This should fix the other problem
26423         reported by Kai Habel in
26424         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
26425         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
26426         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
26427         and I reproduced it on a Solaris 8 host we still have in production.
26429 2011-11-18  Jim Meyering  <meyering@redhat.com>
26431         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
26432         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
26433         Add a sentence to the comment.
26434         (hash_insert0): New function that simply calls hash_insert_if_absent.
26435         * lib/hash.h (hash_insert_if_absent): Declare it.
26436         (hash_insert0): Add deprecation attribute.
26437         (_GL_ATTRIBUTE_DEPRECATED): Define.
26438         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
26439         not hash_insert0.
26440         * NEWS: Mention it, even though it's not really an incompatible change.
26442 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
26444         openat: avoid compilation failure due to lack of <errno.h> inclusion
26445         * lib/openat.c: Include <errno.h>.
26447 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
26449         * modules/getcwd (Depends-on): Add fdopendir.
26450         This fixes one of the two problems reported by Kai Habel in
26451         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
26453         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
26454         stdalign problem reported by Ian Beckwith in
26455         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
26456         * modules/crypto/gc-arcfour (Depends-on):
26457         Depend conditionally on crypto/arcfour.
26458         * modules/crypto/gc-arctwo (Depends-on):
26459         Depend conditionally on crypto/arctwo.
26460         * modules/crypto/gc-des (Depends-on):
26461         Depend conditionally on crypto/des.
26462         * modules/crypto/gc-hmac-md5 (Depends-on):
26463         Depend conditionally on crypto/hmac-md5.
26464         * modules/crypto/gc-hmac-sha1 (Depends-on):
26465         Depend conditionally on crypto/hmac-sha1.
26466         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
26467         * modules/crypto/gc-md4 (Depends-on):
26468         Depend conditionally on crypto/md4.
26469         * modules/crypto/gc-md5 (Depends-on):
26470         Depend conditionally on crypto/md5.
26471         * modules/crypto/gc-rijndael (Depends-on):
26472         Depend conditionally on crypto/rijndael.
26473         * modules/crypto/gc-sha1 (Depends-on):
26474         Depend conditionally on crypto/sha1.
26475         * modules/crypto/gc-arcfour:
26476         * modules/crypto/gc-arctwo:
26477         * modules/crypto/gc-des:
26478         * modules/crypto/gc-hmac-md5:
26479         * modules/crypto/gc-hmac-sha1:
26480         * modules/crypto/gc-md2:
26481         * modules/crypto/gc-md4:
26482         * modules/crypto/gc-md5:
26483         * modules/crypto/gc-rijndael:
26484         * modules/crypto/gc-sha1:
26485         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
26486         now that the conditional dependencies do the work for us.
26488 2011-11-17  Jim Meyering  <meyering@redhat.com>
26490         tests: factor st_ctime-comparison out of two headers
26491         * tests/test-utimens-common.h (ctime_compare): Define.
26492         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
26493         * tests/test-lutimens.h (test_lutimens): Likewise.
26494         * tests/test-utimens.h (test_utimens): Likewise.
26496         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
26497         Invoke the test program via an init.sh-using wrapper.
26498         * tests/test-getcwd.sh: New file.
26499         * modules/getcwd-tests (Files): Add it.
26500         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
26502 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
26504         gitlog-to-changelog: support multi-author commits.
26505         The FSF cares about keeping track of all authors of patches to its
26506         projects, but Git doesn't provide obvious support for multi-author
26507         changesets. Consensus seems to be forming around the use of extra
26508         Signed-off-by inspired lines in the log message formatted as
26509         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
26510         multi-author commits between version control systems.
26511         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
26512         log message and output in standard ChangeLog multi-author format.
26513         Reported by Peter Rosin <peda@lysator.liu.se>
26515 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
26516             Bruno Haible  <bruno@clisp.org>
26518         Fix some modules' file list.
26519         * modules/fstatat (Files): Add m4/lstat.m4.
26520         * modules/openat (Files): Likewise.
26521         * modules/unlinkat (Files): Likewise.
26523 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
26525         maint.mk: fix tight-scope.mk generation in VPATH builds.
26526         * top/maint.mk (tight-scope.mk): Make sure to prefix file
26527         reference with $(srcdir) so that the file is found correctly even
26528         when running `make syntax-check' in a VPATH build.
26530 2011-11-13  Bruno Haible  <bruno@clisp.org>
26531             Jim Meyering  <meyering@redhat.com>
26533         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
26534         * tests/init.sh (compare): Remove "No differences encountered" or
26535         synonymous output from the 'diff' program.
26537 2011-11-13  Bruno Haible  <bruno@clisp.org>
26539         Makefile: Tweak indentation.
26540         * Makefile: Use tab as first character in every line that contains rule
26541         commands.
26543 2011-11-13  Bruno Haible  <bruno@clisp.org>
26545         Syntax check for copyright statements.
26546         * check-copyright: New file.
26547         * Makefile (sc_check_copyright): New rule.
26549 2011-11-13  Simon Josefsson  <simon@josefsson.org>
26551         * build-aux/git-version-gen: Add --prefix to configure the tag
26552         match string.
26554 2011-11-13  Simon Josefsson  <simon@josefsson.org>
26556         * build-aux/git-version-gen: Add --help and --version.
26558 2011-11-12  Jim Meyering  <meyering@redhat.com>
26560         revamp the other test-exclude?.sh scripts to use init.sh, too
26561         * tests/test-exclude1.sh: Use init.sh.
26562         * tests/test-exclude2.sh: Likewise.
26563         * tests/test-exclude3.sh: Likewise.
26564         * tests/test-exclude4.sh: Likewise.
26565         * tests/test-exclude5.sh: Likewise.
26566         * tests/test-exclude6.sh: Likewise.
26567         * tests/test-exclude7.sh: Likewise.
26568         * tests/test-exclude8.sh: Likewise.
26569         * modules/exclude-tests (Files): List init.sh.
26571         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
26572         These shell scripts ignored failure of the binary test-exclude,
26573         so making the latter return 77 didn't cause them to be skipped.
26574         * tests/test-exclude5.sh: Exit with test-exclude's error status
26575         when that program fails.  Revamp to use init.sh.
26576         * tests/test-exclude2.sh: Likewise.
26578         test-exclude: fix a typo
26579         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
26581 2011-11-11  Bruno Haible  <bruno@clisp.org>
26583         obstack: Fix compilation error on MSVC 9.
26584         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
26586 2011-11-11  Jim Meyering  <meyering@redhat.com>
26588         test-exclude: skip tests rather than failing on deficient systems
26589         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
26590         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
26591         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
26592         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
26594 2011-11-10  Bruno Haible  <bruno@clisp.org>
26596         ptsname_r test: Avoid gcc warning on glibc systems.
26597         * tests/test-ptsname_r.c (null_ptr): New function.
26598         (test_errors): Use it.
26600 2011-11-10  Bruno Haible  <bruno@clisp.org>
26602         ptsname_r: Avoid compilation error on OSF/1 5.1.
26603         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
26604         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
26605         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
26606         function is not declared or incompatibly declared.
26607         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
26608         * modules/ptsname_r (Depends-on, configure.ac): Update.
26609         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
26611 2011-11-10  Bruno Haible  <bruno@clisp.org>
26613         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
26614         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
26615         When cross-compiling, guess yes on all platforms except AIX.
26616         Reported by Ludovic Courtès <ludo@gnu.org>.
26618 2011-11-09  Bruno Haible  <bruno@clisp.org>
26620         ptsname_r tests: Fix bugs.
26621         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
26622         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
26624 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
26626         fstatat: work with cross-compilation
26627         Problem reported by Ludovic Courtès in
26628         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
26629         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
26630         "cross-compiling" and assume the bug is present.  Replace
26631         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
26632         an inverted sense, to be more conservative about our assumptions.
26633         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
26635 2011-11-09  Bruno Haible  <bruno@clisp.org>
26637         Improve MODULES.html output.
26638         * modules/mkfifoat (Description): Use the word "function".
26639         * modules/readlinkat (Description): Likewise.
26640         * modules/symlinkat (Description): Likewise.
26642 2011-11-09  Eric Blake  <eblake@redhat.com>
26644         ptsname_r-tests: new test module
26645         * modules/ptsname_r-tests: New module.
26646         * tests/test-ptsname_r.c: New file.
26648         ptsname_r: new module
26649         * modules/ptsname_r: New module.
26650         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
26651         * lib/ptsname.c (__ptsname_r): Split...
26652         * lib/ptsname_r.c: ...into new file.
26653         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
26654         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
26655         * modules/stdlib (Makefile.am): Substitute witnesses.
26656         * lib/stdlib.in.h (ptsname_r): Declare it.
26657         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
26658         * MODULES.html.sh (Misc): Likewise.
26659         * modules/ptsname (Depends-on): Alter dependency.
26660         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
26662 2011-11-09  Jim Meyering  <meyering@redhat.com>
26664         announce-gen: be more concise when there's only one URL+tarball
26665         * build-aux/announce-gen (get_tool_versions): When you distribute
26666         only one type of tarball, combine the first two "Here are..."
26667         sections and make the key-checking grammar independent of
26668         how many tarballs there are.
26670 2011-11-09  Eric Blake  <eblake@redhat.com>
26672         openpty: provide a stub on mingw
26673         * lib/pty.in.h (includes): Provide forward declarations.
26674         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
26676         raise: fix mingw handling of SIGPIPE
26677         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
26679 2011-11-08  Bruno Haible  <bruno@clisp.org>
26681         More conditional dependencies.
26682         * modules/faccessat (Depends-on): Add conditions.
26683         * modules/fchmodat (Depends-on): Likewise.
26684         * modules/fchownat (Depends-on): Likewise.
26685         * modules/fstatat (Depends-on): Likewise.
26686         * modules/mkfifoat (Depends-on): Likewise.
26687         * modules/readlinkat (Depends-on): Likewise.
26688         * modules/symlinkat (Depends-on): Likewise.
26689         * modules/unlinkat (Depends-on): Likewise.
26690         * modules/utimensat (Depends-on): Likewise.
26691         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
26692         * modules/linkat (Depends-on): Refine the conditions.
26693         * modules/renameat (Depends-on): Likewise.
26695 2011-11-08  Bruno Haible  <bruno@clisp.org>
26697         faccessat: Move AC_LIBOBJ invocation to module description.
26698         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
26699         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
26700         invocation from here...
26701         * modules/faccessat (configure.ac): ... to here. Invoke
26702         gl_PREREQ_FACCESSAT.
26704 2011-11-08  Bruno Haible  <bruno@clisp.org>
26706         faccessat: Simplify autoconf macro.
26707         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
26708         gl_FUNC_EUIDACCESS.
26710 2011-11-08  Bruno Haible  <bruno@clisp.org>
26712         renameat: Fix dependencies.
26713         * modules/renameat (Depends-on): Add stdbool.
26715 2011-11-08  Bruno Haible  <bruno@clisp.org>
26717         mkfifoat: Fix module description.
26718         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
26719         not gl_UNISTD_MODULE_INDICATOR.
26721 2011-11-08  Bruno Haible  <bruno@clisp.org>
26723         fstatat: Remove unused dependency.
26724         * modules/fstatat (Depends-on): Remove fstat.
26726 2011-11-08  Simon Josefsson  <simon@josefsson.org>
26728         GNUmakefile: behave when Makefile is missing.
26729         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
26731 2011-11-08  Bruno Haible  <bruno@clisp.org>
26733         openat: Conditionalize dependencies.
26734         * lib/openat.c: Reduce the scope of some #includes.
26735         * modules/openat (Depends-on): Add conditions.
26737 2011-11-07  Jim Meyering  <meyering@redhat.com>
26739         maint.mk: extract GPG key ID without using a temporary file
26740         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
26741         without using a temporary file.  Based on a suggestion from Werner Koch
26742         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
26744 2011-11-07  Eric Blake  <eblake@redhat.com>
26746         grantpt: fix typo
26747         * lib/stdlib.in.h (grantpt): Check correct function.
26749         maint.mk: silence new syntax check
26750         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
26752 2011-11-06  Bruno Haible  <bruno@clisp.org>
26754         Doc about floating-point and math API.
26755         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
26756         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
26758 2011-11-06  Bruno Haible  <bruno@clisp.org>
26760         stdalign tests: Skip the test when compiled by Sun C.
26761         * tests/test-stdalign.c (main): Skip the test on Sun C.
26763 2011-11-06  Bruno Haible  <bruno@clisp.org>
26765         ansi-c++-opt: Complete the 2011-06-05 change.
26766         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
26767         does not support namespaces, set the variable to "no", not to ":".
26769 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
26771         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
26773 2011-11-06  Bruno Haible  <bruno@clisp.org>
26775         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
26776         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
26777         (minus_zerol) [HP-UX]: New macro.
26778         (unary_minus) [HP-UX]: New function.
26779         (copysignl) [HP-UX]: Use unary_minus function.
26781 2011-11-06  Bruno Haible  <bruno@clisp.org>
26783         ldexp, ldexpf, ldexpl: Enhance tests.
26784         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
26785         and tests/test-ldexpl.c.
26786         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
26787         LDEXP, MIN_EXP, MAX_EXP): New macros.
26788         Include test-ldexp.h.
26789         (main): Just call test_function.
26790         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
26791         infinity.h, nan.h.
26792         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
26793         MAX_EXP): New macros.
26794         Include test-ldexp.h.
26795         (x, y): Remove variables.
26796         (main): Just call test_function.
26797         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
26798         infinity.h, nan.h.
26799         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
26800         MAX_EXP): New macros.
26801         Include test-ldexp.h.
26802         (x, y): Remove variables.
26803         (main): Just call test_function.
26804         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
26805         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
26806         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
26807         (Depends-on): Add isnand-nolibm, signbit, float.
26808         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
26809         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
26810         (Depends-on): Add isnanf-nolibm, signbit, float.
26812 2011-11-06  Bruno Haible  <bruno@clisp.org>
26814         math tests: Cosmetics.
26815         * tests/test-math-c++.cc: Reorder declarations.
26817 2011-11-05  Bruno Haible  <bruno@clisp.org>
26819         fma*: Simplify test.
26820         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
26821         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
26823         Tests for module 'fmal'.
26824         * modules/fmal-tests: New file.
26825         * tests/test-fmal1.c: New file.
26826         * tests/test-fmal2.c: New file.
26828         New module 'fmal'.
26829         * lib/math.in.h (fmal): New declaration.
26830         * lib/fmal.c: New file.
26831         * m4/fmal.m4: New file.
26832         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
26833         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
26834         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
26835         REPLACE_FMAL.
26836         * modules/fmal: New file.
26837         * doc/posix-functions/fmal.texi: Mention the new module and the various
26838         bugs.
26840         Tests for module 'fmaf'.
26841         * modules/fmaf-tests: New file.
26842         * tests/test-fmaf1.c: New file.
26843         * tests/test-fmaf2.c: New file.
26845         New module 'fmaf'.
26846         * lib/math.in.h (fmaf): New declaration.
26847         * lib/fmaf.c: New file.
26848         * m4/fmaf.m4: New file.
26849         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
26850         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
26851         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
26852         REPLACE_FMAF.
26853         * modules/fmaf: New file.
26854         * doc/posix-functions/fmaf.texi: Mention the new module and the various
26855         bugs.
26857         Tests for module 'fma'.
26858         * modules/fma-tests: New file.
26859         * tests/test-fma1.c: New file.
26860         * tests/test-fma1.h: New file.
26861         * tests/test-fma2.c: New file.
26862         * tests/test-fma2.h: New file.
26864         New module 'fma'.
26865         * lib/math.in.h (fma): New declaration.
26866         * lib/fma.c: New file.
26867         * m4/fma.m4: New file.
26868         * m4/fegetround.m4: New file.
26869         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
26870         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
26871         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
26872         REPLACE_FMA.
26873         * modules/fma: New file.
26874         * doc/posix-functions/fma.texi: Mention the new module and the various
26875         bugs.
26877         Extend gl_MATHFUNC.
26878         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
26879         Support 'void' as argument type.
26880         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
26882 2011-11-05  Jim Meyering  <meyering@redhat.com>
26884         maint.mk: also prohibit inclusion of dirent.h without use
26885         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
26887 2011-11-05  Bruno Haible  <bruno@clisp.org>
26889         ldexpl tests: Avoid test failure on MSVC 9.
26890         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
26891         value. Needed in order to enforce the conversion from a value greater
26892         than LDBL_MAX to Infinity.
26894 2011-11-05  Bruno Haible  <bruno@clisp.org>
26896         New modules 'at-internal', 'openat-h', split off from module 'openat'.
26897         * modules/at-internal: New file, extracted from modules/openat.
26898         * modules/openat-h: New file.
26899         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
26900         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
26901         * modules/openat (Description): Add reference to POSIX function.
26902         (Files): Remove lib/openat.h, lib/openat-proc.c.
26903         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
26904         intprops, unistd.
26905         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
26906         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
26907         gl_FCNTL_MODULE_INDICATOR.
26908         (Include): Remove unistd.h, openat.h.
26909         * modules/areadlinkat (Files): Add lib/at-func.c.
26910         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
26911         openat-die, openat-h, save-cwd.
26912         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
26913         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
26914         openat-die, openat-h, save-cwd, unistd.
26915         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
26916         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
26917         openat-h, save-cwd. Remove fcntl-h, openat.
26918         * modules/fchmodat (Files): Remove lib/openat.h.
26919         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
26920         openat, stdbool, unistd.
26921         * modules/fchownat (Files): Remove lib/openat.h.
26922         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
26923         openat, stdbool, sys_stat.
26924         * modules/fdopendir (Files): Remove lib/openat-priv.h,
26925         lib/openat-proc.c.
26926         (Depends-on): Add at-internal.
26927         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
26928         * modules/fstatat (Files): Remove lib/openat.h.
26929         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
26930         stdbool, unistd.
26931         * modules/fts (Depends-on): Add openat-h.
26932         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
26933         openat.
26934         * modules/mkdirat (Files): Remove lib/openat.h.
26935         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
26936         openat, stdbool, sys_stat.
26937         * modules/mkfifoat (Files): Add lib/at-func.c.
26938         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
26939         openat-h, save-cwd. Remove fcntl-h, openat.
26940         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
26941         * modules/readlinkat (Files): Add lib/at-func.c.
26942         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
26943         openat-h, save-cwd. Remove fcntl-h, openat.
26944         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
26945         openat.
26946         * modules/selinux-at (Files): Add lib/at-func.c.
26947         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
26948         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
26949         * modules/symlinkat (Files): Add lib/at-func.c.
26950         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
26951         openat-h, save-cwd. Remove fcntl-h, openat.
26952         * modules/unlinkat (Files): Remove lib/openat.h.
26953         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
26954         stdbool.
26955         * modules/utimensat (Files): Add lib/at-func.c.
26956         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
26957         openat-die, openat-h, save-cwd.
26958         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
26959         * modules/fdutimensat-tests (Depends-on): Add openat.
26960         * modules/fstatat-tests (Depends-on): Add openat-h.
26961         * modules/readlinkat-tests (Depends-on): Add openat.
26962         * modules/symlinkat-tests (Depends-on): Add openat.
26964 2011-11-05  Bruno Haible  <bruno@clisp.org>
26966         openat: Include <stdbool.h>.
26967         * lib/openat.c: Include <stdbool.h>.
26969 2011-11-04  Bruno Haible  <bruno@clisp.org>
26971         fchownat, renameat, unlinkat: Fix dependencies.
26972         * modules/fchownat (Depends-on): Add fstatat.
26973         * modules/renameat (Depends-on): Likewise.
26974         * modules/unlinkat (Depends-on): Likewise.
26976 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
26978         openat: remove direct dependency on dirent
26979         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
26980         and hasn't been needed ever since fdopendir was split into its own
26981         module on 2009-08-31.
26982         * modules/openat (Depends-on): Remove dirent.
26984 2011-11-04  Bruno Haible  <bruno@clisp.org>
26986         renameat: Optimize code size.
26987         * modules/renameat (configure.ac): Don't compile at-func2.c if
26988         REPLACE_RENAMEAT is 1.
26990 2011-11-04  Bruno Haible  <bruno@clisp.org>
26992         openat tests: Fix file list.
26993         * modules/openat-tests (Files): Add tests/test-open.h.
26995 2011-11-04  Bruno Haible  <bruno@clisp.org>
26997         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
26998         * modules/fchmodat (Depends-on): Add openat-die.
26999         * modules/fchownat (Depends-on): Likewise.
27000         * modules/linkat (Depends-on): Likewise.
27001         * modules/renameat (Depends-on): Likewise.
27002         * modules/openat (Depends-on): Add dirent.
27004 2011-11-04  Jim Meyering  <meyering@redhat.com>
27006         at-func*.c: fix comments
27007         * lib/at-func2.c: Correct/improve first-line comment.
27008         * lib/at-func.c: Correct grammar in first-line comment.
27010 2011-11-04  Bruno Haible  <bruno@clisp.org>
27012         New module 'mkdirat', split off from module 'openat'.
27013         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
27014         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
27015         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
27016         * modules/mkdirat: New file, extracted from modules/openat.
27017         * modules/openat (Files): Remove lib/mkdirat.c.
27018         (Depends-on): Remove mkdir.
27019         (configure.ac): Remove AC_LIBOBJ of mkdirat.
27020         (Include): Remove <sys/stat.h>.
27021         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
27022         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
27023         tests/test-mkdir.h.
27024         (Depends-on): Remove ignore-value.
27025         (Makefile.am): Remove rules for test-mkdirat.
27026         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
27027         of module 'openat'.
27028         * NEWS: Mention the change.
27030 2011-11-04  Bruno Haible  <bruno@clisp.org>
27032         closedir: Avoid warning on mingw.
27033         * lib/closedir.c: Include <unistd.h>.
27035 2011-11-04  Bruno Haible  <bruno@clisp.org>
27037         New module 'fstatat', split off from module 'openat'.
27038         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
27039         defined.
27040         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
27041         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
27042         gl_FUNC_FSTATAT.
27043         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
27044         * modules/fstatat: New file, extracted from modules/openat.
27045         * modules/openat (Files): Remove lib/fstatat.c.
27046         (Depends-on): Remove lstat.
27047         (configure.ac): Remove AC_LIBOBJ of fstatat.
27048         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
27049         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
27050         tests/test-lstat.h, tests/test-stat.h.
27051         (Depends-on): Remove getcwd-lgpl.
27052         (Makefile.am): Remove rules for test-fstatat.
27053         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
27054         of module 'openat'.
27055         * NEWS: Mention the change.
27056         * modules/getcwd (Depends-on): Add fstatat.
27057         * modules/linkat (Depends-on): Likewise.
27058         * modules/mkfifoat-tests (Depends-on): Likewise.
27059         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
27061 2011-11-03  Bruno Haible  <bruno@clisp.org>
27063         New module 'unlinkat', split off from module 'openat'.
27064         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
27065         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
27066         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
27067         * modules/unlinkat: New file, extracted from modules/openat. Correct
27068         the dependency conditions.
27069         * modules/openat (Files): Remove lib/unlinkat.c.
27070         (Depends-on): Remove rmdir, unlink.
27071         (configure.ac): Remove AC_LIBOBJ of unlinkat.
27072         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
27073         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
27074         tests/test-rmdir.h, tests/test-unlink.h.
27075         (Depends-on): Remove unlinkdir.
27076         (Makefile.am): Remove rules for test-unlinkat.
27077         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
27078         of module 'openat'.
27079         * NEWS: Mention the change.
27080         * modules/linkat-tests (Depends-on): Add unlinkat.
27081         * modules/mkfifoat-tests (Depends-on): Likewise.
27082         * modules/readlinkat-tests (Depends-on): Likewise.
27084 2011-11-02  Bruno Haible  <bruno@clisp.org>
27086         New module 'fchmodat', split off from module 'openat'.
27087         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
27088         defined.
27089         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
27090         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
27091         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
27092         * modules/fchmodat: New file, extracted from modules/openat.
27093         * modules/openat (Files): Remove lib/fchmodat.c.
27094         (configure.ac): Remove AC_LIBOBJ of fchmodat.
27095         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
27096         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
27097         (Makefile.am): Remove rules for test-fchmodat.
27098         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
27099         of module 'openat'.
27100         * NEWS: Mention the change.
27102 2011-11-02  Jim Meyering  <meyering@redhat.com>
27104         putenv: indent #definition of "environ" to placate cppi
27105         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
27107         gitlog-to-changelog: provide a ChangeLog-repair mechanism
27108         Git logs are often treated as immutable, because editing them
27109         changes the SHA1 checksums of all descendants.  Thus, errors in
27110         git logs tend to stay there forever.  However, when we generate
27111         a ChangeLog file -- typically for distribution -- from that git log,
27112         we can actually make corrections in the generated file.  The key
27113         lies in recording in machine-readable/applicable form the desired
27114         corrections.  See --help for description and an example.
27115         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
27116         (usage): Describe it; alphabetize option descriptions.
27117         (main): Honor the new option, carefully.
27119 2011-11-01  Jim Meyering  <meyering@redhat.com>
27121         gitlog-to-changelog: avoid an infloop
27122         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
27123         that ends up being empty.
27125 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
27127         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
27128         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
27129         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
27130         contains (possibly-quoted) backslashes.  This should avoid
27131         all-too-common shell bugs if COMPLICATED contains backslashes in
27132         the "wrong" places.  Reported by David Evans in
27133         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
27134         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
27135         because we want ASCII ranges.  Is there some reason we don't use
27136         the C locale everywhere in this script?
27137         (func_module, top level): Avoid unwanted pathname expansion when
27138         $repo_url_prefix or $repo_url_suffix_repl contain shell
27139         metacharacters like '?' and '*'.
27141 2011-11-01  Bruno Haible  <bruno@clisp.org>
27143         fchownat: Improve description.
27144         * modules/fchownat (Description): Add link to function.
27146 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
27148         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
27149         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
27150         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
27151         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
27153 2011-11-01  Bruno Haible  <bruno@clisp.org>
27155         alignof: Avoid collision with stdalign module.
27156         * lib/alignof.h (alignof): Remove macro.
27157         * NEWS: Mention the change.
27158         Reported by Paul Eggert.
27160 2011-11-01  Bruno Haible  <bruno@clisp.org>
27162         New module 'fchownat', split off from module 'openat'.
27163         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
27164         defined.
27165         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
27166         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
27167         invoke gl_FUNC_FCHOWNAT.
27168         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
27169         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
27170         * modules/fchownat: New file, extracted from modules/openat.
27171         * modules/openat (Files): Remove lib/fchownat.c.
27172         (Depends-on): Remove lchown.
27173         (configure.ac): Remove AC_LIBOBJ of fchownat.
27174         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
27175         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
27176         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
27177         (Depends-on): Remove mgetgroups, usleep, stat-time.
27178         (configure.ac): Remove test for getegid.
27179         (Makefile.am): Remove rules for test-fchownat.
27180         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
27181         of module 'openat'.
27182         * NEWS: Mention the change.
27184 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
27186         stdalign: port better to MSVC and to Sun C 5.11
27187         This fixes some of the problems reported by Bruno Haible in
27188         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
27189         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
27190         shortcomings of MSVC and of Sun C 5.11.
27191         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
27192         around __declspec arg.
27193         * modules/stdalign-tests (Files): Add tests/macros.h.
27194         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
27195         Include macros.h, for ASSERT.
27196         (DECLARE_ALIGNED): Remove.
27197         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
27198         to catch bug), and to 1 if not (simplifies the rest of the code).
27199         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
27200         (CHECK_AUTO): Remove.
27201         (CHECK_ALIGNED): Check only the alignment of the static vars,
27202         since auto var alignment isn't supported by Sun C 5.11.
27203         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
27204         ASSERT failures are easier to diagnose.
27206 2011-10-31  Bruno Haible  <bruno@clisp.org>
27208         doc about some IRIX 5.3 problems.
27209         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
27210         on IRIX 5.3.
27211         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
27212         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
27213         5.3.
27214         * doc/posix-functions/grantpt.texi: Likewise.
27215         * doc/posix-functions/unlockpt.texi: Likewise.
27216         * doc/posix-functions/lgamma.texi: Likewise.
27217         * doc/posix-functions/nextafter.texi: Likewise.
27218         * doc/posix-functions/remainder.texi: Likewise.
27219         * doc/posix-functions/select.texi: Mention misplaced declaration on
27220         IRIX 5.3.
27221         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27223 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
27225         gitlog-to-changelog: fix git-log invocation.
27226         git-log mishandles date strings before 1970-01-01 UTC, and there is
27227         no use to specify --since=1970-01-01 by default anyway.
27228         * build-aux/gitlog-to-changelog: By default, when no --since option
27229         was given, do not specify explicit --since option to git-log.
27231 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
27233         gitlog-to-changelog: new option --append-dot.
27234         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
27235         first non-blank line of each commit message terminated with a dot.
27237 2011-10-30  Bruno Haible  <bruno@clisp.org>
27239         ffsl, ffsll: Avoid compilation error due to 'restrict'.
27240         * lib/ffsl.h: Include <config.h>.
27241         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
27243 2011-10-30  Jim Meyering  <meyering@redhat.com>
27245         GNUmakefile: reenable "make syntax-check" for most projects
27246         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
27247         build-aux variable", "syntax-check" would do nothing but succeed with
27248         the "No version control files detected..." diagnostic (unless you
27249         happened to override _build-aux via cfg.mk).
27250         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
27251         to precede inclusion of maint.mk.  Otherwise, these variables would
27252         be used undefined in any project that does not override the default.
27254 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
27256         gitlog-to-changelog: treat a message with only blank lines as empty.
27257         * build-aux/gitlog-to-changelog: Move the code that removes leading and
27258         trailing blank lines before the code that issues a warning about an
27259         empty commit message.
27261 2011-10-30  Jim Meyering  <meyering@redhat.com>
27263         test-parse-datetime.c: avoid new DST-related false positive test failure
27264         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
27265         based on the time/date we'll convert, not the current time.
27266         Otherwise, the moment we cross a DST boundary like today's in
27267         Europe, (CEST to CET), that offset ends up being one hour off.
27269 2011-10-27  Bruno Haible  <bruno@clisp.org>
27271         fstat: Tweak documentation.
27272         * modules/fstat (Description): More precise description.
27274 2011-10-27  Bruno Haible  <bruno@clisp.org>
27276         Update documentation regarding 'largefile' module.
27277         * doc/posix-functions/fstat.texi: Tweak wording.
27278         * doc/posix-functions/opendir.texi: Mention that the module fixes the
27279         problems with huge directories and/or small ino_t types.
27280         * doc/posix-functions/readdir.texi: Likewise.
27281         * doc/posix-functions/rewinddir.texi: Likewise.
27283 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
27285         maint.mk: don't maintain a second build-aux variable.
27286         * maint.mk (build_aux): Removed.  The maintainer-makefile module
27287         depends on GNUmakefile, which already maintains a cfg.mk
27288         overridable $(_build-aux) for projects with a non-standard
27289         build-aux directory location, although without the $(srcdir)
27290         prefix.  Use that variable consistently instead of introducing a
27291         second one.  Adjust all call sites.
27293 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
27295         Add stdalign module and use it in other modules.
27296         This is based on a previous proposal by Bruno Haible
27297         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
27299         stdalign: new module
27300         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
27301         * modules/stdalign: New files.
27302         * MODULES.html.sh (c1x_core_properties): Add stdalign.
27303         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
27305         stdalign-tests: new module
27306         * modules/stdalign-tests, tests/test-stdalign.c: New files.
27308         argp: use stdalign
27309         * lib/argp-parse.c: Include <stdalign.h>.
27310         (alignof): Remove.
27311         * modules/argp (Depends-on): Add stdalign.
27313         crypto libraries: use stdalign
27314         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
27315         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
27316         Do not include <stdlib.h> twice, in md4.c.
27317         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
27318         because we are accessing a pointer's bit-pattern, not a size.
27319         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
27320         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
27321         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
27322         * modules/crypto/sha512: Likewise.
27324         sys_socket: use stdalign, not alignof
27325         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
27326         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
27328 2011-10-27  Bruno Haible  <bruno@clisp.org>
27330         raise test: Avoid a test failure on Linux/MIPS.
27331         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
27332         because 99 is a valid signal on Linux/MIPS.
27334 2011-10-27  Bruno Haible  <bruno@clisp.org>
27336         nonblocking tests: Fix test failure on Linux/MIPS.
27337         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
27338         Set to 270000.
27340 2011-10-27  Bruno Haible  <bruno@clisp.org>
27342         utimensat: Work around problem on Linux/hppa.
27343         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
27344         values.
27345         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
27347 2011-10-25  Jim Meyering  <meyering@redhat.com>
27349         maint.mk: fix a bug in sc_prohibit_stddef_without_use
27350         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
27351         after symbols like NULL, size_t, etc.
27352         Reported by Alfred M. Szmidt.
27354         maint.mk: exempt ENODATA from a syntax-check rule
27355         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
27356         from the sc_prohibit_always-defined_macros syntax-check rule.
27357         Add a comment.  See this for more details:
27358         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
27360 2011-10-23  Jim Meyering  <meyering@redhat.com>
27362         fts: close parent dir FD before returning from post-traversal fts_read
27363         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
27364         unlink A, even though an FD open on A remained.  This is suboptimal
27365         (holding a file descriptor open longer than needed), but otherwise not
27366         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
27367         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
27368         that represents a real problem: it causes the removal of A to fail
27369         with e.g., "rm: cannot remove `A': Device or resource busy"
27371         fts visits each directory twice and keeps a cache (fts_fd_ring) of
27372         directory file descriptors.  After completing the final, FTS_DP,
27373         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
27374         cache, but then proceeded to add a new FD to it via the subsequent
27375         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
27376         final file descriptor would be closed only via fts_close's call to
27377         fd_ring_clear.  Now, it is usually closed earlier, via the final
27378         FTS_DP-returning fts_read call.
27379         * lib/fts.c (restore_initial_cwd): New function, converted from
27380         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
27381         Update callers.
27382         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
27383         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
27385 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
27386             Bruno Haible  <bruno@clisp.org>
27387             Jim Meyering  <jim@meyering.net>
27389         readme-release: improve safety of release prep instructions.
27390         * README-release: Don't git pull all branches when only master
27391         is needed for the release process.
27392         Run make maintainer-clean before changing trees and merging.
27393         Don't try to run ./configure right after git pull in case files
27394         that influence the bootstrap process have changed, move the
27395         ./configure step to after running ./bootstrap.
27396         Don't bootstrap "one last time"... it's the first time!
27398 2011-10-22  Bruno Haible  <bruno@clisp.org>
27400         errno, strerror-override: Support for MSVC 10.
27401         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
27402         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
27403         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
27404         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
27405         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
27406         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
27407         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
27408         Assign values compatible with MSVC 10.
27409         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
27410         New macros.
27411         (GNULIB_defined_EWINSOCK): New macro.
27412         * lib/strerror-override.c (strerror_override): Update accordingly.
27413         * lib/strerror-override.h: Likewise.
27414         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
27415         longer equal to the corresponding errno value.
27416         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
27418 2011-10-22  Bruno Haible  <bruno@clisp.org>
27420         perror: Recognize when test program crashes.
27421         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
27422         strerror, set gl_cv_func_perror_works to no.
27423         Reported by Daniel Richard G. <skunk@iskunk.org>.
27425         perror: Fix indentation.
27426         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
27428 2011-10-22  Bruno Haible  <bruno@clisp.org>
27430         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
27431         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
27432         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
27433         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
27434         functions, not as a macro.
27435         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
27436         macros.
27437         (isfinite, isinf, isnan, signbit): Check overloaded functions and
27438         absence of macro.
27439         Suggested by Eric Blake.
27440         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
27442 2011-10-21  Bruno Haible  <bruno@clisp.org>
27444         relocatable-prog-wrapper: Don't leave object files behind.
27445         * build-aux/install-reloc: Re-synchronize list of .o files to be
27446         removed with list of compilation units.
27448 2011-10-20  Bruno Haible  <bruno@clisp.org>
27450         openpty, posix_openpt: Remove code duplication.
27451         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
27452         * lib/openpty.c: Include <stdlib.h>.
27453         (openpty): Use posix_openpt on all platforms except IRIX.
27454         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
27456 2011-10-20  Bruno Haible  <bruno@clisp.org>
27458         unlockpt: Detect invalid argument.
27459         * lib/unlockpt.c: Include <fcntl.h>.
27460         (unlockpt): Check whether fd is valid, using fcntl().
27461         * modules/unlockpt (Depends-on): Add fcntl-h.
27463 2011-10-20  Bruno Haible  <bruno@clisp.org>
27465         openpty: Avoid compilation error on AIX 6.1.
27466         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
27468 2011-10-20  Bruno Haible  <bruno@clisp.org>
27470         posix_openpt: Support for OpenBSD.
27471         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
27472         (posix_openpt) [OpenBSD]: New code.
27473         * lib/grantpt.c: Include <fcntl.h>.
27474         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
27475         * modules/grantpt (Depends-on): Add fcntl-h.
27477 2011-10-20  Bruno Haible  <bruno@clisp.org>
27479         posix_openpt test: Coding style.
27480         * tests/test-posix_openpt.c: Use GNU coding style.
27482 2011-10-20  Bruno Haible  <bruno@clisp.org>
27484         grantpt: Support --avoid=pt_chown.
27485         * modules/grantpt (Files): Add lib/pty-private.h.
27487 2011-10-20  Bruno Haible  <bruno@clisp.org>
27489         posix_openpt: Fix autoconf macro.
27490         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
27491         unneeded check for _getpty.
27493 2011-10-20  Bruno Haible  <bruno@clisp.org>
27495         openpty: Update comments.
27496         * lib/openpty.c: Add comments about Minix.
27498 2011-10-19  Eric Blake  <eblake@redhat.com>
27500         openpty: relax license
27501         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
27503         pt_chown: use configmake to simplify build
27504         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
27506         ptsname and others: relax license
27507         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
27508         * modules/unlockpt (License): Likewise.
27509         * modules/pt_chown (License): Likewise.
27510         * modules/ptsname (License): Likewise.
27511         * modules/ttyname_r (License): Likewise.
27513 2011-10-19  Jim Meyering  <meyering@redhat.com>
27515         posix_openpt: remove spurious #endif
27516         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
27518 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
27520         maint.mk: Respect $(build_aux) in web-manual rule.
27521         * top/maint.mk (web-manual): Find gen-announce script in user's
27522         $(build_aux) directory instead of hard-coding 'build-aux'.
27524 2011-10-19  Bruno Haible  <bruno@clisp.org>
27526         posix_openpt: Fix compilation error.
27527         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
27528         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
27529         Mention the openpty module as an alternative.
27531 2011-10-19  Bruno Haible  <bruno@clisp.org>
27533         Support for old NeXTstep 3.3 frexp().
27534         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
27535         execution time of the test to 5 seconds.
27536         Reported by Daniel Richard G. <skunk@iskunk.org>.
27538 2011-10-19  Bruno Haible  <bruno@clisp.org>
27540         Support for old NeXTstep 3.3 sed.
27541         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
27542         part, use /.../, not \|...|. Escape periods in the header file name.
27543         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
27544         Reported by Daniel Richard G. <skunk@iskunk.org>.
27546 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
27548         Support for old NeXTstep 3.3 gcc.
27549         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
27550         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
27551         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
27552         * lib/spawn.in.h (_Restrict_arr_): Likewise.
27553         * lib/regex.h (_Restrict_arr_): Likewise.
27554         * lib/regex_internal.h (re_token_t): Likewise.
27555         * lib/regexec.c (check_node_accept_bytes): Likewise.
27556         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
27558 2011-10-18  Eric Blake  <eblake@redhat.com>
27560         posix_openpt: new module
27561         * modules/posix_openpt: New module.
27562         * m4/posix_openpt.m4: New file.
27563         * lib/posix_openpt.c: Likewise.
27564         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
27565         (gl_STDLIB_H_DEFAULTS): Set defaults.
27566         * modules/stdlib (Makefile.am): Substitute macros.
27567         * lib/stdlib.in.h (posix_openpt): Declare.
27568         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
27569         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
27570         * modules/posix_openpt-tests: New test module.
27571         * tests/test-posix_openpt.c: New test.
27573 2011-10-15  Bruno Haible  <bruno@clisp.org>
27575         xstrtoll: Fix compilation failure.
27576         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
27577         from lib/strtol.c.
27578         * doc/posix-headers/limits.texi: Mention missing numerical limits on
27579         some platforms.
27580         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27582 2011-10-15  Bruno Haible  <bruno@clisp.org>
27584         vasnprintf: Optimize bit search operation.
27585         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
27586         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
27587         gl_DOUBLE_EXPONENT_LOCATION.
27588         * modules/vasnprintf (Files): Add m4/exponentd.m4.
27589         * modules/unistdio/u8-vasnprintf (Files): Likewise.
27590         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
27591         * modules/unistdio/u16-vasnprintf (Files): Likewise.
27592         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
27593         * modules/unistdio/u32-vasnprintf (Files): Likewise.
27594         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
27595         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
27596         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
27598 2011-10-15  Bruno Haible  <bruno@clisp.org>
27600         vasnprintf: Fix comments.
27601         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
27603 2011-10-14  Bruno Haible  <bruno@clisp.org>
27605         Tests for module 'integer_length_ll'.
27606         * modules/integer_length_ll-tests: New file.
27607         * tests/test-integer_length_ll.c: New file.
27609         New module 'integer_length_ll'.
27610         * lib/integer_length_ll.c: New file.
27611         * modules/integer_length_ll: New file.
27613 2011-10-14  Bruno Haible  <bruno@clisp.org>
27615         Tests for module 'integer_length_l'.
27616         * modules/integer_length_l-tests: New file.
27617         * tests/test-integer_length_l.c: New file.
27619         New module 'integer_length_l'.
27620         * lib/integer_length_l.c: New file.
27621         * modules/integer_length_l: New file.
27623 2011-10-14  Bruno Haible  <bruno@clisp.org>
27625         Tests for module 'integer_length'.
27626         * modules/integer_length-tests: New file.
27627         * tests/test-integer_length.c: New file.
27629         New module 'integer_length'.
27630         * lib/integer_length.h: New file.
27631         * lib/integer_length.c: New file.
27632         * modules/integer_length: New file.
27634 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
27636         popen: Fix dependency conditions.
27637         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
27639 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
27641         perror: Fix autoconf test.
27642         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
27643         <stdlib.h> and <string.h>.
27645 2011-10-14  Bruno Haible  <bruno@clisp.org>
27647         ffsl: Optimize on 64-bit platforms.
27648         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
27649         unrolling.
27651 2011-10-13  Bruno Haible  <bruno@clisp.org>
27653         ffsl: Optimize on 32-bit platforms.
27654         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
27655         use ffs() without a loop.
27657         ffsl, ffsll: Optimize for GCC.
27658         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
27659         * lib/ffsl.c (GCC_BUILTIN): New macro.
27660         * lib/ffsll.c (GCC_BUILTIN): Likewise.
27662 2011-10-13  Bruno Haible  <bruno@clisp.org>
27664         ffs, bcopy, memset: Support symbol renaming via config.h.
27665         * lib/ffs.c: Include <config.h>.
27666         * lib/bcopy.c: Likewise.
27667         * lib/memset.c: Likewise.
27669 2011-10-10  Bruno Haible  <bruno@clisp.org>
27671         atanl: Simplify for platforms where 'long double' == 'double'.
27672         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
27673         alternative implementation.
27674         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27675         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27676         * modules/atanl (Depends-on): Add atan. Update conditions.
27678 2011-10-10  Bruno Haible  <bruno@clisp.org>
27680         acosl: Simplify for platforms where 'long double' == 'double'.
27681         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
27682         alternative implementation.
27683         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27684         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27685         * modules/acosl (Depends-on): Add acos. Update conditions.
27687 2011-10-10  Bruno Haible  <bruno@clisp.org>
27689         asinl: Simplify for platforms where 'long double' == 'double'.
27690         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
27691         alternative implementation.
27692         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27693         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27694         * modules/asinl (Depends-on): Add asin. Update conditions.
27696 2011-10-10  Bruno Haible  <bruno@clisp.org>
27698         tanl: Simplify for platforms where 'long double' == 'double'.
27699         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
27700         implementation.
27701         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27702         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27703         * modules/tanl (Depends-on): Add tan. Update conditions.
27704         (configure.ac): Don't compile trigl.c if
27705         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27707 2011-10-10  Bruno Haible  <bruno@clisp.org>
27709         cosl: Simplify for platforms where 'long double' == 'double'.
27710         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
27711         implementation.
27712         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27713         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27714         * modules/cosl (Depends-on): Add cos. Update conditions.
27715         (configure.ac): Don't compile sincosl.c and trigl.c if
27716         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27718 2011-10-10  Bruno Haible  <bruno@clisp.org>
27720         sinl: Simplify for platforms where 'long double' == 'double'.
27721         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
27722         implementation.
27723         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27724         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27725         * modules/sinl (Depends-on): Add sin. Update conditions.
27726         (configure.ac): Don't compile sincosl.c and trigl.c if
27727         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27729 2011-10-10  Bruno Haible  <bruno@clisp.org>
27731         logl: Simplify for platforms where 'long double' == 'double'.
27732         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
27733         implementation.
27734         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27735         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27736         * modules/logl (Depends-on): Add log. Update conditions.
27738 2011-10-10  Bruno Haible  <bruno@clisp.org>
27740         expl: Simplify for platforms where 'long double' == 'double'.
27741         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
27742         implementation.
27743         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27744         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27745         * modules/expl (Depends-on): Add exp. Update conditions.
27747 2011-10-10  Bruno Haible  <bruno@clisp.org>
27749         sqrtl: Simplify for platforms where 'long double' == 'double'.
27750         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
27751         alternative implementation.
27752         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27753         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27754         * modules/sqrtl (Depends-on): Update conditions.
27756 2011-10-10  Bruno Haible  <bruno@clisp.org>
27758         ldexpl: Simplify for platforms where 'long double' == 'double'.
27759         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
27760         alternative implementation.
27761         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27762         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27763         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
27765 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
27767         ffsll: set correct witness
27768         * modules/ffsll (configure.ac): Fix typo.
27770 2011-10-10  Bruno Haible  <bruno@clisp.org>
27772         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
27773         * lib/printf-frexpl.c: Include <config.h>.
27774         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
27775         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
27776         second time.
27777         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
27778         gl_LONG_DOUBLE_VS_DOUBLE.
27779         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
27780         conditions.
27782 2011-10-10  Bruno Haible  <bruno@clisp.org>
27784         frexpl: Simplify for platforms where 'long double' == 'double'.
27785         * lib/frexpl.c: Include <config.h>.
27786         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
27787         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
27788         time.
27789         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27790         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27791         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
27792         * modules/frexpl (Depends-on): Add frexp. Update conditions.
27793         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
27794         conditions.
27796 2011-10-10  Jim Meyering  <meyering@redhat.com>
27798         test-renameat: don't leave behind a temporary file
27799         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
27800           ERROR: files left in build directory after distclean:
27801           ./gltests/test-renameat.too
27802           make[1]: *** [distcleancheck] Error 1
27803         Reported by Tom G. Christensen.
27805 2011-10-09  Bruno Haible  <bruno@clisp.org>
27807         rint: Determine RINT_LIBM correctly on AIX 7.
27808         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
27809         directly, not only through a function pointer. Also accept an optional
27810         4th argument with extra code.
27811         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
27812         rintf() call by gcc when optimizing.
27814         mathfunc.m4: Refactor.
27815         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
27816         m4 variable.
27818 2011-10-09  Bruno Haible  <bruno@clisp.org>
27820         rintl: Simplify for platforms where 'long double' == 'double'.
27821         * lib/rintl.c: Include <config.h>.
27822         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
27823         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
27824         time.
27825         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27826         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27827         * modules/rintl (Depends-on): Add rint. Update conditions.
27829 2011-10-09  Bruno Haible  <bruno@clisp.org>
27831         roundl: Simplify for platforms where 'long double' == 'double'.
27832         * lib/roundl.c: Include <config.h>.
27833         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
27834         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
27835         time.
27836         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27837         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27838         * modules/roundl (Depends-on): Add round. Update conditions.
27840 2011-10-09  Bruno Haible  <bruno@clisp.org>
27842         truncl: Simplify for platforms where 'long double' == 'double'.
27843         * lib/truncl.c: Include <config.h>.
27844         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
27845         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
27846         time.
27847         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27848         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27849         * modules/truncl (Depends-on): Add trunc. Update conditions.
27851 2011-10-09  Bruno Haible  <bruno@clisp.org>
27853         ceill: Simplify for platforms where 'long double' == 'double'.
27854         * lib/ceill.c: Include <config.h>.
27855         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
27856         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
27857         time.
27858         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27859         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27860         * modules/ceill (Depends-on): Add ceil. Update conditions.
27862 2011-10-09  Bruno Haible  <bruno@clisp.org>
27864         floorl: Simplify for platforms where 'long double' == 'double'.
27865         * lib/floorl.c: Include <config.h>.
27866         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
27867         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
27868         time.
27869         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27870         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27871         * modules/floorl (Depends-on): Add floor. Update conditions.
27873 2011-10-09  Bruno Haible  <bruno@clisp.org>
27875         rint: Fix ordering constraints.
27876         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
27877         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
27878         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
27880 2011-10-09  Bruno Haible  <bruno@clisp.org>
27882         copysignl: Simplify for platforms where 'long double' == 'double'.
27883         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
27884         alternative.
27885         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27886         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27887         * modules/copysignl (Depends-on): Add copysign. Update conditions.
27889 2011-10-09  Bruno Haible  <bruno@clisp.org>
27891         Tests for module 'rintl'.
27892         * modules/rintl-tests: New file.
27893         * tests/test-rintl.c: New file.
27895         New module 'rintl'.
27896         * lib/math.in.h (rintl): New declaration.
27897         * lib/rintl.c: New file.
27898         * m4/rintl.m4: New file.
27899         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
27900         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
27901         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
27902         * modules/rintl: New file.
27903         * tests/test-math-c++.cc: Check the declaration of rintl.
27904         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
27905         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
27906         * doc/posix-functions/rintl.texi: Mention the new module.
27908 2011-10-09  Bruno Haible  <bruno@clisp.org>
27910         Tests for module 'rintf'.
27911         * modules/rintf-tests: New file.
27912         * tests/test-rintf.c: New file.
27914         New module 'rintf'.
27915         * lib/math.in.h (rintf): New declaration.
27916         * lib/rintf.c: New file.
27917         * m4/rintf.m4: New file.
27918         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
27919         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
27920         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
27921         * modules/rintf: New file.
27922         * tests/test-math-c++.cc: Check the declaration of rintf.
27923         * doc/posix-functions/rintf.texi: Mention the new module.
27925 2011-10-09  Bruno Haible  <bruno@clisp.org>
27927         rint: Support for MSVC.
27928         * lib/math.in.h (rint): New declaration.
27929         * lib/rint.c: New file.
27930         * m4/rint.m4: New file.
27931         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
27932         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
27933         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
27934         * modules/rint (Description): Fix.
27935         (Files): Add lib/rint.c, m4/rint.m4.
27936         (Depends-on): Add math.
27937         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
27938         gl_MATH_MODULE_INDICATOR.
27939         * tests/test-math-c++.cc: Check the declaration of rint.
27940         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
27941         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
27942         * doc/posix-functions/rint.texi: Mention the replacement provided by
27943         the module.
27945         rint tests: More tests.
27946         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
27947         minus-zero.h, infinity.h, nan.h.
27948         (main): Skip the test if the current rounding mode is not standard. Add
27949         tests for negative numbers, minus zero, infinity, NaN.
27950         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
27951         tests/nan.h.
27952         (Depends-on): Add isnand-nolibm.
27954 2011-10-09  Bruno Haible  <bruno@clisp.org>
27956         Tests for module 'copysignl'.
27957         * modules/copysignl-tests: New file.
27958         * tests/test-copysignl.c: New file.
27960         New module 'copysignl'.
27961         * lib/math.in.h (copysignl): New declaration.
27962         * lib/copysignl.c: New file.
27963         * m4/copysignl.m4: New file.
27964         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
27965         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
27966         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
27967         HAVE_COPYSIGNL.
27968         * modules/copysignl: New file.
27969         * tests/test-math-c++.cc: Check the declaration of copysignl.
27970         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
27971         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
27972         * doc/posix-functions/copysignl.texi: Mention the new module.
27974 2011-10-09  Bruno Haible  <bruno@clisp.org>
27976         Tests for module 'copysignf'.
27977         * modules/copysignf-tests: New file.
27978         * tests/test-copysignf.c: New file.
27980         New module 'copysignf'.
27981         * lib/math.in.h (copysignf): New declaration.
27982         * lib/copysignf.c: New file.
27983         * m4/copysignf.m4: New file.
27984         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
27985         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
27986         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
27987         HAVE_COPYSIGNF.
27988         * modules/copysignf: New file.
27989         * tests/test-math-c++.cc: Check the declaration of copysignf.
27990         * doc/posix-functions/copysignf.texi: Mention the new module.
27992 2011-10-09  Bruno Haible  <bruno@clisp.org>
27994         Ensure that HAVE_* variables are set to 1 before they are set to 0.
27995         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
27996         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
27997         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
27998         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
27999         gl_SIGNAL_H_DEFAULTS.
28001 2011-10-09  Bruno Haible  <bruno@clisp.org>
28003         poll: Make macro safer.
28004         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
28005         ac_cv_header_poll_h is not set.
28007 2011-10-09  Bruno Haible  <bruno@clisp.org>
28009         copysign: Provide replacement.
28010         * lib/math.in.h (copysign): New declaration.
28011         * lib/copysign.c: New file.
28012         * m4/copysign.m4: New file.
28013         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
28014         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
28015         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
28016         HAVE_COPYSIGN.
28017         * modules/copysign (Description): Clarify.
28018         (Files): Add lib/copysign.c, m4/copysign.m4.
28019         (Depends-on): Add math, signbit.
28020         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
28021         gl_MATH_MODULE_INDICATOR.
28022         * tests/test-math-c++.cc: Check the declaration of copysign.
28023         * doc/posix-functions/copysign.texi: Mention the effects of the module
28024         on Minix and MSVC.
28026 2011-10-09  Bruno Haible  <bruno@clisp.org>
28028         isinf: Ensure macro on AIX 5.1.
28029         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
28030         macro.
28031         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
28033 2011-10-09  Bruno Haible  <bruno@clisp.org>
28035         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
28036         * modules/snprintf-posix-tests (configure.ac): Require
28037         gl_LONG_DOUBLE_VS_DOUBLE.
28038         * modules/sprintf-posix-tests (configure.ac): Likewise.
28039         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
28040         * modules/vasprintf-posix-tests (configure.ac): Likewise.
28041         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
28042         * modules/vsprintf-posix-tests (configure.ac): Likewise.
28043         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
28044         tests on platforms where 'long double' is the same as 'double'.
28045         * tests/test-sprintf-posix.h (test_function): Likewise.
28046         * tests/test-vasnprintf-posix.c (test_function): Likewise.
28047         * tests/test-vasprintf-posix.c (test_function): Likewise.
28049         *printf: Fix for platforms where 'long double' == 'double'.
28050         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
28051         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
28052         * modules/dprintf-posix (Files): Add m4/math_h.m4.
28053         * modules/fprintf-posix (Files): Likewise.
28054         * modules/obstack-printf-posix (Files): Likewise.
28055         * modules/snprintf-posix (Files): Likewise.
28056         * modules/sprintf-posix (Files): Likewise.
28057         * modules/vasnprintf (Files): Likewise.
28058         * modules/vasnprintf-posix (Files): Likewise.
28059         * modules/vasprintf-posix (Files): Likewise.
28060         * modules/vdprintf-posix (Files): Likewise.
28061         * modules/vfprintf-posix (Files): Likewise.
28062         * modules/vsnprintf-posix (Files): Likewise.
28063         * modules/vsprintf-posix (Files): Likewise.
28064         * modules/unistdio/u8-vasnprintf (Files): Likewise.
28065         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
28066         * modules/unistdio/u16-vasnprintf (Files): Likewise.
28067         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
28068         * modules/unistdio/u32-vasnprintf (Files): Likewise.
28069         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
28070         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
28072         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
28073         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
28074         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28075         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
28076         'long double'.
28077         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
28079         isinf: Fix for platforms where 'long double' == 'double'.
28080         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
28081         Don't blindly assume 80-bit 'long double'.
28083         isfinite: Fix for platforms where 'long double' == 'double'.
28084         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
28085         Don't blindly assume 80-bit 'long double'.
28087         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
28088         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
28089         * modules/isfinite-tests (configure.ac): Require
28090         gl_LONG_DOUBLE_VS_DOUBLE.
28091         * modules/isinf-tests (configure.ac): Likewise.
28092         * modules/isnan-tests (configure.ac): Likewise.
28093         * modules/isnanl-tests (configure.ac): Likewise.
28094         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
28095         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
28096         tests on platforms where 'long double' is the same as 'double'.
28097         * tests/test-isinf.c (test_isinfl): Likewise.
28098         * tests/test-isnan.c (test_long_double): Likewise.
28099         * tests/test-isnanl.h (main): Likewise.
28101 2011-10-08  Bruno Haible  <bruno@clisp.org>
28103         Tests for module 'tanhf'.
28104         * modules/tanhf-tests: New file.
28105         * tests/test-tanhf.c: New file.
28107         New module 'tanhf'.
28108         * lib/math.in.h (tanhf): New declaration.
28109         * lib/tanhf.c: New file.
28110         * m4/tanhf.m4: New file.
28111         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
28112         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
28113         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
28114         * modules/tanhf: New file.
28115         * tests/test-math-c++.cc: Check the declaration of tanhf.
28116         * doc/posix-functions/tanhf.texi: Mention the new module.
28118         tanh: Use a .m4 file.
28119         * m4/tanh.m4: New file.
28120         * modules/tanh (Files): Add it.
28121         (configure.ac): Just invoke gl_FUNC_TANH.
28123 2011-10-08  Bruno Haible  <bruno@clisp.org>
28125         Tests for module 'coshf'.
28126         * modules/coshf-tests: New file.
28127         * tests/test-coshf.c: New file.
28129         New module 'coshf'.
28130         * lib/math.in.h (coshf): New declaration.
28131         * lib/coshf.c: New file.
28132         * m4/coshf.m4: New file.
28133         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
28134         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
28135         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
28136         * modules/coshf: New file.
28137         * tests/test-math-c++.cc: Check the declaration of coshf.
28138         * doc/posix-functions/coshf.texi: Mention the new module.
28140         cosh: Use a .m4 file.
28141         * m4/cosh.m4: New file.
28142         * modules/cosh (Files): Add it.
28143         (configure.ac): Just invoke gl_FUNC_COSH.
28145 2011-10-08  Bruno Haible  <bruno@clisp.org>
28147         Tests for module 'sinhf'.
28148         * modules/sinhf-tests: New file.
28149         * tests/test-sinhf.c: New file.
28151         New module 'sinhf'.
28152         * lib/math.in.h (sinhf): New declaration.
28153         * lib/sinhf.c: New file.
28154         * m4/sinhf.m4: New file.
28155         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
28156         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
28157         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
28158         * modules/sinhf: New file.
28159         * tests/test-math-c++.cc: Check the declaration of sinhf.
28160         * doc/posix-functions/sinhf.texi: Mention the new module.
28162         sinh: Use a .m4 file.
28163         * m4/sinh.m4: New file.
28164         * modules/sinh (Files): Add it.
28165         (configure.ac): Just invoke gl_FUNC_SINH.
28167 2011-10-08  Bruno Haible  <bruno@clisp.org>
28169         Tests for module 'atan2f'.
28170         * modules/atan2f-tests: New file.
28171         * tests/test-atan2f.c: New file.
28173         New module 'atan2f'.
28174         * lib/math.in.h (atan2f): New declaration.
28175         * lib/atan2f.c: New file.
28176         * m4/atan2f.m4: New file.
28177         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
28178         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
28179         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
28180         * modules/atan2f: New file.
28181         * tests/test-math-c++.cc: Check the declaration of atan2f.
28182         * doc/posix-functions/atan2f.texi: Mention the new module.
28184         atan2: Use a .m4 file.
28185         * m4/atan2.m4: New file.
28186         * modules/atan2 (Files): Add it.
28187         (configure.ac): Just invoke gl_FUNC_ATAN2.
28189 2011-10-08  Bruno Haible  <bruno@clisp.org>
28191         Tests for module 'atanf'.
28192         * modules/atanf-tests: New file.
28193         * tests/test-atanf.c: New file.
28195         New module 'atanf'.
28196         * lib/math.in.h (atanf): New declaration.
28197         * lib/atanf.c: New file.
28198         * m4/atanf.m4: New file.
28199         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
28200         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
28201         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
28202         * modules/atanf: New file.
28203         * tests/test-math-c++.cc: Check the declaration of atanf.
28204         * doc/posix-functions/atanf.texi: Mention the new module.
28206         atan: Use a .m4 file.
28207         * m4/atan.m4: New file.
28208         * modules/atan (Files): Add it.
28209         (configure.ac): Just invoke gl_FUNC_ATAN.
28211 2011-10-08  Bruno Haible  <bruno@clisp.org>
28213         Tests for module 'acosf'.
28214         * modules/acosf-tests: New file.
28215         * tests/test-acosf.c: New file.
28217         New module 'acosf'.
28218         * lib/math.in.h (acosf): New declaration.
28219         * lib/acosf.c: New file.
28220         * m4/acosf.m4: New file.
28221         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
28222         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
28223         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
28224         * modules/acosf: New file.
28225         * tests/test-math-c++.cc: Check the declaration of acosf.
28226         * doc/posix-functions/acosf.texi: Mention the new module.
28228         acos: Use a .m4 file.
28229         * m4/acos.m4: New file.
28230         * modules/acos (Files): Add it.
28231         (configure.ac): Just invoke gl_FUNC_ACOS.
28233 2011-10-08  Bruno Haible  <bruno@clisp.org>
28235         Tests for module 'asinf'.
28236         * modules/asinf-tests: New file.
28237         * tests/test-asinf.c: New file.
28239         New module 'asinf'.
28240         * lib/math.in.h (asinf): New declaration.
28241         * lib/asinf.c: New file.
28242         * m4/asinf.m4: New file.
28243         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
28244         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
28245         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
28246         * modules/asinf: New file.
28247         * tests/test-math-c++.cc: Check the declaration of asinf.
28248         * doc/posix-functions/asinf.texi: Mention the new module.
28250         asin: Use a .m4 file.
28251         * m4/asin.m4: New file.
28252         * modules/asin (Files): Add it.
28253         (configure.ac): Just invoke gl_FUNC_ASIN.
28255 2011-10-08  Bruno Haible  <bruno@clisp.org>
28257         Tests for module 'tanf'.
28258         * modules/tanf-tests: New file.
28259         * tests/test-tanf.c: New file.
28261         New module 'tanf'.
28262         * lib/math.in.h (tanf): New declaration.
28263         * lib/tanf.c: New file.
28264         * m4/tanf.m4: New file.
28265         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
28266         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
28267         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
28268         * modules/tanf: New file.
28269         * tests/test-math-c++.cc: Check the declaration of tanf.
28270         * doc/posix-functions/tanf.texi: Mention the new module.
28272         tan: Use a .m4 file.
28273         * m4/tan.m4: New file.
28274         * modules/tan (Files): Add it.
28275         (configure.ac): Just invoke gl_FUNC_TAN.
28277 2011-10-08  Bruno Haible  <bruno@clisp.org>
28279         Tests for module 'cosf'.
28280         * modules/cosf-tests: New file.
28281         * tests/test-cosf.c: New file.
28283         New module 'cosf'.
28284         * lib/math.in.h (cosf): New declaration.
28285         * lib/cosf.c: New file.
28286         * m4/cosf.m4: New file.
28287         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
28288         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
28289         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
28290         * modules/cosf: New file.
28291         * tests/test-math-c++.cc: Check the declaration of cosf.
28292         * doc/posix-functions/cosf.texi: Mention the new module.
28294         cos: Use a .m4 file.
28295         * m4/cos.m4: New file.
28296         * modules/cos (Files): Add it.
28297         (configure.ac): Just invoke gl_FUNC_COS.
28299 2011-10-08  Bruno Haible  <bruno@clisp.org>
28301         Tests for module 'sinf'.
28302         * modules/sinf-tests: New file.
28303         * tests/test-sinf.c: New file.
28305         New module 'sinf'.
28306         * lib/math.in.h (sinf): New declaration.
28307         * lib/sinf.c: New file.
28308         * m4/sinf.m4: New file.
28309         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
28310         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
28311         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
28312         * modules/sinf: New file.
28313         * tests/test-math-c++.cc: Check the declaration of sinf.
28314         * doc/posix-functions/sinf.texi: Mention the new module.
28316         sin: Use a .m4 file.
28317         * m4/sin.m4: New file.
28318         * modules/sin (Files): Add it.
28319         (configure.ac): Just invoke gl_FUNC_SIN.
28321 2011-10-08  Bruno Haible  <bruno@clisp.org>
28323         Tests for module 'powf'.
28324         * modules/powf-tests: New file.
28325         * tests/test-powf.c: New file.
28327         New module 'powf'.
28328         * lib/math.in.h (powf): New declaration.
28329         * lib/powf.c: New file.
28330         * m4/powf.m4: New file.
28331         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
28332         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
28333         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
28334         * modules/powf: New file.
28335         * tests/test-math-c++.cc: Check the declaration of powf.
28336         * doc/posix-functions/powf.texi: Mention the new module.
28338         pow: Use a .m4 file.
28339         * m4/pow.m4: New file.
28340         * modules/pow (Files): Add it.
28341         (configure.ac): Just invoke gl_FUNC_POW.
28343 2011-10-08  Bruno Haible  <bruno@clisp.org>
28345         Tests for module 'log10f'.
28346         * modules/log10f-tests: New file.
28347         * tests/test-log10f.c: New file.
28349         New module 'log10f'.
28350         * lib/math.in.h (log10f): New declaration.
28351         * lib/log10f.c: New file.
28352         * m4/log10f.m4: New file.
28353         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
28354         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
28355         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
28356         * modules/log10f: New file.
28357         * tests/test-math-c++.cc: Check the declaration of log10f.
28358         * doc/posix-functions/log10f.texi: Mention the new module.
28360         log10: Use a .m4 file.
28361         * m4/log10.m4: New file.
28362         * modules/log10 (Files): Add it.
28363         (configure.ac): Just invoke gl_FUNC_LOG10.
28365 2011-10-08  Bruno Haible  <bruno@clisp.org>
28367         Tests for module 'logf'.
28368         * modules/logf-tests: New file.
28369         * tests/test-logf.c: New file.
28371         New module 'logf'.
28372         * lib/math.in.h (logf): New declaration.
28373         * lib/logf.c: New file.
28374         * m4/logf.m4: New file.
28375         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
28376         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
28377         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
28378         * modules/logf: New file.
28379         * tests/test-math-c++.cc: Check the declaration of logf.
28380         * doc/posix-functions/logf.texi: Mention the new module.
28382         log: Use a .m4 file.
28383         * m4/log.m4: New file.
28384         * modules/log (Files): Add it.
28385         (configure.ac): Just invoke gl_FUNC_LOG.
28387 2011-10-08  Bruno Haible  <bruno@clisp.org>
28389         Tests for module 'expf'.
28390         * modules/expf-tests: New file.
28391         * tests/test-expf.c: New file.
28393         New module 'expf'.
28394         * lib/math.in.h (expf): New declaration.
28395         * lib/expf.c: New file.
28396         * m4/expf.m4: New file.
28397         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
28398         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
28399         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
28400         * modules/expf: New file.
28401         * tests/test-math-c++.cc: Check the declaration of expf.
28402         * doc/posix-functions/expf.texi: Mention the new module.
28404         exp: Use a .m4 file.
28405         * m4/exp.m4: New file.
28406         * modules/exp (Files): Add it.
28407         (configure.ac): Just invoke gl_FUNC_EXP.
28409 2011-10-08  Bruno Haible  <bruno@clisp.org>
28411         Tests for module 'sqrtf'.
28412         * modules/sqrtf-tests: New file.
28413         * tests/test-sqrtf.c: New file.
28415         New module 'sqrtf'.
28416         * lib/math.in.h (sqrtf): New declaration.
28417         * lib/sqrtf.c: New file.
28418         * m4/sqrtf.m4: New file.
28419         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
28420         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
28421         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
28422         * modules/sqrtf: New file.
28423         * tests/test-math-c++.cc: Check the declaration of sqrtf.
28424         * doc/posix-functions/sqrtf.texi: Mention the new module.
28426 2011-10-08  Bruno Haible  <bruno@clisp.org>
28428         Tests: Avoid link failures w.r.t. libintl.
28429         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
28430         $(LIBINTL).
28431         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
28432         $(LIBINTL).
28433         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
28434         against $(LIBINTL).
28435         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
28436         $(LIBINTL).
28437         * modules/openat-tests (Makefile.am): Link test-fchmodat against
28438         $(LIBINTL).
28439         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
28441 2011-10-08  Bruno Haible  <bruno@clisp.org>
28443         pow tests: Defeat compiler optimizations.
28444         * tests/test-pow.c (main): Assign arguments to x and y before use.
28446 2011-10-08  Bruno Haible  <bruno@clisp.org>
28448         gnulib-tool: Improve last commit.
28449         * gnulib-tool (func_modules_transitive_closure): Simplify code.
28450         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
28451         ignore dependencies that are not among the modules list.
28453 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
28455         gnulib-tool: don't follow dependencies to avoided modules
28456         This fixes a bug that is related to the previous one.
28457         * gnulib-tool (func_modules_transitive_closure)
28458         (func_emit_autoconf_snippets):
28459         Check whether a dependency is acceptable before using it.
28460         (--extract-dependencies): Report an error if --avoid is also used,
28461         since this combination of options is not yet supported.
28463         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
28464         Problem reported by Peter Dyballa in
28465         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
28466         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
28467         when echoing "$condition".
28469 2011-10-07  Bruno Haible  <bruno@clisp.org>
28471         Fix documentation about math functions on MacOS X.
28472         * doc/posix-functions/exp2.texi: Don't say the function is missing on
28473         MacOS X 10.5.
28474         * doc/posix-functions/fdim.texi: Likewise.
28475         * doc/posix-functions/feclearexcept.texi: Likewise.
28476         * doc/posix-functions/fegetenv.texi: Likewise.
28477         * doc/posix-functions/fegetround.texi: Likewise.
28478         * doc/posix-functions/feholdexcept.texi: Likewise.
28479         * doc/posix-functions/feraiseexcept.texi: Likewise.
28480         * doc/posix-functions/fesetenv.texi: Likewise.
28481         * doc/posix-functions/fesetround.texi: Likewise.
28482         * doc/posix-functions/fetestexcept.texi: Likewise.
28483         * doc/posix-functions/feupdateenv.texi: Likewise.
28484         * doc/posix-functions/fmax.texi: Likewise.
28485         * doc/posix-functions/fmin.texi: Likewise.
28486         * doc/posix-functions/log2.texi: Likewise.
28487         * doc/posix-functions/modff.texi: Likewise.
28488         * doc/posix-functions/nan.texi: Likewise.
28489         * doc/posix-functions/nanf.texi: Likewise.
28490         * doc/posix-functions/nextafterf.texi: Likewise.
28491         * doc/posix-functions/remquo.texi: Likewise.
28493 2011-10-07  Bruno Haible  <bruno@clisp.org>
28495         modff: Drop assumption about library that defines modff.
28496         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
28497         AC_CHECK_FUNCS.
28498         * modules/modff (Files): Add m4/mathfunc.m4.
28500 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
28502         raise tests: Avoid a GCC warning.
28503         * tests/test-raise.c (handler): Use _Noreturn.
28505 2011-10-07  Bruno Haible  <bruno@clisp.org>
28507         Tests for module 'ldexpf'.
28508         * modules/ldexpf-tests: New file.
28509         * tests/test-ldexpf.c: New file.
28511         New module 'ldexpf'.
28512         * lib/math.in.h (ldexpf): New declaration.
28513         * lib/ldexpf.c: New file.
28514         * m4/ldexpf.m4: New file.
28515         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
28516         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
28517         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
28518         * modules/ldexpf: New file.
28519         * tests/test-math-c++.cc: Check the declaration of ldexpf.
28520         * doc/posix-functions/ldexpf.texi: Mention the new module.
28522 2011-10-06  Bruno Haible  <bruno@clisp.org>
28524         frexpf: Work around problems on IRIX and mingw.
28525         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
28526         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
28527         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
28528         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
28529         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
28530         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
28531         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
28533 2011-10-06  Bruno Haible  <bruno@clisp.org>
28535         fabsf: Drop assumption about library that defines fabsf.
28536         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
28537         AC_CHECK_FUNCS.
28538         * modules/fabsf (Files): Add m4/mathfunc.m4.
28540 2011-10-06  Bruno Haible  <bruno@clisp.org>
28542         frexpf: Drop assumption about library that defines frexpf.
28543         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
28544         'int *', 'float *', 'long double *', 'float', 'long double'.
28545         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
28546         AC_CHECK_FUNCS.
28547         * modules/frexpf (Files): Add m4/mathfunc.m4.
28549         Tests for module 'frexpf'.
28550         * modules/frexpf-tests: New file.
28551         * tests/test-frexpf.c: New file.
28553         New module 'frexpf'.
28554         * lib/math.in.h (frexpf): New declaration.
28555         * lib/frexpf.c: New file.
28556         * m4/frexpf.m4: New file.
28557         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
28558         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
28559         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
28560         * modules/frexpf: New file.
28561         * tests/test-math-c++.cc: Check the declaration of frexpf.
28562         * doc/posix-functions/frexpf.texi: Mention the new module.
28564 2011-10-06  Bruno Haible  <bruno@clisp.org>
28566         math: Sort function declarations of math.in.h.
28567         * lib/math.in.h (frexp, logb): Move declarations.
28569 2011-10-05  Bruno Haible  <bruno@clisp.org>
28571         Tests for module 'modff'.
28572         * modules/modff-tests: New file.
28573         * tests/test-modff.c: New file.
28575         New module 'modff'.
28576         * lib/math.in.h (modff): New declaration.
28577         * lib/modff.c: New file.
28578         * m4/modff.m4: New file.
28579         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
28580         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
28581         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
28582         * modules/modff: New file.
28583         * tests/test-math-c++.cc: Check the declaration of modff.
28584         * doc/posix-functions/modff.texi: Mention the new module.
28586         modf tests: Make test sharper.
28587         * tests/test-modf.c (main): Strengthen upper bound.
28589         modf: Use a .m4 file.
28590         * m4/modf.m4: New file.
28591         * modules/modf (Files): Add it.
28592         (configure.ac): Just invoke gl_FUNC_MODF.
28594 2011-10-05  Bruno Haible  <bruno@clisp.org>
28596         Tests for module 'fmodf'.
28597         * modules/fmodf-tests: New file.
28598         * tests/test-fmodf.c: New file.
28600         New module 'fmodf'.
28601         * lib/math.in.h (fmodf): New declaration.
28602         * lib/fmodf.c: New file.
28603         * m4/fmodf.m4: New file.
28604         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
28605         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
28606         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
28607         * modules/fmodf: New file.
28608         * tests/test-math-c++.cc: Check the declaration of fmodf.
28609         * doc/posix-functions/fmodf.texi: Mention the new module.
28611         fmod: Use a .m4 file.
28612         * m4/fmod.m4: New file.
28613         * modules/fmod (Files): Add it.
28614         (configure.ac): Just invoke gl_FUNC_FMOD.
28616 2011-10-05  Bruno Haible  <bruno@clisp.org>
28618         Tests for module 'fabsf'.
28619         * modules/fabsf-tests: New file.
28620         * tests/test-fabsf.c: New file.
28622         New module 'fabsf'.
28623         * lib/math.in.h (fabsf): New declaration.
28624         * lib/fabsf.c: New file.
28625         * m4/fabsf.m4: New file.
28626         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
28627         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
28628         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
28629         * modules/fabsf: New file.
28630         * tests/test-math-c++.cc: Check the declaration of fabsf.
28631         * doc/posix-functions/fabsf.texi: Mention the new module.
28633         fabs: Use a .m4 file.
28634         * m4/fabs.m4: New file.
28635         * modules/fabs (Files): Add it.
28636         (configure.ac): Just invoke gl_FUNC_FABS.
28638 2011-10-05  Jim Meyering  <meyering@redhat.com>
28640         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
28641         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
28642         ls -lL regression introduced in coreutils-8.12, it does so at the
28643         cost of an additional stat call in the common case.  Besides, now
28644         that the kernel change that prompted commit 95f7c57f has been reverted
28645         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
28646         we have no use for commit 95f7c57f, "file-has-acl: use
28647         acl_extended_file_nofollow if available".
28649 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
28651         file-has-acl: revert unintended change in behavior of ls -L
28652         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
28653         derived from...
28654         (file_has_acl): ...code here.  Call it.
28655         This problem was introduced with 2011-07-22 commit 95f7c57f,
28656         "file-has-acl: use acl_extended_file_nofollow if available".
28657         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
28659 2011-10-03  Bruno Haible  <bruno@clisp.org>
28661         poll: Avoid link errors on MSVC.
28662         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
28663         * modules/poll (Depends-on): Add sockets.
28664         (Link): New section.
28665         * NEWS: Mention the change.
28666         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
28667         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
28668         $(LIB_POLL) instead of $(LIBSOCKET).
28670 2011-10-03  Bruno Haible  <bruno@clisp.org>
28672         sys_select tests: Fix link error on MSVC 9.
28673         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
28674         with $(LIB_SELECT) instead of $(LIBSOCKET).
28676 2011-10-03  Bruno Haible  <bruno@clisp.org>
28678         sys_select: Fix compilation error on mingw.
28679         * lib/sys_select.in.h: On native Windows, include <io.h>.
28681 2011-10-03  Bruno Haible  <bruno@clisp.org>
28683         wmemset: Support for MSVC.
28684         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
28685         whether wmemset() exists.
28687 2011-10-03  Bruno Haible  <bruno@clisp.org>
28689         wmemmove: Support for MSVC.
28690         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
28691         whether wmemmove() exists.
28693 2011-10-03  Bruno Haible  <bruno@clisp.org>
28695         wmemcpy: Support for MSVC.
28696         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
28697         whether wmemcpy() exists.
28699 2011-10-03  Bruno Haible  <bruno@clisp.org>
28701         wmemcmp: Support for MSVC.
28702         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
28703         whether wmemcmp() exists.
28705 2011-10-03  Bruno Haible  <bruno@clisp.org>
28707         wmemchr: Support for MSVC.
28708         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
28709         whether wmemchr() exists.
28711 2011-10-03  Bruno Haible  <bruno@clisp.org>
28713         glthread/*, strsignal: Support for MSVC.
28714         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
28715         including <winsock.h> on MSVC 9.
28716         * lib/glthread/lock.h: Likewise.
28717         * lib/glthread/thread.h: Likewise.
28718         * lib/glthread/tls.h: Likewise.
28719         * lib/glthread/yield.h: Likewise.
28720         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
28721         if HAVE_UNISTD_H is false.
28722         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
28724 2011-10-03  Bruno Haible  <bruno@clisp.org>
28726         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
28727         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
28728         Set to 100000.
28730 2011-10-03  Bruno Haible  <bruno@clisp.org>
28732         acl: Fix specification.
28733         * lib/file-has-acl.c (file_has_acl): Fix specification.
28735 2011-10-03  Bruno Haible  <bruno@clisp.org>
28737         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
28738         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
28739         (compute_curr_prefix, shared_library_fullname,
28740         find_shared_library_fullname, get_shared_library_fullname, relocate):
28741         Use it together with PIC && INSTALLDIR.
28742         Reported by <jojelino@gmail.com>
28743         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
28745 2011-10-01  Jim Meyering  <meyering@redhat.com>
28747         maint.mk: adjust a release-related rule not to require use of gzip
28748         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
28749         Instead, check each file in $(DIST_ARCHIVES).  This is better for
28750         projects that build only .tar.xz files.  Also fix an erroneous test.
28752         test-linkat: don't leave behind a temporary file
28753         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
28754         Otherwise, coreutils' "make distcheck" would fail with this:
28755           Only in /c/cu/tests/torture/coreutils/test/\
28756             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
28757           make[2]: *** [my-distcheck] Error 1
28759         float, math: add omitted file
28760         * lib/itold.c: Add file, required for yesterday's float change.
28762 2011-10-01  Bruno Haible  <bruno@clisp.org>
28764         isinf: Fix for OpenBSD/x86.
28765         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
28766         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
28767         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
28769 2011-10-01  Bruno Haible  <bruno@clisp.org>
28771         isfinite: Fix syntax error in configure test.
28772         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
28774         isfinite: Fix typo.
28775         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
28776         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
28778 2011-10-01  Bruno Haible  <bruno@clisp.org>
28780         nonblocking tests: Fix test failure on Linux/IA-64.
28781         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
28782         Set to 270000.
28784 2011-10-01  Bruno Haible  <bruno@clisp.org>
28786         mkfifoat tests: Fix a test failure on mingw.
28787         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
28788         with error ENOSYS.
28790 2011-09-30  Bruno Haible  <bruno@clisp.org>
28792         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
28793         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
28794         'long double'. Set REPLACE_ITOLD.
28795         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
28796         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
28797         * lib/itold.c: New file.
28798         * modules/float (Files): Add lib/itold.c.
28799         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
28800         (Makefile.am): Substitute REPLACE_ITOLD.
28801         * modules/math (Depends-on): Add float.
28802         (Makefile.am): Substitute REPLACE_ITOLD.
28803         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
28804         * doc/posix-headers/math.texi: Likewise.
28805         * doc/posix-functions/logl.texi: Likewise.
28807 2011-09-30  Bruno Haible  <bruno@clisp.org>
28809         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
28810         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
28811         Set to 140000.
28813 2011-09-30  Bruno Haible  <bruno@clisp.org>
28815         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
28816         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
28817         invocation, say "right after AC_PROG_CC_STDC", not "right after
28818         AC_PROG_CC".
28819         Reported by Gary V. Vaughan <gary@gnu.org>.
28821 2011-09-30  Bruno Haible  <bruno@clisp.org>
28823         Centralize C99 requirement.
28824         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
28825         * modules/stdarg (configure.ac-early): Invoke it instead of
28826         AC_PROG_CC_STDC.
28827         Reported by Gary V. Vaughan and Paul Eggert.
28829 2011-09-29  Bruno Haible  <bruno@clisp.org>
28831         float: Fix LDBL_MAX value on Linux/PowerPC.
28832         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
28833         on Linux/PowerPC.
28834         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
28835         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
28836         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
28837         platform.
28838         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
28840 2011-09-29  Bruno Haible  <bruno@clisp.org>
28842         doc: Improve doc about gl_EARLY.
28843         * doc/gnulib-tool.texi (Initial import): Mention where to place an
28844         AC_PROG_CC_STDC invocation.
28845         Reported by Gary V. Vaughan <gary@gnu.org>.
28847 2011-09-28  Bruno Haible  <bruno@clisp.org>
28849         fgetc, fputc, fread, fwrite tests: Fix link error.
28850         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
28851         on non-MSVC platforms.
28852         * tests/test-fputc.c (main): Likewise.
28853         * tests/test-fread.c (main): Likewise.
28854         * tests/test-fwrite.c (main): Likewise.
28855         Reported by Jim Meyering.
28857 2011-09-27  Bruno Haible  <bruno@clisp.org>
28859         fputc, fwrite tests: Avoid test failure on MSVC.
28860         * tests/test-fgetc.c: Include msvc-inval.h.
28861         (main): Invoke gl_msvc_inval_ensure_handler.
28862         * tests/test-fputc.c: Include msvc-inval.h.
28863         (main): Invoke gl_msvc_inval_ensure_handler.
28864         * tests/test-fread.c: Include msvc-inval.h.
28865         (main): Invoke gl_msvc_inval_ensure_handler.
28866         * tests/test-fwrite.c: Include msvc-inval.h.
28867         (main): Invoke gl_msvc_inval_ensure_handler.
28868         * modules/fgetc-tests (Depends-on): Add msvc-inval.
28869         * modules/fputc-tests (Depends-on): Likewise.
28870         * modules/fread-tests (Depends-on): Likewise.
28871         * modules/fwrite-tests (Depends-on): Likewise.
28873 2011-09-27  Bruno Haible  <bruno@clisp.org>
28875         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
28876         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
28877         (raise): Remove older, duplicated declaration.
28878         (_gl_raise_SIGPIPE): New declaration.
28879         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
28880         (rpl_raise): Remove function.
28881         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
28882         a gnulib-defined SIGPIPE here.
28883         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
28884         'sigprocmask' has detected missing signal-blocking and the module
28885         'sigpipe' is enabled.
28886         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
28888 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
28890         base64-tests: avoid memory leak
28891         * tests/test-base64.c (main): Plug memory leak.
28893         base32: new module
28894         * modules/base32: New module.
28895         * lib/base32.c: New file.
28896         * lib/base32.h: Likewise.
28897         * m4/base32.m4: Likewise.
28898         * modules/base32-tests: New test.
28899         * tests/test-base32.c: Likewise.
28900         * MODULES.html.sh (Misc): Mention it.
28902 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
28904         gnulib: use more-standard license notice wording
28905         * gnulib-tool (func_emit_copyright_notice): When emitting a
28906         license notice into a file, use the standard wording as suggested
28907         by the current information for GNU maintainers, except say "file"
28908         rather than "program".  The new wording gives a license version
28909         number, which addresses an issue raised by Glenn Morris in
28910         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
28911         * m4/onceonly.m4: Use that same wording here, too.
28913         dup2: minor simplification
28914         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
28915         as lib/dup2.c no longer uses 'inline'.
28917 2011-09-25  Bruno Haible  <bruno@clisp.org>
28919         strings: Fix compilation error on MSVC.
28920         * lib/strings.in.h: Include <stddef.h> for size_t.
28922 2011-09-25  Bruno Haible  <bruno@clisp.org>
28924         fflush et al.: Document limitation on MSVC.
28925         * doc/posix-functions/fflush.texi: Document possible crash in handling
28926         mode other than DEFAULT_HANDLING.
28927         * doc/posix-functions/fgetc.texi: Likewise.
28928         * doc/posix-functions/fputc.texi: Likewise.
28929         * doc/posix-functions/fread.texi: Likewise.
28930         * doc/posix-functions/fwrite.texi: Likewise.
28932 2011-09-25  Bruno Haible  <bruno@clisp.org>
28934         msvc-inval: Allow three invalid parameter handling modes.
28935         * lib/msvc-inval.h: Don't include <stdlib.h> here.
28936         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
28937         macros.
28938         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
28939         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
28940         SANE_LIBRARY_HANDLING as a no-op.
28941         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
28942         <stdlib.h>.
28943         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
28945 2011-09-25  Bruno Haible  <bruno@clisp.org>
28947         msvc-inval: Make handler multithread-safe.
28948         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
28949         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
28950         declarations.
28951         (gl_msvc_inval_current): New declaration.
28952         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
28953         Operate on the structure returned by gl_msvc_inval_current().
28954         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
28955         Remove varaiables.
28956         (tls_index, tls_initialized): New variables.
28957         (not_per_thread): New variable.
28958         (gl_msvc_inval_current): New function.
28959         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
28960         returned by gl_msvc_inval_current().
28962 2011-09-25  Bruno Haible  <bruno@clisp.org>
28964         msvc-inval: Install handler globally.
28965         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
28966         !_MSC_VER.
28967         (gl_msvc_invalid_parameter_handler): Remove declaration.
28968         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
28969         declarations.
28970         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
28971         Install the handler globally, don't uninstall it.
28972         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
28973         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
28974         currently valid, call RaiseException instead.
28975         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
28976         for !_MSC_VER.
28978 2011-09-25  Bruno Haible  <bruno@clisp.org>
28980         strerror_r-posix: Fix for MSVC 9.
28981         * lib/strerror_r.c (local_snprintf): New function.
28982         (snprintf): Define to local_snprintf, not to _snprintf.
28984 2011-09-25  Bruno Haible  <bruno@clisp.org>
28986         ftruncate: Support for MSVC 9.
28987         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
28988         (chsize_nothrow): New function.
28989         (chsize): Redefine as a macro.
28990         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
28991         * modules/ftruncate (Depends-on): Add msvc-inval.
28993 2011-09-25  Bruno Haible  <bruno@clisp.org>
28995         New module 'fstat'.
28996         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
28997         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
28998         * lib/fchdir.c (rpl_fstat): Remove function.
28999         * m4/fstat.m4: New file.
29000         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
29001         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
29002         declared.
29003         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
29004         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
29005         * modules/fstat: New file.
29006         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
29007         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
29008         is set.
29009         * doc/posix-functions/fstat.texi: Mention the new module and the
29010         problem on MSVC.
29011         * NEWS: Mention the change.
29012         * modules/acl (Depends-on): Add fstat.
29013         * modules/chdir-safer (Depends-on): Likewise.
29014         * modules/chown (Depends-on): Likewise.
29015         * modules/copy-file (Depends-on): Likewise.
29016         * modules/fchdir (Depends-on): Likewise.
29017         * modules/fdopendir (Depends-on): Likewise.
29018         * modules/fopen (Depends-on): Likewise.
29019         * modules/fts (Depends-on): Likewise.
29020         * modules/getcwd (Depends-on): Likewise.
29021         * modules/isapipe (Depends-on): Likewise.
29022         * modules/linkat (Depends-on): Likewise.
29023         * modules/lseek (Depends-on): Likewise.
29024         * modules/mkdir-p (Depends-on): Likewise.
29025         * modules/open (Depends-on): Likewise.
29026         * modules/openat (Depends-on): Likewise.
29027         * modules/read-file (Depends-on): Likewise.
29028         * modules/renameat (Depends-on): Likewise.
29029         * modules/utimens (Depends-on): Likewise.
29031 2011-09-25  Bruno Haible  <bruno@clisp.org>
29033         linkat: Fix compilation on MSVC 9.
29034         * lib/linkat.c: Don't include <stdint.h>.
29036 2011-09-25  Bruno Haible  <bruno@clisp.org>
29038         fclose: Support for MSVC 9.
29039         * lib/fclose.c: Include msvc-inval.h.
29040         (fclose_nothrow): New function.
29041         (rpl_fclose): Use it.
29042         * modules/fclose (Depends-on): Add msvc-inval.
29043         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
29045 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
29047         dup2: minor simplifications
29048         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
29049         that it's a performance win.
29050         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
29051         ! defined __CYGWIN__)" to "ifdef F_GETFL".
29053 2011-09-24  Jim Meyering  <meyering@redhat.com>
29055         test-futimens: avoid a warning from gcc -Wshadow
29056         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
29057         to avoid a shadowing warning.
29059 2011-09-24  Bruno Haible  <bruno@clisp.org>
29061         fdopen: Support for MSVC 9.
29062         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
29063         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
29064         * lib/fdopen.c: Include msvc-inval.h.
29065         (fdopen_nothrow): New function.
29066         (rpl_fdopen): Use it.
29067         * modules/fdopen (Depends-on): Add msvc-inval.
29068         * modules/fclose-tests (Depends-on): Add fdopen.
29069         * modules/fflush-tests (Depends-on): Likewise.
29070         * modules/fgetc-tests (Depends-on): Likewise.
29071         * modules/fputc-tests (Depends-on): Likewise.
29072         * modules/fread-tests (Depends-on): Likewise.
29073         * modules/freopen-tests (Depends-on): Likewise.
29074         * modules/fseeko-tests (Depends-on): Likewise.
29075         * modules/ftello-tests (Depends-on): Likewise.
29076         * modules/fwrite-tests  (Depends-on): Likewise.
29077         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
29079 2011-09-24  Bruno Haible  <bruno@clisp.org>
29081         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
29082         * modules/fgetc-tests (Depends-on): Add unistd.
29083         * modules/fputc-tests (Depends-on): Likewise.
29084         * modules/fread-tests (Depends-on): Likewise.
29085         * modules/fwrite-tests (Depends-on): Likewise.
29087 2011-09-24  Bruno Haible  <bruno@clisp.org>
29089         dup: Simplify autoconf test.
29090         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
29091         on gl_MSVC_INVAL's result.
29093 2011-09-24  Bruno Haible  <bruno@clisp.org>
29095         Tests for function fwrite().
29096         * modules/fwrite-tests: New file.
29097         * tests/test-fwrite.c: New file.
29098         * modules/stdio-tests (Depends-on): Add fwrite-tests.
29100         Tests for function fread().
29101         * modules/fread-tests: New file.
29102         * tests/test-fread.c: New file.
29103         * modules/stdio-tests (Depends-on): Add fread-tests.
29105         Activate fputc tests.
29106         * modules/stdio-tests (Depends-on): Add fputc-tests.
29108         Enhance fgetc, fputc tests.
29109         * tests/test-fgetc.c (main): Also test the stream's error indicator.
29110         * tests/test-fputc.c (main): Likewise.
29112 2011-09-24  Bruno Haible  <bruno@clisp.org>
29114         write: Support for MSVC 9.
29115         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
29116         is not 1.
29117         * lib/write.c (write_nothrow): New function.
29118         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
29119         not 1. Use write_nothrow.
29120         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
29121         invalid parameter handler.
29122         (gl_PREREQ_WRITE): New macro.
29123         * modules/write (Depends-on): Add msvc-inval.
29124         (configure.ac): Invoke gl_PREREQ_WRITE.
29125         * doc/posix-functions/write.texi: Mention the problem on MSVC.
29127 2011-09-24  Bruno Haible  <bruno@clisp.org>
29129         read: Fix last commit.
29130         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
29132 2011-09-24  Bruno Haible  <bruno@clisp.org>
29134         dup2: Fix last commit.
29135         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
29136         (rpl_dup2): Disable fcntl workaround on native Windows.
29138         sigprocmask: Make code safer.
29139         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
29140         section that changes macro definitions for this compilation unit.
29142 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
29144         dup2: clarify by coalescing Windows-specific material
29145         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
29146         "msvc-nothrow.h"' to the Windows-specific section, so that the
29147         Emacs source need not contain these include files.
29148         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
29149         Windows-specific fixes into this function rather than just the
29150         nothrow fix, as this shortens and clarifies the code.  Always
29151         define as a function, as that's a bit cleaner than having it be
29152         sometimes a function and sometimes a macro.
29153         (rpl_dup2): Move the Windows-specific stuff out of here and into
29154         ms_windows_dup2.  Don't protect the Haiku-related fix with
29155         "#if !defined __linux__", as the same code also works around
29156         a Linux kernel bug, and it doesn't add any system calls on any
29157         platform.  Add comment about FreeBSD 6.1.
29159         sigprocmask: move #include directive
29160         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
29161         Windows-specific section, so that the Emacs source need not
29162         contain msvc-inval.h.
29164 2011-09-23  Bruno Haible  <bruno@clisp.org>
29166         read: Support for MSVC 9.
29167         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
29168         is not 1.
29169         * lib/read.c (read_nothrow): New function.
29170         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
29171         read_nothrow.
29172         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
29173         invalid parameter handler.
29174         (gl_PREREQ_READ): New macro.
29175         * modules/read (Depends-on): Add msvc-inval.
29176         (configure.ac): Invoke gl_PREREQ_READ.
29177         * doc/posix-functions/read.texi: Mention the problem on MSVC.
29179 2011-09-23  Bruno Haible  <bruno@clisp.org>
29181         close: Support for MSVC 9.
29182         * lib/close.c: Include <errno.h>, msvc-inval.h.
29183         (close_nothrow): New function.
29184         (rpl_close): Use it.
29185         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
29186         invalid parameter handler.
29187         * modules/close (Depends-on): Add msvc-inval.
29188         * modules/dup2-tests (Depends-on): Add close.
29189         * modules/dup3-tests (Depends-on): Likewise.
29190         * modules/fcntl-tests (Depends-on): Likewise.
29191         * modules/spawn-pipe-tests (Depends-on): Likewise.
29192         * modules/unistd-safer-tests (Depends-on): Likewise.
29193         * doc/posix-functions/close.texi: Mention the problem on MSVC.
29195 2011-09-23  Bruno Haible  <bruno@clisp.org>
29197         New module 'dup'.
29198         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
29199         Allow replacement.
29200         * lib/dup.c: New file.
29201         * lib/fchdir.c (rpl_dup): Remove function.
29202         * m4/dup.m4: New file.
29203         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
29204         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
29205         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
29206         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
29207         * modules/dup: New file.
29208         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
29209         'dup' module is in use.
29210         * modules/fdopendir (Depends-on): Add dup.
29211         * modules/fdutimensat-tests (Depends-on): Likewise.
29212         * modules/fts (Depends-on): Likewise.
29213         * modules/futimens-tests (Depends-on): Likewise.
29214         * modules/posix_spawnp-tests (Depends-on): Likewise.
29215         * modules/unistd-safer-tests (Depends-on): Likewise.
29216         * modules/utimens-tests (Depends-on): Likewise.
29217         * doc/posix-functions/dup.texi: Mention the new module and the problem
29218         on MSVC.
29220 2011-09-23  Bruno Haible  <bruno@clisp.org>
29222         getdtablesize: Support for MSVC 9.
29223         * lib/getdtablesize.c: Include msvc-inval.h.
29224         (_setmaxstdio_nothrow): New function.
29225         (_setmaxstdio): Redefine it.
29226         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
29227         * modules/getdtablesize (Depends-on): Add msvc-inval.
29228         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
29230 2011-09-23  Bruno Haible  <bruno@clisp.org>
29232         signal-h: Rename from signal.
29233         * modules/signal-h: Renamed from modules/signal.
29234         * modules/pthread_sigmask (Depends-on): Update.
29235         * modules/raise (Depends-on): Likewise.
29236         * modules/sigaction (Depends-on): Likewise.
29237         * modules/sigpipe (Depends-on): Likewise.
29238         * modules/sigprocmask (Depends-on): Likewise.
29239         * modules/sys_select (Depends-on): Likewise.
29240         * modules/signal-h-tests: Renamed from modules/signal-tests.
29241         (Files, Depends-on, Makefile.am): Update.
29242         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
29243         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
29244         (Files, Makefile.am): Update.
29245         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
29246         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
29247         * modules/signal: New placeholder file.
29248         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
29249         * doc/posix-headers/signal.texi: Update.
29250         * NEWS: Mention the change.
29252 2011-09-23  Bruno Haible  <bruno@clisp.org>
29254         sigprocmask: Avoid crashes through signal() on MSVC 9.
29255         * lib/sigprocmask.c: Include msvc-inval.h.
29256         (signal_nothrow): New function.
29257         (signal): Redefine it.
29258         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
29259         * modules/sigprocmask (Depends-on): Add msvc-inval.
29260         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
29262 2011-09-23  Bruno Haible  <bruno@clisp.org>
29264         Tests for module 'raise'.
29265         * modules/raise-tests: New file.
29266         * tests/test-raise.c: New file.
29268         raise: Support for MSVC.
29269         * lib/signal.in.h (raise): New declaration.
29270         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
29271         for native Windows platforms.
29272         * m4/raise.m4: New file.
29273         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
29274         HAVE_RAISE, REPLACE_RAISE.
29275         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
29276         REPLACE_RAISE.
29277         * modules/raise (Status, Notice): Remove fields.
29278         (Files): Add m4/raise.m4.
29279         (Depends-on): Add signal, msvc-inval.
29280         (configure.ac): Use the common idioms.
29281         (Maintainer): Add me.
29282         * tests/test-signal-c++.cc: Check the signature of raise.
29283         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
29285 2011-09-23  Bruno Haible  <bruno@clisp.org>
29287         pipe2: Fix compilation on pre-C99 compilers.
29288         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
29290 2011-09-23  Bruno Haible  <bruno@clisp.org>
29292         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
29293         * lib/msvc-nothrow.h: New file.
29294         * lib/msvc-nothrow.c: New file.
29295         * m4/msvc-nothrow.m4: New file.
29296         * modules/msvc-nothrow: New file.
29297         * lib/dup2.c: Include msvc-nothrow.h.
29298         (rpl_dup2): No need to protect _get_osfhandle call here.
29299         * lib/accept4.c: Include msvc-nothrow.h.
29300         * lib/error.c: Likewise.
29301         * lib/fcntl.c: Likewise.
29302         * lib/lseek.c: Likewise.
29303         * lib/nonblocking.c: Likewise.
29304         * lib/poll.c: Likewise.
29305         * lib/read.c: Likewise.
29306         * lib/select.c: Likewise.
29307         * lib/sockets.h: Likewise.
29308         * lib/sockets.c: Likewise.
29309         * lib/stdio-read.c: Likewise.
29310         * lib/stdio-write.c: Likewise.
29311         * lib/write.c: Likewise.
29312         * lib/w32sock.h: Likewise.
29313         * lib/w32spawn.h: Likewise.
29314         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
29315         * lib/fsync.c: Likewise.
29316         * lib/isapipe.c: Likewise.
29317         * modules/dup2 (Depends-on): Add msvc-nothrow.
29318         * modules/accept4 (Depends-on): Likewise.
29319         * modules/error (Depends-on): Likewise.
29320         * modules/fcntl (Depends-on): Likewise.
29321         * modules/lseek (Depends-on): Likewise.
29322         * modules/nonblocking (Depends-on): Likewise.
29323         * modules/poll (Depends-on): Likewise.
29324         * modules/read (Depends-on): Likewise.
29325         * modules/select (Depends-on): Likewise.
29326         * modules/sockets (Depends-on): Likewise.
29327         * modules/sigpipe (Depends-on): Likewise.
29328         * modules/write (Depends-on): Likewise.
29329         * modules/accept (Depends-on): Likewise.
29330         * modules/bind (Depends-on): Likewise.
29331         * modules/connect (Depends-on): Likewise.
29332         * modules/gethostname (Depends-on): Likewise.
29333         * modules/getpeername (Depends-on): Likewise.
29334         * modules/getsockname (Depends-on): Likewise.
29335         * modules/getsockopt (Depends-on): Likewise.
29336         * modules/ioctl (Depends-on): Likewise.
29337         * modules/listen (Depends-on): Likewise.
29338         * modules/recv (Depends-on): Likewise.
29339         * modules/recvfrom (Depends-on): Likewise.
29340         * modules/send (Depends-on): Likewise.
29341         * modules/sendto (Depends-on): Likewise.
29342         * modules/setsockopt (Depends-on): Likewise.
29343         * modules/shutdown (Depends-on): Likewise.
29344         * modules/socket (Depends-on): Likewise.
29345         * modules/execute (Depends-on): Likewise.
29346         * modules/spawn-pipe (Depends-on): Likewise.
29347         * modules/flock (Depends-on): Likewise.
29348         * modules/fsync (Depends-on): Likewise.
29349         * modules/isapipe (Depends-on): Likewise.
29350         * tests/test-cloexec.c: Include msvc-nothrow.h.
29351         * tests/test-dup-safer.c: Likewise.
29352         * tests/test-dup2.c: Likewise.
29353         * tests/test-dup3.c: Likewise.
29354         * tests/test-fcntl.c: Likewise.
29355         * tests/test-pipe.c: Likewise.
29356         * tests/test-pipe2.c: Likewise.
29357         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
29358         * modules/unistd-safer-tests (Depends-on): Likewise.
29359         * modules/dup2-tests (Depends-on): Likewise.
29360         * modules/dup3-tests (Depends-on): Likewise.
29361         * modules/fcntl-tests (Depends-on): Likewise.
29362         * modules/pipe-posix-tests (Depends-on): Likewise.
29363         * modules/pipe2-tests (Depends-on): Likewise.
29365 2011-09-23  Bruno Haible  <bruno@clisp.org>
29367         dup2: Make code more maintainable.
29368         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
29369         (rpl_dup2): Use it.
29370         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
29371         * modules/dup2 (configure.ac): Invoke it.
29372         Reported by Paul Eggert.
29374 2011-09-23  Bruno Haible  <bruno@clisp.org>
29376         msvc-inval: Fix compilation error.
29377         * lib/msvc-inval.h: Include <excpt.h>.
29379 2011-09-23  Bruno Haible  <bruno@clisp.org>
29381         mkdir: Tweak for MSVC 9.
29382         * lib/sys_stat.in.h: Update comments.
29383         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
29385         Tests for module 'chdir'.
29386         * modules/chdir-tests: New file.
29387         * tests/test-chdir.c: New file.
29389         New module 'chdir'.
29390         * modules/chdir: New file.
29391         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
29392         (chdir): New declaration.
29393         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
29394         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
29395         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
29396         * tests/test-unistd-c++.cc: Check signature of chdir.
29397         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
29398         * modules/chdir-long (Depends-on): Add chdir.
29399         * modules/fchdir (Depends-on): Likewise.
29400         * modules/rename (Depends-on): Likewise.
29401         * modules/savewd (Depends-on): Likewise.
29403         rmdir: Support for mingw, MSVC 9.
29404         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
29405         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
29407         getcwd: Tweak for MSVC 9.
29408         * lib/unistd.in.h: Update comments.
29409         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
29411 2011-09-22  Bruno Haible  <bruno@clisp.org>
29413         strerror_r-posix: Avoid a link error on MSVC.
29414         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
29415         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
29417 2011-09-22  Bruno Haible  <bruno@clisp.org>
29419         select: Avoid link errors on MSVC.
29420         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
29421         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
29422         * modules/pselect (Link): Likewise.
29423         * NEWS: Mention the change.
29424         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
29425         test-select-stdin against $(LIB_SELECT).
29426         * modules/pselect-tests (Makefile.am): Link test-pselect against
29427         $(LIB_SELECT).
29429 2011-09-22  Bruno Haible  <bruno@clisp.org>
29431         select: Avoid compilation error on MSVC.
29432         * lib/select.c: Don't include <stdbool.h>.
29434 2011-09-21  Bruno Haible  <bruno@clisp.org>
29436         Consolidate all uses of PATH_MAX in *.m4 files.
29437         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
29438         macros.
29439         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
29440         and gl_PATHMAX_SNIPPET.
29441         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
29442         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
29443         * modules/chdir-long (Files): Add m4/pathmax.m4.
29444         * modules/getcwd (Files): Likewise.
29446 2011-09-21  Bruno Haible  <bruno@clisp.org>
29448         ftruncate: Un-deprecate, concentrate on Win32 support.
29449         * modules/ftruncate (Status, Notice): Remove sections.
29450         (Depends-on): Add largefile.
29451         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
29452         non-mingw platforms.
29453         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
29454         include <io.h>.
29455         * modules/perror-tests (Depends-on): Add ftruncate.
29456         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
29457         'ftruncate' module.
29459 2011-09-21  Bruno Haible  <bruno@clisp.org>
29461         Add dependencies to new dirent related modules.
29462         * modules/opendir (Depends-on): Add closedir.
29463         * modules/getcwd (Depends-on): Add opendir, closedir.
29464         * modules/dirent-safer-tests (Depends-on): Likewise.
29465         * modules/fdopendir-tests (Depends-on): Likewise.
29466         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
29467         * modules/renameat-tests (Depends-on): Likewise.
29469 2011-09-21  Bruno Haible  <bruno@clisp.org>
29471         opendir: Avoid compilation error on mingw.
29472         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
29473         * modules/opendir (Depends-on): Add unistd.
29475 2011-09-21  Bruno Haible  <bruno@clisp.org>
29477         ftruncate tests: Avoid a test failure on mingw.
29478         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
29480 2011-09-21  Bruno Haible  <bruno@clisp.org>
29482         select tests: Avoid test failures on OSF/1 5.1 and mingw.
29483         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
29484         native Windows.
29486 2011-09-21  Bruno Haible  <bruno@clisp.org>
29488         New module 'fdopen'.
29489         * lib/stdio.in.h (fdopen): New declaration.
29490         * lib/fdopen.c: New file.
29491         * m4/fdopen.m4: New file.
29492         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
29493         REPLACE_FDOPEN.
29494         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
29495         REPLACE_FDOPEN.
29496         * modules/fdopen: New file.
29497         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
29498         * tests/test-stdio-c++.cc: Check signature of fdopen.
29499         * doc/posix-functions/fdopen.texi: Mention the new module.
29501 2011-09-21  Bruno Haible  <bruno@clisp.org>
29503         unlockpt tests: Avoid test failure on NetBSD 5.1.
29504         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
29505         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
29507 2011-09-21  Bruno Haible  <bruno@clisp.org>
29509         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
29510         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
29511         * tests/test-getlogin_r.c (main): Likewise.
29513 2011-09-20  Bruno Haible  <bruno@clisp.org>
29515         time tests: Don't require pid_t.
29516         * doc/posix-headers/time.texi: Revert last change.
29517         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
29518         * tests/test-time.c: Comment out the check for pid_t.
29520 2011-09-20  Bruno Haible  <bruno@clisp.org>
29522         fsync tests: Avoid a test failure on mingw.
29523         * tests/test-fsync.c (main): Allow a failure with EIO.
29525 2011-09-20  Bruno Haible  <bruno@clisp.org>
29527         euidaccess: Update comments.
29528         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
29530 2011-09-20  Bruno Haible  <bruno@clisp.org>
29532         Ensure EBADF returns for socket functions on mingw.
29533         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
29534         descriptor is invalid.
29535         * lib/bind.c (rpl_bind): Likewise.
29536         * lib/connect.c (rpl_connect): Likewise.
29537         * lib/getpeername.c (rpl_getpeername): Likewise.
29538         * lib/getsockname.c (rpl_getsockname): Likewise.
29539         * lib/getsockopt.c (rpl_getsockopt): Likewise.
29540         * lib/listen.c (rpl_listen): Likewise.
29541         * lib/recv.c (rpl_recv): Likewise.
29542         * lib/recvfrom.c (rpl_recvfrom): Likewise.
29543         * lib/send.c (rpl_send): Likewise.
29544         * lib/sendto.c (rpl_sendto): Likewise.
29545         * lib/setsockopt.c (rpl_setsockopt): Likewise.
29546         * lib/shutdown.c (rpl_shutdown): Likewise.
29548 2011-09-20  Bruno Haible  <bruno@clisp.org>
29550         select tests: EBADF tests.
29551         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
29552         test_bad_fd): New functions.
29553         (test_function): Invoke also test_bad_fd.
29555 2011-09-20  Bruno Haible  <bruno@clisp.org>
29557         Tests for module 'posix_spawn_file_actions_addopen.
29558         * modules/posix_spawn_file_actions_addopen-tests: New file.
29559         * tests/test-posix_spawn_file_actions_addopen.c: New file.
29561         Tests for module 'posix_spawn_file_actions_adddup2'.
29562         * modules/posix_spawn_file_actions_adddup2-tests: New file.
29563         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
29565         Tests for module 'posix_spawn_file_actions_addclose'.
29566         * modules/posix_spawn_file_actions_addclose-tests: New file.
29567         * tests/test-posix_spawn_file_actions_addclose.c: New file.
29569 2011-09-20  Bruno Haible  <bruno@clisp.org>
29571         Tests for module 'unlockpt'.
29572         * modules/unlockpt-tests: New file.
29573         * tests/test-unlockpt.c: New file.
29574         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
29576         Tests for module 'grantpt'.
29577         * modules/grantpt-tests: New file.
29578         * tests/test-grantpt.c: New file.
29579         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
29581 2011-09-20  Bruno Haible  <bruno@clisp.org>
29583         freopen tests: EBADF tests.
29584         * tests/test-freopen.c: Include errno.h, unistd.h.
29585         (main): Add tests for EBADF, commented out for the moment.
29587         fclose tests: EBADF tests.
29588         * tests/test-fclose.c (main): Add tests for EBADF.
29590         fflush tests: EBADF tests.
29591         * tests/test-fflush.c: Include errno.h, macros.h.
29592         (main): Add tests for EBADF.
29594         ftello tests: EBADF tests.
29595         * tests/test-ftello4.sh: New file.
29596         * tests/test-ftello4.c: New file.
29597         * modules/ftello-tests (Files): Add them.
29598         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
29600         fseeko tests: EBADF tests.
29601         * tests/test-fseeko4.sh: New file.
29602         * tests/test-fseeko4.c: New file.
29603         * modules/fseeko-tests (Files): Add them.
29604         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
29606         Tests for function fputc().
29607         * modules/fputc-tests: New file.
29608         * tests/test-fputc.c: New file.
29609         * modules/stdio-tests (Depends-on): Add fputc-tests.
29611         Tests for function fgetc().
29612         * modules/fgetc-tests: New file.
29613         * tests/test-fgetc.c: New file.
29614         * modules/stdio-tests (Depends-on): Add fgetc-tests.
29616         Tests for function fdopen().
29617         * modules/fdopen-tests: New file.
29618         * tests/test-fdopen.c: New file.
29619         * modules/stdio-tests (Depends-on): Add fdopen-tests.
29621         Tests for module 'vdprintf'.
29622         * modules/vdprintf-tests: New file.
29623         * tests/test-vdprintf.c: New file.
29625         Tests for module 'dprintf'.
29626         * modules/dprintf-tests: New file.
29627         * tests/test-dprintf.c: New file.
29629 2011-09-20  Bruno Haible  <bruno@clisp.org>
29631         Tests for module 'ioctl'.
29632         * modules/ioctl-tests: New file.
29633         * tests/test-ioctl.c: New file.
29635 2011-09-20  Bruno Haible  <bruno@clisp.org>
29637         fcntl tests: EBADF tests.
29638         * tests/test-fcntl.c (main): Add more tests for EBADF.
29640 2011-09-20  Bruno Haible  <bruno@clisp.org>
29642         utimensat tests: EBADF tests.
29643         * tests/test-utimensat.c (main): Add tests for EBADF.
29645         renameat tests: EBADF tests.
29646         * tests/test-renameat.c (main): Add tests for EBADF.
29648         mkfifoat tests: EBADF tests.
29649         * tests/test-mkfifoat.c (main): Add tests for EBADF.
29651         readlinkat tests: EBADF tests.
29652         * tests/test-readlinkat.c (main): Add tests for EBADF.
29654         symlinkat tests: EBADF tests.
29655         * tests/test-symlinkat.c (main): Add tests for EBADF.
29657         linkat tests: EBADF tests.
29658         * tests/test-linkat.c (main): Add tests for EBADF.
29660         Tests for module 'faccessat'.
29661         * modules/faccessat-tests: New file.
29662         * tests/test-faccessat.c: New file.
29664         fdopendir tests: EBADF tests.
29665         * tests/test-fdopendir.c (main): Add more tests for EBADF.
29667         openat tests: EBADF tests.
29668         * tests/test-fchownat.c (main): Add tests for EBADF.
29669         * tests/test-fstatat.c (main): Likewise.
29670         * tests/test-mkdirat.c (main): Likewise.
29671         * tests/test-openat.c (main): Likewise.
29672         * tests/test-unlinkat.c (main): Likewise.
29673         * tests/test-fchmodat.c: New file.
29674         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
29675         (Makefile.am): Also run 'test-fchmodat'.
29677 2011-09-20  Bruno Haible  <bruno@clisp.org>
29679         utimens, futimens, fdutimensat tests: EBADF tests.
29680         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
29682         Tests for function fstat().
29683         * modules/fstat-tests: New file.
29684         * tests/test-fstat.c: New file.
29685         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
29687 2011-09-20  Bruno Haible  <bruno@clisp.org>
29689         test-ttyname_r tests: EBADF tests.
29690         * tests/test-ttyname_r.c (main): Add tests for EBADF.
29692         Tests for module 'isatty'.
29693         * modules/isatty-tests: New file.
29694         * tests/test-isatty.c: New file.
29696         Tests for module 'write'.
29697         * modules/write-tests: New file.
29698         * tests/test-write.c: New file.
29700         Tests for module 'read'.
29701         * modules/read-tests: New file.
29702         * tests/test-read.c: New file.
29704         pwrite tests: EBADF tests.
29705         * tests/test-pwrite.c (main): Add tests for EBADF.
29707         pread tests: EBADF tests.
29708         * tests/test-pread.c (main): Add tests for EBADF.
29710         lseek tests: EBADF tests.
29711         * tests/test-lseek.c (main): Add more tests for EBADF.
29713         Tests for module 'ftruncate'.
29714         * modules/ftruncate-tests: New file.
29715         * tests/test-ftruncate.sh: New file.
29716         * tests/test-ftruncate.c: New file.
29718         fsync tests: EBADF tests.
29719         * tests/test-fsync.c (main): Add more tests for EBADF.
29721         fdatasync tests: EBADF tests.
29722         * tests/test-fdatasync.c (main): Add more tests for EBADF.
29724         Tests for module 'fchown'.
29725         * modules/fchown-tests: New file.
29726         * tests/test-fchown.c: New file.
29728         Tests for module 'fchmod'.
29729         * modules/fchmod-tests: New file.
29730         * tests/test-fchmod.c: New file.
29732         fchdir tests: EBADF tests.
29733         * tests/test-fchdir.c (main): Add more tests for EBADF.
29735         dup2 tests: EBADF tests.
29736         * tests/test-dup2.c (main): Add more tests for EBADF.
29738         Tests for module 'dup'.
29739         * modules/dup-tests: New file.
29740         * tests/test-dup.c: New file.
29742         Tests for module 'close'.
29743         * modules/close-tests: New file.
29744         * tests/test-close.c: New file.
29746 2011-09-20  Bruno Haible  <bruno@clisp.org>
29748         Tests for module 'shutdown'.
29749         * modules/shutdown-tests: New file.
29750         * tests/test-shutdown.c: New file.
29752         Tests for module 'setsockopt'.
29753         * modules/setsockopt-tests: New file.
29754         * tests/test-setsockopt.c: New file.
29756         Tests for module 'sendto'.
29757         * modules/sendto-tests: New file.
29758         * tests/test-sendto.c: New file.
29760         Tests for module 'send'.
29761         * modules/send-tests: New file.
29762         * tests/test-send.c: New file.
29764         Tests for module 'recvfrom'.
29765         * modules/recvfrom-tests: New file.
29766         * tests/test-recvfrom.c: New file.
29768         Tests for module 'recv'.
29769         * modules/recv-tests: New file.
29770         * tests/test-recv.c: New file.
29772         Tests for module 'listen'.
29773         * modules/listen-tests: New file.
29774         * tests/test-listen.c: New file.
29776         Tests for module 'getsockopt'.
29777         * modules/getsockopt-tests: New file.
29778         * tests/test-getsockopt.c: New file.
29780         Tests for module 'getsockname'.
29781         * modules/getsockname-tests: New file.
29782         * tests/test-getsockname.c: New file.
29784         Tests for module 'getpeername'.
29785         * modules/getpeername-tests: New file.
29786         * tests/test-getpeername.c: New file.
29788         Tests for module 'connect'.
29789         * modules/connect-tests: New file.
29790         * tests/test-connect.c: New file.
29792         Tests for module 'bind'.
29793         * modules/bind-tests: New file.
29794         * tests/test-bind.c: New file.
29796         accept4 tests: Fix for native Windows.
29797         * tests/test-accept4.c: Include sockets.h.
29798         (main): Invoke gl_sockets_startup.
29799         * modules/accept4-tests (Depends-on): Add sockets.
29801         accept tests: Fix for native Windows.
29802         * tests/test-accept.c: Include sockets.h.
29803         (main): Invoke gl_sockets_startup.
29804         * modules/accept-tests (Depends-on): Add sockets.
29806 2011-09-19  Bruno Haible  <bruno@clisp.org>
29808         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
29809         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
29810         do...while(0).
29811         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
29812         Suggested by Paul Eggert.
29814 2011-09-19  Bruno Haible  <bruno@clisp.org>
29816         sched: Ensure pid_t is defined.
29817         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
29818         not define pid_t.
29819         * lib/sched.in.h: Include <sys/types.h>.
29820         * doc/posix-headers/sched.texi: Mention the pid_t problem.
29821         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29823 2011-09-19  Bruno Haible  <bruno@clisp.org>
29825         msvc-inval: Ensure the entire expansion is a single statement.
29826         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
29827         of braces.
29829 2011-09-19  Jim Meyering  <meyering@redhat.com>
29831         tests: use printf, not echo in init.sh's warn_ function
29832         * tests/init.sh (warn_): Use printf, not echo.  The latter would
29833         misbehave when given strings containing a backslash or starting
29834         with e.g., -n.  James Youngman suggested setting IFS.
29836 2011-09-19  Eric Blake  <eblake@redhat.com>
29838         futimens: enhance test
29839         * tests/test-futimens.h (test_futimens): Also check for EBADF on
29840         closed non-negative fd.
29842         date: accept 'hence' as opposite of 'ago'
29843         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
29844         * tests/test-parse-datetime.c (main): Enhance test.
29845         Suggested by Jesse Wilson.
29847 2011-09-19  Jim Meyering  <meyering@redhat.com>
29849         getcwd: don't fail in a deep directory on a system without openat
29850         Before this change, getcwd would fail when called from a directory
29851         of depth PATH_MAX / 3 or greater.  That was due to the fact that
29852         the non-openat implementation used "..", "../..", "../../..", etc.
29853         to access ancestor directories.  With too many, that string would
29854         be longer than PATH_MAX.
29855         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
29856         using gnulib's openat replacement.
29857         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
29858         we're using the replacement function.
29860 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
29862         maint.mk: avoid warnings from perl about missing files
29863         * top/maint.mk (def_sym_regex): Ignore files listed in
29864         $(gl_other_headers_) that do not exist, say because a project
29865         does not use a corresponding module.
29867 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
29869         stat: use pathmax.h only if needed
29870         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
29871         This is better for Emacs, which does not have a mingw port and
29872         therefore can avoid the pathmax module.
29874         utimens: remove dependency on dup2
29875         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
29876         to work around the Linux kernel bug.
29877         * modules/utimens (Depends-on): Remove dup2.
29879 2011-09-18  Bruno Haible  <bruno@clisp.org>
29881         inet_ntop, inet_pton: Look for it also in libresolv.
29882         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
29883         libnsl, search for it in libresolv.
29884         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
29885         Needed on Solaris 7.
29887 2011-09-18  Bruno Haible  <bruno@clisp.org>
29889         accept, accept4 tests: Avoid link error on Solaris.
29890         * modules/accept-tests (Makefile.am): Link test-accept against
29891         $(LIBSOCKET).
29892         * modules/accept4-tests (Makefile.am): Link test-accept4 against
29893         $(LIBSOCKET).
29895         accept4: Avoid link error on Solaris.
29896         * modules/accept4 (Link): New section.
29898         socket functions: Avoid link errors on Solaris.
29899         * modules/accept (Depends-on): Add socketlib.
29900         (Link): New section.
29901         * modules/bind (Depends-on): Add socketlib.
29902         (Link): New section.
29903         * modules/connect (Depends-on): Add socketlib.
29904         (Link): New section.
29905         * modules/getpeername (Depends-on): Add socketlib.
29906         (Link): New section.
29907         * modules/getsockname (Depends-on): Add socketlib.
29908         (Link): New section.
29909         * modules/getsockopt (Depends-on): Add socketlib.
29910         (Link): New section.
29911         * modules/listen (Depends-on): Add socketlib.
29912         (Link): New section.
29913         * modules/recv (Depends-on): Add socketlib.
29914         (Link): New section.
29915         * modules/recvfrom (Depends-on): Add socketlib.
29916         (Link): New section.
29917         * modules/send (Depends-on): Add socketlib.
29918         (Link): New section.
29919         * modules/sendto (Depends-on): Add socketlib.
29920         (Link): New section.
29921         * modules/setsockopt (Depends-on): Add socketlib.
29922         (Link): New section.
29923         * modules/shutdown (Depends-on): Add socketlib.
29924         (Link): New section.
29925         * modules/socket (Depends-on): Add socketlib.
29926         (Link): New section.
29928 2011-09-18  Bruno Haible  <bruno@clisp.org>
29930         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
29931         * tests/test-ptsname.c (main): Terminate the test if it takes longer
29932         than 5 seconds.
29933         * modules/ptsname-tests (configure.ac): Test for alarm.
29935 2011-09-18  Bruno Haible  <bruno@clisp.org>
29937         posix_spawn_file_actions_add*: Fix module dependencies.
29938         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
29939         posix_spawn_file_actions_init.
29940         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
29941         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
29943 2011-09-18  Bruno Haible  <bruno@clisp.org>
29945         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
29946         * tests/test-rename.h (test_rename): Allow error code EEXIST.
29947         * tests/test-renameat.c (main): Likewise.
29949 2011-09-18  Bruno Haible  <bruno@clisp.org>
29951         Tests for module 'accept4'.
29952         * modules/accept4-tests: New file.
29953         * tests/test-accept4.c: New file.
29955 2011-09-18  Bruno Haible  <bruno@clisp.org>
29957         Tests for module 'accept'.
29958         * modules/accept-tests: New file.
29959         * tests/test-accept.c: New file.
29961 2011-09-18  Bruno Haible  <bruno@clisp.org>
29963         dup2: Support for MSVC.
29964         * lib/dup2.c: Include msvc-inval.h.
29965         (rpl_dup2): Handle invalid parameter notifications during dup2 and
29966         _get_osfhandle calls.
29967         * modules/dup2 (Depends-on): Add msvc-inval.
29968         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
29970         New module 'msvc-inval'.
29971         * lib/msvc-inval.h: New file.
29972         * lib/msvc-inval.c: New file.
29973         * m4/msvc-inval.m4: New file.
29974         * modules/msvc-inval: New file.
29976 2011-09-17  Bruno Haible  <bruno@clisp.org>
29978         Tests for module 'pclose'.
29979         * modules/pclose-tests: New file.
29981         New module 'pclose'.
29982         * lib/stdio.in.h (pclose): New declaration.
29983         * lib/pclose.c: New file.
29984         * m4/pclose.m4: New file.
29985         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
29986         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
29987         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
29988         * modules/pclose: New file.
29989         * modules/popen-tests (Depends-on): Add pclose.
29990         * modules/popen-safer-tests (Depends-on): Likewise.
29991         * doc/posix-functions/pclose.texi: Mention the new module.
29993 2011-09-17  Bruno Haible  <bruno@clisp.org>
29995         popen: Support for MSVC.
29996         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
29997         * lib/popen.c (popen): Provide alternate definition for native Windows.
29998         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
29999         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
30000         * modules/popen (Depends-on, configure.ac): Update condition.
30001         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
30002         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
30003         fixed.
30005 2011-09-17  Bruno Haible  <bruno@clisp.org>
30007         isnanl, isnand, isnanf: Work around MSVC bug.
30008         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
30010 2011-09-17  Bruno Haible  <bruno@clisp.org>
30012         sys_socket tests: Fix recent mistake.
30013         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
30015 2011-09-17  Bruno Haible  <bruno@clisp.org>
30017         putenv: Support for MSVC.
30018         * modules/putenv (Depends-on): Add environ.
30019         * lib/putenv.c (environ): Disable declaration.
30020         * lib/unistd.in.h: Update comment.
30022 2011-09-17  Bruno Haible  <bruno@clisp.org>
30024         math: Avoid macro redefinition warnings on MSVC.
30025         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
30026         Undefine before redefining.
30028 2011-09-17  Bruno Haible  <bruno@clisp.org>
30030         doc: Mention functions which are declared as macros.
30031         * doc/posix-functions/*[fl].texi: Mention that some functions are
30032         defined as macros with arguments only.
30034 2011-09-17  Bruno Haible  <bruno@clisp.org>
30036         Add dependencies to new dirent related modules.
30037         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
30038         * modules/fts (Depends-on): Likewise.
30039         * modules/glob (Depends-on): Likewise.
30040         * modules/savedir (Depends-on): Likewise.
30041         * modules/scandir (Depends-on): Likewise.
30042         * modules/dirent-safer (Depends-on): Add opendir, closedir.
30043         * modules/fdopendir (Depends-on): Add opendir.
30045 2011-09-17  Bruno Haible  <bruno@clisp.org>
30047         inet_pton: Support for MSVC on Windows Vista or newer.
30048         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
30049         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
30050         HAVE_DECL_INET_PTON is defined.
30051         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
30052         On platforms with <winsock2.h>, test whether inet_pton is declared in
30053         <ws2tcpip.h>. If so, arrange to replace it.
30054         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
30055         REPLACE_INET_PTON.
30056         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
30057         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
30058         (Depends-on, configure.ac): Update condition.
30059         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
30061 2011-09-17  Bruno Haible  <bruno@clisp.org>
30063         inet_ntop: Support for MSVC on Windows Vista or newer.
30064         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
30065         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
30066         HAVE_DECL_INET_NTOP is defined.
30067         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
30068         On platforms with <winsock2.h>, test whether inet_ntop is declared in
30069         <ws2tcpip.h>. If so, arrange to replace it.
30070         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
30071         REPLACE_INET_NTOP.
30072         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
30073         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
30074         (Depends-on, configure.ac): Update condition.
30075         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
30077 2011-09-16  Eric Blake  <eblake@redhat.com>
30079         test-fsync: yet another enhancement
30080         * tests/test-fsync.c (main): Also test behavior on read-only text
30081         file.
30083 2011-09-16  Bruno Haible  <bruno@clisp.org>
30085         Enhance fsync, fdatasync tests.
30086         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
30087         * tests/test-fdatasync.c (main): Likewise.
30089 2011-09-16  Bruno Haible  <bruno@clisp.org>
30091         Support for MSVC compiler: Ensure mode_t gets defined.
30092         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
30093         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
30094         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
30095         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
30096         * tests/test-fcntl-h.c: Check that mode_t is defined.
30097         * tests/test-sys_stat.c: Likewise.
30098         * tests/test-sys_types.c: Likewise.
30099         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
30100         * doc/posix-headers/sys_stat.texi: Likewise.
30101         * doc/posix-headers/sys_types.texi: Likewise.
30103 2011-09-16  Bruno Haible  <bruno@clisp.org>
30105         sys_stat: Support for MSVC.
30106         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
30107         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
30108         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
30109         MSVC.
30111 2011-09-16  Bruno Haible  <bruno@clisp.org>
30113         Support for MSVC compiler: Ensure off_t gets defined.
30114         * lib/unistd.in.h: Include <sys/types.h>.
30115         * tests/test-fcntl-h.c: Check that off_t is defined.
30116         * tests/test-sys_stat.c: Likewise.
30117         * tests/test-sys_types.c: Likewise.
30119 2011-09-16  Eric Blake  <eblake@redhat.com>
30121         fdatasync: port to Solaris
30122         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
30123         * modules/fdatasync (Link): Document it.
30124         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
30126         fdatasync: port to MacOS X 10.7
30127         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
30128         declared.
30129         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
30130         * modules/unistd (Makefile.am): Substitute it.
30131         * lib/unistd.in.h (fdatasync): Declare on MacOS.
30132         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
30134         fdatasync: minor improvements
30135         * modules/fdatasync (Depends-on): Add condition for fsync.
30136         * lib/fdatasync.c (fdatasync): Add comment.
30137         * tests/test-unistd-c++.cc: Test fdatasync.
30139         unistd: update refs to newer POSIX
30140         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
30141         Suggested by Bruno Haible.
30143         fdatasync: new module
30144         * modules/fsync (Description): Document difference to fdatasync.
30145         * modules/fdatasync: New module.
30146         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
30147         * lib/fdatasync.c (fdatasync): Likewise.
30148         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
30149         defaults.
30150         * modules/unistd (Makefile.am): Set witnesses.
30151         * lib/unistd.in.h (fdatasync): Declare.
30152         * MODULES.html.sh: Document it.
30153         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
30154         * modules/fdatasync-tests: New test.
30155         * tests/test-fdatasync.c: Likewise.
30157 2011-09-16  Eric Blake  <eblake@redhat.com>
30159         test-fsync: enhance tests
30160         * modules/fsync-tests (Depends-on): Add errno, for mingw.
30161         * tests/test-fsync.c (main): Enhance test.
30163 2011-09-15  Bruno Haible  <bruno@clisp.org>
30165         Support for MSVC compiler: Ensure ssize_t gets defined.
30166         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
30167         * doc/posix-headers/stdio.texi: Likewise.
30168         * modules/stdio (Depends-on): Add ssize_t.
30169         * modules/sys_socket (Depends-on): Likewise.
30170         * modules/sys_types (Depends-on): Likewise.
30171         * modules/sys_uio (Depends-on): Likewise.
30172         * modules/unistd (Depends-on): Likewise.
30173         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
30174         * tests/test-sys_types.c: Check that ssize_t is defined.
30176 2011-09-14  Bruno Haible  <bruno@clisp.org>
30178         Avoid using #, the m4 comment starter character, near brackets.
30179         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
30180         delimiter character in sed expressions.
30181         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
30182         Suggested by Eric Blake.
30184         Properly quote AC_CHECK_DECLS' 4th argument.
30185         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
30186         argument.
30187         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
30188         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
30189         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
30190         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
30191         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
30192         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
30193         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
30194         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
30195         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
30196         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
30197         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
30198         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
30199         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
30200         * m4/isinf.m4 (gl_ISINF): Likewise.
30201         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
30202         * m4/readutmp.m4 (gl_READUTMP): Likewise.
30203         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30204         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
30205         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
30206         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
30207         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
30208         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
30209         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
30210         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
30211         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
30212         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30213         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
30214         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
30215         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
30216         Reported by Eric Blake.
30218         Properly quote AC_CHECK_DECL's 4th argument.
30219         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
30220         argument.
30221         * m4/argp.m4 (gl_ARGP): Likewise.
30222         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
30223         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
30224         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
30225         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
30226         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
30227         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
30228         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
30229         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
30230         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
30231         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
30232         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
30233         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
30234         Reported by Eric Blake.
30236 2011-09-14  Eric Blake  <eblake@redhat.com>
30238         opendir: avoid compile warning
30239         * lib/opendir.c (includes): Always include errno.h.
30240         Reported by Tatsuro MATSUOKA.
30242 2011-09-14  Jim Meyering  <meyering@redhat.com>
30244         maint.mk: sc_tight_scope: propagate failure from sub-make
30245         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
30246         Reported by Martin von Gagern.
30248 2011-09-13  Bruno Haible  <bruno@clisp.org>
30250         tempname: Support for MSVC.
30251         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
30252         MSVC.
30253         * modules/tempname (Depends-on): Add fcntl-h.
30255 2011-09-13  Bruno Haible  <bruno@clisp.org>
30257         sys_time: Support for MSVC.
30258         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
30259         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
30260         include <winsock2.h>.
30261         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
30262         function declarations that collide with POSIX.
30263         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
30264         (Makefile.am): Substitute HAVE_WINSOCK2_H.
30266 2011-09-13  Bruno Haible  <bruno@clisp.org>
30268         stat: Support for MSVC.
30269         * lib/stat.c: Include pathmax.h.
30270         * modules/stat (Depends-on): Add pathmax.
30272         pathmax: Support for native Windows.
30273         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
30275 2011-09-12  Bruno Haible  <bruno@clisp.org>
30277         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
30278         * lib/dirent.in.h (struct dirent): New type.
30279         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
30280         DT_WHT): New macros.
30281         (DIR): New type.
30282         (opendir, closedir): Declare only if the module 'opendir' is enabled.
30283         (readdir, rewinddir): New declarations.
30284         * lib/dirent-private.h: New file.
30285         * lib/opendir.c: New file.
30286         * lib/readdir.c: New file.
30287         * lib/rewinddir.c: New file.
30288         * lib/closedir.c: New file.
30289         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
30290         * m4/opendir.m4: New file.
30291         * m4/readdir.m4: New file.
30292         * m4/rewinddir.m4: New file.
30293         * m4/closedir.m4: New file.
30294         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
30295         REPLACE_CLOSEDIR here.
30296         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
30297         readdir, rewinddir are declared.
30298         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
30299         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
30300         HAVE_REWINDDIR, HAVE_CLOSEDIR.
30301         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
30302         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
30303         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
30304         * modules/opendir: New file.
30305         * modules/readdir: New file.
30306         * modules/rewinddir: New file.
30307         * modules/closedir: New file.
30308         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
30309         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
30310         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
30311         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
30312         * NEWS: Mention the 'fchdir' change.
30314 2011-09-11  Bruno Haible  <bruno@clisp.org>
30316         asm-underscore.m4: Support for MSVC.
30317         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
30318         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
30320 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
30322         Doc about crypt functions.
30323         * doc/posix-functions/crypt.texi: Expand range of glibc versions
30324         needing for _GNU_SOURCE to get crypt.
30325         * doc/posix-functions/encrypt.texi: Likewise.
30326         * doc/posix-functions/setkey.texi: Likewise.
30328 2011-09-11  Bruno Haible  <bruno@clisp.org>
30330         doc: Update regarding MSVC 9.
30331         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
30332         tested".
30333         * doc/posix-functions/*.texi: Update with info about MSVC 9.
30334         * doc/posix-headers/*.texi: Likewise.
30335         * doc/pastposix-functions/*.texi: Likewise.
30336         * doc/glibc-functions/*.texi: Likewise.
30337         * doc/glibc-headers/*.texi: Likewise.
30339 2011-09-11  Bruno Haible  <bruno@clisp.org>
30341         unistd et al.: Don't assume <unistd.h> exists.
30342         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
30343         does not exist.
30344         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
30345         exist. But include <stdlib.h>.
30346         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
30347         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
30348         symlink() does not exist.
30349         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
30350         include <io.h> instead.
30351         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
30352         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
30353         include <direct.h> instead.
30354         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
30355         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
30356         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
30357         <io.h> instead.
30358         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
30359         correctly if the system does not have hard links.
30360         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
30361         <direct.h> instead.
30362         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
30363         it when looking for function declarations.
30364         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
30365         <direct.h> and <io.h> instead.
30366         * doc/posix-headers/unistd.texi: More details about MSVC problem.
30368 2011-09-11  Bruno Haible  <bruno@clisp.org>
30370         strcase: Support for MSVC.
30371         * modules/strcase (Status, Notice): Remove obsoletion mark.
30372         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
30373         * doc/posix-functions/strncasecmp.texi: Likewise.
30375         strings: Don't assume <strings.h> exists.
30376         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
30377         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
30378         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
30379         * doc/posix-headers/strings.texi: Mention the MSVC problem.
30381 2011-09-11  Bruno Haible  <bruno@clisp.org>
30383         dirent: Don't assume <dirent.h> exists.
30384         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
30385         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
30386         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
30387         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
30389 2011-09-11  Bruno Haible  <bruno@clisp.org>
30391         Fix wint_t on MSVC.
30392         * lib/wchar.in.h (wint_t): On MSVC, override it.
30393         * lib/wctype.in.h (wint_t): Likewise.
30394         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
30395         MSVC.
30396         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
30397         * doc/posix-headers/wctype.texi: Likewise.
30399 2011-09-11  Bruno Haible  <bruno@clisp.org>
30401         sys_types: Fix typo.
30402         * lib/sys_types.in.h: Fix typo in comment.
30403         Reported by Paul Eggert.
30405         Support for MSVC compiler: Ensure size_t gets defined.
30406         * modules/strings (Depends-on): Add 'sys_types'.
30407         * modules/sys_uio (Depends-on): Likewise.
30408         * lib/sys_uio.in.h: Update comment.
30410         C++ tests for module 'sys_types'.
30411         * modules/sys_types-c++-tests: New file.
30412         * tests/test-sys_types-c++.cc: New file.
30414         Tests for module 'sys_types'.
30415         * modules/sys_types-tests: New file.
30416         * tests/test-sys_types.c: New file.
30418         New module 'sys_types'.
30419         * lib/sys_types.in.h: New file.
30420         * m4/sys_types_h.m4: New file.
30421         * modules/sys_types: New file.
30422         * doc/posix-headers/sys_types.texi: Mention the new module and the
30423         size_t problem on MSVC 9.
30425 2011-09-11  Bruno Haible  <bruno@clisp.org>
30427         Support for MSVC compiler: Avoid division by a literal 0.
30428         * lib/math.in.h (NAN): Define through a function call also on MSVC.
30429         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
30430         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
30431         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
30432         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
30433         * tests/infinity.h: New file.
30434         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
30435         on MSVC.
30436         * tests/test-ceilf1.c: Include infinity.h.
30437         (main): Use Infinityf.
30438         * tests/test-ceil1.c: Include infinity.h.
30439         (main): Use Infinityd.
30440         * tests/test-ceill.c: Include infinity.h.
30441         (main): Use Infinityl.
30442         * tests/test-dprintf-posix.c: Include infinity.h.
30443         (test_function): Use Infinityd.
30444         * tests/test-floorf1.c: Include infinity.h.
30445         (main): Use Infinityf.
30446         * tests/test-floor1.c: Include infinity.h.
30447         (main): Use Infinityd.
30448         * tests/test-floorl.c: Include infinity.h.
30449         (main): Use Infinityl.
30450         * tests/test-fprintf-posix.c: Include infinity.h.
30451         (test_function): Use Infinityd.
30452         * tests/test-frexp.c: Include infinity.h.
30453         (main): Use Infinityd.
30454         * tests/test-frexpl.c: Include infinity.h.
30455         (main): Use Infinityl.
30456         * tests/test-isfinite.c: Include infinity.h.
30457         (test_isfinitef): Use Infinityf.
30458         (test_isfinited): Use Infinityd.
30459         (test_isfinitel): Use Infinityl.
30460         * tests/test-isinf.c: Include infinity.h.
30461         (test_isinff): Use Infinityf.
30462         (test_isinfd): Use Infinityd.
30463         (test_isinfl): Use Infinityl.
30464         * tests/test-isnan.c: Include infinity.h.
30465         (test_float): Use Infinityf.
30466         (test_double): Use Infinityd.
30467         (test_long_double): Use Infinityl.
30468         * tests/test-isnanf.h: Include infinity.h.
30469         (main): Use Infinityf.
30470         * tests/test-isnand.h: Include infinity.h.
30471         (main): Use Infinityd.
30472         * tests/test-isnanl.h: Include infinity.h.
30473         (main): Use Infinityl.
30474         * tests/test-ldexpl.c: Include infinity.h.
30475         (main): Use Infinityl.
30476         * tests/test-printf-posix.h: Include infinity.h.
30477         (test_function): Use Infinityd.
30478         * tests/test-roundf1.c: Include infinity.h.
30479         (main): Use Infinityf.
30480         * tests/test-round1.c: Include infinity.h.
30481         (main): Use Infinityd.
30482         * tests/test-roundl.c: Include infinity.h.
30483         (main): Use Infinityl.
30484         * tests/test-signbit.c: Include infinity.h.
30485         (test_signbitf): Use Infinityf.
30486         (test_signbitd): Use Infinityd.
30487         (test_signbitl): Use Infinityl.
30488         * tests/test-snprintf-posix.h: Include infinity.h.
30489         (test_function): Use Infinityd, Infinityl.
30490         * tests/test-sprintf-posix.h: Include infinity.h.
30491         (test_function): Use Infinityd, Infinityl.
30492         * tests/test-truncf1.c: Include infinity.h.
30493         (main): Use Infinityf.
30494         * tests/test-trunc1.c: Include infinity.h.
30495         (main): Use Infinityd.
30496         * tests/test-truncl.c: Include infinity.h.
30497         (main): Use Infinityl.
30498         * tests/test-vasnprintf-posix.c: Include infinity.h.
30499         (test_function): Use Infinityd, Infinityl.
30500         * tests/test-vasprintf-posix.c: Include infinity.h.
30501         (test_function): Use Infinityd, Infinityl.
30502         * modules/ceilf-tests (Files): Add tests/infinity.h.
30503         * modules/ceil-tests (Files): Likewise.
30504         * modules/ceill-tests (Files): Likewise.
30505         * modules/dprintf-posix-tests (Files): Likewise.
30506         * modules/floorf-tests (Files): Likewise.
30507         * modules/floor-tests (Files): Likewise.
30508         * modules/floorl-tests (Files): Likewise.
30509         * modules/fprintf-posix-tests (Files): Likewise.
30510         * modules/frexp-tests (Files): Likewise.
30511         * modules/frexp-nolibm-tests (Files): Likewise.
30512         * modules/frexpl-tests (Files): Likewise.
30513         * modules/frexpl-nolibm-tests (Files): Likewise.
30514         * modules/isfinite-tests (Files): Likewise.
30515         * modules/isinf-tests (Files): Likewise.
30516         * modules/isnan-tests (Files): Likewise.
30517         * modules/isnanf-tests (Files): Likewise.
30518         * modules/isnanf-nolibm-tests (Files): Likewise.
30519         * modules/isnand-tests (Files): Likewise.
30520         * modules/isnand-nolibm-tests (Files): Likewise.
30521         * modules/isnanl-tests (Files): Likewise.
30522         * modules/isnanl-nolibm-tests (Files): Likewise.
30523         * modules/ldexpl-tests (Files): Likewise.
30524         * modules/printf-posix-tests (Files): Likewise.
30525         * modules/roundf-tests (Files): Likewise.
30526         * modules/round-tests (Files): Likewise.
30527         * modules/roundl-tests (Files): Likewise.
30528         * modules/signbit-tests (Files): Likewise.
30529         * modules/snprintf-posix-tests (Files): Likewise.
30530         * modules/sprintf-posix-tests (Files): Likewise.
30531         * modules/truncf-tests (Files): Likewise.
30532         * modules/trunc-tests (Files): Likewise.
30533         * modules/truncl-tests (Files): Likewise.
30534         * modules/vasnprintf-posix-tests (Files): Likewise.
30535         * modules/vasprintf-posix-tests (Files): Likewise.
30536         * modules/vdprintf-posix-tests (Files): Likewise.
30537         * modules/vfprintf-posix-tests (Files): Likewise.
30538         * modules/vprintf-posix-tests (Files): Likewise.
30539         * modules/vsnprintf-posix-tests (Files): Likewise.
30540         * modules/vsprintf-posix-tests (Files): Likewise.
30541         * modules/xprintf-posix-tests (Files): Likewise.
30543 2011-09-11  Bruno Haible  <bruno@clisp.org>
30545         Ensure pid_t gets defined.
30546         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
30547         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
30548         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
30549         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
30550         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
30551         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
30552         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
30553         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
30554         * tests/test-fcntl-h.c: Check that pid_t is defined.
30555         * tests/test-sched.c: Likewise.
30556         * tests/test-termios.c: Likewise.
30557         * tests/test-time.c: Likewise.
30558         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
30559         * doc/posix-headers/signal.texi: Likewise.
30560         * doc/posix-headers/sys_types.texi: Likewise.
30561         * doc/posix-headers/time.texi: Likewise.
30563 2011-09-11  Bruno Haible  <bruno@clisp.org>
30565         acl: Fix compilation on Solaris 10 (older version).
30566         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
30567         of ACE_EVERYONE.
30568         * lib/set-mode-acl.c (qset_acl): Likewise.
30569         Reported by Christian Jullien <eligis@orange.fr>.
30571 2011-09-10  Bruno Haible  <bruno@clisp.org>
30573         iconv, unsetenv: Add support for MSVC compiler.
30574         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
30575         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
30577 2011-09-10  Bruno Haible  <bruno@clisp.org>
30579         *printf: Add support for MSVC compiler.
30580         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
30581         handles the exception caused by the %n directive. When cross-compiling,
30582         guess no on native Windows.
30583         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
30584         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
30585         emulate it through vsnprintf.
30586         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
30587         * doc/posix-functions/dprintf.texi: Update documentation regarding
30588         MSVC 9.
30589         * doc/posix-functions/fprintf.texi: Likewise.
30590         * doc/posix-functions/printf.texi: Likewise.
30591         * doc/posix-functions/snprintf.texi: Likewise.
30592         * doc/posix-functions/sprintf.texi: Likewise.
30593         * doc/posix-functions/swprintf.texi: Likewise.
30594         * doc/posix-functions/vdprintf.texi: Likewise.
30595         * doc/posix-functions/vfprintf.texi: Likewise.
30596         * doc/posix-functions/vprintf.texi: Likewise.
30597         * doc/posix-functions/vsnprintf.texi: Likewise.
30598         * doc/posix-functions/vsprintf.texi: Likewise.
30599         * doc/glibc-functions/asprintf.texi: Likewise.
30600         * doc/glibc-functions/obstack_printf.texi: Likewise.
30601         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
30602         * doc/glibc-functions/vasprintf.texi: Likewise.
30604 2011-09-10  Bruno Haible  <bruno@clisp.org>
30606         nocrash: Add support for native Windows.
30607         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
30609 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
30610             Bruno Haible  <bruno@clisp.org>
30612         absolute-header, include-next: Add support for MSVC compiler.
30613         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
30614         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
30615         directory separator in #line directives.
30616         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
30617         recognize also backslash as directory separator in #line directives.
30619 2011-09-08  Jim Meyering  <meyering@redhat.com>
30621         maint.mk: mark the post-release commit log with "maint: " prefix
30622         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
30623         one-line commit-log summary.
30625 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
30626             Bruno Haible  <bruno@clisp.org>
30628         Doc about crypt functions.
30629         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
30630         systems.
30631         * doc/posix-functions/encrypt.texi: Likewise.
30632         * doc/posix-functions/setkey.texi: Likewise.
30634 2011-09-08  Simon Josefsson  <simon@josefsson.org>
30636         * lib/gc.h: Fix copyright header.
30638 2011-09-07  Bruno Haible  <bruno@clisp.org>
30640         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
30641         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
30642         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
30644 2011-09-07  Bruno Haible  <bruno@clisp.org>
30646         openat: Work around compilation error with OSF/1 5.1 DTK cc.
30647         * lib/fopen.c: Use different syntax for include of <stdio.h>.
30648         * lib/freopen.c: Likewise.
30649         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
30650         * lib/lstat.c: Likewise.
30651         * lib/stat.c: Likewise.
30652         * lib/open.c: Use different syntax for include of <fcntl.h>.
30653         * lib/openat.c: Include fcntl.h again, explicitly.
30655 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
30657         parse-datetime: document the newly accepted format
30658         * doc/parse-datetime.texi (Combined date and time of day items):
30659         New section.
30661 2011-09-06  Bruno Haible  <bruno@clisp.org>
30663         acl: Fix a test failure on newer Solaris 10 with ZFS.
30664         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
30665         ENOSYS as no ACL.
30666         Reported by Jim Meyering.
30668 2011-09-06  Bruno Haible  <bruno@clisp.org>
30670         acl: Update for AIX >= 5.3 with NFS.
30671         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
30672         ENOSYS as no ACL.
30674         acl: Fix a test failure on AIX >= 5.3 with NFS.
30675         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
30676         as no ACL.
30678 2011-09-06  Bruno Haible  <bruno@clisp.org>
30680         acl: Fix a test failure on IRIX 6.5 with NFS.
30681         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
30682         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
30683         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
30684         * lib/copy-acl.c (qcopy_acl): Likewise.
30686 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
30688         openat: port to AIX 7.1 with large files
30689         AIX 7.1 does a "#define openat open64at" if large files are in use,
30690         so we can't simply #undef openat.  Use the orig_openat trick (similar
30691         to orig_open in lib/open.c) to work around the problem.  Problem
30692         reported by Kevin Brott for GNU tar, in the thread containing
30693         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
30694         * lib/openat.c (__need_system_fcntl_h): Define first.
30695         Include <fcntl.h> and <sys/types.h> before undefining.
30696         (orig_openat) [HAVE_OPENAT]: New inline function.
30697         (openat) [HAVE_OPENAT]: Do not undef.
30698         (rpl_openat): Use orig_openat, not openat.
30700 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
30701             Bruno Haible  <bruno@clisp.org>
30703         acl: Avoid errors on NonStop Kernel.
30704         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
30705         ENOTSUP errors.
30707 2011-09-05  Bruno Haible  <bruno@clisp.org>
30709         acl: Clean up Solaris code.
30710         * lib/acl-internal.h: Remove no-op #if.
30711         * lib/file-has-acl.c: Likewise.
30712         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
30713         * lib/copy-acl.c (qcopy_acl): Likewise.
30715 2011-09-05  Bruno Haible  <bruno@clisp.org>
30717         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
30718         binaries built on the original Solaris 10.
30719         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
30720         trivial.
30722 2011-09-05  Bruno Haible  <bruno@clisp.org>
30724         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
30725         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
30726         10.
30727         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
30728         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
30729         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
30730         instead of acl_get, facl_get, acl_set, facl_set.
30732 2011-09-05  Bruno Haible  <bruno@clisp.org>
30734         copy-file: Try unit tests on more file systems.
30735         * tests/test-copy-file-1.sh: New file.
30736         * tests/test-copy-file-2.sh: New file.
30737         * modules/copy-file-tests (Files): Add them.
30738         (Makefile.am): Add them to TESTS.
30740         acl: Try unit tests on more file systems.
30741         * tests/test-file-has-acl-1.sh: New file.
30742         * tests/test-file-has-acl-2.sh: New file.
30743         * tests/test-set-mode-acl-1.sh: New file.
30744         * tests/test-set-mode-acl-2.sh: New file.
30745         * tests/test-copy-acl-1.sh: New file.
30746         * tests/test-copy-acl-2.sh: New file.
30747         * modules/acl-tests (Files): Add them.
30748         (Makefile.am): Add them to TESTS.
30750 2011-09-04  Bruno Haible  <bruno@clisp.org>
30752         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
30753         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
30754         10.
30755         (OLD_ALLOW, OLD_DENY): New macros.
30756         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
30757         ACE_ACCESS_ALLOWED_ACE_TYPE.
30758         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
30759         ACE_ACCESS_DENIED_ACE_TYPE.
30760         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
30761         (NEW_ACE_EXECUTE): Fix value.
30762         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
30763         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
30764         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
30765         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
30766         NEW_ACE_SYNCHRONIZE): New macros.
30767         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
30768         instead of acl_fromtext, acl_set, facl_set.
30769         Fixes a coreutils/tests/cp/perm failure.
30771 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
30773         openat: test for fstatat (..., 0) bug
30774         Further testing with tar suggests that fstatat (..., 0)
30775         does not work in general, on AIX 7.1; see
30776         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
30777         So, give up entirely on AIX 7.1's fstatat, and fall back on our
30778         replacement fstatat (which is what older AIX releases were using
30779         anyway).
30780         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
30781         use is now changed to orig_fstatat.  This was probably the right
30782         thing to do anyway.
30783         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
30784         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
30785         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
30786         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
30787         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
30788         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
30789         if the bug is found.
30791         openat: test for fstatat (AT_FDCWD, ..., 0) bug
30792         This tests for another fstatat bug on AIX 7.1:
30793         fstatat (AT_FDCWD, ..., 0) does not work.  See
30794         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
30795         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
30796         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
30797         (rpl_fstatat): Adjust so that it works around either (or both)
30798         bugs if present.
30799         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
30801 2011-09-03  Karl Berry  <karl@gnu.org>
30803         * doc/regex.texi (Character Class Operators): Avoid literal ":"
30804         in index entries.
30806 2011-09-02  Bruno Haible  <bruno@clisp.org>
30808         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
30809         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
30810         values of AR, ARFLAGS, RANLIB.
30811         Reported by John W. Eaton <jwe@gnu.org> for Octave.
30813 2011-09-02  Bruno Haible  <bruno@clisp.org>
30815         Find 'ar' program that fits with --host argument.
30816         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
30818 2011-09-02  Bruno Haible  <bruno@clisp.org>
30820         tests: init.sh: Support any non-GNU diff.
30821         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
30822         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
30823         Solaris 8.
30825 2011-09-02  Bruno Haible  <bruno@clisp.org>
30827         tests: init.sh: work also with any non-GNU diff that supports -u
30828         * tests/init.sh: Relax check for diff -u support.
30829         Rather than checking for GNU diff via --version, simply check
30830         for support for -u itself.  Useful at least on OpenBSD 4.9,
30831         AIX 7.1, IRIX 6.5, and Solaris 10.
30833 2011-09-01  Bruno Haible  <bruno@clisp.org>
30835         strtoimax, strtoumax: Document problem on HP-UX 11.
30836         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
30837         * doc/posix-functions/strtoumax.texi: Likewise.
30839 2011-09-01  Bruno Haible  <bruno@clisp.org>
30841         strtoumax: Avoid link error on OSF/1 with DTK cc.
30842         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
30843         defined as a function.
30844         * modules/strtoumax (Depends-on, configure.ac): Test only whether
30845         strtoumax is defined, not whether it is declared.
30847 2011-09-01  Bruno Haible  <bruno@clisp.org>
30849         strtoimax: Avoid link error on OSF/1 with DTK cc.
30850         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
30851         defined as a function.
30852         * modules/strtoimax (Depends-on, configure.ac): Test only whether
30853         strtoimax is defined, not whether it is declared.
30855 2011-09-01  Bruno Haible  <bruno@clisp.org>
30857         imaxdiv: Avoid link error on OSF/1 with DTK cc.
30858         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
30859         as a function.
30860         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
30861         whether it is declared.
30863 2011-09-01  Bruno Haible  <bruno@clisp.org>
30865         imaxabs: Avoid link error on OSF/1 with DTK cc.
30866         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
30867         as a function.
30868         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
30869         whether it is declared.
30871 2011-09-01  Bruno Haible  <bruno@clisp.org>
30873         Tests for module 'strtoumax'.
30874         * modules/strtoumax-tests: New file.
30875         * tests/test-strtoumax.c: New file.
30877         Tests for module 'strtoimax'.
30878         * modules/strtoimax-tests: New file.
30879         * tests/test-strtoimax.c: New file.
30881         Tests for module 'imaxdiv'.
30882         * modules/imaxdiv-tests: New file.
30883         * tests/test-imaxdiv.c: New file.
30885         Tests for module 'imaxabs'.
30886         * modules/imaxabs-tests: New file.
30887         * tests/test-imaxabs.c: New file.
30889 2011-09-01  Bruno Haible  <bruno@clisp.org>
30891         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
30892         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
30893         pthread_create.
30895 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
30897         openat: work around AIX 7.1 fstatat issue
30898         This should fix the problem that was not properly fixed
30899         in the previous change, dated 2011-08-30.
30900         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
30901         __need_system_stat_h defined.
30902         (orig_fstatat) [HAVE_FSTATAT]: New function.
30903         (rpl_fstatat): Go back to the old way of doing things,
30904         except call orig_fstatat instead of fstatat.
30905         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
30906         Remove unnecessary check whether fstatat fills in st_size etc.
30908 2011-09-01  Bruno Haible  <bruno@clisp.org>
30910         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
30911         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
30912         just include the system's header.
30914 2011-08-31  Jim Meyering  <meyering@redhat.com>
30916         tests: avoid spurious assertion failure in test-float.c on ppc64
30917         * tests/test-float.c (test_long_double): Comment out an assertion,
30918         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
30919         with gcc-4.4.4.
30921         maint: indent with spaces, not TABs
30922         I need to get in the habit of running gnulib's "make check".
30923         Both of these would have been caught.
30924         * m4/largefile.m4: Indent with spaces, not TABs.
30925         * lib/parse-datetime.y (iso_8601_time): Likewise.
30926         Spotted by Pádraig Brady.
30928         test-parse-datetime.c: accommodate a relatively strict gcc warning
30929         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
30930         to avoid a warning from gcc's -Werror=missing-declarations.
30931         Insert a few spaces-before-funcall-parenthesis.
30933 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
30935         parse-datetime: accept ISO 8601 date and time rep with "T" separator
30936         The parser now accepts ISO 8601 date-time strings with "T" as the
30937         separator.  It has long parsed dates like "2004-02-29 16:21:42"
30938         with a space between the date and time strings.  Now it also parses
30939         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
30940         variants like "2004-02-29T16:21:42.333-07:00"
30941         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
30942         of day representation using the 'T' separator character.
30943         * doc/parse-datetime.texi (General date syntax): replace use of
30944         deprecated --iso-8601 option with --rfc-3339 in example of date
30945         command output formats that can be parsed.
30946         * tests/test-parse-datetime.c (tm_diff): New function, taken from
30947         lib/parse-datetime.y.
30948         (gmt_offset): New function.
30949         (main): Add additional test cases to validate ISO8601 extended
30950         date and time of day parsing.
30952 2011-08-31  Bruno Haible  <bruno@clisp.org>
30954         freopen: Documentation.
30955         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
30956         name.
30957         Reported by Claudio Bley <claudio.bley@gmail.com>.
30959 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
30961         freopen: Don't crash if the filename argument is NULL.
30962         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
30963         NULL.
30965 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
30967         openat: work around AIX 7.1 fstatat bug
30968         Problem reported by Kevin Brott for GNU tar, in the thread containing
30969         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
30970         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
30971         FSTATAT_ST_SIZE_ETC_BROKEN.
30972         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
30973         rpl_fstatat.
30974         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
30975         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
30976         AC_CHECK_FUNCS_ONCE for fstatat.
30977         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
30978         fchmodat, mkdirat, openat and unlinkat.
30980 2011-08-30  Bruno Haible  <bruno@clisp.org>
30982         Avoid endless recursions if config.h includes some header files.
30983         * lib/fopen.c (__need_FILE): Define already before including config.h.
30984         * lib/freopen.c (__need_FILE): Likewise.
30985         * lib/open.c (__need_system_fcntl_h): Likewise.
30986         * lib/stat.c (__need_system_sys_stat_h): Likewise.
30987         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
30988         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
30990 2011-08-25  Karl Berry  <karl@gnu.org>
30992         * config/srclist.txt (ylwrap): new try.
30993         * build-aux/ylwrap: new file.
30995 2011-08-23  Bruno Haible  <bruno@clisp.org>
30997         tmpdir: Use a good default directory on native Windows.
30998         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
30999         (P_tmpdir): Default to _P_tmpdir on native Windows.
31000         (path_search): On native Windows, try the value returned by GetTempPath
31001         before trying P_tmpdir.
31002         * modules/tmpdir (Depends-on): Add pathmax.
31003         Suggested by John Darrington <john@darrington.wattle.id.au>.
31005 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
31007         doc: fix typo in README-release
31008         * top/README-release: Capitalize first word of a sentence.
31010 2011-08-19  Jim Meyering  <meyering@redhat.com>
31012         fts: do not exhaust memory when processing million-entry directories
31013         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
31014         directory would require about 256*N bytes of memory.  Thus, it was
31015         easy to construct a directory too large to be processed by any of
31016         those tools.  With this change, fts' maximum memory utilization is
31017         now limited to around 30MB.
31018         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
31019         (fts_read): When we've processed the final entry (i.e., when
31020         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
31021         using the parent entry to read any remaining entries.  Dispatch
31022         depending on what fts_build returns:
31023         - NULL+stop, aka failure: stop
31024         - NULL otherwise: move up in the dir hierarchy
31025         - non-NULL: handle this new entry
31026         (fts_build): Declare and use new local, continue_readdir.
31027         Prepare to be called from fts_read, when the entries
31028         from a partially-read directory have just been exhausted.
31029         In that case, we'll skip the opendir and instead use the parent's
31030         fts_dirp and derive dir_fd from that.
31031         Finally, in the readdir loop, if we read max_entries entries,
31032         exit the loop ensuring *not* to call closedir.  This is required
31033         so that fts_dirp can be reused on a subsequent call.
31034         Prompted by Ben England's report of memory exhaustion in find
31035         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
31037         maint: fts: move decl of `dp' down into while loop; split a long line
31038         * lib/fts.c (fts_build): No semantic change.
31040         fts: add/use new struct member, fts_dirp
31041         We are about to use this to manage any directory with
31042         too many entries to read all of them into memory at once.
31043         To do that, we'll need to save the DIR* pointer in each
31044         affected FTSENT struct.
31045         * lib/fts_.h: Include <dirent.h>.
31046         (struct FTSENT) [fts_dirp]: New member.
31047         * lib/fts.c (closedir_and_clear): Define.
31048         Use it in place of closedir so that we are sure to
31049         clear the new fts_dirp member when done with it.
31050         (fts_alloc): Initialize the new member.
31051         (fts_lfree): Free, if needed.
31053         maint: fts: give __opendir2 a new parameter and rename
31054         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
31055         than surreptitiously using sole caller's "dir_fd".
31056         (fts_opendir): Rename from __opendir2.
31058         maint: fts.c: remove __opendir2's now-unused parameter, oflag
31059         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
31061         maint: fts.c: correct off-by-one indentation
31062         * lib/fts.c (fts_build): Correct indentation, change style
31063         of a couple of block comments, and bracing style.
31065         maint: fts.c: move __opendir2 #define "up" out of function body
31066         * lib/fts.c (__opendir2): Move "up".  No semantic change.
31068         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
31069         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
31070         out for a long time and besides was useful only on BSD systems.
31072 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
31074         regex: port to Stratus OpenVOS
31075         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
31076         define to empty, rather than attempting nonportable optimizations.
31077         Problem reported by Paul Green in:
31078         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
31079         and fix suggested by Eric Blake in:
31080         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
31082 2011-08-17  Eric Blake  <eblake@redhat.com>
31084         getcwd: fix test failures on mingw
31085         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
31086         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
31087         test if long directory cannot be created, and allow mingw errno.
31089         getcwd-lgpl: fix m4 to match relaxed test for BSD
31090         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
31091         (gl_FUNC_GETCWD_SIGNATURE): New macro.
31092         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
31093         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
31094         signature problem.
31096         getcwd: fix compilation on mingw64
31097         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
31098         getcwd.
31099         Reported by Marc-André Lureau.
31101         pipe2: silence compiler warning
31102         * lib/pipe2.c (pipe2): Hide label if it is not used.
31104 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
31106         relocatable-prog: fix link error
31107         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
31108         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
31109         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
31110         into modules/relocatable-lib without noticing that
31111         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
31112         also needs to build relocatable.c.
31114 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
31116         getaddrinfo: fix sh typo in gai_strerrorA decl checking
31117         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
31118         shell code: it contained a 'break' that was not in a loop.
31119         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
31120         via a shell-language loop; this may have been true in old Autoconf
31121         versions, but it's not true in Autoconf 2.68.  I found this bug
31122         when testing coreutils git on Solaris 8, whose shell complains
31123         about the syntax error.
31125 2011-08-12  Simon Josefsson  <simon@josefsson.org>
31127         * lib/base64.c: Fix comment to reference RFC 4648.
31128         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
31129         <gvtulder@gmail.com>.
31131 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
31133         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
31135         po/Makefile.in.in: fix make -q problem
31136         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
31137         rule, since there's no file named 'check-macro-version' and its
31138         use as a file breaks make -q.
31139         (all): Don't depend on check-macro-version.
31140         (CHECK_MACRO_VERSION): New macro.
31141         (stamp-po): Use it.
31143         configmake: fix make -q problem
31144         * modules/configmake (configmake.h): Update configmake.h's time stamp
31145         even if the file does not change.  Otherwise, 'make -q' fails.
31146         Problem reported by Simon Josefsson in
31147         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
31149 2011-08-11  Jim Meyering  <meyering@redhat.com>
31151         git-version-gen: correct the advice in a comment
31152         * build-aux/git-version-gen: Correct comment.
31153         Don't recommend to list .tarball-version in .gitignore.
31155 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
31157         base64: fix off-by-one buffer size bug
31158         Problem and (trivial) fix reported by Gijs van Tulder in
31159         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
31160         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
31161         * tests/test-base64.c (main): Catch the bug.
31163 2011-08-10  Eric Blake  <eblake@redhat.com>
31165         closein: correct comments
31166         * lib/closein.c (close_stdin): Improve comments.
31168 2011-08-09  Bruno Haible  <bruno@clisp.org>
31170         More tests for 'fseeko'.
31171         * tests/test-fseeko3.c: New file, from Eric Blake.
31172         * tests/test-fseeko3.sh: New file.
31173         * modules/fseeko-tests (Files): Add them.
31174         (TESTS): Add test-fseeko3.sh.
31175         (check_PROGRAMS): Add test-fseeko3.
31177 2011-08-09  Eric Blake  <eblake@redhat.com>
31179         fseeko: remove unneeded hack
31180         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
31182         fseeko: fix bug on glibc
31183         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
31184         Reported by John W. Eaton.
31186 2011-08-08  Bruno Haible  <bruno@clisp.org>
31188         unictype/base: Fix interoperability with preinstalled libunistring.
31189         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
31190         Reported by Simon Josefsson.
31192 2011-08-08  Bruno Haible  <bruno@clisp.org>
31194         iswblank: Detect declaration correctly.
31195         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
31196         AC_CHECK_DECLS invocation.
31198 2011-08-08  Bruno Haible  <bruno@clisp.org>
31200         tcgetsid: Detect declaration correctly.
31201         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
31202         AC_CHECK_DECLS invocation.
31203         Reported by Simon Josefsson.
31205 2011-08-08  Eric Blake  <eblake@redhat.com>
31207         largefile: fix typo that regressed large file support
31208         * modules/largefile (configure.ac-early): Fix section name.
31210 2011-08-06  Karl Berry  <karl@gnu.org>
31212         * MODULES.html.sh (func_all_files): _Noreturn is no longer
31213         a separate module.
31215 2011-08-05  Simon Josefsson  <simon@josefsson.org>
31217         openat: Fix warnings and commens when building unlinkat.c on Hurd.
31218         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
31219         get prototype for free.
31221 2011-08-04  Bruno Haible  <bruno@clisp.org>
31223         Tests for module 'pathmax'.
31224         * modules/pathmax-tests: New file.
31225         * tests/test-pathmax.c: New file.
31227         canonicalize-lgpl: Support larger filenames on the Hurd.
31228         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
31229         Reported by Paul Eggert.
31231         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
31232         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
31233         * lib/chdir-long.h: Include pathmax.h.
31234         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
31235         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
31236         (PATH_MAX): Remove code that is done by pathmax.h.
31237         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
31238         * lib/tmpfile.c: Add a comment.
31239         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
31240         * modules/chdir-long (Depends-on): Add pathmax.
31241         * modules/getcwd (Depends-on): Add pathmax.
31242         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
31243         is not defined.
31244         * doc/posix-headers/limits.texi: Mention the pathmax module.
31245         * NEWS: Mention the change.
31247 2011-08-02  Bruno Haible  <bruno@clisp.org>
31249         pthread_sigmask: Actually use results of gl_THREADLIB.
31250         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
31251         gl_THREADLIB, not gl_[]THREADLIB.
31252         Reported by Eric Blake.
31254 2011-08-02  Jim Meyering  <meyering@redhat.com>
31256         maint.mk: relax the default _gl_TS_function_match regexp
31257         * top/maint.mk (_gl_TS_function_match): Don't require at least one
31258         space between function name and "(" in an "extern" declaration.
31259         That would fail to match a decl with no space there: extern void foo();
31261 2011-07-31  Iain Nicol  <iain@thenicols.net>
31263         git-version-gen: document that EXTRA_DIST must include .version
31264         * build-aux/git-version-gen: In the how-to-use comment, document
31265         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
31266         will fail when run from an unpacked distribution tarball.
31268 2011-08-01  Bruno Haible  <bruno@clisp.org>
31270         wctype-h: Fix last change.
31271         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
31272         REPLACE_TOWLOWER to 0.
31273         Reported by Sam Steingold <sds@gnu.org>.
31275 2011-07-31  Bruno Haible  <bruno@clisp.org>
31277         frexpl: Update autoconf test.
31278         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
31279         according to changes of 2011-06-20.
31281 2011-07-31  Bruno Haible  <bruno@clisp.org>
31283         sys_utsname: Add support for Minix.
31284         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
31285         <sys/utsname.h>.
31286         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
31287         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
31289 2011-07-31  Bruno Haible  <bruno@clisp.org>
31291         strings: Add support for Minix.
31292         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
31293         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
31294         * doc/posix-headers/strings.texi: Document the Minix problem.
31296 2011-07-31  Bruno Haible  <bruno@clisp.org>
31298         wctype-h: Add support for Minix.
31299         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
31300         REPLACE_TOWLOWER.
31301         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
31302         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
31303         REPLACE_ISWCNTRL.
31305 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
31307         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
31308         This is a performance improvement for 64-bit hosts: it causes the
31309         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
31311 2011-07-31  Bruno Haible  <bruno@clisp.org>
31313         stdioext: Add support for Minix.
31314         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
31315         * lib/fpurge.c (fpurge): Likewise.
31316         * lib/freadahead.c (freadahead): Likewise.
31317         * lib/freadable.c (freadable): Likewise.
31318         * lib/freading.c (freading): Likewise.
31319         * lib/freadptr.c (freadptr): Likewise.
31320         * lib/freadseek.c (freadptrinc): Likewise.
31321         * lib/fseeko.c (rpl_fseeko): Likewise.
31322         * lib/fseterr.c (fseterr): Likewise.
31323         * lib/fwritable.c (fwritable): Likewise.
31324         * lib/fwriting.c (fwriting): Likewise.
31325         * lib/fflush.c (clear_ungetc_buffer): Update comment.
31326         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
31328 2011-07-31  Bruno Haible  <bruno@clisp.org>
31330         errno: Port to Minix.
31331         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
31332         ECONNABORTED are defined.
31333         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
31334         GNULIB_defined_ECONNABORTED): New macros.
31335         * lib/strerror-override.h (strerror_override): Test also
31336         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
31337         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
31338         ECONNABORTED.
31339         * doc/posix-headers/errno.texi: Mention the Minix problem.
31341 2011-07-31  Bruno Haible  <bruno@clisp.org>
31343         Work around declaration collisions on Minix.
31344         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
31345         defined, set REPLACE_MBSINIT.
31346         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
31347         defined, set REPLACE_MBRTOWC.
31348         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
31349         set REPLACE_MBRLEN.
31350         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
31351         defined, set REPLACE_MBSRTOWCS.
31352         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
31353         defined, set REPLACE_WCRTOMB.
31354         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
31355         defined, set REPLACE_WCSRTOMBS.
31357 2011-07-31  Bruno Haible  <bruno@clisp.org>
31359         Add support for Minix with ACK compiler.
31360         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
31361         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
31362         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
31364 2011-07-31  Bruno Haible  <bruno@clisp.org>
31366         Documentation about Minix.
31367         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
31368         * doc/glibc-headers/*.texi: Likewise.
31369         * doc/posix-functions/*.texi: Likewise.
31370         * doc/glibc-functions/*.texi: Likewise.
31372 2011-07-31  Bruno Haible  <bruno@clisp.org>
31374         snippet/warn-on-use: Fix indentation.
31375         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
31377 2011-07-25  Jim Meyering  <meyering@redhat.com>
31379         tests: test-update-copyright.sh: remove unnecessary "rm" commands
31380         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
31381         commands.
31383 2011-07-27  Jim Meyering  <meyering@redhat.com>
31385         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
31386         * top/maint.mk (gl_extract_significant_defines_): Now that
31387         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
31388         gnulib/lib/signal.in.h, and now that we recommend to
31389         define-if-undefined those two symbols in application code,
31390         we must filter them out of the "significant" list.
31391         This avoids a "make syntax-check" failure in coreutils.
31393 2011-07-26  Eric Blake  <eblake@redhat.com>
31395         warnings: add comments about previous patch
31396         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
31397         * m4/include_next.m4: Likewise.
31398         * m4/warn-on-use.m4: Likewise.
31399         * m4/warnings.m4: Likewise, and simplify use.
31400         Suggested by Stefano Lattarini.
31402         include-next, warnings: support older autoconf
31403         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
31404         AS_VAR_PUSHDEF in a way that works with older autoconf.
31405         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
31406         Reported by Daniel P. Berrange.
31408 2011-07-25  Bruno Haible  <bruno@clisp.org>
31410         fseek, ftell: Fix doc.
31411         * doc/posix-functions/fseek.texi: Reword statement about
31412         AC_SYS_LARGEFILE.
31413         * doc/posix-functions/ftell.texi: Likewise.
31415 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
31416             Bruno Haible  <bruno@clisp.org>
31418         Add dependencies to the 'largefile' module.
31419         * modules/fopen (Depends-on): Add 'largefile'.
31420         * modules/freopen (Depends-on): Likewise.
31421         * modules/fseeko (Depends-on): Likewise.
31422         * modules/ftello (Depends-on): Likewise.
31423         * modules/glob (Depends-on): Likewise.
31424         * modules/lseek (Depends-on): Likewise.
31425         * modules/lstat (Depends-on): Likewise.
31426         * modules/mkostemp (Depends-on): Likewise.
31427         * modules/mkostemps (Depends-on): Likewise.
31428         * modules/mkstemp (Depends-on): Likewise.
31429         * modules/mkstemps (Depends-on): Likewise.
31430         * modules/open (Depends-on): Likewise.
31431         * modules/openat (Depends-on): Likewise.
31432         * modules/pread (Depends-on): Likewise.
31433         * modules/pwrite (Depends-on): Likewise.
31434         * modules/scandir (Depends-on): Likewise.
31435         * modules/stat (Depends-on): Likewise.
31436         * modules/tmpfile (Depends-on): Likewise.
31437         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
31438         since the containing module now depends on the largefile module.
31439         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
31440         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
31441         off_t is fixed by gnulib.
31442         * doc/posix-functions/freopen.texi: Likewise.
31443         * doc/posix-functions/fseeko.texi: Likewise.
31444         * doc/posix-functions/fstatat.texi: Likewise.
31445         * doc/posix-functions/ftello.texi: Likewise.
31446         * doc/posix-functions/glob.texi: Likewise.
31447         * doc/posix-functions/lseek.texi: Likewise.
31448         * doc/posix-functions/lstat.texi: Likewise.
31449         * doc/posix-functions/mkstemp.texi: Likewise.
31450         * doc/posix-functions/open.texi: Likewise.
31451         * doc/posix-functions/openat.texi: Likewise.
31452         * doc/posix-functions/pread.texi: Likewise.
31453         * doc/posix-functions/pwrite.texi: Likewise.
31454         * doc/posix-functions/scandir.texi: Likewise.
31455         * doc/posix-functions/stat.texi: Likewise.
31456         * doc/posix-functions/tmpfile.texi: Likewise.
31457         * doc/glibc-functions/mkostemp.texi: Likewise.
31458         * doc/glibc-functions/mkostemps.texi: Likewise.
31459         * doc/glibc-functions/mkstemps.texi: Likewise.
31461 2011-07-25  Bruno Haible  <bruno@clisp.org>
31463         fcntl: Move AC_LIBOBJ invocation to module description.
31464         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
31465         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
31467         fcntl: Remove call-in from fchdir.m4.
31468         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
31469         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
31471         dup3: Remove potential call-in from fchdir.m4.
31472         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
31473         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
31475         dup2: Move AC_LIBOBJ invocation to module description.
31476         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
31477         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
31478         Don't invoke AC_LIBOBJ.
31479         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
31481         dup2: Remove call-in from fchdir.m4.
31482         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
31483         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
31485         fclose: Move AC_LIBOBJ invocation to module description.
31486         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
31487         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
31488         to 1.
31489         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
31491         fclose: Remove call-in from close.m4.
31492         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
31493         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
31495         close: Move AC_LIBOBJ invocation to module description.
31496         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
31497         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
31498         1.
31499         * modules/close (configure.ac): Invoke AC_LIBOBJ.
31501         close: Remove call-in from fchdir.m4.
31502         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
31503         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
31505         open: Move AC_LIBOBJ invocation to module description.
31506         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
31507         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
31508         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
31510         open: Remove call-in from fchdir.m4.
31511         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
31512         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
31514         fchdir: Start to remove gl_REPLACE_* idiom.
31515         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
31516         (gl_FUNC_FCHDIR): Invoke it.
31518 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
31520         * lib/ftell.c (ftell): Comment out cast.
31522         close: use gl_REPLACE_FCLOSE only if defined
31523         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
31524         is defined.  The close module doesn't depend on the fclose module
31525         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
31526         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
31527         I reproduced the problem with "./gnulib-tool --test close sys_socket".
31529 2011-07-24  Jim Meyering  <meyering@redhat.com>
31531         test-select.h: avoid warning when using gcc's -Wmissing-declarations
31532         * tests/test-select.h (test_function): Declare as "static".
31534 2011-07-24  Bruno Haible  <bruno@clisp.org>
31536         doc: Mention the effects of AC_SYS_LARGEFILE.
31537         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
31538         on this function.
31539         * doc/posix-functions/aio_error.texi: Likewise.
31540         * doc/posix-functions/aio_fsync.texi: Likewise.
31541         * doc/posix-functions/aio_read.texi: Likewise.
31542         * doc/posix-functions/aio_return.texi: Likewise.
31543         * doc/posix-functions/aio_suspend.texi: Likewise.
31544         * doc/posix-functions/aio_write.texi: Likewise.
31545         * doc/posix-functions/fgetpos.texi: Likewise.
31546         * doc/posix-functions/fopen.texi: Likewise.
31547         * doc/posix-functions/freopen.texi: Likewise.
31548         * doc/posix-functions/fsetpos.texi: Likewise.
31549         * doc/posix-functions/fstatvfs.texi: Likewise.
31550         * doc/posix-functions/ftruncate.texi: Likewise.
31551         * doc/posix-functions/ftw.texi: Likewise.
31552         * doc/posix-functions/getrlimit.texi: Likewise.
31553         * doc/posix-functions/glob.texi: Likewise.
31554         * doc/posix-functions/lio_listio.texi: Likewise.
31555         * doc/posix-functions/lockf.texi: Likewise.
31556         * doc/posix-functions/mkstemp.texi: Likewise.
31557         * doc/posix-functions/mmap.texi: Likewise.
31558         * doc/posix-functions/nftw.texi: Likewise.
31559         * doc/posix-functions/openat.texi: Likewise.
31560         * doc/posix-functions/opendir.texi: Likewise.
31561         * doc/posix-functions/posix_fadvise.texi: Likewise.
31562         * doc/posix-functions/posix_fallocate.texi: Likewise.
31563         * doc/posix-functions/pread.texi: Likewise.
31564         * doc/posix-functions/pwrite.texi: Likewise.
31565         * doc/posix-functions/readdir.texi: Likewise.
31566         * doc/posix-functions/readdir_r.texi: Likewise.
31567         * doc/posix-functions/rewinddir.texi: Likewise.
31568         * doc/posix-functions/scandir.texi: Likewise.
31569         * doc/posix-functions/seekdir.texi: Likewise.
31570         * doc/posix-functions/setrlimit.texi: Likewise.
31571         * doc/posix-functions/statvfs.texi: Likewise.
31572         * doc/posix-functions/telldir.texi: Likewise.
31573         * doc/posix-functions/tmpfile.texi: Likewise.
31574         * doc/posix-functions/truncate.texi: Likewise.
31575         * doc/glibc-functions/fallocate.texi: Likewise.
31576         * doc/glibc-functions/fstatfs.texi: Likewise.
31577         * doc/glibc-functions/fts_children.texi: Likewise.
31578         * doc/glibc-functions/fts_read.texi: Likewise.
31579         * doc/glibc-functions/getdirentries.texi: Likewise.
31580         * doc/glibc-functions/mkostemp.texi: Likewise.
31581         * doc/glibc-functions/mkostemps.texi: Likewise.
31582         * doc/glibc-functions/mkstemps.texi: Likewise.
31583         * doc/glibc-functions/preadv.texi: Likewise.
31584         * doc/glibc-functions/pwritev.texi: Likewise.
31585         * doc/glibc-functions/sendfile.texi: Likewise.
31586         * doc/glibc-functions/statfs.texi: Likewise.
31588 2011-07-24  Bruno Haible  <bruno@clisp.org>
31590         doc: Fix typo.
31591         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
31593 2011-07-24  Bruno Haible  <bruno@clisp.org>
31595         doc: Mention fsusage.
31596         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
31598 2011-07-24  Bruno Haible  <bruno@clisp.org>
31600         doc: Mention new glibc headers and functions.
31601         * doc/glibc-headers/gshadow.texi: New file.
31602         * doc/glibc-functions/endsgent.texi: New file.
31603         * doc/glibc-functions/fgetsgent.texi: New file.
31604         * doc/glibc-functions/fgetsgent_r.texi: New file.
31605         * doc/glibc-functions/getsgent.texi: New file.
31606         * doc/glibc-functions/getsgent_r.texi: New file.
31607         * doc/glibc-functions/getsgnam.texi: New file.
31608         * doc/glibc-functions/getsgnam_r.texi: New file.
31609         * doc/glibc-functions/putsgent.texi: New file.
31610         * doc/glibc-functions/setsgent.texi: New file.
31611         * doc/glibc-functions/sgetsgent.texi: New file.
31612         * doc/glibc-functions/sgetsgent_r.texi: New file.
31613         * doc/glibc-functions/malloc_info.texi: New file.
31614         * doc/glibc-functions/preadv.texi: New file.
31615         * doc/glibc-functions/pwritev.texi: New file.
31616         * doc/glibc-functions/register_printf_modifier.texi: New file.
31617         * doc/glibc-functions/register_printf_specifier.texi: New file.
31618         * doc/glibc-functions/register_printf_type.texi: New file.
31619         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
31620         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
31621         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
31622         * doc/glibc-functions/pthread_getname_np.texi: New file.
31623         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
31624         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
31625         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
31626         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
31627         * doc/glibc-functions/pthread_setname_np.texi: New file.
31628         * doc/glibc-functions/pthread_sigqueue.texi: New file.
31629         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
31630         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
31631         * doc/glibc-functions/qsort_r.texi: New file.
31632         * doc/glibc-functions/quick_exit.texi: New file.
31633         * doc/glibc-functions/syncfs.texi: New file.
31634         * doc/gnulib.texi: Include them.
31635         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
31636         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
31637         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
31638         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
31639         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
31640         * doc/glibc-functions/execvpe.texi: Likewise.
31642 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
31644         ftell: don't include <unistd.h>
31645         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
31646         guaranteed to define off_t, and the ftell module depends on the
31647         stdio module.
31649         ftell: do not assume wraparound signed arithmetic
31650         * lib/ftell.c: Include <limits.h>.
31651         (ftell): Don't assume wraparound signed arithmetic.
31653 2011-07-24  Bruno Haible  <bruno@clisp.org>
31655         close: No longer depend on module 'fclose'.
31656         * modules/close (Depends-on): Remove fclose.
31657         * NEWS: Mention the change.
31658         Suggested by Sam Steingold <sds@gnu.org>.
31660 2011-07-24  Bruno Haible  <bruno@clisp.org>
31662         fsusage: Enable large volume support on AIX >= 5.2.
31663         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
31664         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
31665         instead of STAT_STATVFS.
31666         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
31668         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
31669         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
31670         f_blocks field only on MacOS X.
31672         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
31673         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
31674         * modules/fsusage (Depends-on): Add largefile.
31676 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
31678         * README: Modernize discussion of signed integers.
31679         Assuming overflow wraparound is no longer safe.
31680         Mention ones' complement and signed magnitude.
31682 2011-07-22  Bruno Haible  <bruno@clisp.org>
31684         select tests, pselect tests: Refactor.
31685         * tests/test-select.h: New file, extracted from tests/test-select.c.
31686         (select_fn): New type.
31687         (test, do_select, do_select_nowait, do_select_wait, test_tty,
31688         test_connect_first, test_accept_first, test_pair, test_socket_pair,
31689         test_pipe): Add my_select argument.
31690         (test_function): Renamed from main. Add my_select argument.
31691         * tests/test-select.c: Move most code to tests/test-select.h. Include
31692         test-select.h.
31693         * modules/select-tests (Files): Add tests/test-select.h.
31694         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
31695         (my_select, main): New functions.
31696         * modules/pselect-tests (Files): Add tests/test-select.h,
31697         tests/macros.h, tests/signature.h.
31698         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
31699         (configure.ac): Check for <sys/wait.h>.
31701 2011-07-22  Bruno Haible  <bruno@clisp.org>
31703         sys_select tests: Check the signature of FD_*.
31704         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
31705         signature tests from here...
31706         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
31707         here.
31708         * modules/sys_select-tests (Files): Add tests/signature.h.
31710 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
31712         largefile: new module, replacing large-inode
31713         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
31714         * MODULES.html.sh: Add largefile, remove large-inode.
31715         * modules/largefile, m4/largefile.m4: New files.
31716         * modules/large-inode, m4/large-inode.m4: Remove.
31718         fsusage: port to MacOS X 10.7 with 4 TiB file systems
31719         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
31720         implementations that use only 32 bits to count blocks.
31721         On typical hosts with 1024-byte blocks, this fails with file
31722         systems as small as 4 TiB.  Problem reported by Herb Wartens
31723         <http://debbugs.gnu.org/9140> and this should also fix a similar
31724         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
31726         large-inode: New module
31727         * MODULES.html.sh: Add it.
31728         * modules/large-inode, m4/large-inode.m4: New files.
31730         extensions: Enable extensions on MacOS X 10.5 and later.
31731         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
31733 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
31735         file-has-acl: use acl_extended_file_nofollow if available
31736         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
31737         (acl_extended_file): New macro.
31738         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
31739         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
31741 2011-07-21  Bruno Haible  <bruno@clisp.org>
31743         Declare system functions in a way that works with C++.
31744         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
31745         declare fdopendir as extern "C".
31746         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
31747         declare frexpl as extern "C".
31748         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
31749         declare gai_strerror as extern "C".
31750         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
31751         programs, declare gai_strerror as extern "C".
31752         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
31753         declare getlogin_r as extern "C".
31754         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
31755         as extern "C".
31756         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
31757         declare ldexpl as extern "C".
31758         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
31759         as extern "C".
31760         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
31761         program, declare getmntinfo as extern "C".
31762         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
31763         stpncpy as extern "C".
31764         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
31765         program, declare __xpg_strerror_r as extern "C".
31766         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
31767         strndup as extern "C".
31768         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
31769         declare memset and bzero as extern "C".
31770         Reported by Sam Steingold <sds@gnu.org>.
31772 2011-07-12  Jim Meyering  <meyering@redhat.com>
31774         maint.mk: prohibit inclusion of "verify.h" without use
31775         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
31777 2011-07-19  Pádraig Brady  <P@draigBrady.com>
31779         timer-time: A new module to check for timer_settime()
31780         * m4/timer_time.m4: Check for the posix function.
31781         * modules/timer-time: Add the new module.
31782         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
31783         Mention it.
31785 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
31786             Bruno Haible  <bruno@clisp.org>
31788         pthread_sigmask: assume POSIX threads if --avoid=threadlib
31789         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
31790         not defined, assume POSIX threads and look for pthread_sigmask in
31791         $LIBS, without changing $CPPFLAGS.
31793 2011-07-19  Bruno Haible  <bruno@clisp.org>
31795         strstr: Update cross-compilation guess.
31796         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
31797         CPUs, guess no, in view of glibc
31798         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
31799         Suggested by Eric Blake. Reported by Reuben Thomas.
31801 2011-07-19  Pádraig Brady  <P@draigBrady.com>
31803         getopt-gnu: suppress core dumps from detection code
31804         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
31805         to suppress core dumps that may well occur on glibc systems.
31806         * modules/getopt-gnu: Depend on nocrash.
31808 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
31810         pthread_sigmask: ensure usleep is declared
31811         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
31812         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
31814 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
31816         doc: Document NonStop portability issues.
31817         * doc/posix-functions/sigaction.texi (sigaction):
31818         * doc/posix-headers/signal.texi (signal.h):
31819         Document NonStop.  See Joachim Schmitz in
31820         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
31822 2011-07-15  Bruno Haible  <bruno@clisp.org>
31824         ffsl, ffsll: Avoid unportable behaviour.
31825         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
31827 2011-07-15  Bruno Haible  <bruno@clisp.org>
31829         ffs: More tests.
31830         * tests/test-ffs.c (NBITS): New macro.
31831         (main): Add more tests.
31832         * tests/test-ffsl.c (NBITS): New macro.
31833         (main): Add more tests.
31834         * tests/test-ffsll.c (NBITS): New macro.
31835         (main): Add more tests.
31837 2011-07-15  Eric Blake  <eblake@redhat.com>
31839         ffsl, ffsll: new modules
31840         * modules/ffsl: New file.
31841         * modules/ffsll: Likewise.
31842         * m4/ffsl.m4: Likewise.
31843         * m4/ffsll.m4: Likewise.
31844         * lib/ffsl.c: Likewise.
31845         * lib/ffsl.h: Likewise.
31846         * lib/ffsll.c: Likewise.
31847         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
31848         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
31849         * modules/string (Makefile.am): Substitute witnesses.
31850         * lib/strings.in.h (ffsl, ffsll): Declare.
31851         * modules/ffsl-tests: New test file.
31852         * modules/ffsll-tests: Likewise.
31853         * tests/test-ffsl.c: Likewise.
31854         * tests/test-ffsll.c: Likewise.
31855         * MODULES.html.sh (Integer arithmetic functions): Mention it.
31856         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
31857         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
31859         ffs: fix m4 prerequisite
31860         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
31862         ffs: avoid undefined behavior
31863         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
31864         * tests/test-ffs.c (naive, main): Avoid signed shifts.
31865         Reported by Bruno Haible.
31867 2011-07-12  Bruno Haible  <bruno@clisp.org>
31869         pthread_sigmask: Rely on module 'threadlib'.
31870         * modules/pthread_sigmask (Depends-on): Add threadlib.
31871         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
31872         is defined.
31874 2011-07-12  Bruno Haible  <bruno@clisp.org>
31876         regex: Depend on module 'strcase'.
31877         * modules/regex (Depends-on): Add strcase, for strcasecmp().
31879 2011-07-12  Jim Meyering  <meyering@redhat.com>
31881         warn-on-use: fix typo in file name
31882         * modules/snippet/warn-on-use (Files): Correct file name:
31883         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
31885 2011-07-12  Bruno Haible  <bruno@clisp.org>
31887         strings: Document module.
31888         * doc/posix-headers/strings.texi: Mention module 'strings'.
31890 2011-07-12  Bruno Haible  <bruno@clisp.org>
31892         Rename module '_Noreturn' to 'snippet/_Noreturn'.
31893         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
31894         (Files, Makefile.am): Update.
31895         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
31896         * modules/stdlib (Depends-on): Update.
31898 2011-07-12  Bruno Haible  <bruno@clisp.org>
31900         * NEWS: Mention the changes.
31902         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
31903         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
31904         (Files, Makefile.am): Update.
31905         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
31906         * modules/arpa_inet (Depends-on): Update.
31907         * modules/ctype (Depends-on): Update.
31908         * modules/dirent (Depends-on): Update.
31909         * modules/fcntl-h (Depends-on): Update.
31910         * modules/glob (Depends-on): Update.
31911         * modules/iconv-h (Depends-on): Update.
31912         * modules/inttypes-incomplete (Depends-on): Update.
31913         * modules/langinfo (Depends-on): Update.
31914         * modules/locale (Depends-on): Update.
31915         * modules/math (Depends-on): Update.
31916         * modules/netdb (Depends-on): Update.
31917         * modules/poll-h (Depends-on): Update.
31918         * modules/pty (Depends-on): Update.
31919         * modules/search (Depends-on): Update.
31920         * modules/signal (Depends-on): Update.
31921         * modules/spawn (Depends-on): Update.
31922         * modules/stdio (Depends-on): Update.
31923         * modules/stdlib (Depends-on): Update.
31924         * modules/string (Depends-on): Update.
31925         * modules/strings (Depends-on): Update.
31926         * modules/sys_file (Depends-on): Update.
31927         * modules/sys_ioctl (Depends-on): Update.
31928         * modules/sys_select (Depends-on): Update.
31929         * modules/sys_socket (Depends-on): Update.
31930         * modules/sys_stat (Depends-on): Update.
31931         * modules/sys_time (Depends-on): Update.
31932         * modules/sys_times (Depends-on): Update.
31933         * modules/sys_utsname (Depends-on): Update.
31934         * modules/sys_wait (Depends-on): Update.
31935         * modules/termios (Depends-on): Update.
31936         * modules/time (Depends-on): Update.
31937         * modules/unistd (Depends-on): Update.
31938         * modules/wchar (Depends-on): Update.
31939         * modules/wctype-h (Depends-on): Update.
31940         * MODULES.html.sh (Support for building libraries and executables):
31941         Update.
31943         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
31944         * modules/snippet/unused-parameter: Renamed from
31945         modules/unused-parameter.
31946         (Files, Makefile.am): Update.
31947         * build-aux/snippet/unused-parameter.h: Renamed from
31948         build-aux/unused-parameter.h.
31949         * modules/selinux-h (Depends-on): Update.
31950         * modules/unistr/base (Depends-on): Update.
31951         * MODULES.html.sh (Core language properties): Update.
31953         Rename module 'link-warning' to 'snippet/link-warning'.
31954         * modules/snippet/link-warning: Renamed from modules/link-warning.
31955         (Files, Makefile.am): Update.
31956         * build-aux/snippet/link-warning.h: Renamed from
31957         build-aux/link-warning.h.
31958         * MODULES.html.sh (Support for building libraries and executables):
31959         Update.
31961         Rename module 'c++defs' to 'snippet/c++defs'.
31962         * modules/snippet/c++defs: Renamed from modules/c++defs.
31963         (Files, Makefile.am): Update.
31964         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
31965         * modules/arpa_inet (Depends-on): Update.
31966         * modules/ctype (Depends-on): Update.
31967         * modules/dirent (Depends-on): Update.
31968         * modules/fcntl-h (Depends-on): Update.
31969         * modules/glob (Depends-on): Update.
31970         * modules/iconv-h (Depends-on): Update.
31971         * modules/langinfo (Depends-on): Update.
31972         * modules/locale (Depends-on): Update.
31973         * modules/math (Depends-on): Update.
31974         * modules/netdb (Depends-on): Update.
31975         * modules/poll-h (Depends-on): Update.
31976         * modules/pty (Depends-on): Update.
31977         * modules/search (Depends-on): Update.
31978         * modules/signal (Depends-on): Update.
31979         * modules/spawn (Depends-on): Update.
31980         * modules/stdio (Depends-on): Update.
31981         * modules/stdlib (Depends-on): Update.
31982         * modules/string (Depends-on): Update.
31983         * modules/strings (Depends-on): Update.
31984         * modules/sys_ioctl (Depends-on): Update.
31985         * modules/sys_select (Depends-on): Update.
31986         * modules/sys_socket (Depends-on): Update.
31987         * modules/sys_stat (Depends-on): Update.
31988         * modules/sys_time (Depends-on): Update.
31989         * modules/sys_wait (Depends-on): Update.
31990         * modules/termios (Depends-on): Update.
31991         * modules/time (Depends-on): Update.
31992         * modules/unistd (Depends-on): Update.
31993         * modules/wchar (Depends-on): Update.
31994         * modules/wctype-h (Depends-on): Update.
31996         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
31997         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
31998         (Files, Makefile.am): Update.
31999         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
32000         * modules/argv-iter (Depends-on): Update.
32001         * modules/arpa_inet (Depends-on): Update.
32002         * modules/dirent (Depends-on): Update.
32003         * modules/fcntl-h (Depends-on): Update.
32004         * modules/fnmatch (Depends-on): Update.
32005         * modules/getopt-posix (Depends-on): Update.
32006         * modules/glob (Depends-on): Update.
32007         * modules/iconv-h (Depends-on): Update.
32008         * modules/inttypes-incomplete (Depends-on): Update.
32009         * modules/locale (Depends-on): Update.
32010         * modules/math (Depends-on): Update.
32011         * modules/netdb (Depends-on): Update.
32012         * modules/search (Depends-on): Update.
32013         * modules/signal (Depends-on): Update.
32014         * modules/spawn (Depends-on): Update.
32015         * modules/stdio (Depends-on): Update.
32016         * modules/stdlib (Depends-on): Update.
32017         * modules/string (Depends-on): Update.
32018         * modules/strings (Depends-on): Update.
32019         * modules/sys_socket (Depends-on): Update.
32020         * modules/sys_stat (Depends-on): Update.
32021         * modules/sys_time (Depends-on): Update.
32022         * modules/sys_times (Depends-on): Update.
32023         * modules/sys_utsname (Depends-on): Update.
32024         * modules/time (Depends-on): Update.
32025         * modules/unistd (Depends-on): Update.
32026         * modules/wchar (Depends-on): Update.
32027         * MODULES.html.sh (Support for building libraries and executables):
32028         Update.
32030 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
32032         Improvements on _Noreturn and related modules.
32034         modules/_Exit-tests: test _Noreturn too
32035         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
32036         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
32037         (main): Use them.
32039         stdnoreturn, stdnoreturn-tests: remove modules
32040         They're not needed here and a bit premature for use elsewhere.  See
32041         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
32042         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
32043         * tests/test-stdnoreturn.c: Remove files.
32044         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
32045         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
32046         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
32047         and using noreturn.
32048         * modules/openat, modules/sigpipe-die, modules/xalloc:
32049         * modules/xmemdup0, modules/xstrtol:
32050         Remove dependency on stdnoreturn.
32052         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
32053         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
32054         Reparenthesize to avoid GCC warning.
32055         Support Microsoft's syntax.
32056         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
32058         _Noreturn-tests: remove module
32059         * modules/_Noreturn-tests: Remove.
32060         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
32061         * tests/test-_Noreturn.c: Remove.
32062         * tests/test-stdnoreturn.c: Merge from the old
32063         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
32065 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
32067         _Noreturn, stdnoreturn, and related modules.
32069         * top/maint.mk: Adjust to new noreturn support.
32070         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
32071         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
32073         xalloc: use stdnoreturn.h
32074         * lib/xalloc.h: Include <stdnoreturn.h>.
32075         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
32076         * modules/xalloc (Depends-on): Add stdnoreturn.
32078         xstrtol: use stdnoreturn.h
32079         * lib/xstrtol.h: Include <stdnoreturn.h>.
32080         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
32081         * modules/xstrtol (Depends-on): Add stdnoreturn.
32083         xmemdup0: use stdnoreturn.h
32084         * lib/xmemdup0.h: Include <stdnoreturn.h>.
32085         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
32086         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
32088         sigpipe-die: use stdnoreturn.h
32089         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
32090         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
32091         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
32093         openat: use stdnoreturn.h
32094         * lib/openat.h: Include <stdnoreturn.h>.
32095         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
32096         * modules/openat (Depends-on): Add stdnoreturn.
32098         * lib/openat-die.c (openat_save_fail): Modernize comment.
32100         * lib/xalloc-die.c (xalloc_die): Modernize comment.
32102         * lib/glthread/thread.h: Modernize comment.
32104         obstack: use _Noreturn
32105         * lib/obstack.c (__attribute__): Remove macro.
32106         (print_and_abort): Use _Noreturn.
32108         c-stack: use _Noreturn
32109         * lib/c-stack.c (die, overflow_handler, segv_handler):
32110         Use _Noreturn rather than __attribute__((noreturn)).
32112         argmatch-tests, exclude_tests: use _Noreturn
32113         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
32114         Remove.
32115         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
32117         stdlib: use _Noreturn
32118         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
32119         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
32120         * modules/stdlib (Depends-on): Add _Noreturn.
32121         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
32123         stdnoreturn-tests: new module
32124         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
32126         stdnoreturn: new module
32127         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
32128         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
32130         _Noreturn-tests: new module
32131         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
32133         _Noreturn: new module
32134         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
32135         New section, mentioning it.
32136         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
32138         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
32140 2011-07-11  Eric Blake  <eblake@redhat.com>
32142         ffs: new module
32143         * modules/ffs: New file.
32144         * m4/ffs.m4: Likewise.
32145         * lib/ffs.c: Likewise.
32146         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
32147         * modules/strings (Makefile.am): Substitute witness.
32148         (Depends-on): Add c++defs.
32149         * lib/strings.in.h (ffs): Declare.
32150         * modules/ffs-tests: New test file.
32151         * tests/test-ffs.c: Test new module.
32152         * MODULES.html.sh (Integer arithmetic functions): Mention it.
32153         * doc/posix-functions/ffs.texi (ffs): Likewise.
32155         regex: avoid compiler warning
32156         * lib/regex.c (includes): Include <strings.h>, for use of
32157         strcasecmp in regcomp.c.
32158         Reported by Joachim Schmitz.
32160 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
32162         stdint: respect system's intmax_t if INTMAX_MAX
32163         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
32164         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
32165         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
32166         long but int64_t is long long, and where we will clash with the
32167         system intmax_t if we override it.  See
32168         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
32169         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
32170         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
32171         similarly for UINTMAX_C.
32173 2011-07-08  Bruno Haible  <bruno@clisp.org>
32175         pthread_sigmask tests: Avoid a compiler warning.
32176         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
32177         non-zero.
32179         sigprocmask tests: A better way to avoid a compiler warning.
32180         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
32181         (main): Complain if system() returns non-zero.
32182         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
32184 2011-07-08  Bruno Haible  <bruno@clisp.org>
32186         pthread_sigmask: Work around IRIX bug.
32187         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
32188         bug.
32189         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
32190         there may be unblocked pending signals.
32191         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
32193 2011-07-08  Bruno Haible  <bruno@clisp.org>
32195         pthread_sigmask: Work around Cygwin bug.
32196         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
32197         bug.
32198         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
32199         the system's pthread_sigmask function.
32200         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
32202 2011-07-08  Bruno Haible  <bruno@clisp.org>
32204         pthread_sigmask: Work around bug in single-threaded implementation.
32205         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
32206         FreeBSD, HP-UX, Solaris bug.
32207         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
32208         * lib/pthread_sigmask.c: Include <stddef.h>.
32209         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
32210         the system's pthread_sigmask function.
32211         * modules/pthread_sigmask (configure.ac): Invoke
32212         gl_PREREQ_PTHREAD_SIGMASK.
32213         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
32214         HP-UX, Solaris.
32216 2011-07-08  Eric Blake  <eblake@redhat.com>
32218         test-sigprocmask: avoid compiler warning
32219         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
32220         * tests/test-sigprocmask.c (main): Use it to silence warning.
32221         Reported by Jim Meyering.
32223         test-snprintf: avoid compiler warning
32224         * tests/test-snprintf.c (main): Avoid shadowed declaration.
32225         * tests/test-vsnprintf.c (main): Likewise.
32226         Reported by Jim Meyering.
32228 2011-07-08  Bruno Haible  <bruno@clisp.org>
32230         Tests for module 'pthread_sigmask'.
32231         * modules/pthread_sigmask-tests: New file.
32232         * tests/test-pthread_sigmask1.c: New file, based on
32233         tests/test-sigprocmask.c.
32234         * tests/test-pthread_sigmask2.c: New file.
32236 2011-07-08  Jim Meyering  <meyering@redhat.com>
32238         test-getopt.h: avoid warning about an unused variable
32239         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
32241 2011-07-07  Jim Meyering  <meyering@redhat.com>
32243         maint: reduce list of files exempt from sc_prohibit_leading_TABs
32244         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
32245         now that it no longer contains leading TABs.
32246         Remove unused "url=FIXME" statement.
32248 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
32250         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
32251         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
32252         When gl_THREADLIB is not in use, assume that the POSIX sematics
32253         are desired.  This is better for Emacs, which uses POSIX semantics
32254         on GNUish and/or POSIXish platforms, and does not use threads at
32255         all otherwise.
32257         pthread_sigmask: fix typo when testing for libraries
32258         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
32259         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
32261 2011-07-08  Eric Blake  <eblake@redhat.com>
32263         fts: introduce FTS_NOATIME
32264         * lib/fts_.h (FTS_NOATIME): New bit flag.
32265         (FTS_OPTIONMASK): Adjust.
32266         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
32267         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
32269 2011-07-08  Bruno Haible  <bruno@clisp.org>
32271         Tests for module 'thread'.
32272         * modules/thread-tests: New file.
32273         * tests/test-thread_self.c: New file.
32274         * tests/test-thread_create.cc: New file.
32276 2011-07-08  Bruno Haible  <bruno@clisp.org>
32278         thread: Avoid gcc warnings when using gl_thread_self().
32279         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
32280         'void *'.
32281         (gl_thread_self_pointer): Update.
32283 2011-07-07  Bruno Haible  <bruno@clisp.org>
32285         signal-c++-tests: Check declaration of pthread_sigmask.
32286         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
32287         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
32288         $(LIB_PTHREAD_SIGMASK).
32290 2011-07-07  Bruno Haible  <bruno@clisp.org>
32292         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
32293         * lib/signal.in.h (pthread_sigmask): Override if
32294         REPLACE_PTHREAD_SIGMASK is 1.
32295         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
32296         REPLACE_PTHREAD_SIGMASK.
32297         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
32298         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
32299         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
32300         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
32301         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
32303 2011-07-07  Bruno Haible  <bruno@clisp.org>
32305         pthread_sigmask: Ensure declaration in <signal.h>.
32306         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
32307         include <pthread.h>.
32308         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
32309         problem.
32311 2011-07-07  Bruno Haible  <bruno@clisp.org>
32313         pthread_sigmask: Document the module.
32314         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
32316 2011-07-07  Bruno Haible  <bruno@clisp.org>
32318         pthread_sigmask: Follow gnulib conventions.
32319         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
32320         gl_PTHREAD_SIGMASK.
32321         * modules/pthread_sigmask (configure.ac): Update.
32323 2011-07-07  Bruno Haible  <bruno@clisp.org>
32325         pthread_sigmask: Make declaration C++ safe.
32326         * lib/signal.in.h: In two special conditions, just do an #include_next.
32327         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
32328         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
32329         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
32330         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
32331         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
32332         not REPLACE_PTHREAD_MASK.
32333         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
32334         not REPLACE_PTHREAD_MASK.
32335         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
32337 2011-07-07  Bruno Haible  <bruno@clisp.org>
32339         pthread_sigmask: Fix return value.
32340         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
32341         * lib/pthread_sigmask.c: New file.
32342         * modules/pthread_sigmask (Files): Add it.
32343         (configure.ac): Invoke AC_LIBOBJ.
32345 2011-07-07  Eric Blake  <eblake@redhat.com>
32347         getopt: more portable argv creation
32348         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
32349         const, use char arrays rather than strings.
32350         Suggested by Paul Eggert.
32352 2011-07-07  Bruno Haible  <bruno@clisp.org>
32354         Tests for module 'sigprocmask'.
32355         * modules/sigprocmask-tests: New file.
32356         * tests/test-sigprocmask.c: New file.
32358 2011-07-07  Bruno Haible  <bruno@clisp.org>
32360         float tests: Tweak.
32361         * tests/test-float.c (main): Tweak skip message.
32363 2011-07-07  Eric Blake  <eblake@redhat.com>
32365         getopt: avoid compiler warning during configure
32366         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
32367         assigning string literals to non-const pointer.
32369         getopt-gnu: avoid crash in glibc getopt
32370         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
32371         * tests/test-getopt.h (test_getopt): Enhance test.
32372         * tests/test-getopt_long.h (test_getopt_long): Likewise.
32373         * doc/posix-functions/getopt.texi (getopt): Document it.
32374         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
32375         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32376         Likewise.
32378 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
32380         getopt: handle W; without long options in getopt [BZ #12922]
32381         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
32382         but no long options are defined, just return 'W'.
32384 2011-07-07  Bruno Haible  <bruno@clisp.org>
32386         Avoid literal tabs.
32387         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
32388         variable containing a tab instead of a literal tab.
32389         Reported by Jim Meyering.
32391 2011-07-07  Bruno Haible  <bruno@clisp.org>
32393         Comments.
32394         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
32396 2011-07-06  Bruno Haible  <bruno@clisp.org>
32398         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
32399         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
32400         <winsock2.h>.
32401         (rpl_fd_isset, FD_ISSET): New definitions, copied from
32402         lib/sys_socket.in.h.
32403         (close, gethostname): Hide declarations from <winsock2.h>.
32404         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
32405         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
32406         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
32407         (select): Don't override if gnulib's <sys/select.h> was already
32408         included.
32409         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
32410         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
32411         setsockopt, shutdown, select): Tweak indentation.
32413 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
32415         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
32416         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
32417         in an application that does not use the sys_select module.
32419 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
32421         poll: do not return 0 on timeout=-1
32422         * lib/poll.c: Loop with yield if no events occurred.
32424 2011-07-06  Eric Blake  <eblake@redhat.com>
32426         pthread_sigmask: always replace when not using pthread
32427         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
32428         replacement when using some threading other than pthread.  Fix
32429         logic bug.
32431 2011-07-06  Bruno Haible  <bruno@clisp.org>
32433         Comments.
32434         * m4/printf.m4: Update comments about mingw.
32436 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
32438         sys_select: define sigset_t more portably
32439         * lib/sys_select.in.h: Always include <sys/types.h>, since
32440         we now need sigset_t and mingw defines it there.
32441         Include <signal.h> before split inclusion guard, to avoid
32442         mishaps on Solaris, whose <signal.h> eventually includes us.
32443         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
32444         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
32445         which come from ...
32446         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
32447         gl_CHECK_TYPE_SIGSET_T.
32448         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
32449         does the real work.
32450         * modules/sys_select (Depends-on): Add 'signal'.
32452         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
32453         Suggested by Bruno Haible.
32455         pselect: Use pthread_sigmask, not sigprocmask.
32456         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
32457         multithreaded apps better than sigprocmask does.
32458         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
32459         sigprocmask directly.
32461 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
32463         * lib/pselect.c (pselect): Use plain name, without "rpl_".
32464         Don't #undef,  since we don't need any underlying pselect.
32465         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
32466         (Depends-on): Add select.
32467         (Link): Add $(LIBSOCKET).
32468         These changes suggested by Bruno Haible.
32470         pselect: document better
32471         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
32472         * doc/posix-functions/pselect.texi (pselect): Document new module.
32474         pthread_sigmask: new module
32475         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
32476         * doc/posix-functions/pthread_sigmask.texi: Document new module.
32477         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
32478         This is done only as a macro; I don't know how well that'll
32479         work for C++.  Move <sys/types.h> include before the include_next,
32480         to avoid mishap on Solaris.
32481         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
32482         * modules/signal (Makefile.am): Substitute the check's results.
32483         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
32485         test-pselect: new module
32486         * modules/pselect-tests, tests/test-pselect.c: New files.
32487         * tests/test-select.c, tests/test-sys_select-c++.cc:
32488         If TEST_PSELECT is defined, test pselect instead of testing select.
32490         * tests/test-sys_select.c (sigset_t): Test for it, too.
32491         Suggested by Bruno Haible.
32493 2011-07-05  Eric Blake  <eblake@redhat.com>
32495         snprintf: guarantee %1$d, for libintl
32496         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
32497         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
32498         * doc/posix-functions/snprintf.texi (snprintf): Update.
32499         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
32500         * tests/test-snprintf.c (main): Enhance test.
32501         * tests/test-vsnprintf.c (main): Likewise.
32503 2011-07-05  Jim Meyering  <meyering@redhat.com>
32505         maint: exempt stdio-read.c and stdio-write.c from the cppi check
32506         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
32507         per Bruno's request, to accommodate this idiom (no space after "#")
32508         even when the function is inside an #if block:
32509         char *
32510         gets (char *s)
32511         #undef gets
32512         {
32513           ...
32514         }
32516 2011-07-04  Jim Meyering  <meyering@redhat.com>
32518         maint: indent with spaces, not TABs, and add a rule to check this
32519         * tests/test-userspec.c: Indent with spaces, not TABs.
32520         * tests/test-argp.c: Likewise.
32521         * tests/test-c-stack2.sh: Likewise.
32522         * tests/test-parse-duration.sh: Likewise
32523         * m4/strtod.m4: Likewise.
32524         * m4/alloca.m4: Likewise.
32525         * m4/pselect.m4: Likewise.
32526         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
32528 2011-07-03  Jim Meyering  <meyering@redhat.com>
32530         maint.mk: correct omissions in prohibit_argmatch_without_use check
32531         This rule would mistakenly report that argmatch.h is included without
32532         use even when both the argmatch and invalid_arg macro were used.
32533         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
32534         of argmatch and invalid_arg.
32536 2011-07-03  Bruno Haible  <bruno@clisp.org>
32538         Comments about EINTR.
32539         * lib/safe-read.h: Explain the purpose of this module.
32540         * lib/safe-write.h: Likewise.
32541         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
32542         module.
32543         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
32544         module.
32545         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32547 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
32549         xnanosleep: Rewrite to use new dtotimespec module.
32550         It has the conversion code that used to be in xnanosleep.
32551         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
32552         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
32553         (TIME_T_MAX): Remove.
32554         (xnanosleep): Rewrite in terms of dtotimespec.
32555         * modules/xnanosleep (Depends-on): Add dtotimespec.
32556         Remove intprops, stdbool.
32558         timespec-add, timespec-sub: new modules
32559         * lib/timespec.h (timespec_add, timespec_sub): New decls.
32560         * lib/timespec-add.c, lib/timespec-sub.c:
32561         * modules/timespec-add, modules/timespec-sub: New files.
32563         dtotimespec: new module
32564         * lib/timespec.h (dtotimespec): New decl.
32565         * lib/dtotimespec.c, modules/dtotimespec: New files.
32567         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
32569         pselect: new module
32570         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
32571         (pselect): New decls.
32572         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
32573         since the standard pselect decl uses 'restrict'.
32574         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
32575         HAVE_PSELECT, REPLACE_PSELECT.
32576         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
32577         HAVE_PSELECT, REPLACE_PSELECT.
32578         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
32580         sys_select: don't depend on sys_socket
32581         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
32582         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
32583         This fix works on GNU and GNU-like platforms, but has not been tested
32584         on native Windows.
32585         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
32586         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
32587         gl_HEADER_SYS_SOCKET.
32588         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
32589         gl_PREREQ_SYS_H_WINSOCK2.
32591 2011-06-29  Eric Blake  <eblake@redhat.com>
32593         pipe2: fix C89 compile problem
32594         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
32595         Reported by Bruno Haible.
32597         pipe, pipe2: don't corrupt fd on error
32598         * lib/pipe.c (pipe): Leave fd unchanged on error.
32599         * lib/pipe2.c (pipe2): Likewise.
32600         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
32601         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
32603 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
32605         mmap-anon: do not use regular expressions inadvertently
32606         * m4/mmap-anon.m4: Remove trailing period from strings sought
32607         in the output.
32609 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
32611         nanosleep: fix integer overflow problem
32612         * lib/nanosleep.c (my_usleep): Don't assume signed integer
32613         arithmetic wraps around on overflow.
32615         nanosleep: simplify carrying
32616         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
32617         first call to the underyling nanosleep, not for the last one.
32618         This doesn't fix any bugs, but it simplifies the computation of
32619         the remaining delay.  Found while auditing integer overflow issues.
32621         dup2: remove test for existence of fcntl
32622         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
32623         "#if HAVE_FCNTL", in the configure-time test program.
32624         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
32625         and therefore speeds up "configure" a bit.  Found while
32626         adding the dup2 module to Emacs.
32628 2011-06-24  Eric Blake  <eblake@redhat.com>
32630         maint.mk: enhance useless header checks
32631         * top/maint.mk (_sc_header_without_use): Check both include
32632         styles.
32633         (sc_prohibit_assert_without_use)
32634         (sc_prohibit_close_stream_without_use)
32635         (sc_prohibit_getopt_without_use)
32636         (sc_prohibit_quotearg_without_use)
32637         (sc_prohibit_quote_without_use)
32638         (sc_prohibit_long_options_without_use)
32639         (sc_prohibit_inttostr_without_use)
32640         (sc_prohibit_ignore_value_without_use)
32641         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
32642         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
32643         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
32644         (sc_prohibit_hash_pjw_without_use)
32645         (sc_prohibit_safe_read_without_use)
32646         (sc_prohibit_argmatch_without_use)
32647         (sc_prohibit_canonicalize_without_use)
32648         (sc_prohibit_root_dev_ino_without_use)
32649         (sc_prohibit_openat_without_use)
32650         (sc_prohibit_c_ctype_without_use)
32651         (sc_prohibit_signal_without_use)
32652         (sc_prohibit_stdio--_without_use)
32653         (sc_prohibit_stdio-safer_without_use)
32654         (sc_prohibit_strings_without_use)
32655         (sc_prohibit_intprops_without_use)
32656         (sc_prohibit_stddef_without_use)
32657         (sc_prohibit_xfreopen_without_use): Update clients.
32659 2011-06-24  Jim Meyering  <meyering@redhat.com>
32661         syntax-check: keep one maint.mk rule in sync with its header
32662         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
32663         of the bug Eric has just fixed, with today's commit 25e4c2ec.
32664         I prefer to avoid temporary files here, so use <(...), but that
32665         is not supported by /bin/sh, so...
32666         (SHELL): Define to /bin/bash.
32668 2011-06-24  Eric Blake  <eblake@redhat.com>
32670         maint.mk: update sc_prohibit_intprops_without_use
32671         * top/maint.mk (_intprops_names): Match recent changes.
32673 2011-06-24  Bruno Haible  <bruno@clisp.org>
32675         strerror-override: No-op tweak.
32676         * lib/strerror-override.h (strerror_override): Reorder conditions,
32677         for consistency with lib/strerror-override.c.
32679 2011-06-23  Eric Blake  <eblake@redhat.com>
32681         maint.mk: test further PATH_MAX issues
32682         * top/maint.mk (sc_prohibit_path_max_array): Rename...
32683         (sc_prohibit_path_max_allocation): ...and also test alloca.
32684         Suggested by Jim Meyering.
32686 2011-06-22  Eric Blake  <eblake@redhat.com>
32688         maint.mk: add syntax-check to avoid char[PATH_MAX]
32689         * top/maint.mk (sc_prohibit_path_max_array): New rule.
32691         stat: be robust to PATH_MAX definition
32692         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
32693         * modules/stat (Depends-on): Add verify.
32695         link: work around IRIX bug
32696         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
32697         * lib/link.c (rpl_link): Work around it.
32698         * tests/test-link.h (test_link): Enhance test.
32699         * doc/posix-functions/link.texi (link): Document the bug.
32701         getopt: silence clang warning
32702         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
32703         dereference.
32704         Reported by Gustavo Martin Domato.
32706 2011-06-22  Jim Meyering  <meyering@redhat.com>
32708         bootstrap: do not insert a blank line into each .gitignore file
32709         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
32711 2011-06-21  Eric Blake  <eblake@redhat.com>
32713         perror: test for output mismatch
32714         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
32715         perror on IRIX.
32717         strerror_r: fix OpenBSD behavior on out-of-range
32718         * lib/strerror_r.c (strerror_r): Always use maximal string.
32719         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
32721         strerror_r: fix OpenBSD behavior on 0
32722         * lib/strerror-override.c (strerror_override): Also override 0
32723         when needed.
32724         * lib/strerror-override.h (strerror_override): Likewise.
32725         * lib/strerror.c (strerror): Simplify, now that 0 override is done
32726         earlier.
32727         * lib/strerror_r.c (strerror_r): Likewise.
32728         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
32729         behavior...
32730         (gl_FUNC_STRERROR_0): ...into new macro.
32731         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
32732         is overridden.
32733         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
32734         * modules/strerror-override (Files): Add strerror.m4.
32735         (configure.ac): Also provide override for 0 when needed.
32736         * doc/posix-functions/strerror.texi (strerror): Document this.
32737         * doc/posix-functions/perror.texi (perror): Likewise.
32739         perror: adjust array size
32740         * modules/perror (Depends-on): Add strerror-override.
32741         * lib/perror.c (perror): Use it to avoid magic number.
32743         strerror-override: reduce size
32744         * lib/strerror-override.c (strerror_override): Use fewer lines.
32746 2011-06-20  Bruno Haible  <bruno@clisp.org>
32748         pathmax: Ensure correct value for PATH_MAX on HP-UX.
32749         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
32751 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
32753         alloca: port to compilers that can optimize like GCC 4.6.0
32754         * lib/alloca.c (find_stack_direction): New signature, taken from
32755         Autoconf git.  This works with GCC 4.6.0.  This code should never
32756         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
32757         be used with other compilers that optimize as well as GCC 4.6.0 does.
32758         (alloca): Adjust to new signature.
32759         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
32760         New macro, which patches Autoconf in a similar way.
32762         c-stack: stop worrying about stack direction
32763         * lib/c-stack.c (find_stack_direction): Remove.
32764         (segv_handler): Don't worry about stack direction growth, as it's
32765         too much of a pain to configure this correctly, given how compilers
32766         are optimizing-away our stack-growth detection code.  Instead, assume
32767         that any access to just before or just after the stack is OK.
32768         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
32769         Don't require AC_FUNC_ALLOCA; no longer needed.
32771 2011-06-20  Eric Blake  <eblake@redhat.com>
32773         test-stat: don't allocate PATH_MAX bytes
32774         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
32775         PATH_MAX-sized buffer.
32776         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
32777         * modules/stat-tests (Depends-on): Likewise.
32778         * tests/test-fstatat.c (includes): Drop pathmax.h.
32779         * tests/test-stat.c (includes): Likewise.
32780         Reported by Bruno Haible.
32782 2011-06-20  Bruno Haible  <bruno@clisp.org>
32784         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
32785         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
32786         * lib/float.c: New file.
32787         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
32788         REPLACE_FLOAT_LDBL.
32789         * modules/float (Files): Add lib/float.c.
32790         (configure.ac): Invoke AC_LIBOBJ.
32791         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
32793 2011-06-20  Bruno Haible  <bruno@clisp.org>
32795         Tests for module 'float'.
32796         * modules/float-tests: New file.
32797         * tests/test-float.c: New file.
32799 2011-06-19  Bruno Haible  <bruno@clisp.org>
32801         isinf: Coding style.
32802         * lib/isinf.c: Use GNU coding style.
32804 2011-06-19  Bruno Haible  <bruno@clisp.org>
32806         linkat test: Avoid test failure on AIX 7.1.
32807         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
32808         * tests/test-link.h (test_link): Likewise.
32810 2011-06-19  Bruno Haible  <bruno@clisp.org>
32812         pread test: Avoid test failure on OpenBSD 4.9.
32813         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
32815 2011-06-19  Bruno Haible  <bruno@clisp.org>
32817         sprintf-posix: Fix test failure on AIX 7.1.
32818         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
32819         * doc/posix-functions/dprintf.texi: Mention limited precision problem
32820         on AIX.
32821         * doc/posix-functions/fprintf.texi: Likewise.
32822         * doc/posix-functions/printf.texi: Likewise.
32823         * doc/posix-functions/snprintf.texi: Likewise.
32824         * doc/posix-functions/sprintf.texi: Likewise.
32825         * doc/posix-functions/vdprintf.texi: Likewise.
32826         * doc/posix-functions/vfprintf.texi: Likewise.
32827         * doc/posix-functions/vprintf.texi: Likewise.
32828         * doc/posix-functions/vsnprintf.texi: Likewise.
32829         * doc/posix-functions/vsprintf.texi: Likewise.
32831 2011-06-19  Bruno Haible  <bruno@clisp.org>
32833         roundl-ieee: Fix test failure on AIX 7.1.
32834         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
32835         * doc/posix-functions/roundl.texi: Mention problem with negative
32836         arguments.
32838 2011-06-19  Bruno Haible  <bruno@clisp.org>
32840         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
32841         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
32842         * doc/posix-functions/round.texi: Mention problem with negative
32843         arguments.
32844         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
32846 2011-06-19  Bruno Haible  <bruno@clisp.org>
32848         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
32849         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
32850         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
32851         * doc/posix-functions/roundf.texi: Mention problem with negative
32852         arguments.
32853         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
32855 2011-06-19  Bruno Haible  <bruno@clisp.org>
32857         ceilf-ieee: Work around bug on MacOS X 10.5.
32858         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
32860         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
32861         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
32862         IEEE compliant, avoid compiler optimizations.
32863         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
32864         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
32865         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
32866         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
32867         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
32868         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
32869         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
32870         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
32871         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
32872         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
32874 2011-06-19  Bruno Haible  <bruno@clisp.org>
32876         ceilf-ieee: Work around bug on AIX 7.1.
32877         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
32878         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
32880 2011-06-19  Bruno Haible  <bruno@clisp.org>
32882         ceil-ieee: Work around bug on AIX 7.1.
32883         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
32884         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
32886 2011-06-18  Bruno Haible  <bruno@clisp.org>
32888         fsync test: Avoid test failure on MacOS X and AIX.
32889         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
32890         EINVAL.
32892 2011-06-18  Bruno Haible  <bruno@clisp.org>
32894         openat, fdopendir tests: Fix link errors.
32895         * modules/openat-tests (Depends-on): Add progname.
32896         * modules/fdopendir-tests (Depends-on): Likewise.
32897         * tests/test-fchownat.c: Include progname.h.
32898         (main): Call set_program_name.
32899         * tests/test-fstatat.c: Include progname.h.
32900         (main): Call set_program_name.
32901         * tests/test-mkdirat.c: Include progname.h.
32902         (main): Call set_program_name.
32903         * tests/test-openat.c: Include progname.h.
32904         (main): Call set_program_name.
32905         * tests/test-unlinkat.c: Include progname.h.
32906         (main): Call set_program_name.
32907         * tests/test-fdopendir.c: Include progname.h.
32908         (main): Call set_program_name.
32910 2011-06-18  Bruno Haible  <bruno@clisp.org>
32912         Doc update.
32913         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
32914         HP-UX.
32915         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
32917 2011-06-18  Bruno Haible  <bruno@clisp.org>
32919         getcwd tests: Avoid compilation error on HP-UX 11.31.
32920         * modules/getcwd-tests (Depends-on): Add pathmax.
32921         * tests/test-getcwd.c: Include pathmax.h.
32923 2011-06-18  Bruno Haible  <bruno@clisp.org>
32925         isfinite, isinf: Fix link error on AIX 6 and 7.
32926         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
32927         needed, also test the macro with a 'float' argument.
32928         * m4/isinf.m4 (gl_ISINF): Likewise.
32930 2011-06-18  Bruno Haible  <bruno@clisp.org>
32932         getloadavg: Don't clobber LIBS. Regression from previous commit.
32933         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
32934         AC_CHECK_LIB from here...
32935         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
32936         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
32937         gl_func_getloadavg_done.
32938         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32940 2011-06-18  Bruno Haible  <bruno@clisp.org>
32942         clean-temp: Improve documentation.
32943         * lib/clean-temp.h: Explain better how to use this module.
32944         Reported by John Darrington <john@darrington.wattle.id.au>.
32946 2011-06-17  Bruno Haible  <bruno@clisp.org>
32948         pread, pwrite: Avoid cc warning on AIX.
32949         * lib/unistd.in.h (pread): Undefine before defining as a macro.
32950         (pwrite): Likewise.
32952 2011-06-17  Bruno Haible  <bruno@clisp.org>
32954         spawn-pipe tests: Fix link error.
32955         * tests/test-spawn-pipe-child.c: Undefine fprintf.
32956         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32958 2011-06-17  Bruno Haible  <bruno@clisp.org>
32960         Tests: Remove unnecessary dependency.
32961         * modules/canonicalize-tests (Depends-on): Remove progname.
32962         * modules/chown-tests (Depends-on): Likewise.
32963         * modules/dirname-tests (Depends-on): Likewise.
32964         * modules/fdopendir-tests (Depends-on): Likewise.
32965         * modules/fdutimensat-tests (Depends-on): Likewise.
32966         * modules/hash-tests (Depends-on): Likewise.
32967         * modules/lchown-tests (Depends-on): Likewise.
32968         * modules/linkat-tests (Depends-on): Likewise.
32969         * modules/renameat-tests (Depends-on): Likewise.
32970         * modules/spawn-pipe-tests (Depends-on): Likewise.
32971         * modules/utimensat-tests (Depends-on): Likewise.
32973 2011-06-17  Bruno Haible  <bruno@clisp.org>
32975         spawn-pipe tests: Fix link error.
32976         * tests/test-spawn-pipe-child.c: Undefine fflush.
32978 2011-06-17  Bruno Haible  <bruno@clisp.org>
32980         Fix tests link errors.
32981         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
32982         * modules/chown-tests (Makefile.am): Don't link test-chown with
32983         LIBINTL.
32984         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
32985         LIBINTL.
32986         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
32987         LIBINTL.
32988         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
32989         LIBINTL.
32991 2011-06-16  Bruno Haible  <bruno@clisp.org>
32993         crypto/gc-sha1: Fix recent regression.
32994         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
32995         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
32997         crypto/gc-md5: Fix recent regression.
32998         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
33000         crypto/gc-md4: Fix recent regression.
33001         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
33002         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
33004         crypto/gc-arctwo: Fix recent regression.
33005         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
33006         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
33008         crypto/gc-rijndael: Fix recent regression.
33009         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
33010         (configure.ac): Invoke AC_LIBOBJ here.
33011         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
33012         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33014         crypto/gc-hmac-sha1: Fix recent regression.
33015         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
33016         (configure.ac): Invoke AC_LIBOBJ here.
33017         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
33018         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33020         crypto/gc-hmac-md5: Fix recent regression.
33021         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
33022         (configure.ac): Invoke AC_LIBOBJ here.
33023         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
33024         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33026         crypto/gc-des: Fix recent regression.
33027         * modules/crypto/gc-des (Files): Remove m4/des.m4.
33028         (configure.ac): Invoke AC_LIBOBJ here.
33029         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
33030         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33032         crypto/gc-arcfour: Fix recent regression.
33033         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
33034         (configure.ac): Invoke AC_LIBOBJ here.
33035         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
33036         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33038 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
33040         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
33041         After the 2011-05-21 change, this macro requires
33042         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
33043         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
33045 2011-06-16  Bruno Haible  <bruno@clisp.org>
33047         fprintftime: Move AC_LIBOBJ invocations to module description.
33048         * m4/fprintftime.m4: Remove file.
33049         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
33050         (configure.ac): Remove gl_FPRINTFTIME call.
33051         (Makefile.am): Augment lib_SOURCES.
33052         Reported by Jim Meyering.
33054 2011-06-16  Bruno Haible  <bruno@clisp.org>
33056         tmpfile-safer: Finish 2011-05-23 commit.
33057         * m4/stdio-safer.m4: Really remove file.
33058         Reported by Jim Meyering.
33060 2011-06-16  Bruno Haible  <bruno@clisp.org>
33062         syntax-check: Fix typo.
33063         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
33064         printf-posix.m4.
33065         Reported by Jim Meyering.
33067 2011-06-13  Jim Meyering  <meyering@redhat.com>
33069         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
33070         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
33072 2011-05-23  Bruno Haible  <bruno@clisp.org>
33074         yesno: Move AC_LIBOBJ invocations to module description.
33075         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
33076         * modules/yesno (Makefile.am): Augment lib_SOURCES.
33078 2011-05-23  Bruno Haible  <bruno@clisp.org>
33080         xstrtol: Move AC_LIBOBJ invocations to module description.
33081         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
33082         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
33084 2011-05-23  Bruno Haible  <bruno@clisp.org>
33086         xstrtold: Move AC_LIBOBJ invocations to module description.
33087         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
33088         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
33090 2011-05-23  Bruno Haible  <bruno@clisp.org>
33092         xstrtod: Move AC_LIBOBJ invocations to module description.
33093         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
33094         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
33096 2011-05-23  Bruno Haible  <bruno@clisp.org>
33098         xnanosleep: Move AC_LIBOBJ invocations to module description.
33099         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
33100         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
33102 2011-05-23  Bruno Haible  <bruno@clisp.org>
33104         xgetcwd: Move AC_LIBOBJ invocations to module description.
33105         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
33106         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
33108 2011-05-23  Bruno Haible  <bruno@clisp.org>
33110         xalloc: Move AC_LIBOBJ invocations to module description.
33111         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
33112         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
33114 2011-05-23  Bruno Haible  <bruno@clisp.org>
33116         write-any-file: Move AC_LIBOBJ invocations to module description.
33117         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
33118         invocation.
33119         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
33121 2011-05-23  Bruno Haible  <bruno@clisp.org>
33123         utimens: Move AC_LIBOBJ invocations to module description.
33124         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
33125         * modules/utimens (Makefile.am): Augment lib_SOURCES.
33127 2011-05-23  Bruno Haible  <bruno@clisp.org>
33129         utimecmp: Move AC_LIBOBJ invocations to module description.
33130         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
33131         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
33133 2011-05-23  Bruno Haible  <bruno@clisp.org>
33135         userspec: Move AC_LIBOBJ invocations to module description.
33136         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
33137         * modules/userspec (Makefile.am): Augment lib_SOURCES.
33139 2011-05-23  Bruno Haible  <bruno@clisp.org>
33141         unlinkdir: Move AC_LIBOBJ invocations to module description.
33142         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
33143         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
33145 2011-05-23  Bruno Haible  <bruno@clisp.org>
33147         unistd-safer: Move AC_LIBOBJ invocations to module description.
33148         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
33149         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
33151 2011-05-23  Bruno Haible  <bruno@clisp.org>
33153         tempname: Move AC_LIBOBJ invocations to module description.
33154         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
33155         * modules/tempname (Makefile.am): Augment lib_SOURCES.
33157 2011-05-23  Bruno Haible  <bruno@clisp.org>
33159         strftime: Move AC_LIBOBJ invocations to module description.
33160         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
33161         * modules/strftime (Makefile.am): Augment lib_SOURCES.
33163 2011-05-23  Bruno Haible  <bruno@clisp.org>
33165         stdlib-safer: Move AC_LIBOBJ invocations to module description.
33166         * m4/stdlib-safer.m4: Remove file.
33167         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
33168         (configure.ac): Remove gl_STDLIB_SAFER call.
33169         (Makefile.am): Augment lib_SOURCES.
33171 2011-05-23  Bruno Haible  <bruno@clisp.org>
33173         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
33174         * m4/stdio-safer.m4: Remove file.
33175         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
33176         (configure.ac): Remove gl_TMPFILE_SAFER call.
33177         (Makefile.am): Augment lib_SOURCES.
33179 2011-05-23  Bruno Haible  <bruno@clisp.org>
33181         popen-safer: Move AC_LIBOBJ invocations to module description.
33182         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
33183         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
33184         (configure.ac): Remove gl_POPEN_SAFER call.
33185         (Makefile.am): Augment lib_SOURCES.
33187 2011-05-23  Bruno Haible  <bruno@clisp.org>
33189         freopen-safer: Move AC_LIBOBJ invocations to module description.
33190         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
33191         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
33192         (configure.ac): Remove gl_FREOPEN_SAFER call.
33193         (Makefile.am): Augment lib_SOURCES.
33195 2011-05-23  Bruno Haible  <bruno@clisp.org>
33197         fopen-safer: Move AC_LIBOBJ invocations to module description.
33198         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
33199         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
33200         (configure.ac): Remove gl_FOPEN_SAFER call.
33201         (Makefile.am): Augment lib_SOURCES.
33203 2011-05-23  Bruno Haible  <bruno@clisp.org>
33205         crypto/sha512: Move AC_LIBOBJ invocations to module description.
33206         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
33207         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
33209 2011-05-23  Bruno Haible  <bruno@clisp.org>
33211         crypto/sha256: Move AC_LIBOBJ invocations to module description.
33212         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
33213         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
33215 2011-05-23  Bruno Haible  <bruno@clisp.org>
33217         crypto/sha1: Move AC_LIBOBJ invocations to module description.
33218         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
33219         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
33221 2011-05-23  Bruno Haible  <bruno@clisp.org>
33223         settime: Move AC_LIBOBJ invocations to module description.
33224         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
33225         * modules/settime (Makefile.am): Augment lib_SOURCES.
33227 2011-05-23  Bruno Haible  <bruno@clisp.org>
33229         savedir: Move AC_LIBOBJ invocations to module description.
33230         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
33231         * modules/savedir (Makefile.am): Augment lib_SOURCES.
33233 2011-05-23  Bruno Haible  <bruno@clisp.org>
33235         save-cwd: Move AC_LIBOBJ invocations to module description.
33236         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
33237         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
33239 2011-05-23  Bruno Haible  <bruno@clisp.org>
33241         same: Move AC_LIBOBJ invocations to module description.
33242         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
33243         * modules/same (Makefile.am): Augment lib_SOURCES.
33245 2011-05-23  Bruno Haible  <bruno@clisp.org>
33247         safe-write: Move AC_LIBOBJ invocations to module description.
33248         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
33249         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
33250         instead of gl_SAFE_WRITE.
33251         (Makefile.am): Augment lib_SOURCES.
33253 2011-05-23  Bruno Haible  <bruno@clisp.org>
33255         safe-read: Move AC_LIBOBJ invocations to module description.
33256         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
33257         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
33258         of gl_SAFE_READ.
33259         (Makefile.am): Augment lib_SOURCES.
33261 2011-05-23  Bruno Haible  <bruno@clisp.org>
33263         safe-alloc: Move AC_LIBOBJ invocations to module description.
33264         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
33265         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
33267 2011-05-23  Bruno Haible  <bruno@clisp.org>
33269         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
33270         * m4/rijndael.m4: Remove file.
33271         * modules/crypto/rijndael (Files): Remove it.
33272         (configure.ac): Remove gl_RIJNDAEL call.
33273         (Makefile.am): Augment lib_SOURCES.
33275 2011-05-23  Bruno Haible  <bruno@clisp.org>
33277         readtokens: Move AC_LIBOBJ invocations to module description.
33278         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
33279         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
33281 2011-05-23  Bruno Haible  <bruno@clisp.org>
33283         read-file: Move AC_LIBOBJ invocations to module description.
33284         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
33285         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
33286         of gl_FUNC_READ_FILE.
33287         (Makefile.am): Augment lib_SOURCES.
33289 2011-05-23  Bruno Haible  <bruno@clisp.org>
33291         quotearg: Move AC_LIBOBJ invocations to module description.
33292         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
33293         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
33295 2011-05-23  Bruno Haible  <bruno@clisp.org>
33297         quote: Move AC_LIBOBJ invocations to module description.
33298         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
33299         * modules/quote (Makefile.am): Augment lib_SOURCES.
33301 2011-05-23  Bruno Haible  <bruno@clisp.org>
33303         posixver: Move AC_LIBOBJ invocations to module description.
33304         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
33305         * modules/posixver (Makefile.am): Augment lib_SOURCES.
33307 2011-05-23  Bruno Haible  <bruno@clisp.org>
33309         posixtm: Move AC_LIBOBJ invocations to module description.
33310         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
33311         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
33313 2011-05-23  Bruno Haible  <bruno@clisp.org>
33315         physmem: Move AC_LIBOBJ invocations to module description.
33316         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
33317         * modules/physmem (Makefile.am): Augment lib_SOURCES.
33319 2011-05-23  Bruno Haible  <bruno@clisp.org>
33321         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
33322         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
33323         invocation.
33324         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
33326 2011-05-23  Bruno Haible  <bruno@clisp.org>
33328         mpsort: Move AC_LIBOBJ invocations to module description.
33329         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
33330         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
33332 2011-05-23  Bruno Haible  <bruno@clisp.org>
33334         modechange: Move AC_LIBOBJ invocations to module description.
33335         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
33336         * modules/modechange (Makefile.am): Augment lib_SOURCES.
33338 2011-05-23  Bruno Haible  <bruno@clisp.org>
33340         mkdir-p: Move AC_LIBOBJ invocations to module description.
33341         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
33342         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
33344 2011-05-23  Bruno Haible  <bruno@clisp.org>
33346         mkancesdirs: Move AC_LIBOBJ invocations to module description.
33347         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
33348         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
33350 2011-05-23  Bruno Haible  <bruno@clisp.org>
33352         mgetgroups: Move AC_LIBOBJ invocations to module description.
33353         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
33354         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
33356 2011-05-23  Bruno Haible  <bruno@clisp.org>
33358         memxor: Move AC_LIBOBJ invocations to module description.
33359         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
33360         * modules/memxor (Makefile.am): Augment lib_SOURCES.
33362 2011-05-23  Bruno Haible  <bruno@clisp.org>
33364         memcoll: Move AC_LIBOBJ invocations to module description.
33365         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
33366         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
33368 2011-05-23  Bruno Haible  <bruno@clisp.org>
33370         memcasecmp: Move AC_LIBOBJ invocations to module description.
33371         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
33372         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
33374 2011-05-23  Bruno Haible  <bruno@clisp.org>
33376         crypto/md5: Move AC_LIBOBJ invocations to module description.
33377         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
33378         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
33380 2011-05-23  Bruno Haible  <bruno@clisp.org>
33382         crypto/md4: Move AC_LIBOBJ invocations to module description.
33383         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
33384         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
33386 2011-05-23  Bruno Haible  <bruno@clisp.org>
33388         crypto/md2: Move AC_LIBOBJ invocations to module description.
33389         * m4/md2.m4: Remove file.
33390         * modules/crypto/md2 (Files): Remove it.
33391         (configure.ac): Remove gl_MD2 call.
33392         (Makefile.am): Augment lib_SOURCES.
33394 2011-05-23  Bruno Haible  <bruno@clisp.org>
33396         long-options: Move AC_LIBOBJ invocations to module description.
33397         * m4/long-options.m4: Remove file.
33398         * modules/long-options (Files): Remove it.
33399         (configure.ac): Remove gl_LONG_OPTIONS call.
33400         (Makefile.am): Augment lib_SOURCES.
33402 2011-05-23  Bruno Haible  <bruno@clisp.org>
33404         i-ring: Move AC_LIBOBJ invocations to module description.
33405         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
33406         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
33408 2011-05-23  Bruno Haible  <bruno@clisp.org>
33410         idcache: Move AC_LIBOBJ invocations to module description.
33411         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
33412         * modules/idcache (Makefile.am): Augment lib_SOURCES.
33414 2011-05-23  Bruno Haible  <bruno@clisp.org>
33416         human: Move AC_LIBOBJ invocations to module description.
33417         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
33418         * modules/human (Makefile.am): Augment lib_SOURCES.
33420 2011-05-23  Bruno Haible  <bruno@clisp.org>
33422         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
33423         * m4/hmac-sha1.m4: Remove file.
33424         * modules/crypto/hmac-sha1 (Files): Remove it.
33425         (configure.ac): Remove gl_HMAC_SHA1 call.
33426         (Makefile.am): Augment lib_SOURCES.
33428 2011-05-23  Bruno Haible  <bruno@clisp.org>
33430         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
33431         * m4/hmac-md5.m4: Remove file.
33432         * modules/crypto/hmac-md5 (Files): Remove it.
33433         (configure.ac): Remove gl_HMAC_MD5 call.
33434         (Makefile.am): Augment lib_SOURCES.
33436 2011-05-23  Bruno Haible  <bruno@clisp.org>
33438         hash: Move AC_LIBOBJ invocations to module description.
33439         * m4/hash.m4: Remove file.
33440         * modules/hash (Files): Remove it.
33441         (configure.ac): Remove gl_HASH call.
33442         (Makefile.am): Augment lib_SOURCES.
33444 2011-05-23  Bruno Haible  <bruno@clisp.org>
33446         hard-locale: Move AC_LIBOBJ invocations to module description.
33447         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
33448         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
33450 2011-05-23  Bruno Haible  <bruno@clisp.org>
33452         getugroups: Move AC_LIBOBJ invocations to module description.
33453         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
33454         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
33456 2011-05-23  Bruno Haible  <bruno@clisp.org>
33458         gettime: Move AC_LIBOBJ invocations to module description.
33459         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
33460         * modules/gettime (Makefile.am): Augment lib_SOURCES.
33462 2011-05-23  Bruno Haible  <bruno@clisp.org>
33464         getndelim2: Move AC_LIBOBJ invocations to module description.
33465         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
33466         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
33468 2011-05-23  Bruno Haible  <bruno@clisp.org>
33470         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
33471         * m4/gc-pbkdf2-sha1.m4: Remove file.
33472         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
33473         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
33474         (Makefile.am): Augment lib_SOURCES.
33476 2011-05-23  Bruno Haible  <bruno@clisp.org>
33478         fts: Move AC_LIBOBJ invocations to module description.
33479         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
33480         * modules/fts (configure.ac): ... to here.
33482 2011-05-23  Bruno Haible  <bruno@clisp.org>
33484         file-type: Move AC_LIBOBJ invocations to module description.
33485         * m4/file-type.m4: Remove file.
33486         * modules/file-type (Files): Remove it.
33487         (configure.ac): Remove gl_FILE_TYPE call.
33488         (Makefile.am): Augment lib_SOURCES.
33490 2011-05-23  Bruno Haible  <bruno@clisp.org>
33492         filenamecat*: Respect rules for use of AC_LIBOBJ.
33493         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
33494         Remove AC_LIBOBJ invocation.
33495         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
33496         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
33498 2011-05-23  Bruno Haible  <bruno@clisp.org>
33500         filemode: Move AC_LIBOBJ invocations to module description.
33501         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
33502         * modules/filemode (Makefile.am): Augment lib_SOURCES.
33504 2011-05-23  Bruno Haible  <bruno@clisp.org>
33506         openat-safer: Move AC_LIBOBJ invocations to module description.
33507         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
33508         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
33510 2011-05-23  Bruno Haible  <bruno@clisp.org>
33512         fcntl-safer: Move AC_LIBOBJ invocations to module description.
33513         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
33514         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
33516 2011-05-23  Bruno Haible  <bruno@clisp.org>
33518         exclude: Move AC_LIBOBJ invocations to module description.
33519         * m4/exclude.m4: Remove file.
33520         * modules/exclude (Files): Remove it.
33521         (configure.ac): Remove gl_EXCLUDE call.
33522         (Makefile.am): Augment lib_SOURCES.
33524 2011-05-23  Bruno Haible  <bruno@clisp.org>
33526         dirname*: Respect rules for use of AC_LIBOBJ.
33527         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
33528         invocations.
33529         * modules/dirname (Makefile.am): Augment lib_SOURCES.
33530         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
33532 2011-05-23  Bruno Haible  <bruno@clisp.org>
33534         dirent-safer: Move AC_LIBOBJ invocations to module description.
33535         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
33536         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
33538 2011-05-23  Bruno Haible  <bruno@clisp.org>
33540         crypto/des: Move AC_LIBOBJ invocations to module description.
33541         * m4/des.m4: Remove file.
33542         * modules/crypto/des (Files): Remove it.
33543         (configure.ac): Remove gl_DES call.
33544         (Makefile.am): Augment lib_SOURCES.
33546 2011-05-23  Bruno Haible  <bruno@clisp.org>
33548         cycle-check: Move AC_LIBOBJ invocations to module description.
33549         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
33550         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
33552 2011-05-23  Bruno Haible  <bruno@clisp.org>
33554         c-strtold: Move AC_LIBOBJ invocations to module description.
33555         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
33556         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
33558 2011-05-23  Bruno Haible  <bruno@clisp.org>
33560         c-strtod: Move AC_LIBOBJ invocations to module description.
33561         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
33562         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
33564 2011-05-23  Bruno Haible  <bruno@clisp.org>
33566         crc: Move AC_LIBOBJ invocations to module description.
33567         * m4/crc.m4: Remove file.
33568         * modules/crc (Files): Remove it.
33569         (configure.ac): Remove gl_CRC call.
33570         (Makefile.am): Augment lib_SOURCES.
33572 2011-05-23  Bruno Haible  <bruno@clisp.org>
33574         close-stream: Move AC_LIBOBJ invocations to module description.
33575         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
33576         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
33578 2011-05-23  Bruno Haible  <bruno@clisp.org>
33580         closeout: Move AC_LIBOBJ invocations to module description.
33581         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
33582         * modules/closeout (Makefile.am): Augment lib_SOURCES.
33584 2011-05-23  Bruno Haible  <bruno@clisp.org>
33586         closein: Move AC_LIBOBJ invocations to module description.
33587         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
33588         * modules/closein (Makefile.am): Augment lib_SOURCES.
33590 2011-05-23  Bruno Haible  <bruno@clisp.org>
33592         cloexec: Move AC_LIBOBJ invocations to module description.
33593         * m4/cloexec.m4: Remove file.
33594         * modules/cloexec (Files): Remove it.
33595         (configure.ac): Remove gl_CLOEXEC call.
33596         (Makefile.am): Augment lib_SOURCES.
33598 2011-05-23  Bruno Haible  <bruno@clisp.org>
33600         check-version: Move AC_LIBOBJ invocations to module description.
33601         * m4/check-version.m4: Remove file.
33602         * modules/check-version (Files): Remove it.
33603         (configure.ac): Remove gl_CHECK_VERSION call.
33604         (Makefile.am): Augment lib_SOURCES.
33606 2011-05-23  Bruno Haible  <bruno@clisp.org>
33608         chdir-safer: Move AC_LIBOBJ invocations to module description.
33609         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
33610         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
33612 2011-05-23  Bruno Haible  <bruno@clisp.org>
33614         canonicalize: Move AC_LIBOBJ invocations to module description.
33615         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
33616         AC_LIBOBJ invocation.
33617         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
33619 2011-05-23  Bruno Haible  <bruno@clisp.org>
33621         canon-host: Move AC_LIBOBJ invocations to module description.
33622         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
33623         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
33624         instead of gl_CANON_HOST.
33625         (Makefile.am): Augment lib_SOURCES.
33627 2011-05-23  Bruno Haible  <bruno@clisp.org>
33629         backupfile: Move AC_LIBOBJ invocations to module description.
33630         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
33631         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
33633 2011-05-23  Bruno Haible  <bruno@clisp.org>
33635         argmatch: Move AC_LIBOBJ invocations to module description.
33636         * m4/argmatch.m4: Remove file.
33637         * modules/argmatch (Files): Remove it.
33638         (configure.ac): Remove gl_ARGMATCH call.
33639         (Makefile.am): Augment lib_SOURCES.
33641 2011-05-23  Bruno Haible  <bruno@clisp.org>
33643         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
33644         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
33645         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
33647 2011-05-23  Bruno Haible  <bruno@clisp.org>
33649         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
33650         * m4/arcfour.m4: Remove file.
33651         * modules/crypto/arcfour (Files): Remove it.
33652         (configure.ac): Remove gl_ARCFOUR call.
33653         (Makefile.am): Augment lib_SOURCES.
33655 2011-05-22  Bruno Haible  <bruno@clisp.org>
33657         write: Move AC_LIBOBJ invocations to module description.
33658         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
33659         * modules/write (configure.ac): ... to here.
33661 2011-05-22  Bruno Haible  <bruno@clisp.org>
33663         wmemset: Move AC_LIBOBJ invocations to module description.
33664         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
33665         here...
33666         * modules/wmemset (configure.ac): ... to here.
33668 2011-05-22  Bruno Haible  <bruno@clisp.org>
33670         wmemmove: Move AC_LIBOBJ invocations to module description.
33671         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
33672         here...
33673         * modules/wmemmove (configure.ac): ... to here.
33675 2011-05-22  Bruno Haible  <bruno@clisp.org>
33677         wmemcpy: Move AC_LIBOBJ invocations to module description.
33678         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
33679         here...
33680         * modules/wmemcpy (configure.ac): ... to here.
33682 2011-05-22  Bruno Haible  <bruno@clisp.org>
33684         wmemcmp: Move AC_LIBOBJ invocations to module description.
33685         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
33686         here...
33687         * modules/wmemcmp (configure.ac): ... to here.
33689 2011-05-22  Bruno Haible  <bruno@clisp.org>
33691         wmemchr: Move AC_LIBOBJ invocations to module description.
33692         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
33693         here...
33694         * modules/wmemchr (configure.ac): ... to here.
33696 2011-05-22  Bruno Haible  <bruno@clisp.org>
33698         wcswidth: Move AC_LIBOBJ invocations to module description.
33699         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
33700         here...
33701         * modules/wcswidth (configure.ac): ... to here.
33703 2011-05-22  Bruno Haible  <bruno@clisp.org>
33705         wcwidth: Respect rules for use of AC_LIBOBJ.
33706         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
33707         invocation from here...
33708         * modules/wcwidth (configure.ac): ... to here.
33709         (Depends-on): Update conditions.
33711 2011-05-22  Bruno Haible  <bruno@clisp.org>
33713         wctype: Move AC_LIBOBJ invocations to module description.
33714         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
33715         invocation from here...
33716         * modules/wctype (configure.ac): ... to here.
33717         (Depends-on): Update conditions.
33719 2011-05-22  Bruno Haible  <bruno@clisp.org>
33721         wctrans: Move AC_LIBOBJ invocations to module description.
33722         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
33723         invocation from here...
33724         * modules/wctrans (configure.ac): ... to here.
33726 2011-05-22  Bruno Haible  <bruno@clisp.org>
33728         wctomb: Move AC_LIBOBJ invocations to module description.
33729         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
33730         invocations from here...
33731         * modules/wctomb (configure.ac): ... to here.
33733 2011-05-22  Bruno Haible  <bruno@clisp.org>
33735         wctob: Move AC_LIBOBJ invocations to module description.
33736         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
33737         gl_PREREQ_WCTOB invocations from here...
33738         * modules/wctob (configure.ac): ... to here.
33739         (Depends-on): Update conditions.
33741 2011-05-22  Bruno Haible  <bruno@clisp.org>
33743         wcsxfrm: Move AC_LIBOBJ invocations to module description.
33744         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
33745         here...
33746         * modules/wcsxfrm (configure.ac): ... to here.
33748 2011-05-22  Bruno Haible  <bruno@clisp.org>
33750         wcstok: Move AC_LIBOBJ invocations to module description.
33751         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
33752         * modules/wcstok (configure.ac): ... to here.
33754 2011-05-22  Bruno Haible  <bruno@clisp.org>
33756         wcsstr: Move AC_LIBOBJ invocations to module description.
33757         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
33758         * modules/wcsstr (configure.ac): ... to here.
33760 2011-05-22  Bruno Haible  <bruno@clisp.org>
33762         wcsspn: Move AC_LIBOBJ invocations to module description.
33763         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
33764         * modules/wcsspn (configure.ac): ... to here.
33766 2011-05-22  Bruno Haible  <bruno@clisp.org>
33768         wcsrtombs: Move AC_LIBOBJ invocations to module description.
33769         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
33770         gl_PREREQ_WCSRTOMBS invocations from here...
33771         * modules/wcsrtombs (configure.ac): ... to here.
33773 2011-05-22  Bruno Haible  <bruno@clisp.org>
33775         wcsrchr: Move AC_LIBOBJ invocations to module description.
33776         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
33777         here...
33778         * modules/wcsrchr (configure.ac): ... to here.
33780 2011-05-22  Bruno Haible  <bruno@clisp.org>
33782         wcspbrk: Move AC_LIBOBJ invocations to module description.
33783         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
33784         here...
33785         * modules/wcspbrk (configure.ac): ... to here.
33787 2011-05-22  Bruno Haible  <bruno@clisp.org>
33789         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
33790         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
33791         gl_PREREQ_WCSNRTOMBS invocations from here...
33792         * modules/wcsnrtombs (configure.ac): ... to here.
33794 2011-05-22  Bruno Haible  <bruno@clisp.org>
33796         wcsnlen: Move AC_LIBOBJ invocations to module description.
33797         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
33798         here...
33799         * modules/wcsnlen (configure.ac): ... to here.
33801 2011-05-22  Bruno Haible  <bruno@clisp.org>
33803         wcsncpy: Move AC_LIBOBJ invocations to module description.
33804         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
33805         here...
33806         * modules/wcsncpy (configure.ac): ... to here.
33808 2011-05-22  Bruno Haible  <bruno@clisp.org>
33810         wcsncmp: Move AC_LIBOBJ invocations to module description.
33811         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
33812         here...
33813         * modules/wcsncmp (configure.ac): ... to here.
33815 2011-05-22  Bruno Haible  <bruno@clisp.org>
33817         wcsncat: Move AC_LIBOBJ invocations to module description.
33818         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
33819         here...
33820         * modules/wcsncat (configure.ac): ... to here.
33822 2011-05-22  Bruno Haible  <bruno@clisp.org>
33824         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
33825         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
33826         from here...
33827         * modules/wcsncasecmp (configure.ac): ... to here.
33829 2011-05-22  Bruno Haible  <bruno@clisp.org>
33831         wcslen: Move AC_LIBOBJ invocations to module description.
33832         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
33833         * modules/wcslen (configure.ac): ... to here.
33835 2011-05-22  Bruno Haible  <bruno@clisp.org>
33837         wcsdup: Move AC_LIBOBJ invocations to module description.
33838         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
33839         * modules/wcsdup (configure.ac): ... to here.
33841 2011-05-22  Bruno Haible  <bruno@clisp.org>
33843         wcscspn: Move AC_LIBOBJ invocations to module description.
33844         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
33845         here...
33846         * modules/wcscspn (configure.ac): ... to here.
33848 2011-05-22  Bruno Haible  <bruno@clisp.org>
33850         wcscpy: Move AC_LIBOBJ invocations to module description.
33851         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
33852         * modules/wcscpy (configure.ac): ... to here.
33854 2011-05-22  Bruno Haible  <bruno@clisp.org>
33856         wcscoll: Move AC_LIBOBJ invocations to module description.
33857         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
33858         here...
33859         * modules/wcscoll (configure.ac): ... to here.
33861 2011-05-22  Bruno Haible  <bruno@clisp.org>
33863         wcscmp: Move AC_LIBOBJ invocations to module description.
33864         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
33865         * modules/wcscmp (configure.ac): ... to here.
33867 2011-05-22  Bruno Haible  <bruno@clisp.org>
33869         wcschr: Move AC_LIBOBJ invocations to module description.
33870         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
33871         * modules/wcschr (configure.ac): ... to here.
33873 2011-05-22  Bruno Haible  <bruno@clisp.org>
33875         wcscat: Move AC_LIBOBJ invocations to module description.
33876         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
33877         * modules/wcscat (configure.ac): ... to here.
33879 2011-05-22  Bruno Haible  <bruno@clisp.org>
33881         wcscasecmp: Move AC_LIBOBJ invocations to module description.
33882         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
33883         here...
33884         * modules/wcscasecmp (configure.ac): ... to here.
33886 2011-05-22  Bruno Haible  <bruno@clisp.org>
33888         wcrtomb: Move AC_LIBOBJ invocations to module description.
33889         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
33890         invocations from here...
33891         * modules/wcrtomb (configure.ac): ... to here.
33893 2011-05-22  Bruno Haible  <bruno@clisp.org>
33895         wcpncpy: Move AC_LIBOBJ invocations to module description.
33896         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
33897         here...
33898         * modules/wcpncpy (configure.ac): ... to here.
33900 2011-05-22  Bruno Haible  <bruno@clisp.org>
33902         wcpcpy: Move AC_LIBOBJ invocations to module description.
33903         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
33904         * modules/wcpcpy (configure.ac): ... to here.
33906 2011-05-22  Bruno Haible  <bruno@clisp.org>
33908         waitpid: Move AC_LIBOBJ invocations to module description.
33909         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
33910         invocation from here...
33911         * modules/waitpid (configure.ac): ... to here.
33913 2011-05-22  Bruno Haible  <bruno@clisp.org>
33915         utimensat: Move AC_LIBOBJ invocations to module description.
33916         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
33917         here...
33918         * modules/utimensat (configure.ac): ... to here.
33920 2011-05-22  Bruno Haible  <bruno@clisp.org>
33922         usleep: Move AC_LIBOBJ invocations to module description.
33923         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
33924         here...
33925         * modules/usleep (configure.ac): ... to here.
33927 2011-05-22  Bruno Haible  <bruno@clisp.org>
33929         unlockpt: Move AC_LIBOBJ invocations to module description.
33930         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
33931         gl_PREREQ_UNLOCKPT invocations from here...
33932         * modules/unlockpt (configure.ac): ... to here.
33934 2011-05-22  Bruno Haible  <bruno@clisp.org>
33936         unlink: Respect rules for use of AC_LIBOBJ.
33937         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
33938         * modules/unlink (configure.ac): ... to here.
33940 2011-05-22  Bruno Haible  <bruno@clisp.org>
33942         uname: Move AC_LIBOBJ invocations to module description.
33943         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
33944         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
33945         here...
33946         * modules/uname (configure.ac): ... to here.
33948 2011-05-22  Bruno Haible  <bruno@clisp.org>
33950         ttyname_r: Move AC_LIBOBJ invocations to module description.
33951         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
33952         gl_PREREQ_TTYNAME_R invocations from here...
33953         * modules/ttyname_r (configure.ac): ... to here.
33955 2011-05-22  Bruno Haible  <bruno@clisp.org>
33957         tsearch: Move AC_LIBOBJ invocations to module description.
33958         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
33959         invocations from here...
33960         * modules/tsearch (configure.ac): ... to here.
33962 2011-05-22  Bruno Haible  <bruno@clisp.org>
33964         towctrans: Move AC_LIBOBJ invocations to module description.
33965         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
33966         AC_LIBOBJ invocation from here...
33967         * modules/towctrans (configure.ac): ... to here.
33969 2011-05-22  Bruno Haible  <bruno@clisp.org>
33971         tmpfile: Move AC_LIBOBJ invocations to module description.
33972         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
33973         invocations from here...
33974         * modules/tmpfile (configure.ac): ... to here.
33976 2011-05-22  Bruno Haible  <bruno@clisp.org>
33978         times: Move AC_LIBOBJ invocations to module description.
33979         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
33980         * modules/times (configure.ac): ... to here.
33982 2011-05-22  Bruno Haible  <bruno@clisp.org>
33984         time_r: Move AC_LIBOBJ invocations to module description.
33985         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
33986         invocations from here...
33987         * modules/time_r (configure.ac): ... to here.
33989 2011-05-22  Bruno Haible  <bruno@clisp.org>
33991         timegm: Move AC_LIBOBJ invocations to module description.
33992         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
33993         invocations from here...
33994         * modules/timegm (configure.ac): ... to here.
33996 2011-05-22  Bruno Haible  <bruno@clisp.org>
33998         tcgetsid: Move AC_LIBOBJ invocations to module description.
33999         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
34000         and gl_PREREQ_TCGETSID invocations from here...
34001         * modules/tcgetsid (configure.ac): ... to here.
34002         (Depends-on): Update conditions.
34004 2011-05-22  Bruno Haible  <bruno@clisp.org>
34006         symlinkat: Move AC_LIBOBJ invocations to module description.
34007         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
34008         here...
34009         * modules/symlinkat (configure.ac): ... to here.
34011 2011-05-22  Bruno Haible  <bruno@clisp.org>
34013         symlink: Move AC_LIBOBJ invocations to module description.
34014         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
34015         here...
34016         * modules/symlink (configure.ac): ... to here.
34018 2011-05-22  Bruno Haible  <bruno@clisp.org>
34020         strverscmp: Move AC_LIBOBJ invocations to module description.
34021         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
34022         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
34023         from here...
34024         * modules/strverscmp (configure.ac): ... to here.
34026 2011-05-22  Bruno Haible  <bruno@clisp.org>
34028         strtok_r: Move AC_LIBOBJ invocations to module description.
34029         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
34030         and gl_PREREQ_STRTOK_R invocations from here...
34031         * modules/strtok_r (configure.ac): ... to here.
34032         (Depends-on): Update conditions.
34034 2011-05-22  Bruno Haible  <bruno@clisp.org>
34036         strtoumax: Move AC_LIBOBJ invocations to module description.
34037         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
34038         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
34039         from here...
34040         * modules/strtoumax (configure.ac): ... to here.
34042 2011-05-22  Bruno Haible  <bruno@clisp.org>
34044         strtoimax: Move AC_LIBOBJ invocations to module description.
34045         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
34046         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
34047         from here...
34048         * modules/strtoimax (configure.ac): ... to here.
34050 2011-05-22  Bruno Haible  <bruno@clisp.org>
34052         strtoull: Move AC_LIBOBJ invocations to module description.
34053         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
34054         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
34055         from here...
34056         * modules/strtoull (configure.ac): ... to here.
34058 2011-05-22  Bruno Haible  <bruno@clisp.org>
34060         strtoll: Move AC_LIBOBJ invocations to module description.
34061         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
34062         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
34063         here...
34064         * modules/strtoll (configure.ac): ... to here.
34066 2011-05-22  Bruno Haible  <bruno@clisp.org>
34068         strtoul: Move AC_LIBOBJ invocations to module description.
34069         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
34070         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
34071         * modules/strtoul (configure.ac): ... to here.
34073 2011-05-22  Bruno Haible  <bruno@clisp.org>
34075         strtol: Move AC_LIBOBJ invocations to module description.
34076         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
34077         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
34078         * modules/strtol (configure.ac): ... to here.
34080 2011-05-22  Bruno Haible  <bruno@clisp.org>
34082         strtod: Move AC_LIBOBJ invocations to module description.
34083         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
34084         invocations from here...
34085         * modules/strtod (configure.ac): ... to here.
34087 2011-05-22  Bruno Haible  <bruno@clisp.org>
34089         strstr*: Move AC_LIBOBJ invocations to module description.
34090         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
34091         invocations from here...
34092         * modules/strstr-simple (configure.ac): ... to here.
34093         * modules/strstr (configure.ac): ... and here.
34095 2011-05-22  Bruno Haible  <bruno@clisp.org>
34097         strsignal: Move AC_LIBOBJ invocations to module description.
34098         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
34099         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
34100         * modules/strsignal (configure.ac): ... to here.
34101         (Depends-on): Update conditions.
34103 2011-05-22  Bruno Haible  <bruno@clisp.org>
34105         strsep: Move AC_LIBOBJ invocations to module description.
34106         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
34107         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
34108         here...
34109         * modules/strsep (configure.ac): ... to here.
34111 2011-05-22  Bruno Haible  <bruno@clisp.org>
34113         strptime: Move AC_LIBOBJ invocations to module description.
34114         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
34115         gl_PREREQ_STRPTIME invocations from here...
34116         * modules/strptime (configure.ac): ... to here.
34118 2011-05-22  Bruno Haible  <bruno@clisp.org>
34120         strpbrk: Move AC_LIBOBJ invocations to module description.
34121         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
34122         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
34123         here...
34124         * modules/strpbrk (configure.ac): ... to here.
34126 2011-05-22  Bruno Haible  <bruno@clisp.org>
34128         strnlen: Move AC_LIBOBJ invocations to module description.
34129         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
34130         invocations from here...
34131         * modules/strnlen (configure.ac): ... to here.
34133 2011-05-22  Bruno Haible  <bruno@clisp.org>
34135         strndup: Move AC_LIBOBJ invocations to module description.
34136         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
34137         invocations from here...
34138         * modules/strndup (configure.ac): ... to here.
34139         (Depends-on): Update conditions.
34141 2011-05-22  Bruno Haible  <bruno@clisp.org>
34143         strncat: Move AC_LIBOBJ invocations to module description.
34144         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
34145         invocations from here...
34146         * modules/strncat (configure.ac): ... to here.
34148 2011-05-22  Bruno Haible  <bruno@clisp.org>
34150         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
34151         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
34152         invocations from here...
34153         * modules/strdup (configure.ac): ... to here.
34154         * modules/strdup-posix (configure.ac): ... and here.
34156 2011-05-22  Bruno Haible  <bruno@clisp.org>
34158         strcspn: Move AC_LIBOBJ invocations to module description.
34159         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
34160         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
34161         here...
34162         * modules/strcspn (configure.ac): ... to here.
34164 2011-05-22  Bruno Haible  <bruno@clisp.org>
34166         strchrnul: Move AC_LIBOBJ invocations to module description.
34167         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
34168         gl_PREREQ_STRCHRNUL invocations from here...
34169         * modules/strchrnul (configure.ac): ... to here.
34171 2011-05-22  Bruno Haible  <bruno@clisp.org>
34173         strcasestr*: Move AC_LIBOBJ invocations to module description.
34174         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
34175         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
34176         * modules/strcasestr-simple (configure.ac): ... to here.
34177         * modules/strcasestr (configure.ac): ... and here.
34179 2011-05-22  Bruno Haible  <bruno@clisp.org>
34181         strcase: Move AC_LIBOBJ invocations to module description.
34182         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
34183         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
34184         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
34185         gl_PREREQ_STRNCASECMP invocations from here...
34186         * modules/strcase (configure.ac): ... to here.
34188 2011-05-22  Bruno Haible  <bruno@clisp.org>
34190         stpncpy: Move AC_LIBOBJ invocations to module description.
34191         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
34192         here...
34193         * modules/stpncpy (configure.ac): ... to here.
34195 2011-05-22  Bruno Haible  <bruno@clisp.org>
34197         stpcpy: Move AC_LIBOBJ invocations to module description.
34198         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
34199         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
34200         here...
34201         * modules/stpcpy (configure.ac): ... to here.
34203 2011-05-21  Bruno Haible  <bruno@clisp.org>
34205         stat: Move AC_LIBOBJ invocations to module description.
34206         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
34207         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
34208         here...
34209         * modules/stat (configure.ac): ... to here.
34211 2011-05-21  Bruno Haible  <bruno@clisp.org>
34213         sleep: Move AC_LIBOBJ invocations to module description.
34214         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
34215         * modules/sleep (configure.ac): ... to here.
34217 2011-05-21  Bruno Haible  <bruno@clisp.org>
34219         signbit: Move AC_LIBOBJ invocations to module description.
34220         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
34221         * modules/signbit (configure.ac): ... to here.
34223 2011-05-21  Bruno Haible  <bruno@clisp.org>
34225         sigprocmask: Move AC_LIBOBJ invocations to module description.
34226         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
34227         gl_PREREQ_SIGPROMASK invocations from here...
34228         * modules/sigprocmask (configure.ac): ... to here.
34230 2011-05-21  Bruno Haible  <bruno@clisp.org>
34232         sigaction: Move AC_LIBOBJ invocations to module description.
34233         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
34234         gl_PREREQ_SIGACTION invocations from here...
34235         * modules/sigaction (configure.ac): ... to here.
34237 2011-05-21  Bruno Haible  <bruno@clisp.org>
34239         sig2str: Move AC_LIBOBJ invocations to module description.
34240         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
34241         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
34242         here...
34243         * modules/sig2str (configure.ac): ... to here.
34245 2011-05-21  Bruno Haible  <bruno@clisp.org>
34247         setlocale: Move AC_LIBOBJ invocations to module description.
34248         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
34249         gl_PREREQ_SETLOCALE invocations from here...
34250         * modules/setlocale (configure.ac): ... to here.
34252 2011-05-21  Bruno Haible  <bruno@clisp.org>
34254         unsetenv: Move AC_LIBOBJ invocations to module description.
34255         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
34256         and gl_PREREQ_UNSETENV invocations from here...
34257         * modules/unsetenv (configure.ac): ... to here.
34258         (Depends-on): Update.
34260 2011-05-21  Bruno Haible  <bruno@clisp.org>
34262         setenv: Move AC_LIBOBJ invocations to module description.
34263         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
34264         here...
34265         * modules/setenv (configure.ac): ... to here.
34267 2011-05-21  Bruno Haible  <bruno@clisp.org>
34269         selinux-h: Move AC_LIBOBJ invocations to module description.
34270         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
34271         AC_LIBOBJ invocation from here...
34272         * modules/selinux-h (configure.ac): ... to here.
34274 2011-05-21  Bruno Haible  <bruno@clisp.org>
34276         select: Respect rules for use of AC_LIBOBJ.
34277         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
34278         here...
34279         * modules/select (configure.ac): ... to here.
34281 2011-05-21  Bruno Haible  <bruno@clisp.org>
34283         scandir: Move AC_LIBOBJ invocations to module description.
34284         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
34285         invocations from here...
34286         * modules/scandir (configure.ac): ... to here.
34288 2011-05-21  Bruno Haible  <bruno@clisp.org>
34290         rpmatch: Move AC_LIBOBJ invocations to module description.
34291         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
34292         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
34293         here...
34294         * modules/rpmatch (configure.ac): ... to here.
34296 2011-05-21  Bruno Haible  <bruno@clisp.org>
34298         rmdir: Respect rules for use of AC_LIBOBJ.
34299         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
34300         * modules/rmdir (configure.ac): ... to here.
34302 2011-05-21  Bruno Haible  <bruno@clisp.org>
34304         renameat: Move AC_LIBOBJ invocations to module description.
34305         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
34306         here...
34307         * modules/renameat (configure.ac): ... to here.
34309 2011-05-21  Bruno Haible  <bruno@clisp.org>
34311         rename: Respect rules for use of AC_LIBOBJ.
34312         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
34313         here...
34314         * modules/rename (configure.ac): ... to here.
34316 2011-05-21  Bruno Haible  <bruno@clisp.org>
34318         remove: Move AC_LIBOBJ invocations to module description.
34319         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
34320         here...
34321         * modules/remove (configure.ac): ... to here.
34323 2011-05-21  Bruno Haible  <bruno@clisp.org>
34325         relocatable-lib: Move AC_LIBOBJ invocations to module description.
34326         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
34327         macro.
34328         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
34329         * modules/relocatable-lib (configure.ac): ... to here.
34330         * modules/relocatable-prog-wrapper (configure.ac): Invoke
34331         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
34333 2011-05-21  Bruno Haible  <bruno@clisp.org>
34335         relocatable-prog: Move AC_LIBOBJ invocations to module description.
34336         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
34337         here...
34338         * modules/relocatable-prog (configure.ac): ... to here.
34340 2011-05-21  Bruno Haible  <bruno@clisp.org>
34342         regex: Move AC_LIBOBJ invocations to module description.
34343         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
34344         invocations from here...
34345         * modules/regex (configure.ac): ... to here.
34347 2011-05-21  Bruno Haible  <bruno@clisp.org>
34349         realloc-*: Move AC_LIBOBJ invocations to module description.
34350         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
34351         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
34352         AC_LIBOBJ invocations from here...
34353         * modules/realloc-gnu (configure.ac): ... to here.
34354         * modules/realloc-posix (configure.ac): ... and here.
34356 2011-05-21  Bruno Haible  <bruno@clisp.org>
34358         readutmp: Move AC_LIBOBJ invocations to module description.
34359         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
34360         * modules/readutmp (configure.ac): ... to here.
34362 2011-05-21  Bruno Haible  <bruno@clisp.org>
34364         readlinkat: Move AC_LIBOBJ invocations to module description.
34365         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
34366         here...
34367         * modules/readlinkat (configure.ac): ... to here.
34369 2011-05-21  Bruno Haible  <bruno@clisp.org>
34371         readlink: Move AC_LIBOBJ invocations to module description.
34372         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
34373         gl_PREREQ_READLINK invocations from here...
34374         * modules/readlink (configure.ac): ... to here.
34376 2011-05-21  Bruno Haible  <bruno@clisp.org>
34378         readline: Move AC_LIBOBJ invocations to module description.
34379         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
34380         gl_PREREQ_READLINE invocations from here...
34381         * modules/readline (configure.ac): ... to here.
34383 2011-05-21  Bruno Haible  <bruno@clisp.org>
34385         read: Move AC_LIBOBJ invocations to module description.
34386         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
34387         * modules/read (configure.ac): ... to here.
34389 2011-05-21  Bruno Haible  <bruno@clisp.org>
34391         rawmemchr: Move AC_LIBOBJ invocations to module description.
34392         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
34393         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
34394         from here...
34395         * modules/rawmemchr (configure.ac): ... to here.
34397 2011-05-21  Bruno Haible  <bruno@clisp.org>
34399         random_r: Move AC_LIBOBJ invocations to module description.
34400         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
34401         gl_PREREQ_RANDOM_R invocations from here...
34402         * modules/random_r (configure.ac): ... to here.
34404 2011-05-21  Bruno Haible  <bruno@clisp.org>
34406         pwrite: Move AC_LIBOBJ invocations to module description.
34407         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
34408         * modules/pwrite (configure.ac): ... to here.
34410 2011-05-21  Bruno Haible  <bruno@clisp.org>
34412         putenv: Move AC_LIBOBJ invocations to module description.
34413         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
34414         * modules/putenv (configure.ac): ... to here.
34416 2011-05-21  Bruno Haible  <bruno@clisp.org>
34418         login_tty: Move AC_LIBOBJ invocations to module description.
34419         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
34420         * modules/login_tty (configure.ac): ... to here.
34422 2011-05-21  Bruno Haible  <bruno@clisp.org>
34424         openpty: Move AC_LIBOBJ invocations to module description.
34425         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
34426         * modules/openpty (configure.ac): ... to here.
34428 2011-05-21  Bruno Haible  <bruno@clisp.org>
34430         forkpty: Move AC_LIBOBJ invocations to module description.
34431         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
34432         * modules/forkpty (configure.ac): ... to here.
34434 2011-05-21  Bruno Haible  <bruno@clisp.org>
34436         ptsname: Move AC_LIBOBJ invocations to module description.
34437         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
34438         invocations from here...
34439         * modules/ptsname (configure.ac): ... to here.
34441 2011-05-21  Bruno Haible  <bruno@clisp.org>
34443         pread: Move AC_LIBOBJ invocations to module description.
34444         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
34445         * modules/pread (configure.ac): ... to here.
34447 2011-05-21  Bruno Haible  <bruno@clisp.org>
34449         posix_spawn*: Move AC_LIBOBJ invocations to module description.
34450         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
34451         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
34452         * modules/posix_spawn (configure.ac): ... to here.
34453         * modules/posix_spawnp (configure.ac): ... and here.
34455 2011-05-21  Bruno Haible  <bruno@clisp.org>
34457         popen: Move AC_LIBOBJ invocations to module description.
34458         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
34459         invocations from here...
34460         * modules/popen (configure.ac): ... to here.
34462 2011-05-21  Bruno Haible  <bruno@clisp.org>
34464         poll: Move AC_LIBOBJ invocations to module description.
34465         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
34466         invocations from here...
34467         * modules/poll (configure.ac): ... to here.
34469 2011-05-21  Bruno Haible  <bruno@clisp.org>
34471         pipe-posix: Move AC_LIBOBJ invocations to module description.
34472         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
34473         * modules/pipe-posix (configure.ac): ... to here.
34475 2011-05-21  Bruno Haible  <bruno@clisp.org>
34477         openat: Respect rules for use of AC_LIBOBJ.
34478         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
34479         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
34480         * modules/openat (configure.ac): ... to here.
34482 2011-05-21  Bruno Haible  <bruno@clisp.org>
34484         obstack-printf*: Move AC_LIBOBJ invocations to module description.
34485         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
34486         invocation from here...
34487         * modules/obstack-printf (configure.ac): ... to here.
34488         * modules/obstack-printf-posix (configure.ac): ... and here.
34490 2011-05-21  Bruno Haible  <bruno@clisp.org>
34492         nl_langinfo: Move AC_LIBOBJ invocations to module description.
34493         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
34494         from here...
34495         * modules/nl_langinfo (configure.ac): ... to here.
34497 2011-05-21  Bruno Haible  <bruno@clisp.org>
34499         nanosleep: Move AC_LIBOBJ invocations to module description.
34500         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
34501         gl_PREREQ_NANOSLEEP invocations from here...
34502         * modules/nanosleep (configure.ac): ... to here.
34504 2011-05-21  Bruno Haible  <bruno@clisp.org>
34506         mountlist: Move AC_LIBOBJ invocations to module description.
34507         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
34508         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
34509         * modules/mountlist (configure.ac): ... to here.
34511 2011-05-21  Bruno Haible  <bruno@clisp.org>
34513         mktime: Respect rules for use of AC_LIBOBJ.
34514         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
34515         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
34516         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
34517         (gl_FUNC_MKTIME_INTERNAL): ... and here...
34518         * modules/mktime (configure.ac): ... to here.
34519         * modules/mktime-internal (configure.ac): ... and here.
34520         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
34522 2011-05-21  Bruno Haible  <bruno@clisp.org>
34524         mkstemps: Move AC_LIBOBJ invocations to module description.
34525         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
34526         here...
34527         * modules/mkstemps (configure.ac): ... to here.
34529 2011-05-21  Bruno Haible  <bruno@clisp.org>
34531         mkstemp: Move AC_LIBOBJ invocations to module description.
34532         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
34533         gl_PREREQ_MKSTEMP invocations from here...
34534         * modules/mkstemp (configure.ac): ... to here.
34536 2011-05-21  Bruno Haible  <bruno@clisp.org>
34538         mkostemps: Move AC_LIBOBJ invocations to module description.
34539         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
34540         here...
34541         * modules/mkostemps (configure.ac): ... to here.
34543 2011-05-21  Bruno Haible  <bruno@clisp.org>
34545         mkostemp: Move AC_LIBOBJ invocations to module description.
34546         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
34547         gl_PREREQ_MKOSTEMP invocations from here...
34548         * modules/mkostemp (configure.ac): ... to here.
34550 2011-05-21  Bruno Haible  <bruno@clisp.org>
34552         mknod: Move AC_LIBOBJ invocations to module description.
34553         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
34554         * modules/mknod (configure.ac): ... to here.
34556 2011-05-21  Bruno Haible  <bruno@clisp.org>
34558         mkfifoat: Move AC_LIBOBJ invocations to module description.
34559         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
34560         here...
34561         * modules/mkfifoat (configure.ac): ... to here.
34563 2011-05-21  Bruno Haible  <bruno@clisp.org>
34565         mkfifo: Respect rules for use of AC_LIBOBJ.
34566         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
34567         here...
34568         * modules/mkfifo (configure.ac): ... to here.
34570 2011-05-21  Bruno Haible  <bruno@clisp.org>
34572         mkdtemp: Move AC_LIBOBJ invocations to module description.
34573         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
34574         invocations from here...
34575         * modules/mkdtemp (configure.ac): ... to here.
34577 2011-05-21  Bruno Haible  <bruno@clisp.org>
34579         mkdir: Move AC_LIBOBJ invocations to module description.
34580         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
34581         * modules/mkdir (configure.ac): ... to here.
34583 2011-05-21  Bruno Haible  <bruno@clisp.org>
34585         memset: Move AC_LIBOBJ invocations to module description.
34586         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
34587         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
34588         here...
34589         * modules/memset (configure.ac): ... to here.
34591 2011-05-21  Bruno Haible  <bruno@clisp.org>
34593         memrchr: Move AC_LIBOBJ invocations to module description.
34594         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
34595         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
34596         here...
34597         * modules/memrchr (configure.ac): ... to here.
34599 2011-05-21  Bruno Haible  <bruno@clisp.org>
34601         mempcpy: Move AC_LIBOBJ invocations to module description.
34602         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
34603         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
34604         here...
34605         * modules/mempcpy (configure.ac): ... to here.
34607 2011-05-21  Bruno Haible  <bruno@clisp.org>
34609         memmove: Move AC_LIBOBJ invocations to module description.
34610         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
34611         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
34612         here...
34613         * modules/memmove (configure.ac): ... to here.
34615 2011-05-21  Bruno Haible  <bruno@clisp.org>
34617         memmem*: Move AC_LIBOBJ invocations to module description.
34618         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
34619         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
34620         here...
34621         (gl_FUNC_MEMMEM): ... and here...
34622         * modules/memmem-simple (configure.ac): ... to here.
34623         * modules/memmem (configure.ac): ... and here.
34625 2011-05-21  Bruno Haible  <bruno@clisp.org>
34627         memcpy: Move AC_LIBOBJ invocations to module description.
34628         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
34629         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
34630         here...
34631         * modules/memcpy (configure.ac): ... to here.
34633 2011-05-21  Bruno Haible  <bruno@clisp.org>
34635         memcmp: Simplify autoconf macro.
34636         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
34637         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
34638         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
34640 2011-05-21  Bruno Haible  <bruno@clisp.org>
34642         memcmp: Move AC_LIBOBJ invocations to module description.
34643         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
34644         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
34645         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
34646         * modules/memcmp (configure.ac): ... to here.
34647         (Depends-on): Update conditions.
34649 2011-05-21  Bruno Haible  <bruno@clisp.org>
34651         memchr: Respect rules for use of AC_LIBOBJ.
34652         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
34653         invocations from here...
34654         * modules/memchr (configure.ac): ... to here.
34656 2011-05-21  Bruno Haible  <bruno@clisp.org>
34658         mbtowc: Move AC_LIBOBJ invocations to module description.
34659         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
34660         invocations from here...
34661         * modules/mbtowc (configure.ac): ... to here.
34663 2011-05-21  Bruno Haible  <bruno@clisp.org>
34665         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
34666         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
34667         gl_PREREQ_MBSRTOWCS invocations from here...
34668         * modules/mbsrtowcs (configure.ac): ... to here.
34670 2011-05-21  Bruno Haible  <bruno@clisp.org>
34672         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
34673         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
34674         gl_PREREQ_MBSNRTOWCS invocations from here...
34675         * modules/mbsnrtowcs (configure.ac): ... to here.
34677 2011-05-21  Bruno Haible  <bruno@clisp.org>
34679         mbsinit: Move AC_LIBOBJ invocations to module description.
34680         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
34681         invocations from here...
34682         * modules/mbsinit (configure.ac): ... to here.
34684 2011-05-21  Bruno Haible  <bruno@clisp.org>
34686         mbrlen: Move AC_LIBOBJ invocations to module description.
34687         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
34688         invocations from here...
34689         * modules/mbrlen (configure.ac): ... to here.
34691 2011-05-21  Bruno Haible  <bruno@clisp.org>
34693         mbrtowc: Respect rules for use of AC_LIBOBJ.
34694         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
34695         invocations from here...
34696         * modules/mbrtowc (configure.ac): ... to here.
34698 2011-05-21  Bruno Haible  <bruno@clisp.org>
34700         malloc-*: Move AC_LIBOBJ invocations to module description.
34701         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
34702         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
34703         AC_LIBOBJ invocations from here...
34704         * modules/malloc-gnu (configure.ac): ... to here.
34705         * modules/malloc-posix (configure.ac): ... and here.
34707 2011-05-21  Bruno Haible  <bruno@clisp.org>
34709         lstat, openat: Respect rules for use of AC_LIBOBJ.
34710         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
34711         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
34712         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
34713         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
34714         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
34715         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
34716         here.
34717         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
34719 2011-05-21  Bruno Haible  <bruno@clisp.org>
34721         lseek: Move AC_LIBOBJ invocations to module description.
34722         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
34723         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
34724         * modules/lseek (configure.ac): ... to here.
34726 2011-05-21  Bruno Haible  <bruno@clisp.org>
34728         linkat: Move AC_LIBOBJ invocations to module description.
34729         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
34730         here...
34731         * modules/linkat (configure.ac): ... to here.
34733 2011-05-21  Bruno Haible  <bruno@clisp.org>
34735         link: Respect rules for use of AC_LIBOBJ.
34736         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
34737         * modules/link (configure.ac): ... to here.
34739 2011-05-21  Bruno Haible  <bruno@clisp.org>
34741         lchown: Move AC_LIBOBJ invocations to module description.
34742         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
34743         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
34744         * modules/lchown (configure.ac): ... to here.
34746 2011-05-21  Bruno Haible  <bruno@clisp.org>
34748         iswctype: Move AC_LIBOBJ invocations to module description.
34749         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
34750         here...
34751         * modules/iswctype (configure.ac): ... to here.
34753 2011-05-21  Bruno Haible  <bruno@clisp.org>
34755         iswblank: Move AC_LIBOBJ invocations to module description.
34756         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
34757         here...
34758         * modules/iswblank (configure.ac): ... to here.
34760 2011-05-21  Bruno Haible  <bruno@clisp.org>
34762         atanl: Move AC_LIBOBJ invocations to module description.
34763         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
34764         * modules/atanl (configure.ac): ... to here.
34766 2011-05-21  Bruno Haible  <bruno@clisp.org>
34768         acosl: Move AC_LIBOBJ invocations to module description.
34769         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
34770         * modules/acosl (configure.ac): ... to here.
34772 2011-05-21  Bruno Haible  <bruno@clisp.org>
34774         asinl: Respect rules for use of AC_LIBOBJ.
34775         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
34776         * modules/asinl (configure.ac): ... to here.
34778 2011-05-21  Bruno Haible  <bruno@clisp.org>
34780         tanl: Move AC_LIBOBJ invocations to module description.
34781         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
34782         * modules/tanl (configure.ac): ... to here.
34784 2011-05-21  Bruno Haible  <bruno@clisp.org>
34786         cosl: Move AC_LIBOBJ invocations to module description.
34787         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
34788         * modules/cosl (configure.ac): ... to here.
34790 2011-05-21  Bruno Haible  <bruno@clisp.org>
34792         sinl: Move AC_LIBOBJ invocations to module description.
34793         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
34794         * modules/sinl (configure.ac): ... to here.
34796 2011-05-21  Bruno Haible  <bruno@clisp.org>
34798         logl: Move AC_LIBOBJ invocations to module description.
34799         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
34800         * modules/logl (configure.ac): ... to here.
34802 2011-05-21  Bruno Haible  <bruno@clisp.org>
34804         expl: Move AC_LIBOBJ invocations to module description.
34805         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
34806         * modules/expl (configure.ac): ... to here.
34808 2011-05-21  Bruno Haible  <bruno@clisp.org>
34810         roundl: Move AC_LIBOBJ invocations to module description.
34811         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
34812         * modules/roundl (configure.ac): ... to here.
34814 2011-05-21  Bruno Haible  <bruno@clisp.org>
34816         round: Move AC_LIBOBJ invocations to module description.
34817         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
34818         * modules/round (configure.ac): ... to here.
34820 2011-05-21  Bruno Haible  <bruno@clisp.org>
34822         roundf: Move AC_LIBOBJ invocations to module description.
34823         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
34824         * modules/roundf (configure.ac): ... to here.
34826 2011-05-21  Bruno Haible  <bruno@clisp.org>
34828         truncl: Move AC_LIBOBJ invocations to module description.
34829         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
34830         * modules/truncl (configure.ac): ... to here.
34832 2011-05-21  Bruno Haible  <bruno@clisp.org>
34834         trunc: Move AC_LIBOBJ invocations to module description.
34835         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
34836         * modules/trunc (configure.ac): ... to here.
34838 2011-05-21  Bruno Haible  <bruno@clisp.org>
34840         truncf: Move AC_LIBOBJ invocations to module description.
34841         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
34842         * modules/truncf (configure.ac): ... to here.
34844 2011-05-21  Bruno Haible  <bruno@clisp.org>
34846         ceill: Move AC_LIBOBJ invocations to module description.
34847         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
34848         * modules/ceill (configure.ac): ... to here.
34850 2011-05-21  Bruno Haible  <bruno@clisp.org>
34852         ceil: Move AC_LIBOBJ invocations to module description.
34853         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
34854         * modules/ceil (configure.ac): ... to here.
34856 2011-05-21  Bruno Haible  <bruno@clisp.org>
34858         ceilf: Move AC_LIBOBJ invocations to module description.
34859         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
34860         * modules/ceilf (configure.ac): ... to here.
34862 2011-05-21  Bruno Haible  <bruno@clisp.org>
34864         floorl: Respect rules for use of AC_LIBOBJ.
34865         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
34866         * modules/floorl (configure.ac): ... to here.
34868 2011-05-21  Bruno Haible  <bruno@clisp.org>
34870         floor: Respect rules for use of AC_LIBOBJ.
34871         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
34872         * modules/floor (configure.ac): ... to here.
34874 2011-05-21  Bruno Haible  <bruno@clisp.org>
34876         floorf: Move AC_LIBOBJ invocations to module description.
34877         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
34878         * modules/floorf (configure.ac): ... to here.
34880 2011-05-20  Bruno Haible  <bruno@clisp.org>
34882         sqrtl: Respect rules for use of AC_LIBOBJ.
34883         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
34884         * modules/sqrtl (configure.ac): ... to here.
34886 2011-05-20  Bruno Haible  <bruno@clisp.org>
34888         ldexpl: Respect rules for use of AC_LIBOBJ.
34889         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
34890         * modules/ldexpl (configure.ac): ... to here.
34892 2011-05-20  Bruno Haible  <bruno@clisp.org>
34894         frexpl*: Respect rules for use of AC_LIBOBJ.
34895         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
34896         invocation from here...
34897         * modules/frexpl (configure.ac): ... to here.
34898         * modules/frexpl-nolibm (configure.ac): ... and here.
34900 2011-05-20  Bruno Haible  <bruno@clisp.org>
34902         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
34903         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
34904         invocation from here...
34905         * modules/frexp (configure.ac): ... to here.
34906         * modules/frexp-nolibm (configure.ac): ... and here.
34908 2011-05-20  Bruno Haible  <bruno@clisp.org>
34910         isnan: Respect rules for use of AC_LIBOBJ.
34911         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
34912         invocations here.
34913         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
34914         REPLACE_ISNAN.
34915         * modules/isnand (configure.ac): Likewise.
34916         * modules/isnanl (configure.ac): Likewise.
34918 2011-05-20  Bruno Haible  <bruno@clisp.org>
34920         isnanl*: Respect rules for use of AC_LIBOBJ.
34921         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
34922         invocation from here...
34923         * modules/isnanl (configure.ac): ... to here.
34924         * modules/isnanl-nolibm (configure.ac): ... and here.
34926 2011-05-20  Bruno Haible  <bruno@clisp.org>
34928         isnand*: Move AC_LIBOBJ invocations to module description.
34929         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
34930         invocation from here...
34931         * modules/isnand (configure.ac): ... to here.
34932         * modules/isnand-nolibm (configure.ac): ... and here.
34934 2011-05-20  Bruno Haible  <bruno@clisp.org>
34936         isnanf*: Move AC_LIBOBJ invocations to module description.
34937         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
34938         invocation from here...
34939         * modules/isnanf (configure.ac): ... to here.
34940         * modules/isnanf-nolibm (configure.ac): ... and here.
34942 2011-05-20  Bruno Haible  <bruno@clisp.org>
34944         isnan*: Separate the AC_LIBOBJ invocations.
34945         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
34946         AC_LIBOBJ invocation.
34947         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
34948         here.
34949         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
34950         AC_LIBOBJ invocation.
34951         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
34952         here.
34953         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
34954         AC_LIBOBJ invocation.
34955         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
34956         here.
34957         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
34959 2011-05-08  Bruno Haible  <bruno@clisp.org>
34961         isinf: Move AC_LIBOBJ invocations to module description.
34962         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
34963         * modules/isinf (configure.ac): ... to here.
34965 2011-05-08  Bruno Haible  <bruno@clisp.org>
34967         isfinite: Move AC_LIBOBJ invocations to module description.
34968         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
34969         * modules/isfinite (configure.ac): ... to here.
34971 2011-05-08  Bruno Haible  <bruno@clisp.org>
34973         isblank: Move AC_LIBOBJ invocations to module description.
34974         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
34975         here...
34976         * modules/isblank (configure.ac): ... to here.
34978 2011-05-08  Bruno Haible  <bruno@clisp.org>
34980         isapipe: Move AC_LIBOBJ invocations to module description.
34981         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
34982         gl_PREREQ_ISAPIPE invocations from here...
34983         * modules/isapipe (configure.ac): ... to here.
34984         (Depends-on): Update condition.
34986 2011-05-08  Bruno Haible  <bruno@clisp.org>
34988         ioctl: Move AC_LIBOBJ invocations to module description.
34989         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
34990         invocations from here...
34991         * modules/ioctl (configure.ac): ... to here.
34992         (Depends-on): Update condition.
34994 2011-05-08  Bruno Haible  <bruno@clisp.org>
34996         imaxdiv: Move AC_LIBOBJ invocations to module description.
34997         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
34998         invocations from here...
34999         * modules/imaxdiv (configure.ac): ... to here.
35001 2011-05-08  Bruno Haible  <bruno@clisp.org>
35003         imaxabs: Move AC_LIBOBJ invocations to module description.
35004         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
35005         invocations from here...
35006         * modules/imaxabs (configure.ac): ... to here.
35008 2011-05-08  Bruno Haible  <bruno@clisp.org>
35010         getaddrinfo: Move AC_LIBOBJ invocations to module description.
35011         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
35012         AC_LIBOBJ invocations from here...
35013         * modules/getaddrinfo (configure.ac): ... to here.
35014         (Depends-on): Add conditions.
35016 2011-05-08  Bruno Haible  <bruno@clisp.org>
35018         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
35019         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
35020         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
35021         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
35022         (gl_PREREQ_INET_PTON): ... from here.
35023         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
35024         gl_PREREQ_INET_PTON here.
35025         (Depends-on): Update condition.
35027 2011-05-08  Bruno Haible  <bruno@clisp.org>
35029         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
35030         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
35031         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
35032         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
35033         (gl_PREREQ_INET_NTOP): ... from here.
35034         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
35035         gl_PREREQ_INET_NTOP here.
35036         (Depends-on): Update condition.
35038 2011-05-08  Bruno Haible  <bruno@clisp.org>
35040         iconv_open: Move AC_LIBOBJ invocations to module description.
35041         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
35042         AC_LIBOBJ invocations from here...
35043         * modules/iconv_open (configure.ac): ... to here.
35045 2011-05-08  Bruno Haible  <bruno@clisp.org>
35047         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
35048         If module 'iconv_open' is among the main modules and module
35049         'iconv_open-utf' is among the tests dependencies, then
35050         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
35051         return the special iconv_t values. Therefore iconv() and iconv_close()
35052         must support these special iconv_t values, already in lib, not only in
35053         tests.
35054         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
35055         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
35056         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
35057         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
35058         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
35059         (Depends-on): Add the dependencies of iconv_open-utf.
35060         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
35061         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
35062         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
35064 2011-05-08  Bruno Haible  <bruno@clisp.org>
35066         group-member: Move AC_LIBOBJ invocations to module description.
35067         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
35068         gl_PREREQ_GROUP_MEMBER invocations from here...
35069         * modules/group-member (configure.ac): ... to here.
35071 2011-05-08  Bruno Haible  <bruno@clisp.org>
35073         grantpt: Move AC_LIBOBJ invocations to module description.
35074         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
35075         invocations from here...
35076         * modules/grantpt (configure.ac): ... to here.
35078 2011-05-08  Bruno Haible  <bruno@clisp.org>
35080         glob: Move AC_LIBOBJ invocations to module description.
35081         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
35082         from here...
35083         * modules/glob (configure.ac): ... to here.
35085 2011-05-08  Bruno Haible  <bruno@clisp.org>
35087         getusershell: Move AC_LIBOBJ invocations to module description.
35088         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
35089         Move AC_LIBOBJ invocation from here...
35090         * modules/getusershell (configure.ac): ... to here.
35091         (Depends-on): Update condition.
35093 2011-05-08  Bruno Haible  <bruno@clisp.org>
35095         gettimeofday: Move AC_LIBOBJ invocations to module description.
35096         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
35097         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
35098         gl_PREREQ_GETTIMEOFDAY invocations from here...
35099         * modules/gettimeofday (configure.ac): ... to here.
35101 2011-05-08  Bruno Haible  <bruno@clisp.org>
35103         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
35104         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
35105         just gl_FUNC_TZSET.
35106         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
35107         (gl_FUNC_TZSET_CLOBBER): Remove actions.
35108         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
35109         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
35111 2011-05-08  Bruno Haible  <bruno@clisp.org>
35113         getsubopt: Move AC_LIBOBJ invocations to module description.
35114         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
35115         gl_PREREQ_GETSUBOPT invocations from here...
35116         * modules/getsubopt (configure.ac): ... to here.
35118 2011-05-08  Bruno Haible  <bruno@clisp.org>
35120         getpass-gnu: Move AC_LIBOBJ invocations to module description.
35121         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
35122         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
35123         * modules/getpass-gnu (configure.ac): ... to here.
35125 2011-05-08  Bruno Haible  <bruno@clisp.org>
35127         getpass: Move AC_LIBOBJ invocations to module description.
35128         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
35129         gl_PREREQ_GETPASS invocations from here...
35130         * modules/getpass (configure.ac): ... to here.
35132 2011-05-08  Bruno Haible  <bruno@clisp.org>
35134         getpagesize: Move AC_LIBOBJ invocations to module description.
35135         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
35136         from here...
35137         * modules/getpagesize (configure.ac): ... to here.
35139 2011-05-08  Bruno Haible  <bruno@clisp.org>
35141         getopt: Move AC_LIBOBJ invocations to module description.
35142         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
35143         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
35144         invocations from here...
35145         * modules/getopt-gnu (configure.ac): ... to here.
35146         * modules/getopt-posix (configure.ac): ... and here.
35147         (Depends-on): Update condition.
35149 2011-05-08  Bruno Haible  <bruno@clisp.org>
35151         getopt, argp: Respect rules for use of AC_LIBOBJ.
35152         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
35153         (gl_REPLACE_GETOPT_ALWAYS): New macro.
35154         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
35155         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
35157 2011-05-08  Bruno Haible  <bruno@clisp.org>
35159         getlogin_r: Move AC_LIBOBJ invocations to module description.
35160         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
35161         gl_PREREQ_GETLOGIN_R invocations from here...
35162         * modules/getlogin_r (configure.ac): ... to here.
35164 2011-05-08  Bruno Haible  <bruno@clisp.org>
35166         getlogin: Move AC_LIBOBJ invocations to module description.
35167         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
35168         here...
35169         * modules/getlogin (configure.ac): ... to here.
35171 2011-05-08  Bruno Haible  <bruno@clisp.org>
35173         getloadavg: Move AC_LIBOBJ invocations to module description.
35174         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
35175         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
35176         * modules/getloadavg (configure.ac): ... to here.
35178 2011-05-08  Bruno Haible  <bruno@clisp.org>
35180         gethrxtime: Move AC_LIBOBJ invocations to module description.
35181         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
35182         LIB_GETHRXTIME from here...
35183         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
35184         invocations from here...
35185         * modules/gethrxtime (configure.ac): ... to here.
35187 2011-05-08  Bruno Haible  <bruno@clisp.org>
35189         gethostname: Move AC_LIBOBJ invocations to module description.
35190         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
35191         gl_PREREQ_GETHOSTNAME invocations from here...
35192         * modules/gethostname (configure.ac): ... to here.
35194 2011-05-08  Bruno Haible  <bruno@clisp.org>
35196         getgroups: Move AC_LIBOBJ invocations to module description.
35197         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
35198         here...
35199         * modules/getgroups (configure.ac): ... to here.
35201 2011-05-08  Bruno Haible  <bruno@clisp.org>
35203         getdtablesize: Move AC_LIBOBJ invocations to module description.
35204         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
35205         invocation from here...
35206         * modules/getdtablesize (configure.ac): ... to here.
35208 2011-05-08  Bruno Haible  <bruno@clisp.org>
35210         getdomainname: Move AC_LIBOBJ invocations to module description.
35211         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
35212         gl_PREREQ_GETDOMAINNAME invocations from here...
35213         * modules/getdomainname (configure.ac): ... to here.
35215 2011-05-08  Bruno Haible  <bruno@clisp.org>
35217         getline: Move AC_LIBOBJ invocations to module description.
35218         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
35219         invocations from here...
35220         * modules/getline (configure.ac): ... to here.
35222 2011-05-08  Bruno Haible  <bruno@clisp.org>
35224         getline: Simplify.
35225         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
35226         It's already handled through the module dependency.
35228 2011-05-08  Bruno Haible  <bruno@clisp.org>
35230         getdelim: Move AC_LIBOBJ invocations to module description.
35231         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
35232         and gl_PREREQ_GETDELIM invocations from here...
35233         * modules/getdelim (configure.ac): ... to here.
35234         (Depends-on): Fix condition.
35236 2011-05-08  Bruno Haible  <bruno@clisp.org>
35238         getcwd: Move AC_LIBOBJ invocations to module description.
35239         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
35240         invocations from here...
35241         * modules/getcwd (configure.ac): ... to here.
35243 2011-05-08  Bruno Haible  <bruno@clisp.org>
35245         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
35246         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
35247         here...
35248         * modules/getcwd-lgpl (configure.ac): ... to here.
35250 2011-05-07  Bruno Haible  <bruno@clisp.org>
35252         crypto/gc: Move AC_LIBOBJ invocations to module description.
35253         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
35254         * modules/crypto/gc (configure.ac): ... to here.
35256 2011-05-07  Bruno Haible  <bruno@clisp.org>
35258         fwriting: Move AC_LIBOBJ invocations to module description.
35259         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
35260         here...
35261         * modules/fwriting (configure.ac): ... to here.
35263 2011-05-07  Bruno Haible  <bruno@clisp.org>
35265         fwritable: Move AC_LIBOBJ invocations to module description.
35266         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
35267         here...
35268         * modules/fwritable (configure.ac): ... to here.
35270 2011-05-07  Bruno Haible  <bruno@clisp.org>
35272         futimens: Move AC_LIBOBJ invocations to module description.
35273         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
35274         here...
35275         * modules/futimens (configure.ac): ... to here.
35277 2011-05-07  Bruno Haible  <bruno@clisp.org>
35279         ftruncate: Move AC_LIBOBJ invocations to module description.
35280         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
35281         gl_PREREQ_FTRUNCATE invocations from here...
35282         * modules/ftruncate (configure.ac): ... to here.
35284 2011-05-07  Bruno Haible  <bruno@clisp.org>
35286         fsync: Move AC_LIBOBJ invocations to module description.
35287         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
35288         invocations from here...
35289         * modules/fsync (configure.ac): ... to here.
35291 2011-05-07  Bruno Haible  <bruno@clisp.org>
35293         fsusage: Move AC_LIBOBJ invocations to module description.
35294         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
35295         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
35296         * modules/fsusage (configure.ac): ... to here.
35298 2011-05-07  Bruno Haible  <bruno@clisp.org>
35300         freopen: Move AC_LIBOBJ invocations to module description.
35301         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
35302         invocations from here...
35303         * modules/freopen (configure.ac): ... to here.
35305 2011-05-07  Bruno Haible  <bruno@clisp.org>
35307         free: Move AC_LIBOBJ invocations to module description.
35308         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
35309         invocations from here...
35310         * modules/free (configure.ac): ... to here.
35312 2011-05-07  Bruno Haible  <bruno@clisp.org>
35314         freadable: Move AC_LIBOBJ invocations to module description.
35315         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
35316         here...
35317         * modules/freadable (configure.ac): ... to here.
35319 2011-05-07  Bruno Haible  <bruno@clisp.org>
35321         fpurge: Move AC_LIBOBJ invocations to module description.
35322         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
35323         invocations from here...
35324         * modules/fpurge (configure.ac): ... to here.
35326 2011-05-07  Bruno Haible  <bruno@clisp.org>
35328         fpending: Move AC_LIBOBJ invocations to module description.
35329         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
35330         gl_FUNC_FPENDING.
35331         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
35332         invocations from here...
35333         * modules/fpending (configure.ac): ... to here.
35335 2011-05-07  Bruno Haible  <bruno@clisp.org>
35337         fopen: Move AC_LIBOBJ invocations to module description.
35338         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
35339         invocations from here...
35340         * modules/fopen (configure.ac): ... to here.
35342 2011-05-07  Bruno Haible  <bruno@clisp.org>
35344         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
35345         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
35346         gl_FUNC_FNMATCH_POSIX.
35347         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
35348         invocations from here...
35349         * modules/fnmatch (configure.ac): ... to here.
35350         * modules/fnmatch-gnu (configure.ac): ... and here.
35352 2011-05-07  Bruno Haible  <bruno@clisp.org>
35354         flock: Move AC_LIBOBJ invocations to module description.
35355         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
35356         invocations from here...
35357         * modules/flock (configure.ac): ... to here.
35359 2011-05-07  Bruno Haible  <bruno@clisp.org>
35361         fileblocks: Move AC_LIBOBJ invocations to module description.
35362         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
35363         gl_PREREQ_FILEBLOCKS invocations from here...
35364         * modules/fileblocks (configure.ac): ... to here.
35366 2011-05-06  Bruno Haible  <bruno@clisp.org>
35368         fflush: Move AC_LIBOBJ invocations to module description.
35369         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
35370         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
35371         invocations from here...
35372         * modules/fflush (configure.ac): ... to here.
35374 2011-05-06  Bruno Haible  <bruno@clisp.org>
35376         fdopendir: Move AC_LIBOBJ invocations to module description.
35377         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
35378         here...
35379         * modules/fdopendir (configure.ac): ... to here.
35380         (Depends-on): Improve conditions.
35382 2011-05-06  Bruno Haible  <bruno@clisp.org>
35384         _Exit: Move AC_LIBOBJ invocations to module description.
35385         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
35386         invocations from here...
35387         * modules/_Exit (configure.ac): ... to here.
35389 2011-05-21  Bruno Haible  <bruno@clisp.org>
35391         euidaccess: Respect rules for use of AC_LIBOBJ.
35392         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
35393         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
35394         from here...
35395         * modules/euidaccess (configure.ac): ... to here.
35397 2011-05-06  Bruno Haible  <bruno@clisp.org>
35399         error: Move AC_LIBOBJ invocations to module description.
35400         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
35401         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
35402         invocations from here...
35403         * modules/error (configure.ac): ... to here.
35405 2011-05-06  Bruno Haible  <bruno@clisp.org>
35407         duplocale: Move AC_LIBOBJ invocations to module description.
35408         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
35409         gl_PREREQ_DUPLOCALE invocations from here...
35410         * modules/duplocale (configure.ac): ... to here.
35412 2011-05-05  Bruno Haible  <bruno@clisp.org>
35414         dirfd: Move AC_LIBOBJ invocations to module description.
35415         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
35416         gl_FUNC_DIRFD.
35417         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
35418         here...
35419         * modules/dirfd (configure.ac): ... to here.
35420         (Depends-on): Fix condition.
35422 2011-05-05  Bruno Haible  <bruno@clisp.org>
35424         chown: Respect rules for use of AC_LIBOBJ.
35425         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
35426         * modules/chown (configure.ac): ... to here.
35428 2011-05-05  Bruno Haible  <bruno@clisp.org>
35430         chdir-long: Move AC_LIBOBJ invocations to module description.
35431         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
35432         gl_PREREQ_CHDIR_LONG invocations from here...
35433         * modules/chdir-long (configure.ac): ... to here.
35435 2011-05-05  Bruno Haible  <bruno@clisp.org>
35437         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
35438         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
35439         from here...
35440         * modules/canonicalize-lgpl (configure.ac): ... to here.
35442 2011-05-05  Bruno Haible  <bruno@clisp.org>
35444         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
35445         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
35446         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
35447         REPLACE_CALLOC.
35448         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
35449         * modules/calloc-gnu (configure.ac): Likewise.
35451 2011-05-05  Bruno Haible  <bruno@clisp.org>
35453         btowc: Move AC_LIBOBJ invocations to module description.
35454         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
35455         invocations from here...
35456         * modules/btowc (configure.ac): ... to here.
35458 2011-05-21  Bruno Haible  <bruno@clisp.org>
35460         atexit: Move AC_LIBOBJ invocations to module description.
35461         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
35462         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
35463         here...
35464         * modules/atexit (configure.ac): ... to here.
35466 2011-05-05  Bruno Haible  <bruno@clisp.org>
35468         atoll: Move AC_LIBOBJ invocations to module description.
35469         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
35470         invocations from here...
35471         * modules/atoll (configure.ac): ... to here.
35473 2011-05-05  Bruno Haible  <bruno@clisp.org>
35475         argz: Move AC_LIBOBJ invocations to module description.
35476         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
35477         * modules/argz (configure.ac): ... to here.
35479 2011-05-05  Bruno Haible  <bruno@clisp.org>
35481         alphasort: Move AC_LIBOBJ invocations to module description.
35482         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
35483         gl_PREREQ_ALPHASORT invocations from here...
35484         * modules/alphasort (configure.ac): ... to here.
35486 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
35488         verify: new macro verify_expr; verify_true deprecated
35489         * NEWS: Mention this.
35490         * doc/verify.texi (Compile-time Assertions): Document this.
35491         * lib/verify.h (verify_true): Deprecate.
35492         (verify_expr): New macro.
35493         * tests/test-verify.c (function): Test verify_expr.
35495 2011-06-14  Jim Meyering  <meyering@redhat.com>
35497         init.sh: give more portable redirection-related advice in a comment
35498         * tests/init.sh (stderr_fileno_): Update the advice in comments.
35499         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
35500         for lots of discussion.  Stefano Lattarini suggested the solution
35501         of putting "9>&2" after the command.  Reported by Bruno Haible.
35503 2011-06-13  Bruno Haible  <bruno@clisp.org>
35505         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
35506         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
35507         'none'.
35509 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
35511         ftoastr: use strtof only if HAVE_STRTOF
35512         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
35513         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
35514         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
35515         * modules/ftoastr (configure.ac): Check for strtof.
35517 2011-06-13  Bruno Haible  <bruno@clisp.org>
35519         gnulib-tool: Addendum to 2011-06-08 commit.
35520         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
35521         and --witness-c-macro have been given, augment AM_CPPFLAGS.
35523 2011-06-13  Bruno Haible  <bruno@clisp.org>
35525         fseeko: Provide a non-inline replacement of fseek().
35526         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
35527         * modules/fseeko (Depends-on): Add fseek.
35528         * modules/fseek (License): Change to LGPLv2+.
35530 2011-06-13  Bruno Haible  <bruno@clisp.org>
35532         ftello: Provide a non-inline replacement of ftell().
35533         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
35534         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
35535         not have ftello() (such as on mingw).
35536         * modules/ftello (Depends-on): Add ftell.
35537         * modules/ftell (License): Change to LGPLv2+.
35539 2011-05-07  Bruno Haible  <bruno@clisp.org>
35541         ftell: Move AC_LIBOBJ invocations to module description.
35542         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
35543         * modules/ftell (configure.ac): ... to here.
35545 2011-05-07  Bruno Haible  <bruno@clisp.org>
35547         ftello: Respect rules for use of AC_LIBOBJ.
35548         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
35549         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
35550         here...
35551         * modules/ftello (configure.ac): ... to here.
35553 2011-05-07  Bruno Haible  <bruno@clisp.org>
35555         fseeko: Simplify.
35556         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
35557         (gl_FUNC_FSEEKO): Inline it here.
35559 2011-05-07  Bruno Haible  <bruno@clisp.org>
35561         fseek: Move AC_LIBOBJ invocations to module description.
35562         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
35563         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
35564         * modules/fseek (configure.ac): ... to here.
35566 2011-05-07  Bruno Haible  <bruno@clisp.org>
35568         fseek: Respect rules for use of AC_LIBOBJ.
35569         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
35570         here...
35571         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
35573 2011-05-07  Bruno Haible  <bruno@clisp.org>
35575         fseeko: Respect rules for use of AC_LIBOBJ.
35576         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
35577         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
35578         here...
35579         * modules/fseeko (configure.ac): ... to here.
35581 2011-06-13  Bruno Haible  <bruno@clisp.org>
35583         gnulib-tool: Allow comments in the 'Depends-on' section.
35584         * doc/gnulib.texi (Module description): Mention comment syntax in the
35585         Depends-on section.
35586         * gnulib-tool (func_get_dependencies): Filter out comment lines.
35588 2011-06-13  Bruno Haible  <bruno@clisp.org>
35590         file-set.h: guard __attibute__ use, now that it's not always defined
35591         * lib/file-set.h (record_file): Use __attribute__ only with compiler
35592         versions that support it.  This fixes a coreutils build failure with
35593         the vendor cc on HP-UX 11.31.
35595 2011-06-12  Bruno Haible  <bruno@clisp.org>
35597         acl: Add support for HP-UX >= 11.11 JFS ACLs.
35598         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
35599         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
35600         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
35601         (acl, aclsort): New declarations.
35602         (aclv_nontrivial): New declaration.
35603         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
35604         (file_has_acl): Read also the second kind of HP-UX ACLs.
35605         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
35606         kind of HP-UX ACLs if the first kind fails.
35607         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
35608         second kind of HP-UX ACLs.
35609         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
35610         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
35611         agree.
35612         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
35613         hpuxjfs.
35614         Handle hpuxjfs.
35615         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
35616         hpuxjfs.
35617         Handle hpuxjfs.
35618         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
35619         (func_test_same_acls): Use both lsacl and getacl.
35620         Handle hpuxjfs.
35621         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
35622         (func_test_same_acls): Use both lsacl and getacl.
35623         Handle hpuxjfs.
35625 2011-06-12  Bruno Haible  <bruno@clisp.org>
35627         acl: Complete the 2010-08-10 fix.
35628         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
35629         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
35630         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
35631         explicitly.
35632         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
35633         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
35635 2011-06-12  Bruno Haible  <bruno@clisp.org>
35637         spawn-pipe tests: Comments.
35638         * tests/test-spawn-pipe-child.c (main): Update comment.
35639         Reported by James Youngman <jay@gnu.org>.
35641 2011-06-11  James Youngman  <jay@gnu.org>
35643         New module 'stat-size'.
35644         * modules/stat-size: New module.  Provides macros for accessing
35645         file size information in instances of struct stat.  Depends on the
35646         fileblocks module because it calls st_blocks.
35647         * lib/stat-size.h: New file, adapted from coreutils' system.h.
35648         * doc/gnulib.texi: Include stat-size.texi.
35649         * doc/stat-size.texi: Documentation for this module.
35650         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
35651         * m4/fileblocks.m4: Mention that stat-size depends on the call to
35652         AC_STRUCT_ST_BLOCKS.
35654 2011-06-09  Bruno Haible  <bruno@clisp.org>
35656         thread: Support pthreads-win32.
35657         * lib/glthread/thread.h (gl_thread_self): Define differently on
35658         pthreads-win32.
35659         (gl_null_thread): New declaration.
35660         (gl_thread_self_pointer): New macro.
35661         * lib/glthread/thread.c (gl_null_thread): New constant.
35662         * tests/test-lock.c: Use gl_thread_self_pointer instead of
35663         gl_thread_self.
35664         * tests/test-tls.c: Likewise.
35665         Suggested by Paul Eggert. Reported by Eric Blake.
35667 2011-06-09  Bruno Haible  <bruno@clisp.org>
35669         thread: Fix confusion between NULL and 0.
35670         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
35671         Reported by Paul Eggert.
35673 2011-06-09  Bruno Haible  <bruno@clisp.org>
35675         spawn-pipe tests: Avoid test failure on HP-UX 11.
35676         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
35677         is closed.
35679 2011-06-09  Bruno Haible  <bruno@clisp.org>
35681         acl tests: Fix compilation error on HP-UX 11.
35682         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
35684 2011-06-09  Bruno Haible  <bruno@clisp.org>
35686         rmdir: Avoid test failure on HP-UX 10.20.
35687         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
35688         EEXIST.
35690 2011-06-08  Eric Blake  <eblake@redhat.com>
35692         perror: fix test on mingw
35693         * modules/perror-tests (Depends-on): Add dup2.
35695         strerror_r-posix: fix on MacOS
35696         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
35697         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
35698         logic bug.
35699         * lib/strerror_r.c (strerror_r): Fix the bug.
35700         * lib/strerror.c (strerror): Likewise.
35701         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
35702         problem.
35703         * doc/posix-functions/strerror.texi (strerror): Likewise.
35704         * doc/posix-functions/perror.texi (perror): Likewise.
35705         * tests/test-strerror.c (main): Enhance test.
35706         * tests/test-strerror_r.c (main): Likewise.
35708 2011-06-08  Bruno Haible  <bruno@clisp.org>
35710         gnulib-tool: Better isolation between different gnulib-tool invocations.
35711         * gnulib-tool: New option --witness-c-macro.
35712         (witness_c_macro): New variable.
35713         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
35714         AM_CPPFLAGS define it as a C macro.
35715         (func_emit_tests_Makefile_am): Likewise.
35716         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
35717         read it from there.
35718         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
35719         m4_define, not AC_DEFUN.
35720         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
35721         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
35722         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
35723         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
35724         s|...|...|, to substitute the values of the GNULIB_* module indicator
35725         variables.
35726         * modules/dirent (Makefile.am): Likewise.
35727         * modules/fcntl-h (Makefile.am): Likewise.
35728         * modules/iconv-h (Makefile.am): Likewise.
35729         * modules/langinfo (Makefile.am): Likewise.
35730         * modules/locale (Makefile.am): Likewise.
35731         * modules/math (Makefile.am): Likewise.
35732         * modules/netdb (Makefile.am): Likewise.
35733         * modules/poll-h (Makefile.am): Likewise.
35734         * modules/pty (Makefile.am): Likewise.
35735         * modules/search (Makefile.am): Likewise.
35736         * modules/signal (Makefile.am): Likewise.
35737         * modules/spawn (Makefile.am): Likewise.
35738         * modules/stdio (Makefile.am): Likewise.
35739         * modules/stdlib (Makefile.am): Likewise.
35740         * modules/string (Makefile.am): Likewise.
35741         * modules/sys_ioctl (Makefile.am): Likewise.
35742         * modules/sys_select (Makefile.am): Likewise.
35743         * modules/sys_socket (Makefile.am): Likewise.
35744         * modules/sys_stat (Makefile.am): Likewise.
35745         * modules/sys_times (Makefile.am): Likewise.
35746         * modules/sys_utsname (Makefile.am): Likewise.
35747         * modules/sys_wait (Makefile.am): Likewise.
35748         * modules/termios (Makefile.am): Likewise.
35749         * modules/time (Makefile.am): Likewise.
35750         * modules/unistd (Makefile.am): Likewise.
35751         * modules/wchar (Makefile.am): Likewise.
35753 2011-06-08  Eric Blake  <eblake@redhat.com>
35755         strerror: simplify replacement
35756         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
35757         * modules/strerror (configure.ac): No prereqs needed here...
35758         * modules/strerror-override (configure.ac): ...but this needs it.
35759         (Files): Add file for needed prereq macro.
35761 2011-06-08  Bruno Haible  <bruno@clisp.org>
35763         strerror_r-posix: Tweaks.
35764         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
35765         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
35766         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
35767         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
35768         (gl_FUNC_STRERROR_R): ... to here.
35769         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
35771 2011-06-07  Eric Blake  <eblake@redhat.com>
35773         perror: document fixed bugs
35774         * doc/posix-functions/perror.texi (perror): Document recent
35775         patches.
35777 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
35779         stat-time: get_stat_birthtime failure is better-defined
35780         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
35781         return a timestamp whose tv_sec and tv_nsec values are both -1.
35782         Previously, the spec said only that the tv_nsec value was negative.
35783         This upward-compatible change simplifies GNU tar a bit.
35785 2011-06-07  Eric Blake  <eblake@redhat.com>
35787         strerror_r-posix: work around cygwin 1.7.9
35788         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
35789         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
35790         bug without replacing strerror_r.
35791         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
35792         strerror_r is buggy, but without requiring strerror_r compilation.
35793         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
35795         test-perror: relax test to ignore cygwin bug
35796         * tests/test-perror2.c (main): Relax test on requiring detection
35797         of stream errors, and use unbuffered stream.
35798         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
35799         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
35800         * doc/posix-functions/fputc.texi (fputc): Likewise.
35801         * doc/posix-functions/fputs.texi (fputs): Likewise.
35802         * doc/posix-functions/fputws.texi (fputws): Likewise.
35803         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
35804         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
35805         * doc/posix-functions/getopt.texi (getopt): Likewise.
35806         * doc/posix-functions/perror.texi (perror): Likewise.
35807         * doc/posix-functions/printf.texi (printf): Likewise.
35808         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
35809         * doc/posix-functions/psignal.texi (psignal): Likewise.
35810         * doc/posix-functions/putc.texi (putc): Likewise.
35811         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
35812         Likewise.
35813         * doc/posix-functions/putchar.texi (putchar): Likewise.
35814         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
35815         Likewise.
35816         * doc/posix-functions/puts.texi (puts): Likewise.
35817         * doc/posix-functions/putwc.texi (putwc): Likewise.
35818         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
35819         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
35820         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
35821         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
35822         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
35823         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
35824         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
35825         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
35827 2011-05-22  Bruno Haible  <bruno@clisp.org>
35829         strerror: Move AC_LIBOBJ invocations to module description.
35830         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
35831         gl_PREREQ_STRERROR invocations from here...
35832         * modules/strerror (configure.ac): ... to here.
35834 2011-05-21  Bruno Haible  <bruno@clisp.org>
35836         perror: Use common idiom.
35837         * modules/perror (configure.ac): Reorder statements.
35839 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
35841         tests: fix usage message in 'mktempd_'
35842         * tests/init.sh (mktempd_): In the usage message, use literal
35843         'mktempd_', not '$ME' (which is even undefined), as the name of
35844         the subroutine.
35846 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
35848         tests init: new function 'fatal_', for hard errors
35849         Before this patch, the only way offered by tests/init.sh to
35850         properly signal a hard error was the `framework_failure_'
35851         function.  But the error message issued by that function,
35852         as its name would suggest, refers to a set-up failure in the
35853         testsuite, while hard errors can obviously also be due to
35854         other reasons.  The best way to fix this inconsistency is to
35855         introduce a new function with a more general error message.
35856         * tests/init.sh (fatal_): New function.
35858 2011-06-06  Eric Blake  <eblake@redhat.com>
35860         canonicalize-lgpl: use common idiom
35861         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
35862         over newer POSIX -Rf.
35863         Reported by Bruno Haible.
35865         canonicalize-lgpl: work around AIX realpath bug
35866         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
35867         * doc/posix-functions/realpath.texi (realpath): Document it.
35868         Reported by Bruno Haible.
35870         strerror: work around FreeBSD bug
35871         * lib/strerror.c (strerror): Special case 0.
35872         Reported by Bruno Haible.
35874         strerror-override: avoid bloating errno module
35875         * modules/errno (Files, configure.ac): Move replacement strings...
35876         * modules/strerror-override: ...to new module.
35877         * modules/strerror (Depends-on): Add strerror-override.
35878         * modules/strerror_r-posix (Depends-on): Likewise.
35879         * MODULES.html.sh: Document new module.
35880         Reported by Bruno Haible.
35882 2011-06-06  Bruno Haible  <bruno@clisp.org>
35884         spawn-pipe tests: Rename program.
35885         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
35886         * tests/test-spawn-pipe-child.c: Update comment.
35887         * tests/test-spawn-pipe.sh: Update.
35888         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
35890         spawn-pipe tests: Link the child program only against libc.
35891         * tests/test-spawn-pipe-child.c: New file, extracted from
35892         tests/test-spawn-pipe.c.
35893         (main): Expect only one argument.
35894         (is_open): New function, copied from tests/test-pipe.c.
35895         * tests/test-spawn-pipe.c: Don't include <errno.h>.
35896         (child_main): Remove function.
35897         (test_pipe): Pass only one argument to the child program.
35898         (main): Remove child process code. Expect the child program's name as
35899         first argument.
35900         * tests/test-spawn-pipe.sh: Pass the child program's name as first
35901         argument.
35902         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
35903         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
35904         test-spawn-pipe-child against no libraries.
35906 2011-06-06  Bruno Haible  <bruno@clisp.org>
35908         careadlinkat: Avoid mismatch between ssize_t and int.
35909         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
35910         * lib/careadlinkat.c (careadlinkatcwd): Define always.
35912 2011-06-06  Jim Meyering  <meyering@redhat.com>
35914         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
35915         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
35916         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
35918 2011-06-05  Bruno Haible  <bruno@clisp.org>
35920         ansi-c++-opt: Interoperability with libtool.
35921         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
35922         set the variable to "no", not to ":".
35923         * NEWS: Mention the change.
35925 2011-06-05  Bruno Haible  <bruno@clisp.org>
35927         acl: Fix test failure on AIX 7.
35928         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
35929         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
35931 2011-06-05  Bruno Haible  <bruno@clisp.org>
35933         pipe-filter-ii: Fix test failure on AIX and IRIX.
35934         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
35935         with EAGAIN, retry with a smaller buffer size.
35937 2011-06-05  Bruno Haible  <bruno@clisp.org>
35939         localename: Fix link dependencies.
35940         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
35941         * modules/localename-tests (Makefile.am): Link test-localename with
35942         $(LIBTHREAD).
35944 2011-06-05  Bruno Haible  <bruno@clisp.org>
35946         error: Avoid gcc warning.
35947         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
35949 2011-06-05  Bruno Haible  <bruno@clisp.org>
35951         unsetenv: Avoid gcc warning.
35952         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
35954 2011-06-05  Bruno Haible  <bruno@clisp.org>
35956         setenv: Avoid gcc warning.
35957         * lib/setenv.c (setenv): Provide declaration if system lacks it.
35959 2011-06-05  Bruno Haible  <bruno@clisp.org>
35961         sys_select: Ensure memset is declared also on AIX 7.
35962         * lib/sys_select.in.h: Include <string.h> also on AIX.
35963         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
35964         self-contained also on AIX 7.1.
35966 2011-06-04  Jim Meyering  <meyering@redhat.com>
35968         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
35969         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
35970         function name, "error".
35971         (_gl_translatable_diag_func_re): New configurable variable.
35973 2011-06-04  Bruno Haible  <bruno@clisp.org>
35975         getopt: Avoid gcc warning.
35976         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
35978 2011-06-04  Bruno Haible  <bruno@clisp.org>
35980         strerror_r: Fix comments.
35981         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
35982         commit.
35984 2011-06-04  Bruno Haible  <bruno@clisp.org>
35986         perror: Fix compilation error.
35987         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
35988         Undefine fprintf, not sprintf.
35989         * modules/perror (Depends-on): Remove intprops, verify.
35991 2011-06-04  Bruno Haible  <bruno@clisp.org>
35993         setlocale: Enable replacement on Cygwin 1.5.
35994         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
35995         Cygwin 1.5.x.
35996         * doc/posix-functions/setlocale.texi: Mention that the problem with the
35997         LC_CTYPE category also exists on Cygwin 1.5.x.
35999 2011-06-04  Bruno Haible  <bruno@clisp.org>
36001         strerror-override: Don't disable symbol renamings.
36002         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
36003         * lib/strerror-override.c: Include config.h.
36004         (strerror_override): Don't undefine.
36006 2011-06-03  Bruno Haible  <bruno@clisp.org>
36008         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
36009         * lib/localename.h: Update copyright header.
36010         * lib/localename.c: Likewise.
36011         * lib/relocatable.h: Likewise.
36012         * lib/relocatable.c: Likewise.
36014 2011-06-02  Bruno Haible  <bruno@clisp.org>
36016         doc: Fix a module name.
36017         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
36019 2011-06-02  Bruno Haible  <bruno@clisp.org>
36021         pipe2: Remove dependency on 'nonblocking' module.
36022         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
36023         O_NONBLOCK is defined by gnulib.
36024         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
36025         is zero.
36026         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
36027         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
36028         defined by gnulib.
36029         (get_nonblocking_flag): New function.
36030         (main): Test O_NONBLOCK flag only if it is nonzero.
36031         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
36033 2011-06-03  Jim Meyering  <meyering@redhat.com>
36035         maint: three new prohibit-header-without-use rules
36036         Prohibit use of cloexec.h, posixver.h, same.h without use.
36037         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
36038         (sc_prohibit_posixver_without_use): Likewise.
36039         (sc_prohibit_same_without_use): Likewise.
36041 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
36043         allocator: 'die' routine is now given requested size
36044         * lib/allocator.h (struct allocator.die): New size arg.
36045         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
36046         If the actual problem is an ssize_t limitation, not a size_t or
36047         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
36049 2011-06-01  Eric Blake  <eblake@redhat.com>
36051         strerror: drop strerror_r dependency
36052         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
36053         * lib/strerror-override.c (strerror_override): ...to new file.
36054         * lib/strerror-override.h: Add prototype.
36055         * lib/strerror-impl.h: Delete.
36056         * lib/strerror.c (strerror): New implementation.
36057         * modules/errno (Files): Add new files.
36058         (configure.ac): Compile new file as appropriate.
36059         * modules/strerror (Files): Drop unused file.
36060         (Depends-on): Drop strerror_r-posix.
36061         * MODULES.html.sh: Document strerror_r-posix.
36062         Requested by Sam Steingold.
36064         perror: call strerror_r directly
36065         * modules/perror (Files): Drop strerror-impl.h.
36066         * lib/perror.c (perror): Use our own stack buffer, rather than
36067         calling a wrapper that uses static storage.
36068         * doc/posix-functions/perror.texi (perror): Document a limitation
36069         of our replacement.
36071         strerror_r: fix includes for FreeBSD
36072         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
36073         since we use abort on some platforms.
36074         Reported by Matthias Bolte.
36076 2011-05-31  Bruno Haible  <bruno@clisp.org>
36078         Fix link errors in tests: openat-die uses gettext-h.
36079         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
36080         against $(LIBINTL).
36081         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
36082         against $(LIBINTL).
36083         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
36084         $(LIBINTL).
36085         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
36086         against $(LIBINTL).
36087         * modules/linkat-tests (Makefile.am): Link test-linkat against
36088         $(LIBINTL).
36089         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
36090         $(LIBINTL).
36091         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
36092         against $(LIBINTL).
36093         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
36094         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
36095         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
36096         $(LIBINTL).
36097         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
36098         $(LIBINTL).
36099         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
36100         $(LIBINTL).
36101         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36103 2011-05-31  Bruno Haible  <bruno@clisp.org>
36105         Fix link errors in tests: wait-process uses gettext-h.
36106         * modules/nonblocking-pipe-tests (Makefile.am): Set
36107         test_nonblocking_pipe_main_LDADD.
36108         * modules/nonblocking-socket-tests (Makefile.am): Link
36109         test-nonblocking-socket-main against $(LIBINTL).
36110         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36112 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
36114         assert-h: work around 'verify' incompatibility
36115         * lib/verify.h: Use @...@ directives, not ifdef.
36116         * modules/assert-h (assert.h): Implement the directives.
36117         (assert.h): Substitute the symbol-prefix more consistently.
36119 2011-05-29  Jim Meyering  <meyering@redhat.com>
36121         trim: remove three superfluous assignments
36122         * lib/trim.c (trim2): Remove three superfluous assignments
36123         and correct brace positioning.
36125 2011-05-29  Bruno Haible  <bruno@clisp.org>
36127         wctype-h: Avoid namespace pollution on Solaris 2.6.
36128         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
36129         identifiers.
36130         * doc/posix-headers/wctype.texi: Mention the problem.
36131         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36133 2011-05-28  Jim Meyering  <meyering@redhat.com>
36135         parse-datetime.y: accommodate -Wstrict-overflow
36136         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
36137         placate -Wstrict-overflow.
36139         trim: avoid a warning from -O2 -Wstrict-overflow
36140         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
36142 2011-05-29  Bruno Haible  <bruno@clisp.org>
36144         gnulib-tool: Fix bug in yesterday's commit.
36145         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
36146         twice.
36148 2011-05-29  Bruno Haible  <bruno@clisp.org>
36150         Allow multiple gnulib generated include files to be combined.
36151         * gnulib-tool (func_compute_include_guard_prefix): New function.
36152         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
36153         ${gl_include_guard_prefix} references.
36154         (func_import, func_create_testdir): Invoke
36155         func_compute_include_guard_prefix.
36156         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
36157         * lib/ctype.in.h: Likewise.
36158         * lib/dirent.in.h: Likewise.
36159         * lib/errno.in.h: Likewise.
36160         * lib/fcntl.in.h: Likewise.
36161         * lib/float.in.h: Likewise.
36162         * lib/getopt.in.h: Likewise.
36163         * lib/iconv.in.h: Likewise.
36164         * lib/langinfo.in.h: Likewise.
36165         * lib/locale.in.h: Likewise.
36166         * lib/math.in.h: Likewise.
36167         * lib/netdb.in.h: Likewise.
36168         * lib/netinet_in.in.h: Likewise.
36169         * lib/poll.in.h: Likewise.
36170         * lib/pthread.in.h: Likewise.
36171         * lib/pty.in.h: Likewise.
36172         * lib/sched.in.h: Likewise.
36173         * lib/se-selinux.in.h: Likewise.
36174         * lib/search.in.h: Likewise.
36175         * lib/signal.in.h: Likewise.
36176         * lib/spawn.in.h: Likewise.
36177         * lib/stdarg.in.h: Likewise.
36178         * lib/stddef.in.h: Likewise.
36179         * lib/stdint.in.h: Likewise.
36180         * lib/stdio.in.h: Likewise.
36181         * lib/stdlib.in.h: Likewise.
36182         * lib/string.in.h: Likewise.
36183         * lib/strings.in.h: Likewise.
36184         * lib/sys_file.in.h: Likewise.
36185         * lib/sys_ioctl.in.h: Likewise.
36186         * lib/sys_select.in.h: Likewise.
36187         * lib/sys_socket.in.h: Likewise.
36188         * lib/sys_stat.in.h: Likewise.
36189         * lib/sys_time.in.h: Likewise.
36190         * lib/sys_times.in.h: Likewise.
36191         * lib/sys_uio.in.h: Likewise.
36192         * lib/sys_utsname.in.h: Likewise.
36193         * lib/sys_wait.in.h: Likewise.
36194         * lib/sysexits.in.h: Likewise.
36195         * lib/termios.in.h: Likewise.
36196         * lib/time.in.h: Likewise.
36197         * lib/unistd.in.h: Likewise.
36198         * lib/wchar.in.h: Likewise.
36199         * lib/wctype.in.h: Likewise.
36200         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
36201         * modules/ctype (Makefile.am): Likewise.
36202         * modules/dirent (Makefile.am): Likewise.
36203         * modules/errno (Makefile.am): Likewise.
36204         * modules/fcntl-h (Makefile.am): Likewise.
36205         * modules/float (Makefile.am): Likewise.
36206         * modules/getopt-posix (Makefile.am): Likewise.
36207         * modules/iconv-h (Makefile.am): Likewise.
36208         * modules/langinfo (Makefile.am): Likewise.
36209         * modules/locale (Makefile.am): Likewise.
36210         * modules/math (Makefile.am): Likewise.
36211         * modules/netdb (Makefile.am): Likewise.
36212         * modules/netinet_in (Makefile.am): Likewise.
36213         * modules/poll-h (Makefile.am): Likewise.
36214         * modules/pthread (Makefile.am): Likewise.
36215         * modules/pty (Makefile.am): Likewise.
36216         * modules/sched (Makefile.am): Likewise.
36217         * modules/search (Makefile.am): Likewise.
36218         * modules/selinux-h (Makefile.am): Likewise.
36219         * modules/signal (Makefile.am): Likewise.
36220         * modules/spawn (Makefile.am): Likewise.
36221         * modules/stdarg (Makefile.am): Likewise.
36222         * modules/stddef (Makefile.am): Likewise.
36223         * modules/stdint (Makefile.am): Likewise.
36224         * modules/stdio (Makefile.am): Likewise.
36225         * modules/stdlib (Makefile.am): Likewise.
36226         * modules/string (Makefile.am): Likewise.
36227         * modules/strings (Makefile.am): Likewise.
36228         * modules/sys_file (Makefile.am): Likewise.
36229         * modules/sys_ioctl (Makefile.am): Likewise.
36230         * modules/sys_select (Makefile.am): Likewise.
36231         * modules/sys_socket (Makefile.am): Likewise.
36232         * modules/sys_stat (Makefile.am): Likewise.
36233         * modules/sys_time (Makefile.am): Likewise.
36234         * modules/sys_times (Makefile.am): Likewise.
36235         * modules/sys_uio (Makefile.am): Likewise.
36236         * modules/sys_utsname (Makefile.am): Likewise.
36237         * modules/sys_wait (Makefile.am): Likewise.
36238         * modules/sysexits (Makefile.am): Likewise.
36239         * modules/termios (Makefile.am): Likewise.
36240         * modules/time (Makefile.am): Likewise.
36241         * modules/unistd (Makefile.am): Likewise.
36242         * modules/wchar (Makefile.am): Likewise.
36243         * modules/wctype-h (Makefile.am): Likewise.
36244         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
36246 2011-05-29  Bruno Haible  <bruno@clisp.org>
36248         assert-h: Allow multiple gnulib generated replacements to coexist.
36249         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
36251 2011-05-29  Bruno Haible  <bruno@clisp.org>
36253         argp: Allow coexistence with strerror_r-posix module.
36254         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
36255         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
36256         by gnulib's <string.h> replacement), assume it has the POSIX signature,
36257         not the glibc signature.
36259 2011-05-28  Bruno Haible  <bruno@clisp.org>
36261         gnulib-tool: Alternative structure of testdirs, similar to --import.
36262         * gnulib-tool: New option --single-configure.
36263         (func_usage): Document it.
36264         (single_configure): New variable.
36265         (func_modules_transitive_closure_separately,
36266         func_modules_transitive_closure_separately,
36267         func_determine_use_libtests, func_modules_add_dummy_separately,
36268         func_modules_to_filelist_separately): New functions, extracted from
36269         func_import.
36270         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
36271         (func_import): Use the new functions.
36272         (func_create_testdir): Set final_modules. Handle $single_configure =
36273         true case.
36275 2011-05-28  Bruno Haible  <bruno@clisp.org>
36277         getloadavg: Remove an unreliable safety check.
36278         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
36279         getloadavg.c is in place.
36280         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
36281         Reported by Sam Steingold <sds@gnu.org>.
36283 2011-05-28  Bruno Haible  <bruno@clisp.org>
36285         doc: Cleanup yet another file produced by texinfo.tex.
36286         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
36288 2011-05-28  Bruno Haible  <bruno@clisp.org>
36290         Finish the conditional dependencies mechanism.
36291         * gnulib-tool: New option --no-conditional-dependencies.
36292         (func_usage): Document it. Don't mark --conditional-dependencies as
36293         experimental.
36294         (cond_dependencies): The possible values can now be true, false, empty.
36295         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
36296         (func_import): Store setting in gnulib-cache.m4 and read it from there.
36297         * doc/gnulib-tool.texi (Conditional dependencies): New section.
36299 2011-05-28  Bruno Haible  <bruno@clisp.org>
36301         doc: Use a recent texinfo.tex.
36302         * doc/Makefile (tex_opts): New variable.
36303         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
36305 2011-05-28  Jim Meyering  <meyering@redhat.com>
36307         intprops.h: adjust comment to match code change
36308         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
36309         only once, it *may* have side effects.  Also fix an unrelated typo.
36310         (_GL_INT_SIGNED): Likewise.
36312 2011-05-26  Simon Josefsson  <simon@josefsson.org>
36314         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
36316 2011-05-26  Bruno Haible  <bruno@clisp.org>
36318         mbsrchr: Avoid collision with system function on Interix.
36319         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
36320         Reported by Markus Duft <mduft@gentoo.org>.
36322 2011-05-15  James Youngman  <jay@gnu.org>
36324         getopt: for ambiguous options, enumerate the possibilities.
36325         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
36326         the ambiguous options when an ambiguous prefix is given. This was
36327         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
36328         glibc change was
36329         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
36331 2011-05-25  Eric Blake  <eblake@redhat.com>
36333         getcwd: work around mingw bug
36334         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
36335         * doc/posix-functions/getcwd.texi (getcwd): Document it.
36336         Reported by Matthias Bolte.
36338 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
36340         test-intprops: disable -Wtype-limits diagnostics
36341         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
36342         diagnostics.  Otherwise, the integer overflow macros generate many
36343         diagnostics.  Reported by Jim Meyering in
36344         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
36346         intprops: shorten, to pacify gcc -Woverlength-strings
36347         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
36348         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
36349         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
36350         likely to run afoul of C compiler limits for string constant lengths.
36351         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
36353 2011-05-24  Eric Blake  <eblake@redhat.com>
36355         docs: document recently fixed glibc printf bug
36356         * doc/posix-functions/fprintf.texi (fprintf): Document it.
36357         * doc/posix-functions/printf.texi (printf): Likewise.
36358         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
36359         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
36361         closein-tests: convert to init.sh
36362         * modules/closein-tests (Files): Add init.sh
36363         * tests/test-closein.sh Use it.
36365         yesno-tests: convert to init.sh
36366         * modules/yesno-tests (Files): Add init.sh.
36367         * tests/test-yesno.sh: Use it.
36369         atexit-tests: ensure reliable exit status
36370         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
36371         Reported by Bruno Haible.
36373 2011-05-24  Bruno Haible  <bruno@clisp.org>
36375         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
36376         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
36377         gl_PREREQ_STRERROR_R invocations from here...
36378         * modules/strerror_r-posix (configure.ac): ... to here.
36380 2011-05-24  Eric Blake  <eblake@redhat.com>
36382         strerror_r: fix missing header
36383         * lib/strerror_r.c: Avoid compiler warning about snprintf.
36385         strerror_r: fix AIX test failures
36386         * lib/strerror_r.c (strerror_r): Convert silent truncation to
36387         ERANGE failure.
36389         strerror_r: fix Solaris test failures
36390         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
36391         failures.
36392         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
36394         strerror_r: enforce POSIX recommendations
36395         * lib/strerror_r.c (safe_copy): New helper method.
36396         (strerror_r): Guarantee a non-empty string.
36397         * tests/test-strerror_r.c (main): Enhance tests to incorporate
36398         recent POSIX rulings and to match our strerror guarantees.
36399         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
36401 2011-05-24  Jim Meyering  <meyering@redhat.com>
36403         test-perror2.c: avoid warning about unused variable
36404         * tests/test-perror2.c (main): Remove declaration of unused "fp".
36406 2011-05-24  Eric Blake  <eblake@redhat.com>
36408         perror: avoid spurious test failure on HP-UX
36409         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
36411         tests: fix logic bug in init.sh
36412         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
36413         shell.
36415 2011-05-24  Jim Meyering  <meyering@redhat.com>
36417         utimensat: do not reference an out-of-scope buffer
36418         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
36419         declared in an inner scope, yet "times" would be dereferenced outside
36420         the scope in which "ts" was valid.
36421         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
36422         of ts[2] "out/up", so that the use of aliased "times" (via
36423         "times = ts;") does not end up referencing an out-of-scope "ts"
36425         opendir-safer.c: don't clobber errno; don't close negative FD
36426         * lib/opendir-safer.c (opendir_safer):
36427         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
36428         file descriptor, and more importantly, don't clobber the
36429         offending errno value with EINVAL.  Before, upon failure
36430         of dup_safer, we would pass the negative file descriptor to
36431         fdopendir, which would clobber errno.
36433 2011-05-23  Bruno Haible  <bruno@clisp.org>
36435         idcache: Fix module description.
36436         * modules/idcache (Include): Set to "idcache.h".
36438 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
36440         gnulib-tool: fix portability problem with MacOS sed
36441         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
36442         before the "}".  Problem reported by Leo in
36443         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
36444         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
36445         sed_extract_condition1, sed_extract_condition2.
36447 2011-05-23  Bruno Haible  <bruno@clisp.org>
36449         hash: Simplify autoconf macro.
36450         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
36452 2011-05-23  Bruno Haible  <bruno@clisp.org>
36454         getugroups: Fix module description.
36455         * modules/getugroups (Include): Set to "getugroups.h".
36457 2011-05-23  Bruno Haible  <bruno@clisp.org>
36459         linkat: Simplify autoconf macro.
36460         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
36462 2011-05-23  Bruno Haible  <bruno@clisp.org>
36463             Eric Blake  <eblake@redhat.com>
36465         linkat, renameat: Update dependencies.
36466         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
36467         * modules/linkat (Depends-on): Likewise. Remove also readlink,
36468         symlinkat.
36470 2011-05-23  Jim Meyering  <meyering@redhat.com>
36472         maint.mk: more tight_scope improvements
36473         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
36474         (_gl_TS_headers): Define only in if-0'd block.
36475         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
36476         sometimes we must *not* use it.  Adjust uses accordingly.
36477         (sc_tight_scope): Use much simpler grep-based test to determine
36478         whether we skip this rule.
36480         maint.mk: generalize/improve the tight-scope rule
36481         * top/maint.mk: Emit a warning when the test is skipped.
36482         (_gl_TS_dir): Add $(srcdir)/ prefix.
36483         (_gl_TS_function_match): Simplify, rather than trying
36484         to enumerate common types.  Otherwise, it would fail to match an
36485         "extern unsigned char const *" declaration in idutils.
36486         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
36487         a way to support use of that type of macro.
36488         (_gl_TS_var_match): Simplify regexp.
36489         (_gl_TS_obj_files): New configurable variable.
36490         (_gl_TS_headers): Likewise.
36492 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
36494         verify: fix bug when gnulib <assert.h> is also included
36495         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
36496         is defined, not if _GL_STATIC_ASSERT_H is not defined.
36497         Perhaps there's a better way, but this fixes the immediate problem.
36498         Problem reported by Bruno Haible in
36499         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
36501 2011-05-22  Bruno Haible  <bruno@clisp.org>
36503         xgetcwd: Simplify autoconf macro.
36504         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
36506 2011-05-22  Bruno Haible  <bruno@clisp.org>
36508         New module 'mktime-internal'.
36509         * modules/mktime-internal: New file.
36510         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
36511         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
36512         mktime_internal as a C macro if libc has __mktime_internal.
36513         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
36514         conditions.
36515         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
36517 2011-05-22  Bruno Haible  <bruno@clisp.org>
36519         timegm: Correct mktime replacement statements.
36520         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
36521         defining mktime as a C macro. This completes a 2009-07-28 commit.
36523 2011-05-22  Bruno Haible  <bruno@clisp.org>
36525         timegm: Simplify autoconf macro.
36526         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
36528 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
36530         clock-time: change to LGPLv2+.
36531         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
36532         BSD-like but we have no mark for that; this is good enough for now.
36534 2011-05-21  Bruno Haible  <bruno@clisp.org>
36536         strerror_r: Fix comments.
36537         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
36539 2011-05-21  Bruno Haible  <bruno@clisp.org>
36541         relocatable-prog-wrapper: Fix possible link error.
36542         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
36543         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
36544         (gl_FUNC_SETENV): ... to here.
36545         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
36546         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
36548 2011-05-21  Bruno Haible  <bruno@clisp.org>
36550         relocatable-prog-wrapper: Assume strerror() exists.
36551         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
36552         m4/strerror.m4.
36553         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
36554         * lib/relocwrapper.c: Remove mention of strerror module.
36555         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
36556         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
36557         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
36558         C macro.
36560 2011-05-21  Bruno Haible  <bruno@clisp.org>
36562         select: Simplify replacement idiom.
36563         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
36564         Win32 platforms.
36565         * lib/sys_select.in.h (select): Simplify accordingly.
36566         * modules/select (Depends-on): Likewise.
36568 2011-05-21  Bruno Haible  <bruno@clisp.org>
36570         mkdir-p: Simplify autoconf macro.
36571         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
36572         gl_FUNC_LCHOWN.
36574 2011-05-21  Eric Blake  <eblake@redhat.com>
36576         strerror_r: avoid clobbering strerror on cygwin
36577         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
36578         fall back instead to sys_errlist.
36579         * modules/strerror (configure.ac): Add witness.
36580         * tests/test-strerror_r.c (main): Enhance test.
36581         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
36582         * tests/test-perror2.c (main): Free memory before exit.
36584 2011-05-21  Bruno Haible  <bruno@clisp.org>
36586         mkdtemp: Use gnulib naming conventions.
36587         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
36588         * modules/mkdtemp (configure.ac): Update.
36590 2011-05-20  Eric Blake  <eblake@redhat.com>
36592         strerror_r: avoid corrupting errno on Solaris
36593         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
36594         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
36596         strerror_r: avoid compiler warning
36597         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
36599         strerror_r: simplify AIX code
36600         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
36602         test-perror: avoid spurious failure on FreeBSD
36603         * modules/perror-tests (Depends-on): Add strerror, now that
36604         strerror_r no longer pulls it in.
36606 2011-05-20  Bruno Haible  <bruno@clisp.org>
36608         strerror_r-posix: Remove unused dependencies.
36609         * modules/strerror_r-posix (Depends-on): Remove strerror.
36610         Reported by Eric Blake.
36612 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
36614         intprops: remove assumption about A|B representation
36615         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
36616         is a valid integer if both A and B are.  Although this is true for
36617         all known practical hosts, the C standard doesn't guarantee it,
36618         and the code need not assume it.  Also, this change may work around
36619         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
36620         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
36622 2011-05-20  Eric Blake  <eblake@redhat.com>
36624         perror: work around FreeBSD bug
36625         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
36626         is broken.  Move AC_LIBOBJ...
36627         * modules/perror (configure.ac): Here.
36628         * doc/posix-functions/perror.texi (perror): Document this.
36629         * tests/test-perror2.c (main): Enhance test.
36631         test-perror: check for strerror interactions
36632         * tests/macros.h (STREQ): Add macro.
36633         * modules/perror-tests (Files): Add second test.
36634         * tests/test-perror2.c (main): New file.
36635         * doc/posix-functions/perror.texi (perror): Document glibc bug.
36637         test-perror: rewrite to use init script
36638         * modules/perror-tests (Files): Add init.sh.
36639         * tests/test-perror.sh: Use temporary directory.
36641 2011-05-20  Jim Meyering  <meyering@redhat.com>
36643         maint: replace misused "a" with "an"
36644         * doc/intprops.texi: "a integer"
36645         * doc/regex.texi: "a explanation"
36646         * lib/alignof.h: "a object"
36647         * lib/argmatch.h: "a explanation"
36648         * lib/argp-help.c: "a option" and "a OPTION_DOC"
36649         * lib/stdint.in.h: "a integer"
36650         * lib/userspec.c: "a owner"
36651         * doc/gnulib.texi: Fix "a idea", and reword.
36653 2011-05-19  Jim Meyering  <meyering@redhat.com>
36655         maint: correct misuse of "a" and "an"
36656         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
36657         * lib/argp-help.c: "an docum...": s/an/a/
36658         * lib/argp-parse.c: "An vector": s/An/A/
36659         * lib/execute.c: "an native": s/an/a/
36660         * lib/spawn-pipe.c: Likewise.
36661         * lib/gc.h: "an Gc_rc": s/an/a/
36662         * lib/unigbrk.in.h: "an grapheme": s/an/a/
36663         * lib/fts.c: "an stat.st_dev": s/an/a/
36665 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
36667         intprops-tests: work around HP-UX 11.23 cc bug with constants
36668         * tests/test-intprops.c (VERIFY): New macro.
36669         (main): Use it, instead of verify, to work around the compiler bug; see
36670         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
36672         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
36673         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
36674         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
36675         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
36676         (_GL_REMAINDER_OVERFLOW): Use it.
36678         intprops-tests: revert unsigned part of previous change
36679         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
36680         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
36681         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
36682         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
36684 2011-05-19  Bruno Haible  <bruno@clisp.org>
36686         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
36687         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
36688         strerror_r() returned without filling the buffer.
36689         Reported by Eric Blake.
36691 2011-05-19  Eric Blake  <eblake@redhat.com>
36693         strerror_r: guarantee unchanged errno
36694         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
36695         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
36696         failure.
36697         * tests/test-strerror_r.c (main): Enhance test.
36699 2011-05-19  Bruno Haible  <bruno@clisp.org>
36701         strerror_r: Reorder #if blocks.
36702         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
36703         for consistency with the previous commit.
36705 2011-05-19  Bruno Haible  <bruno@clisp.org>
36707         perror: Avoid clobbering the strerror buffer when possible.
36708         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
36709         * lib/strerror.c: Include it.
36710         * modules/strerror (Files): Add lib/strerror-impl.h.
36711         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
36712         (my_strerror): New function, defined through lib/strerror-impl.h.
36713         (perror): Use it instead of strerror.
36714         * modules/perror (Files): Add lib/strerror-impl.h.
36715         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
36717 2011-05-19  Eric Blake  <eblake@redhat.com>
36719         strerror_r: fix on newer cygwin
36720         * lib/strerror_r.c (strerror_r): Cygwin now has
36721         __xpg_strerror_r, use it.
36723 2011-05-19  Bruno Haible  <bruno@clisp.org>
36725         strerror_r: Avoid clobbering the strerror buffer when possible.
36726         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
36727         (sys_nerr, sys_errlist): New declarations.
36728         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
36729         HP-UX, native Win32, IRIX, and 32-bit Solaris.
36730         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
36732 2011-05-19  Bruno Haible  <bruno@clisp.org>
36734         strerror_r: Fix test failure on mingw.
36735         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
36736         EXTEND_STRERROR_R.
36737         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
36738         macros from errno.in.h instead.
36740 2011-05-19  Eric Blake  <eblake@redhat.com>
36742         strerror: relax test for Solaris
36743         * tests/test-strerror.c (main): Permit Solaris behavior.
36744         * tests/test-strerror_r.c (main): Likewise.
36746         strerror: enforce POSIX ruling on strerror(0)
36747         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
36748         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
36749         * lib/strerror_r.c (rpl_strerror_r): Work around it.
36750         * doc/posix-functions/strerror.texi (strerror): Document it.
36751         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
36752         * tests/test-strerror.c (main): Strengthen test.
36753         * tests/test-strerror_r.c (main): Likewise.
36755 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
36757         intprop-tests: port to older and more-pedantic compilers
36758         * modules/intprops-tests (Files): Add tests/macros.h.
36759         * tests/test-intprops.c: Include macros.h.
36760         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
36761         it's no longer documented to expand to an integer constant expression.
36762         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
36763         argument is floating point, as it's no longer documented to expand
36764         to an integer constant expression in that case.
36765         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
36766         compiler bugs reported by Bruno Haible.  See
36767         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
36768         (U0, U1): New constants, to work around the same bugs.  Also,
36769         in tests, use e.g., "(unsigned int) 39" rather than "39u".
36771         intprops: work around C compiler bugs
36772         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
36773         bug in Sun C 5.11 2010/08/13 and other compilers; see
36774         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
36776         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
36777         * doc/intprops.texi (Integer Type Determination): Fix
36778         documentation for TYPE_IS_INTEGER: it returns an constant
36779         expression, not an integer constant expression.  Fix doc for
36780         TYPE_SIGNED: it returns an integer constant expression only if its
36781         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
36782         hardly worth documented that way....)
36784 2011-05-18  Bruno Haible  <bruno@clisp.org>
36786         strerror_r: Avoid clobbering the strerror buffer when possible.
36787         * lib/strerror_r.c (strerror_r): Merge the three implementations.
36788         Handle gnulib defined errno values here. When strerror() returns NULL
36789         or an empty string, return EINVAL.
36790         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
36791         gnulib defined errno values here.
36792         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
36794 2011-05-18  Eric Blake  <eblake@redhat.com>
36796         fnmatch: avoid compiler warning
36797         * lib/fnmatch_loop.c (FCT): Use correct type.
36798         Reported by Matthias Bolte.
36800 2011-05-13  Jim Meyering  <meyering@redhat.com>
36802         maint.mk: three new prohibit_<HDR>_without_use rules
36803         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
36804         (sc_prohibit_stdio-safer_without_use): Likewise.
36805         (sc_prohibit_xfreopen_without_use): Likewise.
36807 2011-05-17  Jim Meyering  <meyering@redhat.com>
36809         announce-gen: fail if the NEWS delta is empty
36810         If there's nothing noteworthy in NEWS, then either you forgot
36811         or you shouldn't be releasing.
36812         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
36814 2011-05-17  Pádraig Brady  <P@draigBrady.com>
36816         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
36817         reserved symbols starting with double underscore from the check.
36819 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
36821         intprops: add doc
36822         * doc/intprops.texi: New file, documenting intprops.
36823         * doc/gnulib.texi (Particular Modules): Include it.
36825         verify: add doc to gnulib manual and fix example
36826         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
36827         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
36828         (Compile-time Assertions): Fix example so it can't overflow.
36830 2011-05-17  Jim Meyering  <meyering@redhat.com>
36832         warnings.m4: don't usurp save_CPPFLAGS variable name
36833         * m4/warnings.m4: Prefix local temporary variable name with gl_.
36835         doc: fix typo
36836         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
36838 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
36839             Bruno Haible  <bruno@clisp.org>
36841         doc: Tweak recent change.
36842         * README (Portability guidelines): Tweak new text.
36843         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
36844         Interix 6.1.
36846 2011-05-16  Eric Blake  <eblake@redhat.com>
36848         inttypes: avoid autoconf warning
36849         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
36850         * m4/stdint.m4 (gl_STDINT_H): Likewise.
36852 2011-05-16  Sam Steingold  <sds@gnu.org>
36853         and Eric Blake  <eblake@redhat.com>
36855         vc-list-files: accept multiple directory operands
36856         * build-aux/vc-list-files: Iterate over all remaining operands.
36858 2011-05-16  Bruno Haible  <bruno@clisp.org>
36860         Fix confusion regarding deprecated modules.
36861         * modules/calloc (Status, Notice): Mark module as deprecated, not
36862         obsolete.
36863         * modules/fnmatch-posix (Status, Notice): Likewise.
36864         * modules/getdate (Status, Notice): Likewise.
36865         * modules/getopt (Status, Notice): Likewise.
36866         * modules/malloc (Status, Notice): Likewise.
36867         * modules/pipe (Status, Notice): Likewise.
36868         * modules/realloc (Status, Notice): Likewise.
36869         * modules/rename-dest-slash (Status, Notice): Likewise.
36870         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
36871         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
36872         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
36873         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
36874         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
36876 2011-05-16  Bruno Haible  <bruno@clisp.org>
36878         doc: List the target platforms.
36879         * doc/gnulib-intro.texi (Target Platforms): New section.
36880         * doc/gnulib.texi (Introduction): Update menu.
36881         * README (Portability guidelines): Refer to the new section. Update
36882         statement about oldest supported environment. Remove rationale why
36883         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
36884         unportable C89 function.
36885         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
36886         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
36888 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
36890         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
36892 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
36894         intprops-tests: new module
36895         * modules/intprops-tests, tests/test-intprops.c: New files.
36897         intprops: add safe, portable integer overflow checking
36898         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
36899         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
36900         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
36901         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
36902         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
36903         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
36904         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
36905         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
36906         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
36907         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
36908         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
36910 2011-05-12  James Youngman  <jay@gnu.org>
36912         Add a test for glibc's Bugzilla bug #12378.
36913         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
36914         doesn't allow the literal matching of a lone "[" (which is
36915         required by POSIX).
36916         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
36918 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
36920         Sync glibc change fixing Bugzilla bug #12378.
36921         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
36922         beginning and fall back to matching as normal character if the
36923         string ends before the matching ']' is found.  This is what POSIX
36924         requires.
36926 2011-05-13  Eric Blake  <eblake@redhat.com>
36928         getcwd-lgpl: relax test for FreeBSD
36929         * doc/posix-functions/getcwd.texi (getcwd): Document portability
36930         issue.
36931         * tests/test-getcwd-lgpl.c (main): Relax test.
36932         Reported by Matthias Bolte.
36934 2011-05-11  Eric Blake  <eblake@redhat.com>
36936         test-fflush: silence compiler warning
36937         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
36939 2011-05-11  Bruno Haible  <bruno@clisp.org>
36941         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
36942         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
36943         * modules/canonicalize (Depends-on): Add 'nocrash'.
36944         * modules/canonicalize-lgpl (Depends-on): Likewise.
36945         * doc/posix-functions/realpath.texi: Update platforms list.
36946         Reported by Ryan Schmidt <ryandesign@macports.org>.
36948 2011-05-11  Bruno Haible  <bruno@clisp.org>
36950         group-member: Declare function in <unistd.h>.
36951         * lib/unistd.in.h (group_member): New declaration.
36952         * lib/group-member.h: Remove file.
36953         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
36954         * tests/test-unistd-c++.cc: Check signature of group_member.
36955         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
36956         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
36957         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
36958         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
36959         HAVE_GROUP_MEMBER.
36960         * modules/group-member (Files): Remove lib/group-member.h.
36961         (Depends-on): Add unistd. Specify conditions.
36962         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36963         (Include): Change to <unistd.h>.
36964         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
36965         HAVE_GROUP_MEMBER.
36966         * NEWS: Mention the change.
36967         * lib/euidaccess.c: Don't include group-member.h.
36969 2011-05-11  Bruno Haible  <bruno@clisp.org>
36971         group-member: Document module.
36972         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
36973         module.
36975 2011-05-11  Bruno Haible  <bruno@clisp.org>
36977         fclose: Fix mistake earlier today.
36978         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
36980 2011-05-11  Eric Blake  <eblake@redhat.com>
36982         fclose: preserve fflush errors
36983         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
36984         Reported by Jim Meyering.
36986         bootstrap: support a prereq of 'rpcgen -' on RHEL5
36987         * build-aux/bootstrap (check_versions): When no specific version
36988         is required, merely check that the app produces an exit status
36989         that indicates its existence.
36991         maint.mk: drop redundant check
36992         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
36993         the same but better.
36995 2011-05-11  Bruno Haible  <bruno@clisp.org>
36997         fclose: Fix possible link error.
36998         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
36999         unregister_shadow_fd. Improve comments.
37000         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
37001         Eric Blake.
37003 2011-05-11  Jim Meyering  <meyering@redhat.com>
37005         maint.mk: improve "can not" detection and generalize rule name
37006         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
37007         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
37008         Use the same technique as in sc_prohibit_doubled_word, so that
37009         we recognize "can not" also when the words are separated by a newline.
37010         Suggested by Eric Blake.
37011         (perl_filename_lineno_text_): Define.  Factored out of...
37012         (prohibit_doubled_word_): ...here.  Use the new definition.
37013         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
37014         (prohibit_undesirable_word_seq_RE_): New overridable variable.
37015         (ignore_undesirable_word_sequence_RE_): New overridable variable.
37017 2011-05-10  Eric Blake  <eblake@redhat.com>
37019         fclose: avoid double close race when possible
37020         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
37021         all but WINDOWS_SOCKETS.
37023 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
37025         openat: correct new comment
37026         * lib/openat-proc.c (openat_proc_name): Correct the comment.
37028 2011-05-10  Jim Meyering  <meyering@redhat.com>
37030         openat: add comments
37031         * lib/openat-proc.c (openat_proc_name): Add comments,
37032         mostly from Eric Blake.
37034 2011-05-09  Eric Blake  <eblake@redhat.com>
37036         openat: reduce syscalls in first probe of /proc
37037         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
37038         be a directory.  Simplify the probe for .. bugs.
37039         * modules/openat (Depends-on): Drop same-inode.
37040         Reported by Bastien ROUCARIES.
37042 2011-05-09  Jim Meyering  <meyering@redhat.com>
37044         maint.mk: change semantics/name of tight_scope variables
37045         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
37046         Rename variables to align with semantics that make them more useful.
37048         maint.mk: tweak new rule's name not to impinge
37049         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
37050         (sc_tight_scope): Use new rule name rather than $@-0.
37052         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
37053         * top/maint.mk (sc_tight_scope): New rule.
37054         (sc_tight_scope-0): New rule, ifdef'd out.
37055         (_gl_TS_dir): Default.
37056         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
37057         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
37059 2011-05-09  Simon Josefsson  <simon@josefsson.org>
37061         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
37062         Haible <bruno@clisp.org>.
37064 2011-05-08  Bruno Haible  <bruno@clisp.org>
37066         Comments.
37067         * m4/isnanf.m4: Add comment.
37068         * m4/isnanl.m4: Likewise.
37070 2011-05-08  Bruno Haible  <bruno@clisp.org>
37072         glob: Remove obsolete macro.
37073         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
37075 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
37077         intprops: Sun C 5.11 supports __typeof__
37078         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
37079         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
37080         which is new.
37081         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
37083         intprops: switch to usual gnulib indenting and naming
37084         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
37085         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
37087         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
37089 2011-05-08  Jim Meyering  <meyering@redhat.com>
37091         maint.mk: suppress "Entering/Leaving directory" diag in announcement
37092         * top/maint.mk (release-prep): Use make's --no-print-directory
37093         option when generating the announcement.  This eliminates the
37094         pesky "make[2]: Entering/Leaving directory" diagnostics in the
37095         generated announcement template.
37097 2011-05-08  Bruno Haible  <bruno@clisp.org>
37099         tzset: Fix gettimeofday wrapper on Solaris 2.6.
37100         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
37101         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
37103 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
37105         ignore-value, verify: Omit include files from lib_SOURCES.
37106         * modules/ignore-value, modules/verify (Makefile.am):
37107         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
37108         that leads Automake to duplicate use of am__objects_... variables
37109         in Makefile.in.  See
37110         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
37112 2011-05-07  Bruno Haible  <bruno@clisp.org>
37114         fclose: Simplify autoconf macro.
37115         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
37116         defined.
37118 2011-05-07  Bruno Haible  <bruno@clisp.org>
37120         canonicalize-lgpl: Fix autoconf macro ordering bug.
37121         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
37122         gl_STDLIB_H_DEFAULTS.
37124 2011-05-06  Eric Blake  <eblake@redhat.com>
37126         maintainer-makefile: make sc_po_check easier to tune
37127         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
37128         to probe for strings, such as an alternate location for gnulib.
37130         fclose: guarantee behavior on seekable stdin
37131         * modules/fclose (Depends-on): Add fflush.
37132         * doc/posix-functions/fclose.texi (fclose): Document this.
37133         * tests/test-fclose.c (main): Make test for this unconditional.
37135 2011-05-06  Bruno Haible  <bruno@clisp.org>
37137         fflush, fpurge: Relicense under LGPLv2+.
37138         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
37139         * modules/fpurge (License): Likewise.
37140         With permission from Eric Blake and Jim Meyering.
37141         Suggested by Eric Blake.
37143 2011-05-06  Karl Berry  <karl@gnu.org>
37145         * MODULES.html.sh (func_all_modules): remove exit.
37147 2011-05-06  Jim Meyering  <meyering@redhat.com>
37149         maint.mk: use info-gnu@ as the default only for a stable release
37150         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
37151         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
37152         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
37153         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
37155 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
37157         assert-h: new module, which supports C1X-style static_assert
37158         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
37159         * lib/verify.h: Revamp so that this can be copied into assert.h,
37160         while retaining the ability to use it standalone as before.
37161         Rename private identifiers so as not to encroach on the
37162         standard C namespace, since this is now used by assert.h.
37163         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
37164         the old verify_true.
37165         (_GL_VERIFY_TRUE): New macro, with much of the contents of
37166         the old verify_true.  Use _GL_VERIFY_TYPE.
37167         (_GL_VERIFY): New macro, with much of the contents of the old verify.
37168         (static_assert): New macro, if _GL_STATIC_ASSERT_H
37169         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
37170         defined when this file is copied into the replacement assert.h.
37171         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
37172         and _Static_assert is not built in.
37173         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
37174         defined, and use the new macros mentioned above.
37175         * doc/posix-headers/assert.texi: Document this.
37177 2011-05-05  Bruno Haible  <bruno@clisp.org>
37179         fclose, fflush: Respect rules for use of AC_LIBOBJ.
37180         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
37181         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
37182         gl_REPLACE_FCLOSE here.
37183         * modules/fflush (Depends-on): Remove fclose.
37184         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
37185         combination with module 'fclose'.
37187 2011-05-05  Bruno Haible  <bruno@clisp.org>
37189         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
37190         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
37191         gl_FUNC_FFLUSH.
37192         (gl_FUNC_FFLUSH): Use it.
37193         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
37194         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
37195         gl_REPLACE_FSEEKO here.
37197 2011-05-05  Bruno Haible  <bruno@clisp.org>
37199         tzset: Relicense under LGPL.
37200         * modules/tzset (License): Change to LGPL.
37201         No agreement needed; it's a no-op.
37203         strtoimax, strtoumax: Relicense under LGPL.
37204         * modules/strtoimax (License): Change to LGPL.
37205         * modules/strtoumax (License): Likewise.
37206         With permission from Jim Meyering, Paul Eggert:
37207         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
37208         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
37210         getgroups: Relicense under LGPL.
37211         * modules/getgroups (License): Change to LGPL.
37212         With permission from Jim Meyering, Paul Eggert, Eric Blake:
37213         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
37214         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
37215         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
37217         nanosleep: Relicense under LGPL.
37218         * modules/nanosleep (License): Change to LGPL.
37219         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
37220         Haible:
37221         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
37222         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
37223         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
37224         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
37226         futimens: Relicense under LGPL.
37227         * modules/futimens (License): Change to LGPL.
37228         With permission from Eric Blake:
37229         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
37231         fflush: Relicense under LGPL.
37232         * modules/fflush (License): Change to LGPL.
37233         With permission from Eric Blake, Bruno Haible, Jim Meyering:
37234         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
37235         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
37236         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
37238         tmpfile: Relicense under LGPL.
37239         * modules/tmpfile (License): Change to LGPL.
37240         With permission from Ben Pfaff:
37241         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
37243         isfinite: Relicense under LGPL.
37244         * modules/isfinite (License): Change to LGPL.
37245         With permission from Ben Pfaff, Bruno Haible:
37246         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
37247         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
37249         acosl..tanl: Relicense under LGPL.
37250         * modules/acosl (License): Change to LGPL.
37251         * modules/asinl (License): Likewise.
37252         * modules/atanl (License): Likewise.
37253         * modules/cosl (License): Likewise.
37254         * modules/expl (License): Likewise.
37255         * modules/logl (License): Likewise.
37256         * modules/sinl (License): Likewise.
37257         * modules/sqrtl (License): Likewise.
37258         * modules/tanl (License): Likewise.
37259         Source code originally from glibc and Paolo Bonzini. Agreements:
37260         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
37261         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
37263 2011-05-05  Bruno Haible  <bruno@clisp.org>
37265         signal: Define sighandler_t.
37266         * lib/signal.in.h (sighandler_t): New type.
37267         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
37268         whether sighandler_t is defined.
37269         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
37270         * modules/signal (Depends-on): Add extensions.
37271         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
37272         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
37273         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
37275 2011-05-05  Eric Blake  <eblake@redhat.com>
37277         maint: remove useless REPLACE_*_H macros
37278         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
37279         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
37280         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
37281         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
37282         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
37283         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
37284         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
37285         * m4/btowc.m4: Update callers.
37286         * m4/dirfd.m4: Likewise.
37287         * m4/duplocale.m4: Likewise.
37288         * m4/fchdir.m4: Likewise.
37289         * m4/fdopendir.m4: Likewise.
37290         * m4/inet_ntop.m4: Likewise.
37291         * m4/inet_pton.m4: Likewise.
37292         * m4/ioctl.m4: Likewise.
37293         * m4/mbrlen.m4: Likewise.
37294         * m4/mbrtowc.m4: Likewise.
37295         * m4/mbsinit.m4: Likewise.
37296         * m4/mbsnrtowcs.m4: Likewise.
37297         * m4/mbsrtowcs.m4: Likewise.
37298         * m4/poll.m4: Likewise.
37299         * m4/setlocale.m4: Likewise.
37300         * m4/wcrtomb.m4: Likewise.
37301         * m4/wcsnrtombs.m4: Likewise.
37302         * m4/wcsrtombs.m4: Likewise.
37303         * m4/wctob.m4: Likewise.
37304         * m4/wcwidth.m4: Likewise.
37305         * modules/posix_spawn: Likewise.
37306         * modules/posix_spawn_file_actions_addclose: Likewise.
37307         * modules/posix_spawn_file_actions_adddup2: Likewise.
37308         * modules/posix_spawn_file_actions_addopen: Likewise.
37309         * modules/posix_spawn_file_actions_destroy: Likewise.
37310         * modules/posix_spawn_file_actions_init: Likewise.
37311         * modules/posix_spawnattr_destroy: Likewise.
37312         * modules/posix_spawnattr_getflags: Likewise.
37313         * modules/posix_spawnattr_getpgroup: Likewise.
37314         * modules/posix_spawnattr_getschedparam: Likewise.
37315         * modules/posix_spawnattr_getschedpolicy: Likewise.
37316         * modules/posix_spawnattr_getsigdefault: Likewise.
37317         * modules/posix_spawnattr_getsigmask: Likewise.
37318         * modules/posix_spawnattr_init: Likewise.
37319         * modules/posix_spawnattr_setflags: Likewise.
37320         * modules/posix_spawnattr_setpgroup: Likewise.
37321         * modules/posix_spawnattr_setschedparam: Likewise.
37322         * modules/posix_spawnattr_setschedpolicy: Likewise.
37323         * modules/posix_spawnattr_setsigdefault: Likewise.
37324         * modules/posix_spawnattr_setsigmask: Likewise.
37325         * modules/posix_spawnp: Likewise.
37327 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
37329         Add option to do-release-commit-and-tag to specify branch.
37330         * build-aux/do-release-commit-and-tag: Add --branch.
37332 2011-05-03  Bruno Haible  <bruno@clisp.org>
37334         Avoid unnecessary compilation units, through conditional dependencies.
37335         * modules/accept (Depends-on): Add conditions to the dependencies.
37336         * modules/acosl (Depends-on): Likewise.
37337         * modules/argz (Depends-on): Likewise.
37338         * modules/asinl (Depends-on): Likewise.
37339         * modules/atanl (Depends-on): Likewise.
37340         * modules/atoll (Depends-on): Likewise.
37341         * modules/bind (Depends-on): Likewise.
37342         * modules/btowc (Depends-on): Likewise.
37343         * modules/canonicalize-lgpl (Depends-on): Likewise.
37344         * modules/ceil (Depends-on): Likewise.
37345         * modules/ceilf (Depends-on): Likewise.
37346         * modules/ceill (Depends-on): Likewise.
37347         * modules/chdir-long (Depends-on): Likewise.
37348         * modules/chown (Depends-on): Likewise.
37349         * modules/close (Depends-on): Likewise.
37350         * modules/connect (Depends-on): Likewise.
37351         * modules/cosl (Depends-on): Likewise.
37352         * modules/dirfd (Depends-on): Likewise.
37353         * modules/dprintf (Depends-on): Likewise.
37354         * modules/dprintf-posix (Depends-on): Likewise.
37355         * modules/error (Depends-on): Likewise.
37356         * modules/euidaccess (Depends-on): Likewise.
37357         * modules/expl (Depends-on): Likewise.
37358         * modules/faccessat (Depends-on): Likewise.
37359         * modules/fchdir (Depends-on): Likewise.
37360         * modules/fclose (Depends-on): Likewise.
37361         * modules/fcntl (Depends-on): Likewise.
37362         * modules/fdopendir (Depends-on): Likewise.
37363         * modules/fflush (Depends-on): Likewise.
37364         * modules/floor (Depends-on): Likewise.
37365         * modules/floorf (Depends-on): Likewise.
37366         * modules/floorl (Depends-on): Likewise.
37367         * modules/fnmatch (Depends-on): Likewise.
37368         * modules/fopen (Depends-on): Likewise.
37369         * modules/fprintf-posix (Depends-on): Likewise.
37370         * modules/frexp (Depends-on): Likewise.
37371         * modules/frexp-nolibm (Depends-on): Likewise.
37372         * modules/frexpl (Depends-on): Likewise.
37373         * modules/frexpl-nolibm (Depends-on): Likewise.
37374         * modules/fseek (Depends-on): Likewise.
37375         * modules/fsusage (Depends-on): Likewise.
37376         * modules/ftell (Depends-on): Likewise.
37377         * modules/ftello (Depends-on): Likewise.
37378         * modules/futimens (Depends-on): Likewise.
37379         * modules/getcwd (Depends-on): Likewise.
37380         * modules/getcwd-lgpl (Depends-on): Likewise.
37381         * modules/getdelim (Depends-on): Likewise.
37382         * modules/getdomainname (Depends-on): Likewise.
37383         * modules/getgroups (Depends-on): Likewise.
37384         * modules/gethostname (Depends-on): Likewise.
37385         * modules/getline (Depends-on): Likewise.
37386         * modules/getlogin_r (Depends-on): Likewise.
37387         * modules/getopt-posix (Depends-on): Likewise.
37388         * modules/getpeername (Depends-on): Likewise.
37389         * modules/getsockname (Depends-on): Likewise.
37390         * modules/getsockopt (Depends-on): Likewise.
37391         * modules/getsubopt (Depends-on): Likewise.
37392         * modules/getusershell (Depends-on): Likewise.
37393         * modules/glob (Depends-on): Likewise.
37394         * modules/grantpt (Depends-on): Likewise.
37395         * modules/iconv_open (Depends-on): Likewise.
37396         * modules/iconv_open-utf (Depends-on): Likewise.
37397         * modules/inet_ntop (Depends-on): Likewise.
37398         * modules/inet_pton (Depends-on): Likewise.
37399         * modules/ioctl (Depends-on): Likewise.
37400         * modules/isapipe (Depends-on): Likewise.
37401         * modules/isfinite (Depends-on): Likewise.
37402         * modules/isinf (Depends-on): Likewise.
37403         * modules/lchown (Depends-on): Likewise.
37404         * modules/ldexpl (Depends-on): Likewise.
37405         * modules/link (Depends-on): Likewise.
37406         * modules/linkat (Depends-on): Likewise.
37407         * modules/listen (Depends-on): Likewise.
37408         * modules/logl (Depends-on): Likewise.
37409         * modules/lstat (Depends-on): Likewise.
37410         * modules/mbrlen (Depends-on): Likewise.
37411         * modules/mbrtowc (Depends-on): Likewise.
37412         * modules/mbsinit (Depends-on): Likewise.
37413         * modules/mbsnrtowcs (Depends-on): Likewise.
37414         * modules/mbsrtowcs (Depends-on): Likewise.
37415         * modules/mbtowc (Depends-on): Likewise.
37416         * modules/memcmp (Depends-on): Likewise.
37417         * modules/mkdir (Depends-on): Likewise.
37418         * modules/mkdtemp (Depends-on): Likewise.
37419         * modules/mkfifo (Depends-on): Likewise.
37420         * modules/mkfifoat (Depends-on): Likewise.
37421         * modules/mknod (Depends-on): Likewise.
37422         * modules/mkostemp (Depends-on): Likewise.
37423         * modules/mkostemps (Depends-on): Likewise.
37424         * modules/mkstemp (Depends-on): Likewise.
37425         * modules/mkstemps (Depends-on): Likewise.
37426         * modules/mktime (Depends-on): Likewise.
37427         * modules/nanosleep (Depends-on): Likewise.
37428         * modules/open (Depends-on): Likewise.
37429         * modules/openat (Depends-on): Likewise.
37430         * modules/perror (Depends-on): Likewise.
37431         * modules/poll (Depends-on): Likewise.
37432         * modules/popen (Depends-on): Likewise.
37433         * modules/posix_spawn (Depends-on): Likewise.
37434         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
37435         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
37436         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
37437         * modules/posix_spawnp (Depends-on): Likewise.
37438         * modules/pread (Depends-on): Likewise.
37439         * modules/printf-posix (Depends-on): Likewise.
37440         * modules/ptsname (Depends-on): Likewise.
37441         * modules/putenv (Depends-on): Likewise.
37442         * modules/pwrite (Depends-on): Likewise.
37443         * modules/readline (Depends-on): Likewise.
37444         * modules/readlink (Depends-on): Likewise.
37445         * modules/readlinkat (Depends-on): Likewise.
37446         * modules/recv (Depends-on): Likewise.
37447         * modules/recvfrom (Depends-on): Likewise.
37448         * modules/regex (Depends-on): Likewise.
37449         * modules/remove (Depends-on): Likewise.
37450         * modules/rename (Depends-on): Likewise.
37451         * modules/renameat (Depends-on): Likewise.
37452         * modules/rmdir (Depends-on): Likewise.
37453         * modules/round (Depends-on): Likewise.
37454         * modules/roundf (Depends-on): Likewise.
37455         * modules/roundl (Depends-on): Likewise.
37456         * modules/rpmatch (Depends-on): Likewise.
37457         * modules/select (Depends-on): Likewise.
37458         * modules/send (Depends-on): Likewise.
37459         * modules/sendto (Depends-on): Likewise.
37460         * modules/setenv (Depends-on): Likewise.
37461         * modules/setlocale (Depends-on): Likewise.
37462         * modules/setsockopt (Depends-on): Likewise.
37463         * modules/shutdown (Depends-on): Likewise.
37464         * modules/sigaction (Depends-on): Likewise.
37465         * modules/signbit (Depends-on): Likewise.
37466         * modules/sigprocmask (Depends-on): Likewise.
37467         * modules/sinl (Depends-on): Likewise.
37468         * modules/sleep (Depends-on): Likewise.
37469         * modules/snprintf (Depends-on): Likewise.
37470         * modules/snprintf-posix (Depends-on): Likewise.
37471         * modules/socket (Depends-on): Likewise.
37472         * modules/sprintf-posix (Depends-on): Likewise.
37473         * modules/sqrtl (Depends-on): Likewise.
37474         * modules/stat (Depends-on): Likewise.
37475         * modules/strchrnul (Depends-on): Likewise.
37476         * modules/strdup-posix (Depends-on): Likewise.
37477         * modules/strerror (Depends-on): Likewise.
37478         * modules/strerror_r-posix (Depends-on): Likewise.
37479         * modules/strndup (Depends-on): Likewise.
37480         * modules/strnlen (Depends-on): Likewise.
37481         * modules/strptime (Depends-on): Likewise.
37482         * modules/strsep (Depends-on): Likewise.
37483         * modules/strsignal (Depends-on): Likewise.
37484         * modules/strstr-simple (Depends-on): Likewise.
37485         * modules/strtod (Depends-on): Likewise.
37486         * modules/strtoimax (Depends-on): Likewise.
37487         * modules/strtok_r (Depends-on): Likewise.
37488         * modules/strtoumax (Depends-on): Likewise.
37489         * modules/symlink (Depends-on): Likewise.
37490         * modules/symlinkat (Depends-on): Likewise.
37491         * modules/tanl (Depends-on): Likewise.
37492         * modules/tcgetsid (Depends-on): Likewise.
37493         * modules/tmpfile (Depends-on): Likewise.
37494         * modules/trunc (Depends-on): Likewise.
37495         * modules/truncf (Depends-on): Likewise.
37496         * modules/truncl (Depends-on): Likewise.
37497         * modules/uname (Depends-on): Likewise.
37498         * modules/unlink (Depends-on): Likewise.
37499         * modules/unlockpt (Depends-on): Likewise.
37500         * modules/unsetenv (Depends-on): Likewise.
37501         * modules/usleep (Depends-on): Likewise.
37502         * modules/utimensat (Depends-on): Likewise.
37503         * modules/vasprintf (Depends-on): Likewise.
37504         * modules/vdprintf (Depends-on): Likewise.
37505         * modules/vdprintf-posix (Depends-on): Likewise.
37506         * modules/vfprintf-posix (Depends-on): Likewise.
37507         * modules/vprintf-posix (Depends-on): Likewise.
37508         * modules/vsnprintf (Depends-on): Likewise.
37509         * modules/vsnprintf-posix (Depends-on): Likewise.
37510         * modules/vsprintf-posix (Depends-on): Likewise.
37511         * modules/wcrtomb (Depends-on): Likewise.
37512         * modules/wcscasecmp (Depends-on): Likewise.
37513         * modules/wcscspn (Depends-on): Likewise.
37514         * modules/wcsdup (Depends-on): Likewise.
37515         * modules/wcsncasecmp (Depends-on): Likewise.
37516         * modules/wcsnrtombs (Depends-on): Likewise.
37517         * modules/wcspbrk (Depends-on): Likewise.
37518         * modules/wcsrtombs (Depends-on): Likewise.
37519         * modules/wcsspn (Depends-on): Likewise.
37520         * modules/wcsstr (Depends-on): Likewise.
37521         * modules/wcstok (Depends-on): Likewise.
37522         * modules/wcswidth (Depends-on): Likewise.
37523         * modules/wctob (Depends-on): Likewise.
37524         * modules/wctomb (Depends-on): Likewise.
37525         * modules/wctype (Depends-on): Likewise.
37526         * modules/wcwidth (Depends-on): Likewise.
37527         * modules/write (Depends-on): Likewise.
37529 2011-05-03  Bruno Haible  <bruno@clisp.org>
37531         Support for conditional dependencies.
37532         * doc/gnulib.texi (Module description): Document the syntax of
37533         conditional dependencies.
37534         * gnulib-tool: New option --conditional-dependencies.
37535         (func_usage): Document it.
37536         (cond_dependencies): New variable.
37537         (func_get_automake_snippet_conditional,
37538         func_get_automake_snippet_unconditional): New functions, extracted from
37539         func_get_automake_snippet.
37540         (func_get_automake_snippet): Use them.
37541         (sed_first_32_chars): New variable.
37542         (func_module_shellfunc_name): New function.
37543         (func_module_shellvar_name): New function.
37544         (func_module_conditional_name): New function.
37545         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
37546         func_cond_module_condition): New functions.
37547         (func_modules_transitive_closure): Add support for conditional
37548         dependencies.
37549         (func_emit_lib_Makefile_am): For a conditional module, enclose the
37550         conditional automake snippet in an automake conditional.
37551         (func_emit_autoconf_snippets): Emit shell functions that contain the
37552         code for conditional modules.
37553         (func_import, func_create_testdir): Update specification.
37555 2011-05-03  Eric Blake  <eblake@redhat.com>
37557         test-getaddrinfo: report error information
37558         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
37560 2011-05-03  Jim Meyering  <meyering@redhat.com>
37562         bootstrap: avoid build failure when $GZIP is set
37563         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
37564         program name.  If defined at all, it is supposed to list gzip options.
37565         Reported by Alan Curry in http://debbugs.gnu.org/8609
37567 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
37569         readme-release: new module with release instructions
37570         * modules/readme-release: New module.
37571         * top/README-release: New file, from coreutils, grep, diffutils.
37572         * MODULES.html.sh (Support for maintaining and releasing): Add it.
37574 2011-05-02  Eric Blake  <eblake@redhat.com>
37576         fflush: also replace fclose when fixing fflush
37577         * modules/fflush (Depends-on): Add fclose.
37578         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
37579         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
37580         memstreams with no backing fd.
37581         * doc/posix-functions/fclose.texi (fclose): Document the use of
37582         fflush module to fix the bug.
37583         * tests/test-fclose.c (main): Relax test when fclose is used in
37584         isolation.
37586         fclose: add some tests
37587         * modules/fclose-tests: New test module.
37588         * tests/test-fclose.c: New file.
37589         * doc/posix-functions/fclose.texi (fclose): Document the bug.
37591         fclose: reduced dependencies
37592         * modules/fclose (Depends-on): Switch from fflush/fseeko to
37593         simpler lseek.
37594         * lib/fclose.c (rpl_fclose): Likewise.
37595         Reported by Simon Josefsson.
37597         exit: drop remaining clients
37598         * modules/argmatch (Depends-on): Replace exit with stdlib.
37599         * modules/copy-file (Depends-on): Likewise.
37600         * modules/execute (Depends-on): Likewise.
37601         * modules/exitfail (Depends-on): Likewise.
37602         * modules/obstack (Depends-on): Likewise.
37603         * modules/pagealign_alloc (Depends-on): Likewise.
37604         * modules/pipe-filter-gi (Depends-on): Likewise.
37605         * modules/pipe-filter-ii (Depends-on): Likewise.
37606         * modules/savewd (Depends-on): Likewise.
37607         * modules/spawn-pipe (Depends-on): Likewise.
37608         * modules/wait-process (Depends-on): Likewise.
37609         * modules/xsetenv (Depends-on): Likewise.
37610         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
37611         * modules/git-merge-changelog (Depends-on): Likewise.
37612         * modules/long-options (Depends-on): Likewise.
37613         * modules/pt_chown (Depends-on): Likewise.
37614         * modules/sysexits (Depends-on): Likewise.
37616         freading: relax license from LGPLv3+ to LGPLv2+
37617         * modules/freading (License): Relax LGPL version.
37619 2011-05-02  Bruno Haible  <bruno@clisp.org>
37621         fchdir: Remove unused dependencies.
37622         * modules/fchdir (Depends-on): Remove include_next.
37624 2011-05-02  Bruno Haible  <bruno@clisp.org>
37626         gnulib-tool: Refactor.
37627         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
37628         from func_emit_autoconf_snippets.
37629         (func_emit_autoconf_snippets): Use it.
37631 2011-05-02  Simon Josefsson  <simon@josefsson.org>
37633         * NEWS: Document removal of 'exit'.
37634         * modules/exit: Remove file.
37636 2011-05-01  Bruno Haible  <bruno@clisp.org>
37638         Update DEPENDENCIES.
37639         * DEPENDENCIES (gettext): Recommend the newest release.
37640         Reported by Simon Josefsson.
37642 2011-05-01  Bruno Haible  <bruno@clisp.org>
37644         gnulib-tool: Reduce code duplication.
37645         * gnulib-tool (func_emit_autoconf_snippets): New function.
37646         (func_import, func_create_testdir): Use it.
37648 2011-04-30  Eric Blake  <eblake@redhat.com>
37650         fclose: don't fail on non-seekable input stream
37651         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
37652         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
37653         since fflush is allowed to fail in that case.
37655 2011-04-30  Bruno Haible  <bruno@clisp.org>
37657         dup3: cleanup
37658         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
37660 2011-04-30  Bruno Haible  <bruno@clisp.org>
37662         netdb: Make it work in C++ mode.
37663         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
37664         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
37665         module.
37666         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
37667         gl_MODULE_INDICATOR_FOR_TESTS.
37668         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
37669         * modules/netdb-c++-tests: New file.
37670         * tests/test-netdb-c++.cc: New file.
37672 2011-04-30  Bruno Haible  <bruno@clisp.org>
37674         New modules 'vfscanf', 'vscanf'.
37675         * modules/vfscanf: New file.
37676         * modules/vscanf: New file.
37677         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
37678         here.
37679         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
37680         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
37682 2011-04-30  Bruno Haible  <bruno@clisp.org>
37684         passfd: Add comments.
37685         * lib/passfd.c: Add comments about platforms.
37687 2011-04-30  Bruno Haible  <bruno@clisp.org>
37689         sys_uio: Make <sys/uio.h> self-contained.
37690         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
37691         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
37693 2011-04-30  Bruno Haible  <bruno@clisp.org>
37695         sys_socket: Ensure 'struct iovec' definition.
37696         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
37697         <sys/socket.h>.
37698         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
37700 2011-04-30  Bruno Haible  <bruno@clisp.org>
37702         sys_uio: Protect definition of 'struct iovec'.
37703         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
37704         it as a C struct.
37706 2011-04-30  Bruno Haible  <bruno@clisp.org>
37708         manywarnings: fix indentation
37709         * m4/manywarnings.m4: Indent by 2 spaces consistently.
37711 2011-04-30  Pádraig Brady  <P@draigBrady.com>
37713         manywarnings: add -Wno-missing-field-initializers if needed.
37714         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
37715         option if it's needed to allow initialization with { 0, }
37717 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
37719         announce-gen: cosmetic improvement
37720         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
37722 2011-04-29  Jim Meyering  <meyering@redhat.com>
37724         vc-list-files: indent with spaces, not TABs
37725         * build-aux/vc-list-files: Convert leading TABs to spaces,
37726         to match the style of most other files in gnulib.
37728         announce-gen: indent with spaces, not TABs
37729         * build-aux/announce-gen: Convert all TABs to spaces, to match
37730         the style of most other files in gnulib.
37732 2011-04-29  Eric Blake  <eblake@redhat.com>
37734         quotearg: avoid uninitialized variable use
37735         * lib/quotearg.c (quoting_options_from_style): Initialize
37736         remaining fields, and ensure that custom styles are only used via
37737         quoting_options rather than quoting_style.
37739 2011-04-29  Jim Meyering  <meyering@redhat.com>
37741         maint.mk: remove unused VC-tag variable
37742         * top/maint.mk (VC-tag): Remove unused variable.
37744 2011-04-29  Bruno Haible  <bruno@clisp.org>
37746         netdb: fix gai_strerror replacements
37747         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
37748         * modules/netdb: Substitute it.
37750 2011-04-29  Jim Meyering  <meyering@redhat.com>
37752         test-getcwd.c: avoid new set-but-not-used warning
37753         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
37754         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
37755         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
37756         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
37758         test-hash.c: avoid a new shadowing warning
37759         * tests/test-hash.c (main): Don't shadow "dup".
37761 2011-04-28  Eric Blake  <eblake@redhat.com>
37763         getaddrinfo: fix gai_strerror signature
37764         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
37765         and work around mingw with UNICODE defined.
37766         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
37767         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
37768         * modules/netdb (Makefile.am): Substitute it.
37769         * lib/netdb.in.h (gai_strerror): Declare replacement.
37770         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
37771         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
37772         the fix.
37774         getsockopt: avoid compiler warning
37775         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
37776         Reported by Matthias Bolte.
37778         tests: drop unused link dependency
37779         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
37780         * modules/dirent-safer-tests (Makefile.am): Likewise.
37781         * modules/fdopendir-tests (Makefile.am): Likewise.
37782         * modules/mkfifoat-tests (Makefile.am): Likewise.
37783         * modules/openat-safer-tests (Makefile.am): Likewise.
37784         * modules/openat-tests (Makefile.am): Likewise.
37785         * modules/readlinkat-tests (Makefile.am): Likewise.
37786         * modules/symlinkat-tests (Makefile.am): Likewise.
37787         * modules/linkat-tests (Makefile.am): Likewise.
37788         (Depends-on): Switch to filenamecat-lgpl.
37789         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
37790         LIBINTL.
37791         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
37792         * tests/test-linkat.c (main): Don't require xalloc.
37794         hash, mgetgroups: drop xalloc dependency
37795         * lib/hash.c (includes): Adjust includes.
37796         * lib/mgetgroups.c (includes): Likewise.
37797         (xgetgroups): Move...
37798         * lib/xgetgroups.c: ...to new file.
37799         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
37800         * modules/xgetgroups: New file, split from...
37801         * modules/mgetgroups: ...here.
37802         (Depends-on): Add xalloc-oversized.
37803         * modules/hash (Depends-on): Likewise.
37804         * modules/hash-tests (Depends-on): Drop xalloc.
37805         (test_hash_LDADD): Drop unused library.
37806         * tests/test-hash.c (main): Break xalloc dependency.
37807         (includes): Drop unused include.
37809         xalloc-oversized: new module
37810         * modules/xalloc-oversized: New module.
37811         * modules/xalloc (Depends-on): Add it.
37812         * lib/xalloc.h (xalloc_oversized): Move...
37813         * lib/xalloc-oversized.h: ...into new file.
37815         utimecmp: drop dependency on xmalloc
37816         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
37817         due to memory pressure.
37818         * modules/utimecmp (Depends-on): Drop xalloc.
37820 2011-04-27  Eric Blake  <eblake@redhat.com>
37822         getcwd: fix mingw bugs
37823         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
37824         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
37825         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
37827 2011-04-27  Bruno Haible  <bruno@clisp.org>
37829         mkstemps: Ensure declaration on MacOS X 10.5.
37830         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
37831         * doc/glibc-functions/mkstemps.texi: Document header file problem on
37832         MacOS X.
37834 2011-04-27  Bruno Haible  <bruno@clisp.org>
37836         mkstemp: More documentation.
37837         * doc/posix-functions/mkstemp.texi: Document header file problem on
37838         MacOS X.
37840 2011-04-27  Bruno Haible  <bruno@clisp.org>
37842         mkstemp: Tweak configure message when cross-compiling.
37843         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
37844         result as a guess.
37846 2011-04-27  Bruno Haible  <bruno@clisp.org>
37848         clean-temp: Clarify what it does.
37849         * lib/clean-temp.h: Add more comments.
37850         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
37851         module.
37852         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
37853         * doc/glibc-functions/mkstemps.texi: Likewise.
37854         * doc/glibc-functions/mkostemps.texi: Likewise.
37856 2011-04-27  Eric Blake  <eblake@redhat.com>
37858         fchdir: avoid extra chdir and fix test
37859         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
37860         getcwd-lgpl.
37861         * lib/fchdir.c (get_name): Any absolute name will do; it does not
37862         have to be canonical.
37863         (canonicalize_file_name): Drop unused macro.
37864         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
37866         filenamecat-lgpl: fix licence
37867         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
37868         when it was first created.
37870         linkat, renameat: add missing dependency
37871         * modules/linkat (Depends-on): Require getcwd-lgpl.
37872         * modules/renameat (Depends-on): Likewise.
37874         tests: reduce dependencies
37875         * tests/test-linkat.c (main): Use lighter-weight getcwd.
37876         * tests/test-renameat.c (main): Likewise.
37877         * modules/linkat-tests (Depends-on): Relax dependency.
37878         * modules/renameat-tests (Depends-on): Likewise.
37879         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
37880         dependency explicit.
37882         save-cwd: reduce default dependency
37883         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
37884         * lib/save-cwd.c: Update comments.
37885         * NEWS: Document the semantic change.
37887         getcwd: enhance tests
37888         * tests/test-getcwd-lgpl.c: New file, taken from...
37889         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
37890         repeat long path stress tests from m4 probe.
37891         * modules/getcwd-lgpl-tests: New module.
37892         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
37893         * m4/getcwd-abort-bug.m4: Update comment.
37894         * m4/getcwd-path-max.m4: Likewise.
37896         getcwd-lgpl: new module
37897         * modules/getcwd-lgpl: New module.
37898         * lib/getcwd-lgpl.c: New file.
37899         * doc/posix-functions/getcwd.texi (getcwd): Document it.
37900         * MODULES.html.sh (lacking POSIX:2008): Likewise.
37901         * modules/getcwd (configure.ac): Set C witness.
37902         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
37904         getcwd: tweak comments
37905         * m4/getcwd-abort-bug.m4: Fix comments.
37906         * m4/getcwd-path-max.m4: Likewise.
37907         * m4/getcwd.m4: Likewise.
37909 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
37910         and Eric Blake  <eblake@redhat.com>
37912         mkstemp: replace if system version uses wrong permissions
37913         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
37914         read/write mode bits set in file created by mkstemp.
37915         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
37917 2011-04-27  Eric Blake  <eblake@redhat.com>
37919         passfd: avoid compiler warning
37920         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
37921         Reported by Laine Stump.
37923 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
37925         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
37926         required by the NetBSD (and perhaps other 4.4BSD derived) join.
37928 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
37929         and Eric Blake  <eblake@redhat.com>
37931         mkstemp: mention clean-temp module
37932         * lib/mkstemp.c: Add comment.
37933         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
37935 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
37937         inttypes: also provide default values for 32-bit tests
37938         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
37939         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
37941 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
37943         strtoumax: remove dependency on strtoimax
37944         This is like the strtoull change of yesterday.
37945         * modules/strtoumax (Files): Add lib/strtoimax.c.
37946         (Depends-on): Remove strtoimax and add verify.
37948         inttypes-incomplete: new module
37949         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
37950         all but the PRI* and SCN* parts of gl_INTTYPES_H.
37951         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
37952         of gl_INTTYPES_H.
37953         (gl_INTTYPES_H): Rewrite in terms of these new macros.
37954         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
37955         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
37956         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
37957         * modules/strtoumax, modules/xstrtol (Depends-on):
37958         Depend on inttypes-incomplete, not inttypes.
37959         * modules/inttypes-incomplete: New module, containing the contents
37960         of the old modules/inttypes module, except that the Files: section
37961         omits m4/inttypes-pri.m4, and the configure.ac section invokes
37962         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
37963         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
37964         (Depends-on): Depend only on inttypes-incomplete.
37965         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
37967         inttypes: omit now-redundant strtoimax and strtoumax work
37968         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
37969         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
37971         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
37972         This supports apps that need pointers to strtoimax and strtoumax,
37973         and ports to HP-UX 11.00 64.bit, which has macros that expand to
37974         nonexistent functions.  See
37975         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
37976         et seq.
37977         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
37978         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
37979         a macro.
37980         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
37982 2011-04-25  Simon Josefsson  <simon@josefsson.org>
37984         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
37986 2011-04-25  Bruno Haible  <bruno@clisp.org>
37988         strtol, strtoul: Mark modules as obsolete.
37989         * modules/strtol (Status, Notice): New sections.
37990         * modules/strtoul (Status, Notice): New sections.
37992 2011-04-25  Bruno Haible  <bruno@clisp.org>
37994         strtod: Remove check for strtod, unless supporting old platforms.
37995         * modules/strtod-obsolete: New file.
37996         * m4/strtod-obsolete.m4: New file.
37997         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
37998         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
37999         * modules/strtod (Depends-on): Add strtod-obsolete.
38000         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
38002 2011-04-25  Bruno Haible  <bruno@clisp.org>
38004         strcase: Make module obsolete.
38005         * modules/strcase (Status, Notice): New sections.
38007 2011-04-25  Bruno Haible  <bruno@clisp.org>
38009         dup2: Remove check for dup2, unless supporting old obsolete platforms.
38010         * modules/dup2-obsolete: New file.
38011         * m4/dup2-obsolete.m4: New file.
38012         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
38013         gl_FUNC_DUP2_OBSOLETE is not also defined.
38014         * modules/dup2 (Depends-on): Add dup2-obsolete.
38015         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
38017 2011-04-25  Bruno Haible  <bruno@clisp.org>
38019         strnlen: Avoid memchr related link error on old obsolete platforms.
38020         * modules/memchr-obsolete: New file.
38021         * m4/memchr-obsolete.m4: New file.
38022         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
38023         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
38024         * modules/memchr (Depends-on): Add memchr-obsolete.
38025         * modules/strnlen (Depends-on): Likewise.
38026         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
38028 2011-04-25  Jim Meyering  <meyering@redhat.com>
38030         maint.mk: makefile_at_at_check extend and clean up
38031         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
38032         in addition to */Makefile.am.
38033         Exempt legitimate uses of @VAR@ notation, e.g.,
38034         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
38035         Remove obsolete coreutils-specific comment.
38036         Prompted by discussion here:
38037         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
38039 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
38041         strtoul: remove dependency on strtol
38042         This is so that 'configure' need not check for strtol merely because
38043         the application needs strtoul.
38044         * modules/strtoul (Files): Add lib/strtol.c.
38045         (Depends-on): Remove strtol.
38047         strtoull: remove dependency on strtoul
38048         This is like the strtoll change.
38049         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
38050         (Depends-on): Remove strtoul.
38052         strtoll: remove dependency on strtol
38053         This is so that 'configure' need not check for strtol merely because
38054         the application needs strtoll.
38055         * modules/strtoll (Files): Add lib/strtol.c.
38056         (Depends-on): Remove strtol.
38058 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
38060         inttypes: Move some configure check to module 'imaxdiv'.
38061         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
38062         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
38063         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
38065 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
38067         inttypes: Move some configure check to module 'imaxabs'.
38068         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
38069         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
38070         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
38072 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
38074         inttypes: Remove configure tests that are not needed since 2009-12-31.
38075         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
38076         gl_cv_header_working_inttypes_h.
38078 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
38080         * modules/strnlen (Depends-on): Remove memchr.
38081         The strnlen implementation doesn't need the memchr module's fixes; see
38082         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
38084         strtol: remove dependency on wchar
38085         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
38086         * modules/strtol (Depends-on): Remove wchar.
38088 2011-04-21  Eric Blake  <eblake@redhat.com>
38090         passfd: fix test regression on Linux
38091         * modules/passfd-tests (configure.ac): Correct socketpair check.
38093         passfd: speed up configure and drop unused code
38094         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
38095         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
38096         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
38097         Instead of probing at configure for unix_scm_rights_bsd44_way,
38098         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
38099         check to a struct member probe.
38100         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
38101         (sendfd, recvfd): Update preprocessor checks.
38102         * modules/passfd (Files): Reflect rename, and drop unused file.
38103         (Depends-on): Drop unused dependency.
38105         passfd: allow compilation on mingw
38106         * modules/sys_socket (Depends-on): Add sys_uio.
38107         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
38108         iovec and a minimal struct msghdr.
38109         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
38110         * tests/test-sys_socket.c (main): Enhance test.
38111         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
38112         guaranteed to provide what we need.
38113         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
38114         * modules/passfd-tests (Depends-on): Add sys_wait.
38115         * tests/test-passfd.c (main): Skip test on mingw, for now.
38116         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
38117         partial 'struct msghdr' implementation.
38119         sys_uio: new module
38120         * modules/sys_uio: New module.
38121         * modules/sys_uio-tests: Likewise.
38122         * lib/sys_uio.in.h: New file.
38123         * m4/sys_uio_h.m4: Likewise.
38124         * tests/test-sys_uio.c: Likewise.
38125         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
38126         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
38128 2011-04-20  Jim Meyering  <meyering@redhat.com>
38130         useless-if-before-free: avoid false-positive
38131         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
38132         disjunct so that it too requires a terminating ";".  Without that,
38133         this script would identify as useless one statement from gcc that
38134         was not:
38135           if (aligned_ptr)
38136             free (((void **) aligned_ptr) [-1]);
38138 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
38140         doc: update users.txt.
38141         * users.txt: Add barcode.
38143 2011-04-19  Bruno Haible  <bruno@clisp.org>
38145         ioctl: Remove link dependency on native Windows.
38146         * lib/fd-hook.h: Renamed from lib/close-hook.h.
38147         (gl_close_fn, gl_ioctl_fn): New types.
38148         (struct fd_hook): Renamed from struct close_hook. Change type of
38149         private_close_fn field. Add private_ioctl_fn field.
38150         (close_hook_fn): Add parameter for primary close method.
38151         (execute_close_hooks, execute_all_close_hooks): Likewise.
38152         (ioctl_hook_fn): New type.
38153         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
38154         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
38155         argument.
38156         (unregister_fd_hook): Renamed from unregister_close_hook.
38157         * lib/fd-hook.c: Renamed from lib/close-hook.c.
38158         Don't include <unistd.h>.
38159         (close): Remove undef.
38160         (anchor): Update.
38161         (execute_close_hooks): Add argument for primary close method.
38162         (execute_all_close_hooks): Likewise.
38163         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
38164         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
38165         argument. Allow each argument to be NULL.
38166         (unregister_fd_hook): Renamed from unregister_close_hook.
38167         * lib/close.c (rpl_close): Pass 'close' function pointer to
38168         execute_all_close_hooks.
38169         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
38170         (primary_ioctl): New function.
38171         (ioctl): Don't call ioctlsocket here. Instead, call
38172         execute_all_ioctl_hooks.
38173         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
38174         close method.
38175         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
38176         (fd_sockets_hook): Renamed from close_sockets_hook.
38177         (gl_sockets_startup, gl_sockets_cleanup): Update.
38178         * modules/fd-hook: Renamed from modules/close-hook. Update.
38179         * modules/close (Depends-on): Add fd-hook, remove close-hook.
38180         * modules/sockets (Depends-on): Likewise.
38181         * modules/ioctl (Depends-on): Add fd-hook.
38182         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
38183         GNULIB_SOCKET.
38185 2011-04-19  Bruno Haible  <bruno@clisp.org>
38187         Move the support of O_NONBLOCK in open() to the 'open' module.
38188         * modules/nonblocking (Depends-on): Remove 'open'.
38189         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
38190         gl_cv_have_open_O_NONBLOCK.
38191         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
38192         O_NONBLOCK support.
38193         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
38195 2011-04-17  Bruno Haible  <bruno@clisp.org>
38197         pipe2: Simplify code.
38198         * lib/pipe2.c (pipe2): Reduce code duplication.
38200 2011-04-17  Bruno Haible  <bruno@clisp.org>
38202         nonblocking: Add comment.
38203         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
38205 2011-04-17  Bruno Haible  <bruno@clisp.org>
38207         nonblocking: Add tests for sockets.
38208         * tests/test-nonblocking-socket.sh: New file.
38209         * tests/test-nonblocking-socket-main.c: New file.
38210         * tests/test-nonblocking-socket-child.c: New file.
38211         * tests/test-nonblocking-socket.h: New file.
38212         * tests/socket-server.h: New file.
38213         * tests/socket-client.h: New file.
38214         * modules/nonblocking-socket-tests: New file.
38215         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
38217 2011-04-17  Bruno Haible  <bruno@clisp.org>
38219         nonblocking: Add tests for pipes.
38220         * tests/test-nonblocking-pipe.sh: New file.
38221         * tests/test-nonblocking-pipe-main.c: New file.
38222         * tests/test-nonblocking-pipe-child.c: New file.
38223         * tests/test-nonblocking-pipe.h: New file.
38224         * tests/test-nonblocking-writer.h: New file.
38225         * tests/test-nonblocking-reader.h: New file.
38226         * tests/test-nonblocking-misc.h: New file.
38227         * modules/nonblocking-pipe-tests: New file.
38228         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
38230 2011-04-16  Bruno Haible  <bruno@clisp.org>
38232         gettext: Clarify the needed programmer actions.
38233         * modules/gettext (Notice): New field.
38234         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
38236 2011-04-16  Bruno Haible  <bruno@clisp.org>
38238         strchrnul: Tweak last commit.
38239         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
38240         bug.
38241         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
38242         as in _GL_FUNCDECL_SYS.
38243         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
38244         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
38246 2011-04-15  Eric Blake  <eblake@redhat.com>
38248         strchrnul: work around cygwin bug
38249         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
38250         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
38251         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
38252         * modules/string (Makefile.am): Substitute it.
38253         * lib/string.in.h (strchrnul): Use it.
38255 2011-04-15  Bruno Haible  <bruno@clisp.org>
38257         Don't require lib/stdio-write.c when only module 'stdio' is used.
38258         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
38259         invocation.
38260         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
38262 2011-04-14  Bruno Haible  <bruno@clisp.org>
38264         Support non-blocking pipe I/O in read() on native Windows.
38265         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
38266         (read): New declaration.
38267         * lib/read.c: New file.
38268         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
38269         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
38270         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
38271         vscanf): New declarations.
38272         * lib/stdio-read.c: New file.
38273         * m4/read.m4: New file.
38274         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
38275         REPLACE_READ.
38276         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
38277         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
38278         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
38279         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
38280         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
38281         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
38282         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
38283         * modules/read: New file.
38284         * modules/nonblocking (Files): Add lib/stdio-read.c.
38285         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
38286         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
38287         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
38288         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
38289         * modules/pread (Depends-on): Add read.
38290         * modules/safe-read (Depends-on): Likewise.
38291         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
38292         gets, scanf, vfscanf, vscanf): Verify signatures.
38293         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
38294         problem with non-blocking pipes.
38295         * doc/posix-functions/fgetc.texi: Likewise.
38296         * doc/posix-functions/fgets.texi: Likewise.
38297         * doc/posix-functions/fread.texi: Likewise.
38298         * doc/posix-functions/fscanf.texi: Likewise.
38299         * doc/posix-functions/getc.texi: Likewise.
38300         * doc/posix-functions/getchar.texi: Likewise.
38301         * doc/posix-functions/gets.texi: Likewise.
38302         * doc/posix-functions/scanf.texi: Likewise.
38303         * doc/posix-functions/vfscanf.texi: Likewise.
38304         * doc/posix-functions/vscanf.texi: Likewise.
38306 2011-04-14  Bruno Haible  <bruno@clisp.org>
38308         Support non-blocking pipe I/O in write() on native Windows.
38309         * lib/write.c (rpl_write): Split a write request that failed merely
38310         because the byte count was larger than the pipe buffer's size.
38311         * doc/posix-functions/write.texi: Mention the problem with large byte
38312         counts.
38314 2011-04-14  Bruno Haible  <bruno@clisp.org>
38316         wchar: Ensure that wchar_t gets defined on uClibc.
38317         * lib/wchar.in.h: On uClibc, include <stddef.h>.
38318         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
38320 2011-04-13  Bruno Haible  <bruno@clisp.org>
38322         safe-write, full-read: Avoid unnecessary compilation units.
38323         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
38324         (Depends-on): Remove safe-read. Add ssize_t.
38325         * modules/full-read (Files): Add lib/full-write.c.
38326         (Depends-on): Add full-write.
38328 2011-04-13  Bruno Haible  <bruno@clisp.org>
38330         Support non-blocking pipe I/O and SIGPIPE in pwrite().
38331         * modules/pwrite (Depends-on): Add 'write'.
38333 2011-04-13  Bruno Haible  <bruno@clisp.org>
38335         Support non-blocking pipe I/O in write() on native Windows.
38336         * lib/unistd.in.h (write): Enable replacement also if
38337         GNULIB_UNISTD_H_NONBLOCKING is 1.
38338         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
38339         (rpl_write): When failing to write on a non-blocking pipe, change
38340         errno from ENOSPC to EAGAIN.
38341         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
38342         putchar, puts, vfprintf, vprintf): Enable replacement also if
38343         GNULIB_STDIO_H_NONBLOCKING is 1.
38344         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
38345         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
38346         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
38347         CALL_WITH_SIGPIPE_EMULATION.
38348         (CALL_WITH_SIGPIPE_EMULATION): Use them.
38349         * m4/nonblocking.m4: New file.
38350         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
38351         for non-blocking I/O support.
38352         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38353         GNULIB_UNISTD_H_NONBLOCKING.
38354         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
38355         required for non-blocking I/O support.
38356         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
38357         * modules/nonblocking (Files): Add m4/nonblocking.m4,
38358         lib/stdio-write.c, m4/asm-underscore.m4.
38359         (Depends-on): Add stdio, unistd.
38360         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
38361         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
38362         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
38363         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
38364         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
38365         problem with non-blocking pipes.
38366         * doc/posix-functions/fputc.texi: Likewise.
38367         * doc/posix-functions/fputs.texi: Likewise.
38368         * doc/posix-functions/fwrite.texi: Likewise.
38369         * doc/posix-functions/printf.texi: Likewise.
38370         * doc/posix-functions/putc.texi: Likewise.
38371         * doc/posix-functions/putchar.texi: Likewise.
38372         * doc/posix-functions/puts.texi: Likewise.
38373         * doc/posix-functions/vfprintf.texi: Likewise.
38374         * doc/posix-functions/vprintf.texi: Likewise.
38375         * doc/posix-functions/write.texi: Likewise.
38377 2011-04-10  Jim Meyering  <meyering@redhat.com>
38379         maint.mk: prohibit doubled words
38380         Detect them also when they're separated by a newline.
38381         There are 3 ways to customize it:
38382           - disable the test on a per file basis, as usual with rules using
38383             $(VC_LIST_EXCEPT)
38384           - replace the default doubled-word-selecting regexp (affects all files)
38385           - ignore a particular file-vs-doubled-word match
38386         I nearly used that last one to ignore the "is is" match in
38387         coreutils' NEWS file, since the text was "ls -is is ..."
38388         To do that, I would have added this line to cfg.mk:
38389           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
38390         but it would have ignored any "is is" match in NEWS.
38391         Low probability, but still...
38392         Instead, I changed the text, slightly:
38393           -  ls -is is now consistent with ls -lis in ignoring values returned
38394           +  "ls -is" is now consistent with ls -lis in ignoring values returned
38395         * top/maint.mk (prohibit_double_word_RE_): Provide default.
38396         (prohibit_doubled_word_): Define.
38397         (sc_prohibit_doubled_word): New rule.
38398         (sc_prohibit_the_the): Remove.  Subsumed by the above.
38400 2011-04-10  Jim Meyering  <meyering@redhat.com>
38402         maint: fix doubled-word typo in comment
38403         * m4/gethostname.m4: s/is is/it is/
38404         * m4/getdomainname.m4: Likewise.
38406 2011-04-10  Jim Meyering  <meyering@redhat.com>
38408         maint: remove doubled word: s/it it/it/
38409         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
38411 2011-04-10  Jim Meyering  <meyering@redhat.com>
38413         maint.mk: remove useless semicolon and backslash
38414         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
38415         semicolon and backslash.
38417 2011-04-10  Bruno Haible  <bruno@clisp.org>
38419         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
38420         * modules/stdint-tests (Depends-on): Add wchar.
38422 2011-04-10  Jim Meyering  <meyering@redhat.com>
38424         maint: remove doubled words in comments, e.g., s/a a/a/
38425         * lib/strptime.c (day_of_the_week): s/the the/the/
38426         * tests/test-chown.h (test_chown): s/a a/a/
38428         test-chown.h: correct a cast
38429         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
38430         when the destination is a stat.st_gid.
38432 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
38434         getaddrinfo: Fix test for sa_len member.
38435         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
38436         include <sys/types.h> before <sys/socket.h>.
38438 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
38440         maint: change "can not" to "cannot"
38441         * doc/posix-functions/iconv.texi (iconv): This one crossed line
38442         boundaries.
38444 2011-04-09  Jim Meyering  <meyering@redhat.com>
38446         maint: change "a a" to "a"
38447         * tests/test-lchown.h (test_lchown): s/a a/a/
38449         maint.mk: prohibit \<the the\>
38450         * top/maint.mk (sc_prohibit_the_the): New rule.
38452         maint: fix "the the" in comment
38453         * lib/count-one-bits.h: s/the the/the/
38455         maint: change "can not" to "cannot"
38456         But do not change the occurrences in maintain.texi or in
38457         build-aux/po/Makefile.in.in, which I presume comes from gettext.
38458         * doc/gnulib-tool.texi: s/can not/cannot/
38459         * doc/posix-functions/accept.texi (accept): Likewise.
38460         * doc/posix-functions/socket.texi (socket): Likewise.
38461         * lib/mbrtowc.c: Likewise.
38463         maint.mk: prohibit use of "can not"
38464         * top/maint.mk (sc_prohibit_can_not): New rule.
38465         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
38467 2011-04-09  Bruno Haible  <bruno@clisp.org>
38469         careadlinkat: Guard against misuse of careadlinkatcwd.
38470         * lib/careadlinkat.c: Include <stdlib.h>.
38471         (careadlinkatcwd): Check that the fd argument is as expected.
38473 2011-04-09  Bruno Haible  <bruno@clisp.org>
38475         careadlinkat: Use common coding style.
38476         * lib/careadlinkat.c: Move gnulib includes after system includes.
38478 2011-04-09  Bruno Haible  <bruno@clisp.org>
38480         careadlinkat: Clarify specification.
38481         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
38482         (careadlinkatcwd): Add comment.
38483         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
38485 2011-04-09  Bruno Haible  <bruno@clisp.org>
38487         areadlinkat: Avoid link error on many platforms.
38488         * modules/areadlinkat (Depends-on): Add areadlink.
38490 2011-04-09  Bruno Haible  <bruno@clisp.org>
38492         allocator, careadlinkat: Fix double-inclusion guard.
38493         * lib/allocator.h: Fix double-inclusion guard.
38494         * lib/careadlinkat.h: Likewise.
38496 2011-04-09  Bruno Haible  <bruno@clisp.org>
38498         relocatable-prog-wrapper: Update after module 'areadlink' changed.
38499         * lib/relocwrapper.c: Update dependencies hierarchy.
38500         * build-aux/install-reloc: Update list of files to be compiled.
38501         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
38502         lib/allocator.[hc].
38504 2011-04-08  Eric Blake  <eblake@redhat.com>
38506         strftime: silence gnulib-tool warning
38507         * modules/strftime-tests (Depends-on): Drop automatic dependency.
38509 2011-04-08  Bruno Haible  <bruno@clisp.org>
38511         verify: Fix syntax error with GCC 4.6 in C++ mode.
38512         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
38513         (HAVE_STATIC_ASSERT): New macro.
38514         (verify_true, verify): Use 'static_assert' if it is supported and
38515         '_Static_assert' is not supported.
38517 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
38519         allocator: New module.
38520         * modules/allocator, lib/allocator.c: New files.
38521         * lib/allocator.h (stdlib_allocator): New decl.
38522         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
38523         Remove.  Do not include <stdlib.h>.
38524         (careadlinkat): Use stdlib_allocator instead of rolling our own.
38525         * modules/careadlinkat (Files): Remove lib/allocator.h.
38526         (Depends-on): Add allocator.
38528         stdlib: let modules use system malloc, realloc
38529         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
38530         if !_GL_USE_STDLIB_ALLOC.
38531         (malloc, realloc): Limit this change to a smaller scope.
38533         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
38534         (malloc, realloc): Don't #undef; no longer needed.
38535         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
38536         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
38537         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
38538         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
38539         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
38540         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
38541         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
38542         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
38544         careadlinkat: rename members to avoid problem
38545         * lib/allocator.h (struct allocator): Rename members from
38546         malloc/realloc to allocate/reallocate, to avoid problems if malloc
38547         and realloc are #define'd.  Reported by Eric Blake in
38548         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
38549         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
38551 2011-04-08  Eric Blake  <eblake@redhat.com>
38553         nonblocking: reduce dependency
38554         * tests/test-nonblocking.c: Only test sockets when in use.
38555         * modules/nonblocking-tests (Depends-on): Drop socket.
38556         (Makefile.am): Link even if sockets are not present.
38557         * modules/pipe2-tests (Makefile.am): Likewise.
38558         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
38560         pipe2: fix O_NONBLOCK support on mingw
38561         * modules/pipe2 (Depends-on): Add nonblocking.
38562         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
38563         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
38564         * tests/test-nonblocking.c (main): Likewise.
38565         * modules/pipe2-tests (Makefile.am): Avoid link failure.
38567         fcntl-h: fix O_ACCMODE on cygwin
38568         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
38569         * lib/fcntl.in.h (O_ACCMODE): Fix it.
38571         pipe-filter: drop O_NONBLOCK workarounds
38572         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
38573         * modules/pipe-filter-ii (Depends-on): Likewise.
38574         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
38576         nonblocking: provide O_NONBLOCK for mingw
38577         * modules/nonblocking (Depends-on): Add open.
38578         (configure.ac): Set new witness macro.
38579         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
38580         * modules/fcntl-h (Makefile.am): Substitute it.
38581         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
38582         nonblocking module is in use.
38583         * lib/nonblocking.c: Adjust portability test.
38584         * lib/open.c (open): Don't let native open see gnulib flag.
38585         * tests/test-fcntl-h.c (main): Enhance test.
38586         * tests/test-open.h (test_open): Likewise.
38587         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
38589         careadlinkat: fix compilation error on mingw
38590         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
38591         within struct allocator.
38593 2011-04-06  Eric Blake  <eblake@redhat.com>
38595         binary-io: relicense under LGPLv2+
38596         * modules/binary-io (License): Relax to LGPLv2+.
38597         Requested for libvirt, and required by pipe2.
38599 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
38601         verify: use _Static_assert if available
38602         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
38603         (verify_true, verify): Use it if available.  This generates better
38604         diagnostics with GCC 4.6.0 and later.
38606 2011-04-05  Bruno Haible  <bruno@clisp.org>
38608         Remove leftover generated .h files after config.status changed.
38610         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
38611         GL_GENERATE_ALLOCA_H.
38612         * modules/alloca-opt (Makefile.am): Remove alloca.h if
38613         GL_GENERATE_ALLOCA_H evaluates to false.
38615         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
38616         GL_GENERATE_ARGZ_H.
38617         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
38618         evaluates to false.
38620         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
38621         GL_GENERATE_BYTESWAP_H.
38622         * modules/byteswap (Makefile.am): Remove byteswap.h if
38623         GL_GENERATE_BYTESWAP_H evaluates to false.
38625         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
38626         GL_GENERATE_ERRNO_H.
38627         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
38628         evaluates to false.
38630         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
38631         GL_GENERATE_FLOAT_H.
38632         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
38633         evaluates to false.
38635         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
38636         GL_GENERATE_FNMATCH_H.
38637         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
38638         GL_GENERATE_FNMATCH_H evaluates to false.
38640         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
38641         GL_GENERATE_GLOB_H.
38642         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
38643         evaluates to false.
38645         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
38646         automake conditional GL_GENERATE_ICONV_H.
38647         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
38648         evaluates to false.
38650         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
38651         GL_GENERATE_NETINET_IN_H.
38652         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
38653         GL_GENERATE_NETINET_IN_H evaluates to false.
38655         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
38656         conditional GL_GENERATE_PTHREAD_H.
38657         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
38658         * modules/pthread (Makefile.am): Remove pthread.h if
38659         GL_GENERATE_PTHREAD_H evaluates to false.
38661         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
38662         GL_GENERATE_SCHED_H.
38663         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
38664         evaluates to false.
38666         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
38667         conditional GL_GENERATE_SELINUX_CONTEXT_H.
38668         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
38669         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
38671         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
38672         GL_GENERATE_STDARG_H.
38673         * modules/stdarg (Makefile.am): Remove stdarg.h if
38674         GL_GENERATE_STDARG_H evaluates to false.
38676         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
38677         GL_GENERATE_STDBOOL_H.
38678         * modules/stdbool (Makefile.am): Remove stdbool.h if
38679         GL_GENERATE_STDBOOL_H evaluates to false.
38681         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
38682         conditional GL_GENERATE_STDDEF_H.
38683         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
38684         * modules/stddef (Makefile.am): Remove stddef.h if
38685         GL_GENERATE_STDDEF_H evaluates to false.
38687         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
38688         GL_GENERATE_STDINT_H.
38689         * modules/stdint (Makefile.am): Remove stdint.h if
38690         GL_GENERATE_STDINT_H evaluates to false.
38692         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
38693         GL_GENERATE_SYSEXITS_H.
38694         * modules/sysexits (Makefile.am): Remove sysexits.h if
38695         GL_GENERATE_SYSEXITS_H evaluates to false.
38697         Reported by Karl Berry and Ralf Wildenhues.
38699 2011-04-05  Bruno Haible  <bruno@clisp.org>
38701         Ensure to rebuild generated .h files when config.status has changed.
38702         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
38703         config.status.
38704         * modules/ctype (Makefile.am): Likewise.
38705         * modules/dirent (Makefile.am): Likewise.
38706         * modules/errno (Makefile.am): Likewise.
38707         * modules/fcntl-h (Makefile.am): Likewise.
38708         * modules/float (Makefile.am): Likewise.
38709         * modules/getopt-posix (Makefile.am): Likewise.
38710         * modules/glob (Makefile.am): Likewise.
38711         * modules/iconv-h (Makefile.am): Likewise.
38712         * modules/inttypes (Makefile.am): Likewise.
38713         * modules/langinfo (Makefile.am): Likewise.
38714         * modules/locale (Makefile.am): Likewise.
38715         * modules/math (Makefile.am): Likewise.
38716         * modules/netdb (Makefile.am): Likewise.
38717         * modules/netinet_in (Makefile.am): Likewise.
38718         * modules/poll-h (Makefile.am): Likewise.
38719         * modules/pthread (Makefile.am): Likewise.
38720         * modules/pty (Makefile.am): Likewise.
38721         * modules/sched (Makefile.am): Likewise.
38722         * modules/search (Makefile.am): Likewise.
38723         * modules/selinux-h (Makefile.am): Likewise.
38724         * modules/signal (Makefile.am): Likewise.
38725         * modules/spawn (Makefile.am): Likewise.
38726         * modules/stdarg (Makefile.am): Likewise.
38727         * modules/stdbool (Makefile.am): Likewise.
38728         * modules/stddef (Makefile.am): Likewise.
38729         * modules/stdint (Makefile.am): Likewise.
38730         * modules/stdio (Makefile.am): Likewise.
38731         * modules/stdlib (Makefile.am): Likewise.
38732         * modules/string (Makefile.am): Likewise.
38733         * modules/strings (Makefile.am): Likewise.
38734         * modules/sys_file (Makefile.am): Likewise.
38735         * modules/sys_ioctl (Makefile.am): Likewise.
38736         * modules/sys_select (Makefile.am): Likewise.
38737         * modules/sys_socket (Makefile.am): Likewise.
38738         * modules/sys_stat (Makefile.am): Likewise.
38739         * modules/sys_time (Makefile.am): Likewise.
38740         * modules/sys_times (Makefile.am): Likewise.
38741         * modules/sys_utsname (Makefile.am): Likewise.
38742         * modules/sys_wait (Makefile.am): Likewise.
38743         * modules/sysexits (Makefile.am): Likewise.
38744         * modules/termios (Makefile.am): Likewise.
38745         * modules/time (Makefile.am): Likewise.
38746         * modules/unistd (Makefile.am): Likewise.
38747         * modules/wchar (Makefile.am): Likewise.
38748         * modules/wctype-h (Makefile.am): Likewise.
38749         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
38751 2011-04-05  Bruno Haible  <bruno@clisp.org>
38753         pipe2: Relicense under LGPLv2+.
38754         * modules/pipe2 (License): Change to LGPLv2+.
38755         Requested by Eric Blake, for libvirt.
38757 2011-04-05  Bruce Korb  <bkorb@gnu.org>
38759         bootstrap: compute gnulib_extra_files after updating build_aux
38760         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
38761         change build_aux or also supply gnulib_extra_files.  Handle correctly.
38763 2011-04-05  Eric Blake  <eblake@redhat.com>
38765         bootstrap: preserve git whitelist item sorting
38766         * build-aux/bootstrap (sort_patterns): New function.
38767         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
38769 2011-04-05  Simon Josefsson  <simon@josefsson.org>
38771         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
38772         sc_space_tab check.
38774 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
38776         areadlink, areadlinkat: rewrite in terms of careadlinkat
38777         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
38778         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
38779         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
38780         (malloc, realloc): Remove #undefs.
38781         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
38782         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
38783         readlink, ssize_t, stdint, unistd.
38784         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
38785         areadlink, stdint.
38787         careadlinkat: new module
38788         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
38789         * modules/careadlinkat: New files, written by me with
38790         a review and feedback from Ben Pfaff in
38791         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
38793 2011-04-01  Bruno Haible  <bruno@clisp.org>
38795         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
38796         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
38797         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
38798         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
38799         Reported by Bruce Korb <bruce.korb@gmail.com>.
38801 2011-04-01  Bruno Haible  <bruno@clisp.org>
38803         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
38804         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
38805         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
38806         * modules/wcpcpy (Depends-on): Add extensions.
38807         * modules/wcpncpy (Depends-on): Likewise.
38808         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
38809         systems.
38810         * doc/posix-functions/wcpncpy.texi: Likewise.
38811         * doc/posix-functions/wcwidth.texi: Likewise.
38813 2011-03-31  Eric Blake  <eblake@redhat.com>
38815         nonblocking: fix mingw test failures
38816         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
38817         non-blocking flag on regular file.
38818         (get_nonblocking_flag): Set errno on invalid fd.
38819         * tests/test-nonblocking.c (main): Avoid test failure on
38820         directories if fchdir is not active.
38821         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
38823 2011-03-31  Bruno Haible  <bruno@clisp.org>
38825         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
38826         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
38827         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
38828         Reported by Simon Josefsson <simon@josefsson.org>.
38830 2011-03-31  Bruno Haible  <bruno@clisp.org>
38831         and Eric Blake  <eblake@redhat.com>
38833         nonblocking: new module
38834         * modules/nonblocking: New module.
38835         * modules/nonblocking-tests: Likewise.
38836         * lib/nonblocking.h: New file.
38837         * lib/nonblocking.c: Likewise.
38838         * tests/test-nonblocking.c: New test.
38839         * lib/ioctl.c (ioctl) [mingw]: Update comment.
38841 2011-03-30  Bruno Haible  <bruno@clisp.org>
38843         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
38844         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
38845         instead of 'printf' format for GCC >= 4.4.
38846         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
38847         (fprintf, printf, vfprintf, vprintf): Declare with
38848         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
38849         the system's vfprintf() function.
38850         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
38852 2011-03-30  Eric Blake  <eblake@redhat.com>
38854         passfd: fix scoping bug
38855         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
38856         before sendmsg/recvmsg.
38858         passfd: standardize coding conventions
38859         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
38860         can be learned at compile time.
38861         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
38862         ifdefs.
38863         (sendfd, recvfd): Follow gnulib code conventions.
38865         passfd: fix incorrect sendmsg arguments
38866         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
38867         incorrect msg_controllen value.
38868         * modules/passfd-tests (Depends-on): Check for alarm.
38869         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
38870         Reported by Bastien ROUCARIES.
38872 2011-03-30  Bruno Haible  <bruno@clisp.org>
38874         c-strcasestr: Relicense under LGPLv2+.
38875         * modules/c-strcasestr (License): Change to LGPLv2+.
38876         Requested by Eric Blake, for libvirt.
38878 2011-03-30  Simon Josefsson  <simon@josefsson.org>
38880         * users.txt: Add libidn2.  Fix libtasn1 link.
38882 2011-03-30  Jim Meyering  <meyering@redhat.com>
38884         tests: readlink* ("",... fails with EINVAL on newer kernels
38885         readlink and readlinkat have typically failed with ENOENT for
38886         the invalid, empty file name,  "".  However, with the advent
38887         of linux-2.6.39, they fail with EINVAL.
38888         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
38889         when operating on the empty file name.
38890         * tests/test-readlink.h (test_readlink): Likewise.
38892 2011-03-29  Bruno Haible  <bruno@clisp.org>
38894         Relicense some modules under LGPLv2+, for libidn2.
38895         * modules/array-mergesort (License): Change to LGPLv2+.
38896         * modules/c-strcaseeq (License): Likewise.
38897         * modules/striconveh (License): Likewise.
38898         * modules/striconveha (License): Likewise.
38899         * modules/uniconv/base (License): Likewise.
38900         * modules/uniconv/u8-conv-from-enc (License): Likewise.
38901         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
38902         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
38903         * modules/unictype/base (License): Likewise.
38904         * modules/unictype/bidiclass-of (License): Likewise.
38905         * modules/unictype/category-M (License): Likewise.
38906         * modules/unictype/category-none (License): Likewise.
38907         * modules/unictype/category-of (License): Likewise.
38908         * modules/unictype/category-test (License): Likewise.
38909         * modules/unictype/category-test-withtable (License): Likewise.
38910         * modules/unictype/combining-class (License): Likewise.
38911         * modules/unictype/joiningtype-of (License): Likewise.
38912         * modules/unictype/scripts (License): Likewise.
38913         * modules/uninorm/base (License): Likewise.
38914         * modules/uninorm/canonical-decomposition (License): Likewise.
38915         * modules/uninorm/composition (License): Likewise.
38916         * modules/uninorm/decompose-internal (License): Likewise.
38917         * modules/uninorm/decomposition-table (License): Likewise.
38918         * modules/uninorm/nfc (License): Likewise.
38919         * modules/uninorm/nfd (License): Likewise.
38920         * modules/uninorm/u32-normalize (License): Likewise.
38921         * modules/unistr/base (License): Likewise.
38922         * modules/unistr/u32-cpy (License): Likewise.
38923         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
38924         * modules/unistr/u32-to-u8 (License): Likewise.
38925         * modules/unistr/u32-uctomb (License): Likewise.
38926         * modules/unistr/u8-check (License): Likewise.
38927         * modules/unistr/u8-mblen (License): Likewise.
38928         * modules/unistr/u8-mbtouc (License): Likewise.
38929         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
38930         * modules/unistr/u8-mbtoucr (License): Likewise.
38931         * modules/unistr/u8-prev (License): Likewise.
38932         * modules/unistr/u8-strlen (License): Likewise.
38933         * modules/unistr/u8-to-u32 (License): Likewise.
38934         * modules/unistr/u8-uctomb (License): Likewise.
38935         * modules/unitypes (License): Likewise.
38936         Requested by Simon Josefsson.
38938 2011-03-29  Simon Josefsson  <simon@josefsson.org>
38940         lib-symbol-visibility: Add a notice.
38941         * modules/lib-symbol-visibility (Notice): New field.
38943 2011-03-29  Bruno Haible  <bruno@clisp.org>
38945         getaddrinfo: Doc fix.
38946         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
38947         section "fixed in Gnulib".
38949 2011-03-28  Simon Josefsson  <simon@josefsson.org>
38951         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
38952         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
38954 2011-03-26  Bruno Haible  <bruno@clisp.org>
38956         unictype/property-byname: Reduce the number of load-time relocations.
38957         * lib/unictype/pr_byname.c: Include <stdlib.h>.
38958         (UC_PROPERTY_INDEX_*): New enumeration values.
38959         (uc_property_byname): Convert an index from the lookup table to an
38960         uc_property_t.
38961         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
38962         values.
38964 2011-03-26  Bruno Haible  <bruno@clisp.org>
38966         unictype/property-byname: Allow omitted word separators and aliases.
38967         * lib/unictype/pr_byname.gperf: Add property names without word
38968         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
38969         for 'space'.
38971 2011-03-26  Bruno Haible  <bruno@clisp.org>
38973         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
38974         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
38975         also hyphens to space.
38976         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
38977         without spaces.
38978         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
38980 2011-03-26  Bruno Haible  <bruno@clisp.org>
38982         unictype/joiningtype-byname: Recognize long names as well.
38983         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
38984         a long name.
38985         * lib/unictype/joiningtype_byname.c: Include <string.h>,
38986         unictype/joiningtype_byname.h.
38987         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
38988         * lib/unictype/joiningtype_byname.gperf: New file.
38989         * modules/unictype/joiningtype-byname (Files): Add
38990         lib/unictype/joiningtype_byname.gperf.
38991         (Depends-on): Add gperf.
38992         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
38993         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
38994         long names.
38996         Tests for module 'unictype/joiningtype-longname'.
38997         * modules/unictype/joiningtype-longname-tests: New file.
38998         * tests/unictype/test-joiningtype_longname.c: New file.
39000         New module 'unictype/joiningtype-longname'.
39001         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
39002         * lib/unictype/joiningtype_longname.c: New file.
39003         * modules/unictype/joiningtype-longname: New file.
39004         * modules/unictype/joiningtype-all (Depends-on): Add
39005         unictype/joiningtype-longname.
39007 2011-03-26  Bruno Haible  <bruno@clisp.org>
39009         unictype/bidiclass-byname: Recognize long names as well.
39010         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
39011         name.
39012         * lib/unictype/bidi_byname.c: Include <string.h>,
39013         unictype/bidi_byname.h.
39014         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
39015         * lib/unictype/bidi_byname.gperf: New file.
39016         * modules/unictype/bidiclass-byname (Files): Add
39017         lib/unictype/bidi_byname.gperf.
39018         (Depends-on): Add gperf.
39019         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
39020         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
39021         long names.
39023         Tests for module 'unictype/bidiclass-longname'.
39024         * modules/unictype/bidiclass-longname-tests: New file.
39025         * tests/unictype/test-bidi_longname.c: New file.
39027         New module 'unictype/bidiclass-longname'.
39028         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
39029         * lib/unictype/bidi_longname.c: New file.
39030         * modules/unictype/bidiclass-longname: New file.
39031         * modules/unictype/bidiclass-all (Depends-on): Add
39032         unictype/bidiclass-longname.
39034 2011-03-26  Bruno Haible  <bruno@clisp.org>
39036         unictype/bidi*: Rename modules.
39037         * modules/unictype/bidiclass-all: Renamed from
39038         modules/unictype/bidicategory-all.
39039         * modules/unictype/bidiclass-name: Renamed from
39040         modules/unictype/bidiclass-name.
39041         (Description): Update.
39042         * modules/unictype/bidiclass-name-tests: Renamed from
39043         modules/unictype/bidicategory-name-tests.
39044         * modules/unictype/bidiclass-byname: Renamed from
39045         modules/unictype/bidicategory-byname.
39046         (Description): Update.
39047         * modules/unictype/bidiclass-byname-tests: Renamed from
39048         modules/unictype/bidicategory-byname-tests.
39049         * modules/unictype/bidiclass-of: Renamed from
39050         modules/unictype/bidicategory-of.
39051         (Description): Update.
39052         * modules/unictype/bidiclass-of-tests: Renamed from
39053         modules/unictype/bidicategory-of-tests.
39054         * modules/unictype/bidiclass-test: Renamed from
39055         modules/unictype/bidicategory-test.
39056         (Description): Update.
39057         * modules/unictype/bidiclass-test-tests: Renamed from
39058         modules/unictype/bidicategory-test-tests.
39059         * modules/unictype/bidicategory-all: New file, a simple redirection.
39060         * modules/unictype/bidicategory-name: Likewise.
39061         * modules/unictype/bidicategory-byname: Likewise.
39062         * modules/unictype/bidicategory-of: Likewise.
39063         * modules/unictype/bidicategory-test: Likewise.
39064         * modules/unictype/property-bidi-* (Dependencies): Update.
39065         * lib/unictype/bidi_*.c: Update comment.
39067 2011-03-26  Bruno Haible  <bruno@clisp.org>
39069         unictype/bidi*: Rename functions, part 2.
39070         * modules/unictype/bidicategory-name (configure.ac): Update required
39071         libunistring version.
39072         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
39074 2011-03-25  Bruno Haible  <bruno@clisp.org>
39076         New module 'unictype/combining-class-all'.
39077         * modules/unictype/combining-class-all: New file.
39079         Tests for module 'unictype/combining-class-byname'.
39080         * modules/unictype/combining-class-byname-tests: New file.
39081         * tests/unictype/test-combiningclass_byname.c: New file.
39083         New module 'unictype/combining-class-byname'.
39084         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
39085         * lib/unictype/combiningclass_byname.c: New file.
39086         * lib/unictype/combiningclass_byname.gperf: New file.
39087         * modules/unictype/combining-class-byname: New file.
39089         Tests for module 'unictype/combining-class-longname'.
39090         * modules/unictype/combining-class-longname-tests: New file.
39091         * tests/unictype/test-combiningclass_longname.c: New file.
39093         New module 'unictype/combining-class-longname'.
39094         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
39095         * lib/unictype/combiningclass_longname.c: New file.
39096         * modules/unictype/combining-class-longname: New file.
39098         Tests for module 'unictype/combining-class-name'.
39099         * modules/unictype/combining-class-name-tests: New file.
39100         * tests/unictype/test-combiningclass_name.c: New file.
39102         New module 'unictype/combining-class-name'.
39103         * lib/unictype.in.h (uc_combining_class_name): New declaration.
39104         * lib/unictype/combiningclass_name.c: New file.
39105         * modules/unictype/combining-class-name: New file.
39107 2011-03-25  Bruno Haible  <bruno@clisp.org>
39109         unictype/combining-class: Rename source files.
39110         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
39111         of unictype/combining.h.
39112         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
39113         Update.
39114         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
39115         * modules/unictype/combining-class (Description): Fix.
39116         (Files, Makefile.am): Update.
39117         * tests/unictype/test-combiningclass.c: Renamed from
39118         tests/unictype/test-combining.c.
39119         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
39121 2011-03-25  Bruno Haible  <bruno@clisp.org>
39123         unictype: Update list of canonical combining classes.
39124         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
39126 2011-03-25  Bruno Haible  <bruno@clisp.org>
39128         unictype/category-byname: Recognize long names as well.
39129         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
39130         a long name.
39131         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
39132         unictype/categ_byname.h.
39133         (UC_CATEGORY_INDEX_*): New enumeration values.
39134         (uc_general_category_byname): Use uc_general_category_lookup and
39135         convert from index to value.
39136         * lib/unictype/categ_byname.gperf: New file.
39137         * modules/unictype/category-byname (Files): Add
39138         lib/unictype/categ_byname.gperf.
39139         (Depends-on): Add gperf.
39140         (Makefile.am): Add rule for generating unictype/categ_byname.h.
39141         * tests/unictype/test-categ_byname.c (main): Test the recognition of
39142         long names.
39144         Tests for module 'unictype/category-longname'.
39145         * modules/unictype/category-longname-tests: New file.
39146         * tests/unictype/test-categ_longname.c: New file.
39148         New module 'unictype/category-longname'.
39149         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
39150         * lib/unictype/categ_longname.c: New file.
39151         * modules/unictype/category-longname: New file.
39152         * modules/unictype/category-all (Depends-on): Add it.
39154 2011-03-25  Bruno Haible  <bruno@clisp.org>
39156         Tests for module 'unictype/category-LC'.
39157         * modules/unictype/category-LC-tests: New file.
39158         * tests/unictype/test-categ_LC.c: New file, automatically generated.
39160         New module 'unictype/category-LC'.
39161         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
39162         (UC_CATEGORY_LC): New declaration.
39163         (UC_CASED_LETTER): New macro.
39164         * lib/gen-uni-tables.c (is_category_LC): New function.
39165         (output_categories): Also handle category LC.
39166         (UC_CATEGORY_MASK_LC): New enumeration value.
39167         (general_category_byname): Also handle category LC.
39168         * lib/unictype/categ_LC.c: New file.
39169         * lib/unictype/categ_LC.h: New file, automatically generated.
39170         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
39171         category LC.
39172         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
39173         * modules/unictype/category-LC: New file.
39174         * modules/unictype/category-byname (Depends-on): Add
39175         unictype/category-LC.
39176         * modules/unictype/category-all (Depends-on): Likewise.
39178 2011-03-25  Eric Blake  <eblake@redhat.com>
39180         xmalloc: revert yesterday's regression
39181         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
39182         realloc's underlying behavior (allowing allocation of zero-size
39183         objects, especially if malloc-gnu is also in use).
39185 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
39187         maint.mk: add missing version to VC-tag
39188         * top/maint.mk: git tag was missing actual tag name; add it.
39190         valgrind: do leak checking, and exit with code 1 on error (not 0)
39191         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
39192         to VALGRIND.
39194 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
39196         posix-modules: say what it does.
39197         * posix-modules: Add a line to the --help output saying what it does.
39199 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
39201         xmalloc: Do not leak if underlying realloc is C99 compatible.
39202         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
39203         This avoids a leak on C99-based systems.  See
39204         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
39206 2011-03-24  Eric Blake  <eblake@redhat.com>
39208         realloc: document portability problem
39209         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
39210         passing 0 size to realloc.
39212 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
39214         doc: update users.txt
39215         * users.txt: Add cvsps, tmpwatch
39217 2011-03-23  Matt Rice  <ratmice@gmail.com>
39219         doc: update users.txt
39220         * users.txt: Add gdb.
39222 2011-03-23  Jim Meyering  <meyering@redhat.com>
39224         doc: update users.txt
39225         Looking through matches up to the following URL (there are still
39226         several more pages), I found several projects that use gnulib:
39227         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
39228         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
39229         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
39231 2011-03-22  Bruno Haible  <bruno@clisp.org>
39233         unictype/bidi*: Rename functions.
39234         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
39235         uc_bidi_class, uc_is_bidi_class): New declarations.
39236         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
39237         uc_bidi_category_byname.
39238         (uc_bidi_category_byname): New function.
39239         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
39240         u_bidi_category_name.
39241         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
39242         (uc_bidi_category_name): New function.
39243         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
39244         uc_bidi_category.
39245         (uc_bidi_category): New function.
39246         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
39247         uc_is_bidi_category. Invoke uc_bidi_class.
39248         (uc_is_bidi_category): New function.
39249         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
39250         instead of uc_bidi_category_byname.
39251         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
39252         instead of uc_bidi_category_name.
39253         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
39254         uc_bidi_category.
39255         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
39256         instead of uc_is_bidi_category.
39258 2011-03-21  Bruno Haible  <bruno@clisp.org>
39260         New module 'unictype/joininggroup-all'.
39261         * modules/unictype/joininggroup-all: New file.
39263         Tests for module 'unictype/joininggroup-of'.
39264         * modules/unictype/joininggroup-of-tests: New file.
39265         * tests/unictype/test-joininggroup_of.c: New file.
39266         * tests/unictype/test-joininggroup_of.h: New file, automatically
39267         generated by gen-uni-tables.
39269         New module 'unictype/joininggroup-of'.
39270         * modules/unictype/joininggroup-of: New file.
39271         * lib/unictype/joininggroup_of.c: New file.
39272         * lib/unictype/joininggroup_of.h: New file, automatically generated by
39273         gen-uni-tables.
39275         Tests for module 'unictype/joininggroup-byname'.
39276         * modules/unictype/joininggroup-byname-tests: New file.
39277         * tests/unictype/test-joininggroup_byname.c: New file.
39279         New module 'unictype/joininggroup-byname'.
39280         * modules/unictype/joininggroup-byname: New file.
39281         * lib/unictype/joininggroup_byname.c: New file.
39282         * lib/unictype/joininggroup_byname.gperf: New file.
39284         Tests for module 'unictype/joininggroup-name'.
39285         * modules/unictype/joininggroup-name-tests: New file.
39286         * tests/unictype/test-joininggroup_name.c: New file.
39288         New module 'unictype/joininggroup-name'.
39289         * modules/unictype/joininggroup-name: New file.
39290         * lib/unictype/joininggroup_name.c: New file.
39291         * lib/unictype/joininggroup_name.h: New file.
39293         New module 'unictype/joiningtype-all'.
39294         * modules/unictype/joiningtype-all: New file.
39296         Tests for module 'unictype/joiningtype-of'.
39297         * modules/unictype/joiningtype-of-tests: New file.
39298         * tests/unictype/test-joiningtype_of.c: New file.
39299         * tests/unictype/test-joiningtype_of.h: New file, automatically
39300         generated by gen-uni-tables.
39302         New module 'unictype/joiningtype-of'.
39303         * modules/unictype/joiningtype-of: New file.
39304         * lib/unictype/joiningtype_of.c: New file.
39305         * lib/unictype/joiningtype_of.h: New file, automatically generated by
39306         gen-uni-tables.
39308         Tests for module 'unictype/joiningtype-byname'.
39309         * modules/unictype/joiningtype-byname-tests: New file.
39310         * tests/unictype/test-joiningtype_byname.c: New file.
39312         New module 'unictype/joiningtype-byname'.
39313         * modules/unictype/joiningtype-byname: New file.
39314         * lib/unictype/joiningtype_byname.c: New file.
39316         Tests for module 'unictype/joiningtype-name'.
39317         * modules/unictype/joiningtype-name-tests: New file.
39318         * tests/unictype/test-joiningtype_name.c: New file.
39320         New module 'unictype/joiningtype-name'.
39321         * modules/unictype/joiningtype-name: New file.
39322         * lib/unictype/joiningtype_name.c: New file.
39324         unictype: Add support for Arabic shaping properties.
39325         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
39326         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
39327         declarations.
39328         (UC_JOINING_GROUP_*): New enumeration values.
39329         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
39330         declarations.
39331         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
39332         (unicode_joining_type): New variable.
39333         (UC_JOINING_GROUP_*): New enumeration values.
39334         (unicode_joining_group): New variable.
39335         (fill_arabicshaping, joining_type_as_c_identifier,
39336         output_joining_type_test, output_joining_type,
39337         joining_group_as_c_identifier, output_joining_group_test,
39338         output_joining_group): New functions.
39339         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
39340         fill_arabicshaping and output_joining_type_test, output_joining_type,
39341         output_joining_group_test, output_joining_group.
39342         Reported by Simon Josefsson.
39344 2011-03-21  Jim Meyering  <meyering@redhat.com>
39346         strftime: fix a bug in yesterday's change
39347         * lib/strftime.c (add): Accommodate width's initial value of -1.
39348         Otherwise, nstrftime would copy uninitialized data into
39349         the result buffer.
39351 2011-03-21  Jim Meyering  <meyering@redhat.com>
39353         tests: add strftime-tests module
39354         * tests/test-strftime.c: New file.
39355         * modules/strftime-tests: New module.
39357 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
39359         strftime: don't assume a byte count fits in 'int'
39360         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
39361         found this problem by static analysis, using gcc -Wstrict-overflow
39362         (GCC 4.5.2, x86-64).  This reported an optimization that depended
39363         on an integer overflow having undefined behavior, but it turns out
39364         that the argument is a size, which might not fit in 'int' anyway,
39366 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
39368         stdio: don't require ignore_value around fwrite
39370         This patch works around libc bug 11959
39371         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
39372         Without this patch, applications must often write
39373         ignore_value (fwrite (...)) even though the ignore_value is
39374         not helpful here.  It's common to write many objects, using
39375         fwrite/printf/etc., and then use ferror to detect output error.
39377         I considered making this patch optional, but decided against it,
39378         because libc is obviously being inconsistent here: there is no
39379         reason libc should insist that user code must inspect fwrite
39380         return's value without also insisting that it inspect printf's,
39381         putchar's, etc.  If user code wants to have a strict style where
39382         all these functions' values are checked (so that ferror need not
39383         be checked), we could add support for that style in a new gnulib
39384         module, but in the meantime it's better to be consistent and to
39385         support common usage.
39387         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
39388         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
39389         that we are compiling in checking mode, and if not C++, and
39390         if not already wrapping fwrite for some other reason.
39391         (fwrite): #define to rpl_fwrite if the latter is defined.
39393 2011-03-20  Bruno Haible  <bruno@clisp.org>
39395         verror: Fix compilation error introduced on 2011-02-13.
39396         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
39397         instead of __attribute__.
39398         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39400 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
39401             Bruno Haible  <bruno@clisp.org>
39403         socklen: do not depend on sys_socket
39404         While trying to modify Emacs to use gnulib's socklen module,
39405         I discovered a circular dependency: socklen depends on sys_socket
39406         and vice versa.  Emacs can use socklen, but it does not need
39407         sys_socket because it has its own substitute for sys/socket.h.
39408         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
39409         gl_TYPE_SOCKLEN_T.
39410         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
39411         gl_PREREQ_SYS_H_SOCKET.
39412         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
39413         gl_PREREQ_SYS_H_SOCKET.
39414         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
39415         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
39416         * modules/socklen (Depends-on): Do not depend on sys_socket.
39417         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
39419 2011-03-20  Jim Meyering  <meyering@redhat.com>
39421         maint.mk: sort file names *after* new transformation
39422         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
39423         prefix would have led to an unwarranted failure in GNU parted.
39424         Sort after that transformation.
39426 2011-03-19  Jim Meyering  <meyering@redhat.com>
39428         maint.mk: fix po-file syntax-check rule
39429         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
39430         Patch by Bruno Haible.
39432 2011-03-19  Bruno Haible  <bruno@clisp.org>
39434         socklen: Update comment.
39435         * m4/socklen.m4: Update comment about platforms.
39437 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
39438             Bruno Haible  <bruno@clisp.org>
39440         inet_ntop, inet_pton: Simplify.
39441         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
39442         documented to provide socklen_t and we already depend on sys_socket.
39443         * modules/inet_pton (Depends-on): Likewise.
39444         * lib/arpa_inet.in.h: Adjust comment.
39446 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
39447             Bruno Haible  <bruno@clisp.org>
39449         netdb: Simplify.
39450         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
39451         documented to provide socklen_t and we already depend on sys_socket.
39452         * lib/netdb.in.h: Adjust comment.
39454 2011-03-19  Bruno Haible  <bruno@clisp.org>
39456         sys_socket, netdb: Document problem with socklen_t.
39457         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
39458         platforms.
39459         * doc/posix-headers/netdb.texi: Likewise.
39461 2011-03-18  Eric Blake  <eblake@redhat.com>
39463         maint.mk: let po check work in VPATH build
39464         * top/maint.mk (po_file): Allow cfg.mk override.
39465         (sc_po_check): Allow VPATH use.
39466         Reported by Jiri Denemark.
39468 2011-03-16  Jim Meyering  <meyering@redhat.com>
39470         maint.mk: allow fine-grained syntax-check exclusion via Make variables
39471         Before, you would have had to create one .x-sc_ file per rule in order
39472         to exempt offending files.  Now, you may instead use a Make variable --
39473         usually defined in cfg.mk -- whose name identifies the affected rule.
39474         * top/maint.mk (_sc_excl): Define.
39475         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
39476         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
39478 2011-03-13  Bruno Haible  <bruno@clisp.org>
39480         ignore-value tests: Avoid warnings.
39481         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
39482         empty for gcc < 3.4.
39484 2011-03-13  Bruno Haible  <bruno@clisp.org>
39486         passfd: Fix link error on Solaris.
39487         * modules/passfd (Description): Correct.
39488         (Depends-on): Add socketlib.
39489         (Link): New section.
39490         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
39492 2011-03-13  Bruno Haible  <bruno@clisp.org>
39494         passfd: Fix link error on AIX 5.2.
39495         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
39497 2011-03-13  Bruno Haible  <bruno@clisp.org>
39499         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
39500         * lib/sys_socket.in.h: Include <stddef.h>.
39501         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
39502         CMSG_FIRSTHDR. Remove unused variable.
39504 2011-03-13  Bruno Haible  <bruno@clisp.org>
39506         passfd: Fix compilation error on OpenBSD.
39507         * lib/passfd.c: Include <sys/uio.h>.
39509 2011-03-13  Bruno Haible  <bruno@clisp.org>
39511         passfd test: Fix warnings.
39512         * tests/test-passfd.c: Include <sys/wait.h>.
39513         (main): Fix typo.
39515 2011-03-13  Bruno Haible  <bruno@clisp.org>
39517         passfd module, part 4, tweaks.
39518         * tests/test-passfd.c: Reorder includes.
39519         (main): Fix perror and printf calls.
39521 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
39523         passfd module, part 4.
39524         * modules/passfd-tests: New file.
39525         * tests/test-passfd.c: New file.
39527 2011-03-13  Jim Meyering  <meyering@redhat.com>
39529         Makefile: rely on GNU make; derive syntax-check rule names
39530         Rather than requiring that each sc_ rule be listed as a dependent
39531         of "check", use features of GNU make to derive the list.
39532         * Makefile (syntax-check-rules): Define.
39533         (check): Depend on the new variable, not the hard-coded list.
39535 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
39536             Bruno Haible  <bruno@clisp.org>
39538         passfd module, part 3.
39539         * lib/passfd.h (recvfd): Add a flags argument.
39540         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
39541         (recvfd): Add a flags argument.
39542         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
39543         exists.
39544         * modules/passfd (Depends-on): Add cloexec.
39545         Suggested by Eric Blake.
39547 2011-03-13  Bruno Haible  <bruno@clisp.org>
39549         passfd module, part 2, tweaks.
39550         * modules/passfd (Files): Reorder.
39551         (Depends-on): Remove errno.
39552         (Include): Remove <sys/socket.h>, <sys/un.h>.
39553         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
39554         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
39555         specification header. Include <sys/socket.h> always. Don't include
39556         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
39557         (sendfd): Clarify that it sets errno when it fails.
39558         (recvfd): Fix specification.
39560 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
39562         passfd module, part 2.
39563         * modules/passfd: New file.
39564         * lib/passfd.h: New file.
39565         * lib/passfd.c: New file.
39567 2011-03-12  Bruno Haible  <bruno@clisp.org>
39569         wcswidth, mbswidth: Avoid integer overflow.
39570         * lib/wcswidth.c: Include <limits.h>.
39571         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
39572         * lib/mbswidth.c: Include <limits.h>.
39573         (mbsnwidth): Avoid 'int' overflow.
39574         Reported by Jim Meyering.
39576 2011-03-12  Bruno Haible  <bruno@clisp.org>
39578         futimens, utimensat: Avoid endless recursion on Solaris 10.
39579         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
39580         Solaris.
39581         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
39582         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
39584 2011-03-11  Jim Meyering  <meyering@redhat.com>
39586         maint.mk: relax a regexp to accommodate other formatting styles
39587         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
39588         between "ngettext" and the following "(".
39590 2011-03-11  Pádraig Brady  <P@draigBrady.com>
39592         maint.mk: suppress a false positive warning
39593         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
39594         diagnostics are marked with ngettext.
39596 2011-03-10  Eric Blake  <eblake@redhat.com>
39598         wchar: add explicit dependencies, for Tru64
39599         * modules/mbmemcasecoll (Depends-on): Add wchar.
39600         * modules/mbtowc (Depends-on): Likewise.
39601         * modules/vasnprintf (Depends-on): Likewise.
39602         * modules/unistdio/u-printf-args (Depends-on): Likewise.
39603         * modules/wctomb (Depends-on): Likewise.
39604         Reported by Peter O'Gorman.
39606 2011-03-08  Bruno Haible  <bruno@clisp.org>
39608         passfd module, part 1, tweaks.
39609         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
39610         Improve indentation. Improve AC_MSG_CHECKING messages.
39611         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
39612         gl_SOCKET_FAMILIES.
39614 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
39616         passfd module, part 1.
39617         * m4/afunix.m4: New file.
39618         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
39619         sockets.
39621 2011-03-08  Bruno Haible  <bruno@clisp.org>
39623         regex-quote: New API.
39624         * lib/regex-quote.h: Include <stdbool.h>.
39625         (struct regex_quote_spec): New type.
39626         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
39627         New declarations.
39628         (regex_quote_length, regex_quote_copy, regex_quote): Take a
39629         'const struct regex_quote_spec *' argument.
39630         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
39631         (pcre_special): New constant.
39632         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
39633         New functions.
39634         (regex_quote_length, regex_quote_copy, regex_quote): Take a
39635         'const struct regex_quote_spec *' argument.
39636         * modules/regex-quote (Depends-on): Add stdbool.
39637         * tests/test-regex-quote.c (check): Update for new API. Add test for
39638         anchored results.
39639         * NEWS: Mention the API change.
39640         Reported by Reuben Thomas and Eric Blake.
39642 2011-03-06  Bruno Haible  <bruno@clisp.org>
39644         regex-quote: Fix creation of POSIX extended regular expressions.
39645         * lib/regex-quote.c (ere_special): Add grouping and alternation
39646         operators.
39648 2011-03-05  Bruno Haible  <bruno@clisp.org>
39650         doc: Improve doc regarding autopoint vs. gnulib.
39651         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
39652         disable autopoint while running autoreconf.
39653         Suggested by Ralf Wildenhues.
39655 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39657         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
39658         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
39660 2011-03-03  Bruce Korb  <bkorb@gnu.org>
39662         parse-duration: remove xalloc.h dependency
39663         * lib/parse-duration.c (parse_period): handle NULL return from
39664         strdup instead of calling xstrdup().
39665         * modules/parse-duration: remove "xalloc" dependency
39667 2011-03-03  Matthew Booth  <mbooth@redhat.com>
39669         bootstrap: honor m4_base when running aclocal
39670         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
39672 2011-03-02  Jim Meyering  <meyering@redhat.com>
39674         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
39675         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
39676         on request from Matt Booth.
39678 2011-03-01  Eric Blake  <eblake@redhat.com>
39680         test-link: work on Hurd
39681         * tests/test-link.h (test_link): Hurd rejects linking directories
39682         with EISDIR instead of the POSIX-mandated EPERM.
39684 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
39686         stdio: simplify by moving files to printf-posix, sigpipe
39687         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
39688         since this symbol is needed only if printf is replaced.
39689         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
39690         Require gl_ASM_SYMBOL_PREFIX.
39691         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
39692         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
39693         (Depends-on): Add 'raise'.
39694         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
39695         * modules/stdio (Files): Remove lib/stdio-write.c,
39696         m4/asm-underscore.m4.
39697         (Depends-on): Remove 'raise'.
39699         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
39700         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
39701         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
39702         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
39704 2011-02-28  Bruno Haible  <bruno@clisp.org>
39706         localcharset: Assume ANSI C behaviour of free().
39707         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
39708         calling free().
39709         Suggested by Simon Josefsson <simon@josefsson.org>.
39711 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
39712             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
39713             Bruno Haible  <bruno@clisp.org>  (tiny change)
39715         On Cygwin, use /proc file system instead of win32 API.
39716         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
39717         Win32 file names.
39718         (DllMain): Simplify by removing Cygwin specific code.
39719         (find_shared_library_fullname): Use Linux specific implementation also
39720         for Cygwin.
39721         (get_shared_library_fullname): Update accordingly.
39722         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
39723         Win32 file names.
39724         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
39725         Cygwin specific code.
39727 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
39728             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
39730         Fix OpenMP flag detection for various Fortran compilers.
39731         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
39732         OpenMP-conditional compilation construct, to force compile
39733         failure with missing OpenMP flag.
39734         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
39736 2011-02-25  Eric Blake  <eblake@redhat.com>
39738         strstr: expand test coverage
39739         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
39740         compilation.
39741         * tests/test-memmem.c (main): Duplicate tests.
39742         * tests/test-strcasestr.c (main): Likewise.
39743         * tests/test-c-strcasestr.c (main): Likewise.
39745 2011-02-25  Jim Meyering  <meyering@redhat.com>
39747         maint.mk: detect missing-NL-at-EOF, too
39748         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
39749         it also detects when a file lacks a newline at EOF.
39750         (require_exactly_one_NL_at_EOF_): Renamed from
39751         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
39752         since people may well have .x-sc_... file names tied to the
39753         existing name.  Suggested by Eric Blake.
39755 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
39757         dirname: move m4/dos.m4 functionality into lib/dosname.h
39759         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
39760         extracts symbols from it, puts them into config.h; but it's much
39761         easier to use the symbols directly.  filename.h already does this,
39762         but it disagrees with dos.m4 in some respects.  This patch
39763         introduces a different include file dosname.h that packages up
39764         dos.m4, and then later we can work on merging filename.h and
39765         dosname.h.  Applications that need only the easy-to-configure
39766         symbols should consider including dosname.h rather than dirname.h.
39767         * NEWS: Mention incompatible changes.
39768         * m4/dos.m4: Remove.
39769         * lib/dosname.h, modules/dosname: New files.
39770         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
39771         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
39772         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
39773         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
39774         Include dosname.h, not dirname.h.
39775         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
39776         Include dosname.h, for definitions of symbols like ISSLASH
39777         that used to be in config.h.
39778         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
39779         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
39780         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
39781         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
39782         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
39783         * modules/rmdir (Files): Likewise.
39784         * modules/stat (Files): Likewise.
39785         * modules/unlink (Files): Likewise.
39786         * modules/dirname-lgpl (Depends-on): Add dosname.
39787         * modules/lstat (Depends-on): Likewise.
39788         * modules/openat (Depends-on): Likewise.
39789         * modules/rmdir (Depends-on): Likewise.
39790         * modules/savewd (Depends-on): Likewise.
39791         * modules/stat (Depends-on): Likewise.
39792         * modules/unlink (Depends-on): Likewise.
39793         * modules/openat (Depends-on): Remove dirname-lgpl.
39794         * modules/savewd (Depends-on): Likewise.
39795         * tests/test-dirname.c: Do not use removed symbols like
39796         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
39797         the remaining symbols, e.g., ISSLASH ('\\').
39799 2011-02-25  Eric Blake  <eblake@redhat.com>
39801         strstr: revert patches that introduced bug and pessimization
39802         * lib/str-two-way.h: Add another reference.
39803         (two_way_short_needle, two_way_long_needle): Revert changes from
39804         2011-02-24; they pessimize search speed.
39805         (critical_factorization): Partially revert changes from
39806         2010-06-22; they violate the requirement that the left half of the
39807         needle be smaller than the period of the needle.
39809 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
39811         filenamecat: remove unnecessary dependency on dirname-lgpl
39812         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
39813         is no direct dependency, just an indirect one via filenamecat-lgpl.
39815         remove: remove unnecessary use of m4/dos.m4
39816         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
39817         * modules/remove (FILES): Remove m4/dos.m4.
39819         * lib/openat-proc.c: Don't include dirname.h; not needed.
39821         backupfile: remove unnecessary use of m4/dos.m4
39822         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
39823         of its symbols are used by the backupfile code.  backupfile.c does
39824         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
39825         for the rare case of programs that want all their backup file
39826         names to live within 8+3 limits, and dos.m4 doesn't address that.
39827         * modules/backupfile (Files): Remove m4/dos.m4.
39829 2011-02-24  Jim Meyering  <meyering@redhat.com>
39831         strstr: fix a bug whereby strstr would mistakenly return NULL
39832         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
39833         in period calculation.
39834         (two_way_long_needle): Likewise.
39835         The original problem was reported by Mike Stump in
39836         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
39837         Ralf Wildenhues provided the short needle and haystack.
39838         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
39839         Add a more involved test to trigger the bug in two_way_long_needle.
39841 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
39843         gnulib-tool: remove use of bold display in help screen
39844         * gnulib-tool (func_usage): Do not use bold display anymore in the
39845         help screen.  That was just meant to be a temporary emphasis for a
39846         backward-incompatible change.
39848 2011-02-23  Bruno Haible  <bruno@clisp.org>
39850         Fix misindentation of preprocessor directives.
39851         * lib/argp-namefrob.h: Reindent preprocessor directives.
39852         * lib/getopt_int.h (struct _getopt_data): Likewise.
39853         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
39854         * lib/vasnprintf.c (decode_long_double): Likewise.
39855         * tests/test-argmatch.c: Insert blank lines, for clarity.
39856         * tests/test-exclude.c: Likewise.
39858 2011-02-22  Bruno Haible  <bruno@clisp.org>
39860         ioctl: Fix for MacOS X in 64-bit mode.
39861         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
39862         value.
39863         Suggested by Eric Blake.
39864         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
39866 2011-02-22  Jim Meyering  <meyering@redhat.com>
39868         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
39869         * Makefile (sc_cpp_indent_check): Don't limit the check to files
39870         in lib/.
39872 2011-02-22  Eric Blake  <eblake@redhat.com>
39874         maint: avoid any CDPATH issue
39875         * Makefile (sc_cpp_indent_check): Anchor cd argument.
39877         maint: adjust cpp indentation for my modules, as well
39878         * Makefile (sc_cpp_indent_check): Add my name.
39879         * lib/fbufmode.c: Filter through cppi.
39880         * lib/fpurge.c: Likewise.
39881         * lib/freadable.c: Likewise.
39882         * lib/freading.c: Likewise.
39883         * lib/fwritable.c: Likewise.
39884         * lib/fwriting.c: Likewise.
39885         * lib/sigaction.c: Likewise.
39887 2011-02-22  Jim Meyering  <meyering@redhat.com>
39889         maint: adjust cpp indentation to reflect nesting depth
39890         I.e., in a block of code that begins with an unnested "#if",
39891         put one space between the "#" in column 1 and following token.
39892         For example,
39893         -#include <sys/vfs.h>
39894         +# include <sys/vfs.h>
39895         Do this only in .c files that are part of a module I maintain.
39896         * lib/linkat.c: Filter through cppi.
39897         * lib/nanosleep.c: Likewise.
39898         * lib/openat.c: Likewise.
39899         * lib/openat-die.c: Likewise.
39900         * lib/dup3.c: Likewise.
39901         * lib/fchownat.c: Likewise.
39902         * lib/flock.c: Likewise.
39903         * lib/fsync.c: Likewise.
39904         * lib/fts.c: Likewise.
39905         * lib/getpass.c: Likewise.
39906         * lib/gettimeofday.c: Likewise.
39907         * lib/userspec.c: Likewise.
39908         * Makefile (sc_cpp_indent_check): New rule, to check this.
39910 2011-02-22  Bruno Haible  <bruno@clisp.org>
39912         New module 'wctomb'.
39913         * lib/stdlib.in.h (wctomb): New declaration.
39914         * lib/wctomb.c: New file.
39915         * lib/wctomb-impl.h: New file.
39916         * m4/wctomb.m4: New file.
39917         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
39918         REPLACE_WCTOMB.
39919         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
39920         REPLACE_WCTOMB.
39921         * modules/wctomb: New file.
39922         * tests/test-stdlib-c++.cc: Test signature of wctomb.
39923         * doc/posix-functions/wctomb.texi: Mention the new module.
39924         * modules/wctob (Depends-on): Add wctomb.
39926 2011-02-22  Bruno Haible  <bruno@clisp.org>
39928         New module 'mbtowc'.
39929         * lib/stdlib.in.h (mbtowc): New declaration.
39930         * lib/mbtowc.c: New file.
39931         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
39932         * m4/mbtowc.m4: New file.
39933         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
39934         REPLACE_MBTOWC.
39935         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
39936         REPLACE_MBTOWC.
39937         * modules/mbtowc: New file.
39938         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
39939         * doc/posix-functions/mbtowc.texi: Mention the new module.
39940         * modules/btowc (Depends-on): Add mbtowc.
39942 2011-02-22  Bruno Haible  <bruno@clisp.org>
39944         wcrtomb: Add more tests for native Windows platforms.
39945         * tests/test-wcrtomb-w32-1.sh: New file.
39946         * tests/test-wcrtomb-w32-2.sh: New file.
39947         * tests/test-wcrtomb-w32-3.sh: New file.
39948         * tests/test-wcrtomb-w32-4.sh: New file.
39949         * tests/test-wcrtomb-w32-5.sh: New file.
39950         * tests/test-wcrtomb-w32.c: New file.
39951         * modules/wcrtomb-tests (Files): Add them.
39952         (Makefile.am): Arrange to run these tests.
39953         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
39954         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
39956 2011-02-20  Bruno Haible  <bruno@clisp.org>
39958         wcrtomb: Enhance test.
39959         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
39961 2011-02-20  Bruno Haible  <bruno@clisp.org>
39963         mbrtowc: Tiny optimization.
39964         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
39966 2011-02-20  Jim Meyering  <meyering@redhat.com>
39968         test-exclude.c: remove unmatched #endif
39969         * tests/test-exclude.c: Remove stray #endif, left over from
39970         the change of a week ago.
39972 2011-02-19  Jim Meyering  <meyering@redhat.com>
39974         git-version-gen: skip "-dirty" check when appropriate
39975         * build-aux/git-version-gen: Don't run any git commands when the
39976         version string comes from .tarball-version.  Prior to this, we
39977         would run git update-index --refresh even from a just-unpacked
39978         tarball directory, and that could affect a .git/ directory in a
39979         parent of the build directory.  Reported by Mike Frysinger.
39981 2011-02-19  Bruno Haible  <bruno@clisp.org>
39983         unictype/property-byname: Reduce the size of the 'data' segment.
39984         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
39986 2011-02-19  Bruno Haible  <bruno@clisp.org>
39988         unictype/scripts: Reduce the size of the 'data' segment.
39989         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
39990         '%pic'.
39991         * lib/unictype/scripts_byname.gperf: Regenerated.
39993 2011-02-19  Bruno Haible  <bruno@clisp.org>
39995         stdint: Update documentation.
39996         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
39998 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
40000         stdint: omit redundant check for wchar.h
40001         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
40002         always tests whether wchar.h exists, so remove the now-redundant test.
40004 2011-02-18  Bruno Haible  <bruno@clisp.org>
40006         stdint: Cut dependency to module 'wchar'.
40007         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
40008         include the necessary prerequisites.
40009         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
40010         * modules/stdint (Depends-on): Remove wchar.
40011         (Makefile.am): Substitute HAVE_WCHAR_H.
40012         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
40014 2011-02-18  Eric Blake  <eblake@redhat.com>
40016         longlong: skip, rather than fail, on cross-compilation
40017         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
40018         when cross-compiling; regression from 2011-02-16.
40020 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
40022         * NEWS: Mention 2011-02-08 change to stdlib.
40024 2011-02-17  Bruno Haible  <bruno@clisp.org>
40026         getloadavg: Add comments about platforms.
40027         * m4/getloadavg.m4: Add comment.
40028         * lib/getloadavg.c: Likewise.
40030 2011-02-17  Bruno Haible  <bruno@clisp.org>
40032         getloadavg: Fix link error on Solaris 2.6.
40033         * modules/getloadavg (Link): New section.
40034         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
40035         linking test-getloadavg.
40036         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
40037         getloadavg.
40039 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
40041         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
40042         It was 'int', but this doesn't match the IRIX 6.5 manual.
40043         Suggested by Bruno Haible in
40044         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
40046 2011-02-17  Bruno Haible  <bruno@clisp.org>
40048         havelib: Fix comments.
40049         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
40050         change.
40052 2011-02-17  Bruno Haible  <bruno@clisp.org>
40054         havelib: Update config.rpath.
40055         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
40057 2011-02-17  Bruno Haible  <bruno@clisp.org>
40059         getloadavg test: Add some plausibility checks.
40060         * tests/test-getloadavg.c (check_avg): Print a warning when the value
40061         is improbable.
40063 2011-02-16  Eric Blake  <eblake@redhat.com>
40065         maintainer-makefile: make syntax-check a no-op from tarballs
40066         * top/maint.mk (no-vc-detected): New rule.
40067         (local-checks-available): Use it to avoid hanging if someone tries
40068         'make syntax-check' from a tarball.  Also append to any non-syntax
40069         checks already defined in cfg.mk.
40071 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
40073         longlong: tune, particularly for common case of c99
40075         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
40076         or running anything if c99, or if unsigned long long int does not
40077         work.  In either case, we know the answer without further tests.
40078         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
40079         it at most once, and use its results for both long long int and
40080         unsigned long long int.  This is more likely to be efficient in
40081         the common case where the program wants to check for both long
40082         long int and unsigned long long int.
40083         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
40084         since the answer is already known.
40086 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
40088         getloadavg: set errno
40089         * lib/getloadavg.c: Set errno when returning -1.  If no other
40090         error number looks appropriate, set it to ENOSYS if the getloadavg
40091         looks like it can't possibly ever work, ENOTSUP otherwise.
40092         Suggested by Bruno Haible in
40093         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
40095         getloadavg: trim unused parts and speed up 'configure'
40096         * NEWS: Document this.
40097         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
40098         always compiled if getloadavg is absent.
40099         Move test code to ...
40100         * tests/test-getloadavg.c: New file, containing previous
40101         contents of test from lib/getloadavg.c.  It also contains
40102         suggestions by Bruno Haible in
40103         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
40104         * modules/getloadavg-tests: New file.
40105         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
40106         Do tests in the same order as they're needed for getloadavg.c.
40107         Omit setgid-related tests that generate symbols KMEM_GROUP,
40108         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
40109         Do only the tests that are needed to see whether the system has
40110         getloadavg, moving the other tests into ...
40111         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
40112         NLIST_NAME_UNION; nobody should be using it.  Do not define
40113         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
40114         relevant, as the user of this module shouldn't care how getloadavg
40115         is implemented.
40117         getloadavg: omit unused var
40118         * lib/getloadavg.c (getloadavg): Omit unused local variable.
40120 2011-02-15  Jim Meyering  <meyering@redhat.com>
40122         doc: update users.txt
40123         * users.txt: Update iwhd's URL.
40125 2011-02-13  Bruno Haible  <bruno@clisp.org>
40127         Consistent macro naming for macros that use GCC __attribute__.
40128         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
40129         _ATTRIBUTE_NONNULL_.
40130         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
40131         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
40132         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
40133         ATTRIBUTE_DEPRECATED.
40134         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
40135         ATTRIBUTE_NORETURN.
40136         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
40137         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
40138         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
40139         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
40140         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
40141         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
40142         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
40143         ATTRIBUTE_SENTINEL.
40144         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
40145         ATTRIBUTE_RETURN_CHECK.
40146         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
40147         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
40148         ATTRIBUTE_NORETURN.
40149         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
40150         Reported by Paul Eggert.
40152 2011-02-13  Bruno Haible  <bruno@clisp.org>
40154         Don't interfere with a program's definition of __attribute__.
40155         * lib/argp.h (__attribute__): Remove definition.
40156         (_GL_ATTRIBUTE_FORMAT): New macro.
40157         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
40158         * lib/argp-fmtstream.h (__attribute__): Remove definition.
40159         (_GL_ATTRIBUTE_FORMAT): New macro.
40160         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
40161         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
40162         GCC 3 or newer.
40163         * lib/error.h (__attribute__): Remove definition.
40164         (_GL_ATTRIBUTE_FORMAT): New macro.
40165         (error, error_at_line): Use it.
40166         * lib/hash.h (__attribute__): Remove definition.
40167         (ATTRIBUTE_WUR): Update definition. Define always.
40168         * lib/openat.h (__attribute__): Remove definition.
40169         (ATTRIBUTE_NORETURN): Update definition. Define always.
40170         * lib/sigpipe-die.h (__attribute__): Remove definition.
40171         (ATTRIBUTE_NORETURN): Update definition. Define always.
40172         * lib/vasnprintf.h (__attribute__): Remove definition.
40173         (_GL_ATTRIBUTE_FORMAT): New macro.
40174         (asnprintf, vasnprintf): Use it.
40175         * lib/xalloc.h (__attribute__): Remove definition.
40176         (ATTRIBUTE_NORETURN): Update definition. Define always.
40177         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
40178         * lib/xmemdup0.h (__attribute__): Remove definition.
40179         (ATTRIBUTE_NORETURN): Update definition. Define always.
40180         * lib/xprintf.h (__attribute__): Remove definition.
40181         (_GL_ATTRIBUTE_FORMAT): New macro.
40182         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
40183         * lib/xstrtol.h (__attribute__): Remove definition.
40184         (ATTRIBUTE_NORETURN): Update definition. Define always.
40185         * lib/xvasprintf.h (__attribute__): Remove definition.
40186         (_GL_ATTRIBUTE_FORMAT): New macro.
40187         (xasprintf, xvasprintf): Use it.
40188         * tests/test-argmatch.c (__attribute__): Remove definition.
40189         (ATTRIBUTE_NORETURN): Update definition. Define always.
40190         * tests/test-exclude.c (__attribute__): Remove definition.
40191         (ATTRIBUTE_NORETURN): Update definition. Define always.
40192         Reported by Paul Eggert.
40194 2011-02-13  Bruno Haible  <bruno@clisp.org>
40196         mbrtowc: Add more tests for native Windows platforms.
40197         * tests/test-mbrtowc-w32-1.sh: New file.
40198         * tests/test-mbrtowc-w32-2.sh: New file.
40199         * tests/test-mbrtowc-w32-3.sh: New file.
40200         * tests/test-mbrtowc-w32-4.sh: New file.
40201         * tests/test-mbrtowc-w32-5.sh: New file.
40202         * tests/test-mbrtowc-w32.c: New file.
40203         * modules/mbrtowc-tests (Files): Add them.
40204         (Makefile.am): Arrange to run these tests.
40205         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
40206         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
40208 2011-02-13  Bruno Haible  <bruno@clisp.org>
40210         mbrtowc: Work around native Windows bug.
40211         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
40212         guess when no suitable locale for testing was found.
40213         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
40215 2011-02-13  Bruno Haible  <bruno@clisp.org>
40217         mbsinit: Work around mingw bug.
40218         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
40219         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
40220         Windows.
40221         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
40223 2011-02-13  Bruno Haible  <bruno@clisp.org>
40225         mbsinit: Don't crash for a NULL argument.
40226         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
40227         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
40229 2011-02-13  Bruno Haible  <bruno@clisp.org>
40231         Don't interfere with a program's definition of __attribute__.
40232         * lib/stdio.in.h (__attribute__): Remove definition.
40233         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
40234         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
40235         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
40236         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
40237         * lib/string.in.h (__attribute__): Remove definition.
40238         Reported by Paul Eggert.
40240 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
40242         stdlib: don't get in the way of non-GCC __attribute__
40243         See thread starting at
40244         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
40245         Revert previous stdlib change, installing the following instead:
40246         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
40247         to get in the way of a non-GCC compiler that supports __attribute__.
40248         (_GL_ATTRIBUTE_RETURN): New macro.
40249         (_Exit): Use it instead of __attribute__.
40251 2011-02-12  Bruno Haible  <bruno@clisp.org>
40253         quotearg test: Avoid test failure on mingw.
40254         * tests/test-quotearg.sh: Convert the locale identifier from native
40255         Windows syntax to Unix syntax.
40257 2011-02-12  Bruno Haible  <bruno@clisp.org>
40259         setlocale: Prefer gnulib's override over libintl's override.
40260         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
40261         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
40262         GNULIB_defined_setlocale is set.
40264 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
40266         stdlib: support non-GCC __attribute__
40268         Fix a serious and tricky problem encountered when attempting to
40269         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
40270         5.5, but it crashed due to memory corruption on Solaris 10 with
40271         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
40272         bits that are otherwise zero.  This tagging is optional inside
40273         Emacs but is preferred and is used when __attribute__ ((__aligned
40274         (8))) works, as it does with both recent-enough GCC and with Sun C
40275         5.11.  However, Sun C 5.11 is not GCC and does not #define
40276         __GNUC__ and __GNUC_MINOR__.
40278         When I added the getloadavg module to Emacs, it brought in
40279         stdlib.in.h, which contained this fragment:
40281            #ifndef __attribute__
40282            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
40283            #  define __attribute__(Spec)   /* empty */
40284            # endif
40285            #endif
40287         When files that include <stdlib.h> were compiled with Sun C 5.11,
40288         the above code disabled __attribute__ ((__aligned (8))), which
40289         caused variables to not be properly aligned, which eventually led
40290         to the pointer corruption mentioned above.  (This was a bit hard
40291         to diagnose, unfortunately.)
40293         Several "#define __attribute__(X) /* empty */" code snippets need
40294         to be eradicated from Gnulib to work with non-GCC compilers that
40295         support __attribute__.  The Autoconf way to do this is to test for
40296         each kind of attribute that we want support for, and selectively
40297         enable that in source code.
40299         Fix this problem just for stdlib.h, by adding a test for the
40300         __noreturn__ attribute, and change stdlib.in.h to use that test
40301         when needed.  This technique can be easily generalized to the
40302         other *.in.h files and attributes, and a similar technique can be
40303         used for *.h and *.c files.  This patch is enough to solve the
40304         problem for Emacs + getloadavg, and I thought I'd publish it for
40305         feedback before undertaking further, similar fixes in other
40306         modules.
40308         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
40309         because it's not needed for stdlib.h.  It merely substitutes the
40310         value directly into stdlib.h.  We may well need to #define it, or
40311         similar symbols, for other modules, but it's nice to also have an
40312         option to not #define it for applications like Emacs that do not
40313         need it.
40315         * lib/stdlib.in.h (__attribute__): Do not #define.
40316         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
40317         be defined only if the _Exit module is also used.
40318         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
40319         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
40320         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
40321         platforms.
40322         * modules/_Exit (Files): Add m4/attribute.m4.
40323         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
40324         * m4/attribute.m4: New file.
40326 2011-02-12  Bruno Haible  <bruno@clisp.org>
40328         wcsrtombs: Work around bug on native Windows.
40329         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
40330         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
40331         instead of len.
40332         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
40334 2011-02-12  Bruno Haible  <bruno@clisp.org>
40336         mbsrtowcs: Work around bug on native Windows.
40337         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
40338         against mingw bug.
40339         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
40341 2011-02-12  Bruno Haible  <bruno@clisp.org>
40343         Avoid setlocale bugs in tests.
40344         * modules/btowc (Dependencies): Add setlocale.
40345         * modules/c-strcase (Dependencies): Likewise.
40346         * modules/mbmemcasecmp (Dependencies): Likewise.
40347         * modules/mbmemcasecoll (Dependencies): Likewise.
40348         * modules/mbrtowc (Dependencies): Likewise.
40349         * modules/mbscasecmp (Dependencies): Likewise.
40350         * modules/mbscasestr (Dependencies): Likewise.
40351         * modules/mbschr (Dependencies): Likewise.
40352         * modules/mbscspn (Dependencies): Likewise.
40353         * modules/mbsinit (Dependencies): Likewise.
40354         * modules/mbsncasecmp (Dependencies): Likewise.
40355         * modules/mbsnrtowcs (Dependencies): Likewise.
40356         * modules/mbspbrk (Dependencies): Likewise.
40357         * modules/mbspcasecmp (Dependencies): Likewise.
40358         * modules/mbsrchr (Dependencies): Likewise.
40359         * modules/mbsrtowcs (Dependencies): Likewise.
40360         * modules/mbsspn (Dependencies): Likewise.
40361         * modules/mbsstr (Dependencies): Likewise.
40362         * modules/nl_langinfo (Dependencies): Likewise.
40363         * modules/quotearg (Dependencies): Likewise.
40364         * modules/unicase/locale-language (Dependencies): Likewise.
40365         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
40366         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
40367         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
40368         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
40369         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
40370         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
40371         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
40372         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
40373         * modules/vasnprintf-posix (Dependencies): Likewise.
40374         * modules/wcrtomb (Dependencies): Likewise.
40375         * modules/wcsnrtombs (Dependencies): Likewise.
40376         * modules/wcsrtombs (Dependencies): Likewise.
40378 2011-02-12  Bruno Haible  <bruno@clisp.org>
40380         setlocale: Workaround native Windows bug.
40381         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
40382         succeeds but sets LC_CTYPE to "C", report a failure.
40383         * tests/test-setlocale2.sh: New file.
40384         * tests/test-setlocale2.c: New file.
40385         * modules/setlocale-tests (Files): Add the new files.
40386         (Makefile.am): Enable test-setlocale2.sh test.
40387         * doc/posix-functions/setlocale.texi: Mention workaround.
40389 2011-02-11  Bruno Haible  <bruno@clisp.org>
40391         Tests for module 'setlocale'.
40392         * modules/setlocale-tests: New file.
40393         * tests/test-setlocale1.sh: New file.
40394         * tests/test-setlocale1.c: New file.
40396         New module 'setlocale'.
40397         * lib/locale.in.h (setlocale): New declaration.
40398         * lib/setlocale.c: New file, based on
40399         gettext/gettext-runtime/intl/setlocale.c.
40400         * m4/setlocale.m4: New file.
40401         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
40402         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
40403         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
40404         REPLACE_SETLOCALE.
40405         * modules/setlocale: New file.
40406         * tests/test-locale-c++.cc: Test the declaration of setlocale.
40407         * doc/posix-functions/setlocale.texi: Mention the new module.
40409 2011-02-11  Bruno Haible  <bruno@clisp.org>
40411         Prepare for locale dependent tests on mingw.
40412         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
40413         because it has the wrong locale encoding.
40414         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
40415         French_France.1252 instead of "fr".
40416         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
40417         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
40418         because it has the wrong locale encoding.
40419         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
40420         native Windows, try Turkish_Turkey.65001.
40421         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
40422         Chinese_China.54936.
40424         Prepare for locale dependent tests on mingw.
40425         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
40426         differently.
40427         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
40428         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
40429         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
40430         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
40432 2011-02-11  Eric Blake  <eblake@redhat.com>
40434         strptime: avoid compiler warnings
40435         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
40436         compiler warnings about dead code.
40437         Reported by Daniel P. Berrange.
40439 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
40441         doc: update users.txt
40442         * users.txt: Add rcs.
40444 2011-02-10  John W. Eaton  <jwe@gnu.org>
40446         doc: update users.txt
40447         * users.txt: Add octave.
40449 2011-02-10  Jim Meyering  <meyering@redhat.com>
40451         doc: update users.txt
40452         * users.txt: Add iwhd.
40454 2011-02-09  Bruno Haible  <bruno@clisp.org>
40456         gnulib-tool: Make copyright notice adjustment more robust.
40457         * gnulib-tool (func_import): In sed_transform_main_lib_file,
40458         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
40459         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
40460         License".
40461         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
40463 2011-02-06  Bruno Haible  <bruno@clisp.org>
40465         New module 'towctrans'.
40466         * modules/towctrans: New file.
40467         * lib/wctype.in.h (towctrans): New declaration.
40468         * lib/towctrans.c: New file.
40469         * lib/towctrans-impl.h: New file.
40470         * m4/towctrans.m4: New file.
40471         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
40472         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
40473         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
40474         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
40475         * doc/posix-functions/towctrans.texi: Mention the new module.
40477 2011-02-06  Bruno Haible  <bruno@clisp.org>
40479         New module 'wctrans'.
40480         * modules/wctrans: New file.
40481         * lib/wctype.in.h (wctrans): New declaration.
40482         * lib/wctrans.c: New file.
40483         * lib/wctrans-impl.h: New file.
40484         * m4/wctrans.m4: New file.
40485         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
40486         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
40487         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
40488         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
40489         * doc/posix-functions/wctrans.texi: Mention the new module.
40491 2011-02-06  Bruno Haible  <bruno@clisp.org>
40493         New module 'iswctype'.
40494         * modules/iswctype: New file.
40495         * lib/wctype.in.h (iswctype): New declaration.
40496         * lib/iswctype.c: New file.
40497         * lib/iswctype-impl.h: New file.
40498         * m4/iswctype.m4: New file.
40499         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
40500         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
40501         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
40502         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
40503         * doc/posix-functions/iswctype.texi: Mention the new module and the
40504         HP-UX 11.00 problem.
40506 2011-02-06  Bruno Haible  <bruno@clisp.org>
40508         New module 'wctype'.
40509         * modules/wctype: Change to represent the wctype() substitute.
40510         * lib/wctype.in.h (wctype): New declaration.
40511         * lib/wctype.c: New file.
40512         * lib/wctype-impl.h: New file.
40513         * m4/wctype.m4: New file.
40514         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
40515         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
40516         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
40517         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
40518         * doc/posix-functions/wctype.texi: Mention the new module and the
40519         HP-UX 11.00 problem.
40521 2011-02-06  Bruno Haible  <bruno@clisp.org>
40523         wctype-h: Ensure wctype_t and wctrans_t are defined.
40524         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
40525         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
40526         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
40527         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
40528         HAVE_WCTRANS_T.
40529         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
40531 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
40533         flock: fix license typo
40535         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
40536         omitted.
40538 2011-02-08  Bruno Haible  <bruno@clisp.org>
40540         Split large sed scripts, for HP-UX sed.
40541         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
40542         to avoid HP-UX limit of 99 commands, in the near future.
40543         * modules/stdlib (Makefile.am): Likewise.
40544         * modules/unistd (Makefile.am): Likewise.
40545         * modules/wchar (Makefile.am): Likewise.
40546         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40547         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
40548         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
40550 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
40551             Bruno Haible  <bruno@clisp.org>
40553         stdlib: improve random_r modularization
40554         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
40555         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
40556         you also need the random_r module to get this material right.
40557         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
40558         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
40559         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
40561 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
40563         stdlib: don't depend on stdint
40564         * lib/stdlib.in.h: Don't include <stdint.h> merely because
40565         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
40566         be independent of whether stdint.h is needed.
40567         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
40568         here, instead of ...
40569         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
40570         struct random_data should be using the random_r module, not just
40571         the stdlib module (which wouldn't make sense: what package needs
40572         just struct random_data without also needing random_r?).
40573         * modules/stdlib (Depends-on): Remove stdint.
40575         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
40576         See the thread rooted at
40577         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
40578         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
40579         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
40580         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
40581         __VMS)); previously it was always included (via fcntl--.h).
40582         (getloadavg): Do not use c_strtod.  Instead, approximate it by
40583         hand; this is good enough for load averages.  Also, do not use
40584         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
40585         flags directly if available and don't bother otherwise.  (Packages
40586         that need the extra reliability should use the modules that define
40587         these flags on older platforms that lack them.)
40588         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
40589         fcntl-safer.
40591 2011-02-08  Jim Meyering  <meyering@redhat.com>
40593         di-set.h, ino-map.h: add multiple-inclusion guard
40594         Technically, the guard is required only for ino-map.h, due to its
40595         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
40596         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
40597         * lib/ino-map.h: Likewise.
40599 2011-02-06  Bruno Haible  <bruno@clisp.org>
40601         iswblank: Ensure declaration on glibc systems.
40602         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
40603         * modules/iswblank (Dependencies): Add 'extensions'.
40604         * doc/posix-functions/iswblank.texi: Document the glibc problem.
40606 2011-02-06  Bruno Haible  <bruno@clisp.org>
40608         New module 'iswblank'.
40609         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
40610         * modules/iswblank: New file.
40611         * modules/wctype-h (Files): Remove lib/iswblank.c.
40612         (Makefile.am): Substitute GNULIB_ISWBLANK.
40613         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
40614         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
40615         (gl_WCTYPE_H_DEFAULTS): New macro.
40616         (gl_WCTYPE_H): Require it. Remove iswblank related code.
40617         * modules/iswblank-tests: New file.
40618         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
40619         * tests/test-wctype-h.c (main): Remove iswblank tests.
40620         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
40621         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
40622         of 'wctype-h'.
40623         * NEWS: Mention the change.
40624         * modules/mbchar (Depends-on): Add iswblank.
40626 2011-02-08  Bruno Haible  <bruno@clisp.org>
40628         di-set tests: Refactor.
40629         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
40630         unnecessary includes.
40631         (ASSERT): Remove macro.
40632         (main): Make C90 compliant by avoiding variable declaration after
40633         statement.
40634         * modules/di-set-tests (Files): Add tests/macros.h.
40636 2011-02-08  Bruno Haible  <bruno@clisp.org>
40638         ino-map tests: Refactor.
40639         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
40640         unnecessary includes.
40641         (ASSERT): Remove macro.
40642         (main): Make C90 compliant by avoiding variable declaration after
40643         statement.
40644         * modules/ino-map-tests (Files): Add tests/macros.h.
40646 2011-02-08  Jim Meyering  <meyering@redhat.com>
40648         di-set: add "const" to a cast
40649         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
40650         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
40652 2011-02-06  Bruno Haible  <bruno@clisp.org>
40654         Rename module 'wctype' to 'wctype-h'.
40655         * modules/wctype-h: Renamed from modules/wctype.
40656         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
40657         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
40658         (Files, Depends-on, Makefile.am): Update.
40659         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
40660         (Files, Makefile.am): Update.
40661         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
40662         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
40663         * doc/posix-headers/wctype.texi: Update.
40664         * doc/posix-functions/iswalnum.texi: Update.
40665         * doc/posix-functions/iswalpha.texi: Update.
40666         * doc/posix-functions/iswblank.texi: Update.
40667         * doc/posix-functions/iswcntrl.texi: Update.
40668         * doc/posix-functions/iswdigit.texi: Update.
40669         * doc/posix-functions/iswgraph.texi: Update.
40670         * doc/posix-functions/iswlower.texi: Update.
40671         * doc/posix-functions/iswprint.texi: Update.
40672         * doc/posix-functions/iswpunct.texi: Update.
40673         * doc/posix-functions/iswspace.texi: Update.
40674         * doc/posix-functions/iswupper.texi: Update.
40675         * doc/posix-functions/iswxdigit.texi: Update.
40676         * doc/posix-functions/towlower.texi: Update.
40677         * doc/posix-functions/towupper.texi: Update.
40678         * NEWS: Mention the change.
40679         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
40680         * modules/mbchar (Dependencies): Likewise.
40681         * modules/mbswidth (Dependencies): Likewise.
40682         * modules/quotearg (Dependencies): Likewise.
40683         * modules/regex (Dependencies): Likewise.
40684         * modules/wcscasecmp (Dependencies): Likewise.
40685         * modules/wcsncasecmp (Dependencies): Likewise.
40686         * modules/wcwidth (Dependencies): Likewise.
40688 2011-02-06  Bruno Haible  <bruno@clisp.org>
40690         New module 'wcswidth'.
40691         * modules/wcswidth: New file.
40692         * lib/wchar.in.h (wcswidth): New declaration.
40693         * lib/wcswidth.c: New file.
40694         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
40695         * m4/wcswidth.m4: New file.
40696         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
40697         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
40698         REPLACE_WCSWIDTH.
40699         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
40700         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
40701         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
40702         * doc/posix-functions/wcswidth.texi: Mention the new module.
40704 2011-02-06  Bruno Haible  <bruno@clisp.org>
40706         New module 'wcstok'.
40707         * modules/wcstok: New file.
40708         * lib/wchar.in.h (wcstok): New declaration.
40709         * lib/wcstok.c: New file.
40710         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
40711         * m4/wcstok.m4: New file.
40712         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
40713         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
40714         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
40715         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
40716         * doc/posix-functions/wcstok.texi: Mention the new module.
40718 2011-02-06  Bruno Haible  <bruno@clisp.org>
40720         New module 'wcsstr'.
40721         * modules/wcsstr: New file.
40722         * lib/wchar.in.h (wcsstr): New declaration.
40723         * lib/wcsstr.c: New file.
40724         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
40725         * m4/wcsstr.m4: New file.
40726         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
40727         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
40728         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
40729         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
40730         * doc/posix-functions/wcsstr.texi: Mention the new module.
40732 2011-02-06  Bruno Haible  <bruno@clisp.org>
40734         New module 'wcspbrk'.
40735         * modules/wcspbrk: New file.
40736         * lib/wchar.in.h (wcspbrk): New declaration.
40737         * lib/wcspbrk.c: New file.
40738         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
40739         * m4/wcspbrk.m4: New file.
40740         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
40741         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
40742         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
40743         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
40744         * doc/posix-functions/wcspbrk.texi: Mention the new module.
40746 2011-02-06  Bruno Haible  <bruno@clisp.org>
40748         New module 'wcsspn'.
40749         * modules/wcsspn: New file.
40750         * lib/wchar.in.h (wcsspn): New declaration.
40751         * lib/wcsspn.c: New file.
40752         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
40753         * m4/wcsspn.m4: New file.
40754         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
40755         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
40756         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
40757         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
40758         * doc/posix-functions/wcsspn.texi: Mention the new module.
40760 2011-02-06  Bruno Haible  <bruno@clisp.org>
40762         New module 'wcscspn'.
40763         * modules/wcscspn: New file.
40764         * lib/wchar.in.h (wcscspn): New declaration.
40765         * lib/wcscspn.c: New file.
40766         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
40767         * m4/wcscspn.m4: New file.
40768         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
40769         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
40770         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
40771         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
40772         * doc/posix-functions/wcscspn.texi: Mention the new module.
40774 2011-02-06  Bruno Haible  <bruno@clisp.org>
40776         New module 'wcsrchr'.
40777         * modules/wcsrchr: New file.
40778         * lib/wchar.in.h (wcsrchr): New declaration.
40779         * lib/wcsrchr.c: New file.
40780         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
40781         * m4/wcsrchr.m4: New file.
40782         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
40783         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
40784         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
40785         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
40786         * doc/posix-functions/wcsrchr.texi: Mention the new module.
40788 2011-02-06  Bruno Haible  <bruno@clisp.org>
40790         New module 'wcschr'.
40791         * modules/wcschr: New file.
40792         * lib/wchar.in.h (wcschr): New declaration.
40793         * lib/wcschr.c: New file.
40794         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
40795         * m4/wcschr.m4: New file.
40796         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
40797         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
40798         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
40799         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
40800         * doc/posix-functions/wcschr.texi: Mention the new module.
40802 2011-02-06  Bruno Haible  <bruno@clisp.org>
40804         New module 'wcsdup'.
40805         * modules/wcsdup: New file.
40806         * lib/wchar.in.h (wcsdup): New declaration.
40807         * lib/wcsdup.c: New file.
40808         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
40809         * m4/wcsdup.m4: New file.
40810         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
40811         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
40812         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
40813         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
40814         * doc/posix-functions/wcsdup.texi: Mention the new module.
40816 2011-02-06  Bruno Haible  <bruno@clisp.org>
40818         New module 'wcsxfrm'.
40819         * modules/wcsxfrm: New file.
40820         * lib/wchar.in.h (wcsxfrm): New declaration.
40821         * lib/wcsxfrm.c: New file.
40822         * lib/wcsxfrm-impl.h: New file.
40823         * m4/wcsxfrm.m4: New file.
40824         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
40825         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
40826         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
40827         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
40828         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
40830 2011-02-06  Bruno Haible  <bruno@clisp.org>
40832         New module 'wcscoll'.
40833         * modules/wcscoll: New file.
40834         * lib/wchar.in.h (wcscoll): New declaration.
40835         * lib/wcscoll.c: New file.
40836         * lib/wcscoll-impl.h: New file.
40837         * m4/wcscoll.m4: New file.
40838         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
40839         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
40840         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
40841         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
40842         * doc/posix-functions/wcscoll.texi: Mention the new module.
40844 2011-02-06  Bruno Haible  <bruno@clisp.org>
40846         New module 'wcsncasecmp'.
40847         * modules/wcsncasecmp: New file.
40848         * lib/wchar.in.h (wcsncasecmp): New declaration.
40849         * lib/wcsncasecmp.c: New file.
40850         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
40851         * m4/wcsncasecmp.m4: New file.
40852         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
40853         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
40854         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
40855         HAVE_WCSNCASECMP.
40856         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
40857         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
40859 2011-02-06  Bruno Haible  <bruno@clisp.org>
40861         New module 'wcscasecmp'.
40862         * modules/wcscasecmp: New file.
40863         * lib/wchar.in.h (wcscasecmp): New declaration.
40864         * lib/wcscasecmp.c: New file.
40865         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
40866         * m4/wcscasecmp.m4: New file.
40867         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
40868         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
40869         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
40870         HAVE_WCSCASECMP.
40871         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
40872         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
40874 2011-02-05  Bruno Haible  <bruno@clisp.org>
40876         New module 'wcsncmp'.
40877         * modules/wcsncmp: New file.
40878         * lib/wchar.in.h (wcsncmp): New declaration.
40879         * lib/wcsncmp.c: New file.
40880         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
40881         * m4/wcsncmp.m4: New file.
40882         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
40883         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
40884         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
40885         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
40886         * doc/posix-functions/wcsncmp.texi: Mention the new module.
40888 2011-02-05  Bruno Haible  <bruno@clisp.org>
40890         New module 'wcscmp'.
40891         * modules/wcscmp: New file.
40892         * lib/wchar.in.h (wcscmp): New declaration.
40893         * lib/wcscmp.c: New file.
40894         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
40895         * m4/wcscmp.m4: New file.
40896         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
40897         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
40898         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
40899         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
40900         * doc/posix-functions/wcscmp.texi: Mention the new module.
40902 2011-02-05  Bruno Haible  <bruno@clisp.org>
40904         New module 'wcsncat'.
40905         * modules/wcsncat: New file.
40906         * lib/wchar.in.h (wcsncat): New declaration.
40907         * lib/wcsncat.c: New file.
40908         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
40909         * m4/wcsncat.m4: New file.
40910         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
40911         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
40912         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
40913         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
40914         * doc/posix-functions/wcsncat.texi: Mention the new module.
40916 2011-02-05  Bruno Haible  <bruno@clisp.org>
40918         New module 'wcscat'.
40919         * modules/wcscat: New file.
40920         * lib/wchar.in.h (wcscat): New declaration.
40921         * lib/wcscat.c: New file.
40922         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
40923         * m4/wcscat.m4: New file.
40924         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
40925         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
40926         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
40927         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
40928         * doc/posix-functions/wcscat.texi: Mention the new module.
40930 2011-02-05  Bruno Haible  <bruno@clisp.org>
40932         New module 'wcpncpy'.
40933         * modules/wcpncpy: New file.
40934         * lib/wchar.in.h (wcpncpy): New declaration.
40935         * lib/wcpncpy.c: New file.
40936         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
40937         * m4/wcpncpy.m4: New file.
40938         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
40939         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
40940         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
40941         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
40942         * doc/posix-functions/wcpncpy.texi: Mention the new module.
40944 2011-02-05  Bruno Haible  <bruno@clisp.org>
40946         New module 'wcsncpy'.
40947         * modules/wcsncpy: New file.
40948         * lib/wchar.in.h (wcsncpy): New declaration.
40949         * lib/wcsncpy.c: New file.
40950         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
40951         * m4/wcsncpy.m4: New file.
40952         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
40953         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
40954         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
40955         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
40956         * doc/posix-functions/wcsncpy.texi: Mention the new module.
40958 2011-02-05  Bruno Haible  <bruno@clisp.org>
40960         New module 'wcpcpy'.
40961         * modules/wcpcpy: New file.
40962         * lib/wchar.in.h (wcpcpy): New declaration.
40963         * lib/wcpcpy.c: New file.
40964         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
40965         * m4/wcpcpy.m4: New file.
40966         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
40967         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
40968         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
40969         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
40970         * doc/posix-functions/wcpcpy.texi: Mention the new module.
40972 2011-02-05  Bruno Haible  <bruno@clisp.org>
40974         New module 'wcscpy'.
40975         * modules/wcscpy: New file.
40976         * lib/wchar.in.h (wcscpy): New declaration.
40977         * lib/wcscpy.c: New file.
40978         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
40979         * m4/wcscpy.m4: New file.
40980         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
40981         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
40982         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
40983         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
40984         * doc/posix-functions/wcscpy.texi: Mention the new module.
40986 2011-02-05  Bruno Haible  <bruno@clisp.org>
40988         New module 'wcsnlen'.
40989         * modules/wcsnlen: New file.
40990         * lib/wchar.in.h (wcsnlen): New declaration.
40991         * lib/wcsnlen.c: New file.
40992         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
40993         * m4/wcsnlen.m4: New file.
40994         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
40995         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
40996         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
40997         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
40998         * doc/posix-functions/wcsnlen.texi: Mention the new module.
41000 2011-02-05  Bruno Haible  <bruno@clisp.org>
41002         New module 'wcslen'.
41003         * modules/wcslen: New file.
41004         * lib/wchar.in.h (wcslen): New declaration.
41005         * lib/wcslen.c: New file.
41006         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
41007         * m4/wcslen.m4: New file.
41008         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
41009         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
41010         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
41011         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
41012         * doc/posix-functions/wcslen.texi: Mention the new module.
41014 2011-02-05  Bruno Haible  <bruno@clisp.org>
41016         New module 'wmemset'.
41017         * modules/wmemset: New file.
41018         * lib/wchar.in.h (wmemset): New declaration.
41019         * lib/wmemset.c: New file.
41020         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
41021         * m4/wmemset.m4: New file.
41022         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
41023         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
41024         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
41025         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
41026         * doc/posix-functions/wmemset.texi: Mention the new module.
41028 2011-02-05  Bruno Haible  <bruno@clisp.org>
41030         New module 'wmemmove'.
41031         * modules/wmemmove: New file.
41032         * lib/wchar.in.h (wmemmove): New declaration.
41033         * lib/wmemmove.c: New file.
41034         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
41035         * m4/wmemmove.m4: New file.
41036         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
41037         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
41038         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
41039         HAVE_WMEMMOVE.
41040         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
41041         * doc/posix-functions/wmemmove.texi: Mention the new module.
41043 2011-02-05  Bruno Haible  <bruno@clisp.org>
41045         New module 'wmemcpy'.
41046         * modules/wmemcpy: New file.
41047         * lib/wchar.in.h (wmemcpy): New declaration.
41048         * lib/wmemcpy.c: New file.
41049         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
41050         * m4/wmemcpy.m4: New file.
41051         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
41052         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
41053         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
41054         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
41055         * doc/posix-functions/wmemcpy.texi: Mention the new module.
41057 2011-02-05  Bruno Haible  <bruno@clisp.org>
41059         New module 'wmemcmp'.
41060         * modules/wmemcmp: New file.
41061         * lib/wchar.in.h (wmemcmp): New declaration.
41062         * lib/wmemcmp.c: New file.
41063         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
41064         * m4/wmemcmp.m4: New file.
41065         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
41066         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
41067         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
41068         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
41069         * doc/posix-functions/wmemcmp.texi: Mention the new module.
41071 2011-02-07  Jim Meyering  <meyering@redhat.com>
41073         di-set, ino-map: new modules, from coreutils
41074         * lib/di-set.c: New file.
41075         * lib/di-set.h: Likewise.
41076         * lib/ino-map.c: Likewise.
41077         * lib/ino-map.h: Likewise.
41078         * modules/di-set: Likewise.
41079         * modules/di-set-tests: Likewise.
41080         * modules/ino-map: Likewise.
41081         * modules/ino-map-tests: Likewise.
41082         * tests/test-di-set.c: Likewise.
41083         * tests/test-ino-map.c: Likewise.
41085 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
41087         getloadavg: merge minor changes from Emacs
41089         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
41090         (getloadavg): Use memset, not bzero.
41092         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
41093         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
41094         clash (bug#86).
41096 2010-11-14  Bruno Haible  <bruno@clisp.org>
41098         Allow multiple gnulib generated replacements to coexist.
41099         * lib/getopt.in.h (struct option): Avoid identical redefinition.
41100         * lib/inttypes.in.h (imaxdiv_t): Likewise.
41101         * lib/langinfo.in.h (nl_item): Likewise.
41102         * lib/math.in.h (_NaN, NAN): Likewise.
41103         * lib/netdb.in.h (struct addrinfo): Likewise.
41104         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
41105         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
41106         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
41107         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
41108         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
41109         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
41110         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
41111         pthread_mutexattr_init, pthread_mutexattr_settype,
41112         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
41113         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
41114         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
41115         pthread_spin_trylock, pthread_spin_unlock): Likewise.
41116         * lib/sched.in.h (struct sched_param): Likewise.
41117         * lib/se-selinux.in.h (security_class_t, security_context_t,
41118         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
41119         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
41120         lsetfilecon, fsetfilecon, security_check_context,
41121         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
41122         Likewise.
41123         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
41124         Likewise.
41125         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
41126         _gl_function_taking_int_returning_void_t, union sigval,
41127         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
41128         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
41129         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
41130         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
41131         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
41132         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
41133         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
41134         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
41135         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
41136         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
41137         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
41138         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
41139         socklen_t, rpl_fd_isset): Likewise.
41140         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
41141         * lib/sys_time.in.h (struct timeval): Likewise.
41142         * lib/sys_times.in.h (struct tms): Likewise.
41143         * lib/sys_utsname.in.h (struct utsname):
41144         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
41145         * lib/unistd.in.h (getpagesize): Likewise.
41146         * lib/wchar.in.h (mbstate_t): Likewise.
41147         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
41148         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
41149         towlower, towupper): Likewise.
41150         Reported by Sam Steingold <sds@gnu.org>.
41152 2011-02-05  Eric Blake  <eblake@redhat.com>
41154         unsetenv: work around Haiku issues
41155         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
41156         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
41158 2010-12-30  Bruce Korb  <bkorb@gnu.org>
41160         libposix: avoid calling error() within libposix
41161         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
41162         is defined.
41164 2011-02-05  Eric Blake  <eblake@redhat.com>
41166         strerror_r-posix: port to cygwin
41167         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
41168         implementation.
41169         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
41170         * tests/test-strerror_r.c (main): Fix test.
41171         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
41172         issue.
41174 2011-02-05  Bruno Haible  <bruno@clisp.org>
41176         New module 'wmemchr'.
41177         * modules/wmemchr: New file.
41178         * lib/wchar.in.h (wmemchr): New declaration.
41179         * lib/wmemchr.c: New file.
41180         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
41181         * m4/wmemchr.m4: New file.
41182         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
41183         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
41184         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
41185         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
41186         * doc/posix-functions/wmemchr.texi: Mention the new module.
41188 2011-02-04  Eric Blake  <eblake@redhat.com>
41190         fdopendir: detect FreeBSD bug
41191         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
41192         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
41194 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
41196         stdbool: do not define HAVE_STDBOOL_H
41197         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
41198         AC_HEADER_STDBOOL.  All uses changed.  Do not define
41199         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
41200         imported from the latest Autoconf git.  It was motivated by Emacs,
41201         which uses gnulib but does not need HAVE_STDBOOL_H.
41203 2011-02-04  Bruno Haible  <bruno@clisp.org>
41205         wcsnrtombs: Prepare for new module wwcsnrtombs.
41206         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
41207         * lib/wcsnrtombs.c: Include it.
41208         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
41210         wcsrtombs: Prepare for new module wwcsrtombs.
41211         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
41212         * lib/wcsrtombs.c: Include it.
41213         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
41215         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
41216         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
41217         * lib/mbsnrtowcs.c: Include it.
41218         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
41220         mbsrtowcs: Prepare for new module mbsrtowwcs.
41221         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
41222         * lib/mbsrtowcs.c: Include it.
41223         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
41225 2011-02-04  Bruno Haible  <bruno@clisp.org>
41227         vasnprintf: Reduce use of malloc for small format strings.
41228         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
41229         (arguments): Add room for the first 7 arguments.
41230         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
41231         (char_directives, u8_directives, u16_directives, u32_directives): Add
41232         room for the first 7 directives.
41233         * lib/printf-parse.c: Include <string.h>.
41234         (PRINTF_PARSE): Change memory handling code so that it uses the first
41235         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
41236         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
41237         Reported by Pádraig Brady <P@draigbrady.com>.
41239 2011-01-31  Eric Blake  <eblake@redhat.com>
41241         dup2: work around Haiku bug
41242         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
41243         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
41244         * doc/posix-functions/dup2.texi (dup2): Document the bug.
41245         * tests/test-dup2.c (main): Enhance test.
41247 2011-01-31  Simon Josefsson  <simon@josefsson.org>
41249         doc: off_t is not available in eglibc 2.11.2 stdio.h.
41250         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
41251         declared by eglibc 2.11.2.
41252         * lib/stdio.in.h: Likewise.
41254 2011-01-31  Eric Blake  <eblake@redhat.com>
41256         ignore-value: add missing test dependency
41257         * tests/test-ignore-value.c: Revert previous change; stdio.h
41258         provides off_t.
41259         * modules/ignore-value-tests (Depends-on): Add missing dependency.
41261 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
41263         mktime: clarify long_int width checking
41264         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
41265         the top level, to make it clearer that the assumption about
41266         long_int width is being checked.  See
41267         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
41269 2011-01-30  Simon Josefsson  <simon@josefsson.org>
41271         ignore-value: Fix self-test.
41272         * tests/test-ignore-value.c: Include sys/types.h for off_t.
41274 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
41276         TYPE_MAXIMUM: avoid theoretically undefined behavior
41277         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
41278         negative number, which the C Standard says has undefined behavior.
41279         In practice this is not a problem, but might as well do it by the book.
41280         Reported by Rich Felker and Eric Blake; see
41281         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
41282         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
41283         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
41284         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
41285         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
41286         * m4/stdint.m4 (gl_STDINT_H): Likewise.
41287         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
41289         mktime: #undef mktime before #defining it
41290         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
41292         mktime: systematically normalize tm_isdst comparisons
41293         * lib/mktime.c (isdst_differ): New function.
41294         (__mktime_internal): Use it systematically for all isdst comparisons.
41295         This completes the fix for libc BZ #6723, and removes the need for
41296         normalizing tm_isdst.  See
41297         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
41298         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
41300         mktime: fix some integer overflow issues and sidestep the rest
41302         This was prompted by a bug report by Benjamin Lindner for MinGW
41303         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
41304         His bug is due to signed integer overflow (0 - INT_MIN), and I
41305         I scanned through mktime.c looking for other integer overflow
41306         problems, fixing all the bugs I found.
41308         Although the C Standard says the resulting code is still not safe
41309         in the presence of integer overflow, in practice it should be good
41310         enough for all real-world two's-complement implementations, except
41311         for debugging environments that deliberately trap on integer
41312         overflow (e.g., gcc -ftrapv).
41314         * lib/mktime.c (WRAPV): New macro.
41315         (SHR): Also check that long_int and time_t shift right in the
41316         usual way, before using the fast-but-unportable method.
41317         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
41318         used.  The code already assumed two's complement, so there's
41319         no need to test for alternatives.  All uses removed.
41320         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
41321         the C standard.  Problem reported by Rich Felker in
41322         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
41323         (twos_complement_arithmetic): Also check long_int and time_t.
41324         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
41325         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
41326         (__mktime_internal): Avoid integer overflow with unary subtraction
41327         in two instances where -1 - X is an adequate replacement for -X,
41328         since the calculations are approximate.
41330 2011-01-29  Eric Blake  <eblake@redhat.com>
41332         mktime: avoid infinite loop
41333         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
41334         type; behavior is still undefined but portable to all known targets.
41335         Reported by Rich Felker.
41337 2011-01-29  Simon Josefsson  <simon@josefsson.org>
41339         rename, unlink, same-inode: Relicense.
41340         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
41341         * modules/unlink (License): Likewise.
41342         * modules/same-inode (License): Likewise.
41344 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
41346         mktime: avoid problems on NetBSD 5 / i386
41347         * lib/mktime.c (long_int): New type.  This works around a problem
41348         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
41349         but time_t is 64 bits, and where I expect the existing code is
41350         wrong in some cases.
41351         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
41352         (ydhms_diff): Bring back the compile-time check for wide-enough
41353         year and yday.
41355         mktime: fix misspelling in comment
41356         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
41357         This merges all recent glibc changes of importance.
41359 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41361         move-if-change: cope with concurrent mv of identical file.
41362         * build-aux/move-if-change (CMPPROG): Accept environment
41363         variable as an override for `cmp'.
41364         (usage): Document CMPPROG.
41365         Adjust comparison to drop stdout.  Cope with failure of mv if
41366         the target file exists and is identical to the source, for
41367         parallel builds.
41368         Report from H.J. Lu against binutils in PR binutils/12283.
41370 2011-01-28  Bruce Korb  <bkorb@gnu.org>
41372         * users.txt: Mention sharutils.
41374 2011-01-28  Simon Josefsson  <simon@josefsson.org>
41376         * users.txt: Mention OATH Toolkit.
41378 2011-01-27  Bruno Haible  <bruno@clisp.org>
41380         Prepare for supporting FreeBSD 10.
41381         * build-aux/config.libpath: Remove handling of freebsd1*.
41383 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
41385         Prepare for supporting FreeBSD 10.
41386         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
41387         match FreeBSD 10.0.
41389 2011-01-27  Bruno Haible  <bruno@clisp.org>
41391         vma-iter, get-rusage-as: Add OpenBSD support.
41392         * modules/vma-iter (configure.ac): Test for mquery.
41393         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
41394         * lib/vma-iter.c: Include <sys/mman.h>.
41395         (vma_iterate): Add an implementation based on mquery().
41396         * lib/resource-ext.h (get_rusage_as): Update comments.
41397         * lib/get-rusage-as.c: Likewise.
41398         * lib/get-rusage-data.c: Likewise.
41400 2011-01-26  Karl Berry  <karl@gnu.org>
41402         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
41403         variables to make it easier to override the makeinfo program used.
41405 2011-01-26  Eric Blake  <eblake@redhat.com>
41407         fcntl: work around Haiku F_DUPFD bugs
41408         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
41409         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
41410         cloexec bit on duplication.
41411         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
41413 2011-01-26  Bruno Haible  <bruno@clisp.org>
41415         Enable memory leak tests on AIX.
41416         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
41417         * tests/test-fprintf-posix3.c (main): Likewise.
41419 2011-01-26  Bruno Haible  <bruno@clisp.org>
41421         Tests for module 'get-rusage-data'.
41422         * modules/get-rusage-data-tests: New file.
41423         * tests/test-get-rusage-data.c: New file.
41425         New module 'get-rusage-data'.
41426         * lib/resource-ext.h (get_rusage_data): New declaration.
41427         * lib/get-rusage-data.c: New file.
41428         * modules/get-rusage-data: New file.
41430 2011-01-25  Bruno Haible  <bruno@clisp.org>
41432         get-rusage-as: Allow for easier testing.
41433         * lib/resource-ext.h (get_rusage_as): Add comment.
41434         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
41435         (main): New function for interactive testing.
41437 2011-01-25  Bruno Haible  <bruno@clisp.org>
41439         vma-iter: Treat Haiku like BeOS.
41440         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
41441         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
41443 2011-01-25  Eric Blake  <eblake@redhat.com>
41445         c-stack: fix regression on cygwin when libsigsegv is present
41446         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
41448 2011-01-24  Bruno Haible  <bruno@clisp.org>
41450         vma-iter: Avoid empty intervals.
41451         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
41452         on an empty interval.
41454 2011-01-24  Jim Meyering  <meyering@redhat.com>
41456         u64: remove unnecessary #include
41457         * lib/u64.h: Don't include <stddef.h>.  It was not used.
41459 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
41461         Allow the user to avoid the HAVE_RAW_DECL_* macros.
41462         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
41464 2011-01-23  Bruno Haible  <bruno@clisp.org>
41466         New module 'vma-iter'.
41467         * lib/vma-iter.h: New file.
41468         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
41469         * modules/vma-iter: New file.
41470         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
41471         for get_rusage_as_via_iterator.
41472         (vma_iterate_callback): New function.
41473         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
41474         * modules/get-rusage-as (Depends-on): Add vma-iter.
41476 2011-01-23  Bruno Haible  <bruno@clisp.org>
41478         uninorm: Tweak includes.
41479         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
41480         Reported by Jim Meyering.
41482 2011-01-23  Bruno Haible  <bruno@clisp.org>
41484         get-rusage-as: Improve on NetBSD.
41485         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
41486         /proc, like on FreeBSD.
41488 2011-01-23  Jim Meyering  <meyering@redhat.com>
41490         xreadlink.h: remove unnecessary #include
41491         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
41493         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
41494         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
41496 2011-01-23  Bruno Haible  <bruno@clisp.org>
41498         get-rusage-as: Fix bug.
41499         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
41500         original limit when aborting the first loop.
41502 2011-01-23  Bruno Haible  <bruno@clisp.org>
41504         wctype: Ensure valid C syntax.
41505         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
41506         unconditionally, instead of gl_NEXT_HEADERS conditionally.
41508 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
41510         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
41511         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
41512         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
41513         as they are needed only for configure's test case.
41514         This removes two unnecessary symbols from config.h.
41516         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
41517         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
41518         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
41519         AC_CHECK_HEADERS_ONCE on a header that we also invoke
41520         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
41521         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
41522         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
41523         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
41524         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
41525         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
41526         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
41527         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
41528         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
41529         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
41530         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
41531         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
41532         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
41533         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
41535 2011-01-21  Eric Blake  <eblake@redhat.com>
41537         maintainer-makefile: work with older git for submodule check
41538         * top/maint.mk (public-submodule-commit): Rewrite to avoid
41539         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
41540         Reported by Matthias Bolte.
41542         bootstrap: minor portability fixes
41543         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
41544         (usage): Omit leading capital and trailing . on help phrases, per
41545         GNU Coding Standards.
41546         (check_versions, top level): Prefix messages with script name.
41548 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
41550         bootstrap: support --no-git option
41551         * build-aux/bootstrap: Add --no-git option, to be used when
41552         --gnulib-srcdir points to the exact desired checkout.
41554 2011-01-21  Eric Blake  <eblake@redhat.com>
41556         strerror_r-posix: work with glibc 2.13
41557         * lib/strerror_r.c (strerror_r): Fix return type.
41559 2011-01-21  Pádraig Brady  <P@draigBrady.com>
41560             Bruno Haible  <bruno@clisp.org>
41562         uN_strstr: New unit tests.
41563         * modules/unistr/u8-strstr-tests: New file.
41564         * modules/unistr/u16-strstr-tests: New file.
41565         * modules/unistr/u32-strstr-tests: New file.
41566         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
41567         * tests/unistr/test-u8-strstr.c: New file.
41568         * tests/unistr/test-u16-strstr.c: New file.
41569         * tests/unistr/test-u32-strstr.c: New file.
41571 2011-01-21  Pádraig Brady  <P@draigBrady.com>
41572             Bruno Haible  <bruno@clisp.org>
41574         Make uN_strstr functions O(n) worst-case.
41575         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
41576         16-bit and 32-bit unit cases, use the unibyte algorithm from
41577         lib/mbsstr.c.
41578         * lib/unistr/u8-strstr.c: Include <string.h>.
41579         (UNIT_IS_UINT8_T): New macro.
41580         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
41581         (U_STRLEN, U_STRNLEN): New macros.
41582         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
41583         (U_STRLEN, U_STRNLEN): New macros.
41584         * modules/unistr/u8-strstr (Depends-on): Add strstr.
41585         (configure.ac): Update required libunistring version.
41586         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
41587         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
41588         malloca.
41589         (configure.ac): Update required libunistring version.
41590         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
41591         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
41592         malloca.
41593         (configure.ac): Update required libunistring version.
41595 2011-01-21  Pádraig Brady  <P@draigBrady.com>
41596             Bruno Haible  <bruno@clisp.org>
41598         Prepare for faster uN_strstr functions.
41599         * lib/str-kmp.h: Support definable UNITs.
41600         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
41601         needle_len argument.
41602         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
41603         * lib/mbscasestr.c (mbscasestr): Likewise.
41605 2011-01-21  Pádraig Brady  <P@draigBrady.com>
41607         malloca-tests: make faster by unsetting MALLOC_PERTURB_
41608         * tests/test-malloca.c (main): Unset the environment variable
41609         to greatly speed up the test.
41610         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
41611         * modules/malloca-tests: Depend on unsetenv.
41613 2011-01-21  Pádraig Brady  <P@draigBrady.com>
41615         ignore-value: remove stdint dependency
41616         * lib/ignore-value.h: Remove <stdint.h>
41617         * modules/ignore-value: Remove stdint dependency.
41619 2011-01-21  Jim Meyering  <meyering@redhat.com>
41621         maint.mk: adjust variable name to be consistent with other gl_ vars
41622         * top/maint.mk (gl_public_submodule_commit): Rename the variable
41623         to be lower case.
41625 2011-01-20  Jim Meyering  <meyering@redhat.com>
41627         maint.mk: make "check" depend on public-submodule-commit by default
41628         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
41630 2011-01-20  Bruno Haible  <bruno@clisp.org>
41632         mbfile, mbiter: Complete change from 2008-12-21.
41633         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
41634         * m4/mbiter.m4 (gl_MBITER): Likewise.
41636 2011-01-20  Jim Meyering  <meyering@redhat.com>
41638         init.sh: insert space between each function name and "()"
41639         * tests/init.sh: Make it a little easier to see that a function's
41640         name is "warn_", and not "warn" when looking at the first part of
41641         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
41643 2011-01-20  Jim Meyering  <meyering@redhat.com>
41645         mountlist: clean up code formatting
41646         * lib/mountlist.c (read_file_system_list): Split a long line,
41647         correct bracing style, use NULL in place of "(struct statfs *)0",
41648         don't parenthesize return value, add spaces around "=" and after
41649         ";-in-for-stmt".
41651 2011-01-14  Markus Duft  <mduft@gentoo.org>
41653         mountlist: add support for Interix
41654         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
41655         Apply statvfs to all entries of /dev/fs.
41656         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
41657         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
41659 2011-01-20  Jim Meyering  <meyering@redhat.com>
41661         maint.mk: improve the public-submodule-commit rule
41662         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
41663         to suppress printing of its commands... unless V=1.
41664         Add git submodule's --quiet option to suppress printing of e.g.,
41665         "Entering gnulib" output.
41666         "cd" into $(srcdir) before running git submodule.
41668 2011-01-20  Bruno Haible  <bruno@clisp.org>
41670         include_next: Fix bug introduced on 2011-01-18.
41671         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
41672         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
41673         ac_cv_header_... variable if the second argument is not 'check'.
41674         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
41675         gl_NEXT_HEADERS_INTERNAL.
41677 2011-01-20  Bruno Haible  <bruno@clisp.org>
41679         Allow the user to avoid the GNULIB_TEST_* macros.
41680         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
41681         Suggested by Paul Eggert.
41683 2011-01-14  Jim Meyering  <meyering@redhat.com>
41685         bootstrap: avoid failure when there is no .gitmodules file
41686         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
41687         has been assigned to, even when its value is the empty string.
41688         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
41689         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
41690         Reported by John W. Eaton <jwe@gnu.org>.
41692 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
41694         assume <ctype.h>, ..., <time.h> exist
41695         For years gnulib has been assuming the existence of the headers
41696         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
41697         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
41698         them, since they don't appear to be needed.
41699         * README (Portability guidelines): Document this.
41700         * lib/flock.c: Assume <fcntl.h> exists.
41701         * lib/regex_internal.h: Assume <locale.h> exists.
41702         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
41703         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
41704         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
41705         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
41706         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
41707         * m4/regex.m4 (gl_REGEX): Likewise.
41708         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
41709         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
41710         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
41711         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
41712         * tests/test-argp.c: Likewise.
41713         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
41715         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
41716         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
41717         AA_APPLE_UNIVERSAL_BUILD.  See
41718         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
41719         * NEWS: Document this.
41721 2011-01-19  Eric Blake  <eblake@redhat.com>
41723         c-stack: assume stack overflow if SA_SIGINFO unsupported
41724         * lib/c-stack.c (SIGACTION_WORKS): Rename...
41725         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
41726         sigaction will work.
41727         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
41728         behavior match Linux.
41729         * tests/test-c-stack.c (main): Prefer NULL for pointers.
41731         stdbool-tests: accommodate Haiku
41732         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
41734         binary-io: fix O_TEXT on Haiku
41735         * modules/binary-io (Depends-on): Add fcntl-h.
41736         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
41737         than blindly undefining O_TEXT.
41738         Reported by Scott McCreary.
41740 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
41742         include_next: do not check for standard headers like stddef.h
41744         I found this problem when modifying Emacs to use gnulib.
41745         I noticed that it added HAVE_STDDEF_H to config.h, even though
41746         gnulib always assumes <stddef.h> exists as per README and this
41747         symbol is unnecessary.
41748         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
41749         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
41750         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
41751         faster for headers like stddef.h that are known to exist.
41752         (gl_CHECK_NEXT_HEADERS): Use it.
41753         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
41754         rather than gl_CHECK_NEXT_HEADERS.
41755         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
41756         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
41758 2011-01-18  Eric Blake  <eblake@redhat.com>
41760         ansi-c++-opt: skip C++ dependency style if C++ is unused
41761         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
41762         tests when we know C++ compilation is not desired.
41763         Reported by Scott McCreary.
41765 2011-01-18  Bruno Haible  <bruno@clisp.org>
41767         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
41768         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
41769         (main): Perform test also when getrlimit and setrlimit don't exist or
41770         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
41771         limiting the address space size using setrlimit, compare the address
41772         space size before and after the test.
41773         * tests/test-dprintf-posix2.c: Likewise.
41774         * tests/test-fprintf-posix3.sh: Update skip messages.
41775         * tests/test-dprintf-posix2.sh: Likewise.
41776         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
41777         * modules/dprintf-posix-tests (Depends-on): Likewise.
41778         Reported by Bruce Korb <bkorb@gnu.org> and
41779         Gary V. Vaughan <gary@gnu.org>.
41781 2011-01-18  Bruno Haible  <bruno@clisp.org>
41783         get-rusage-as: Improvement for Cygwin.
41784         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
41785         areas that are merely reserved.
41787 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
41789         strftime: remove dependencies on multibyte modules
41791         strftime depended on mbrlen, mbsinit, and wchar, but these modules
41792         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
41793         only if __osf__ is defined, and I suspect OSF doesn't need these
41794         other modules.  If my guess is wrong, we'll need to come up with a
41795         variant of strftime that doesn't need the multibyte modules.
41797         I discovered this problem when attempting modify Emacs to use the
41798         strftime module.  With the previous gnulib, this caused Emacs to
41799         need 31 new files, ranging from lib/config.charset to
41800         m4/wint_t.m4.  This was overkill and I expect would be offputting
41801         to the Emacs maintainers.  After this change, only 6 new files are
41802         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
41803         stdbool.m4, and tm_gmtoff.m4.
41805         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
41806         Suggested by Bruno Haible in
41807         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
41808         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
41809         and do not check for wchar.h.
41810         * modules/strftime (Files): Remove m4/mbstate_t.m4.
41811         (Depends-on): Remove mbrlen, mbsinit, wchar.
41813 2011-01-18  Bruno Haible  <bruno@clisp.org>
41815         Tests for module 'get-rusage-as'.
41816         * modules/get-rusage-as-tests: New file.
41817         * tests/test-get-rusage-as.c: New file.
41819         New module 'get-rusage-as'.
41820         * modules/get-rusage-as: New file.
41821         * lib/resource-ext.h: New file.
41822         * lib/get-rusage-as.c: New file.
41824 2011-01-17  Eric Blake  <eblake@redhat.com>
41826         sigaction: relax license from LGPLv3+ to LGPLv2+
41827         * modules/sigaction (License): Relax to LGPLv2+.
41829 2011-01-14  Bruno Haible  <bruno@clisp.org>
41831         filemode: Make function declarations usable in C++ mode.
41832         * lib/filemode.h: Enclose function declarations in extern "C" block.
41833         Reported by John W. Eaton <jwe@gnu.org>.
41835 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
41837         save-cwd: no longer include "xgetcwd.h"
41838         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
41839         This avoids a compilation failure in projects that use save-cwd
41840         without also using the xgetcwd module.
41842 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
41844         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
41845         This is so that a program like Emacs, which needs only dtoastr,
41846         does not have to bother with distributing and compiling ftoastr
41847         and ldtoastr.
41848         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
41849         * modules/dtoastr, modules/ldtoastr: New files.
41850         * modules/ftoastr: Now works just for 'float'.
41851         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
41852         (Makefile.am): Remove ftoastr.h (not needed and no effect),
41853         dtoastr.c, ldtoastr.c.
41855 2011-01-11  Jim Meyering  <meyering@redhat.com>
41857         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
41858         There is no need to work around the lack of the fchdir function,
41859         since gnulib can now provide a replacement when required.
41860         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
41861         * modules/save-cwd (Depends-on): Add fchdir.
41863 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
41865         openat, save-cwd: avoid xmalloc
41867         This removes a direct (but undocumented) dependency of openat on
41868         xalloc, along with an indirect dependency via save-cwd.  It also
41869         removes a dependency of save-cwd on xgetcwd, and thereby
41870         indirectly on xalloc.  This change causes the openat substitute
41871         to fall back on save_cwd when memory is tight, and for save_cwd to
41872         fail instead of dying when memory is tight, but that's good enough.
41873         Problem and initial idea for fix reported by Bastien Roucaries in
41874         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
41876         * lib/openat-proc.c: Include stdlib.h (for malloc), not
41877         xalloc.h (for xmalloc).
41878         (openat_proc_name): Use malloc, not xmalloc.
41879         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
41880         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
41882         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
41883         This avoids heap allocation for file names whose lengths are in
41884         the range 512..1023, with the upper bound increasing to at most
41885         4031 depending on the platform's PATH_MAX.  (We do not want
41886         pathmax.h here as it might supply a non-constant PATH_MAX.)
41887         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
41888         Perhaps they should be moved to malloca.h?
41889         (OPENAT_BUFFER_SIZE): Use them.
41891 2011-01-10  Bruno Haible  <bruno@clisp.org>
41893         doc: Update users.txt.
41894         * users.txt: Add recutils.
41896 2011-01-09  Karl Berry  <karl@gnu.org>
41898         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
41900         * doc/configmake.texi: New file.
41901         * doc/gnulib.texi: Include it.
41902         * modules/configmake: Move documentation from here.
41904 2011-01-09  Bruno Haible  <bruno@clisp.org>
41906         Update to Unicode 6.0.0.
41907         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
41908         (get_lbp): Update for Unicode 6.0.0.
41909         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
41910         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
41911         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
41912         U+11001, U+11038..U+11046. Remove U+06DE.
41913         (uc_width): Fix bounds of planes.
41914         * tests/uniwidth/test-uc_width2.sh: Same updates as in
41915         lib/uniwidth/width.c.
41916         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
41917         trailing whitespace removed.
41918         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
41919         without comments, but with the original copyright notice.
41920         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
41921         * lib/unicase/ignorable.h: Likewise.
41922         * lib/unicase/tocasefold.h: Likewise.
41923         * lib/unicase/tolower.h: Likewise.
41924         * lib/unicase/totitle.h: Likewise.
41925         * lib/unicase/toupper.h: Likewise.
41926         * lib/unictype/bidi_of.h: Likewise.
41927         * lib/unictype/blocks.h: Likewise.
41928         * lib/unictype/categ_C.h: Likewise.
41929         * lib/unictype/categ_Cn.h: Likewise.
41930         * lib/unictype/categ_L.h: Likewise.
41931         * lib/unictype/categ_Ll.h: Likewise.
41932         * lib/unictype/categ_Lm.h: Likewise.
41933         * lib/unictype/categ_Lo.h: Likewise.
41934         * lib/unictype/categ_Lu.h: Likewise.
41935         * lib/unictype/categ_M.h: Likewise.
41936         * lib/unictype/categ_Mc.h: Likewise.
41937         * lib/unictype/categ_Me.h: Likewise.
41938         * lib/unictype/categ_Mn.h: Likewise.
41939         * lib/unictype/categ_N.h: Likewise.
41940         * lib/unictype/categ_Nd.h: Likewise.
41941         * lib/unictype/categ_No.h: Likewise.
41942         * lib/unictype/categ_P.h: Likewise.
41943         * lib/unictype/categ_Po.h: Likewise.
41944         * lib/unictype/categ_S.h: Likewise.
41945         * lib/unictype/categ_Sc.h: Likewise.
41946         * lib/unictype/categ_Sk.h: Likewise.
41947         * lib/unictype/categ_Sm.h: Likewise.
41948         * lib/unictype/categ_So.h: Likewise.
41949         * lib/unictype/categ_of.h: Likewise.
41950         * lib/unictype/combining.h: Likewise.
41951         * lib/unictype/ctype_alnum.h: Likewise.
41952         * lib/unictype/ctype_alpha.h: Likewise.
41953         * lib/unictype/ctype_graph.h: Likewise.
41954         * lib/unictype/ctype_lower.h: Likewise.
41955         * lib/unictype/ctype_print.h: Likewise.
41956         * lib/unictype/ctype_punct.h: Likewise.
41957         * lib/unictype/ctype_upper.h: Likewise.
41958         * lib/unictype/decdigit.h: Likewise.
41959         * lib/unictype/digit.h: Likewise.
41960         * lib/unictype/numeric.h: Likewise.
41961         * lib/unictype/pr_alphabetic.h: Likewise.
41962         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
41963         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
41964         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
41965         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
41966         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
41967         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
41968         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
41969         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
41970         * lib/unictype/pr_case_ignorable.h: Likewise.
41971         * lib/unictype/pr_cased.h: Likewise.
41972         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
41973         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
41974         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
41975         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
41976         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
41977         * lib/unictype/pr_combining.h: Likewise.
41978         * lib/unictype/pr_composite.h: Likewise.
41979         * lib/unictype/pr_currency_symbol.h: Likewise.
41980         * lib/unictype/pr_decimal_digit.h: Likewise.
41981         * lib/unictype/pr_deprecated.h: Likewise.
41982         * lib/unictype/pr_format_control.h: Likewise.
41983         * lib/unictype/pr_grapheme_base.h: Likewise.
41984         * lib/unictype/pr_grapheme_extend.h: Likewise.
41985         * lib/unictype/pr_grapheme_link.h: Likewise.
41986         * lib/unictype/pr_id_continue.h: Likewise.
41987         * lib/unictype/pr_id_start.h: Likewise.
41988         * lib/unictype/pr_ideographic.h: Likewise.
41989         * lib/unictype/pr_lowercase.h: Likewise.
41990         * lib/unictype/pr_math.h: Likewise.
41991         * lib/unictype/pr_numeric.h: Likewise.
41992         * lib/unictype/pr_other_alphabetic.h: Likewise.
41993         * lib/unictype/pr_other_id_continue.h: Likewise.
41994         * lib/unictype/pr_other_math.h: Likewise.
41995         * lib/unictype/pr_punctuation.h: Likewise.
41996         * lib/unictype/pr_sentence_terminal.h: Likewise.
41997         * lib/unictype/pr_terminal_punctuation.h: Likewise.
41998         * lib/unictype/pr_unassigned_code_value.h: Likewise.
41999         * lib/unictype/pr_unified_ideograph.h: Likewise.
42000         * lib/unictype/pr_uppercase.h: Likewise.
42001         * lib/unictype/pr_xid_continue.h: Likewise.
42002         * lib/unictype/pr_xid_start.h: Likewise.
42003         * lib/unictype/scripts.h: Likewise.
42004         * lib/unictype/scripts_byname.gperf: Likewise.
42005         * lib/unictype/sy_java_ident.h: Likewise.
42006         * lib/unigbrk/gbrkprop.h: Likewise.
42007         * lib/unilbrk/lbrkprop1.h: Likewise.
42008         * lib/unilbrk/lbrkprop2.h: Likewise.
42009         * lib/uninorm/decomposition-table2.h: Likewise.
42010         * lib/uniwbrk/wbrkprop.h: Likewise.
42011         * tests/unicase/test-cased.c: Likewise.
42012         * tests/unicase/test-ignorable.c: Likewise.
42013         * tests/unicase/test-uc_tolower.c: Likewise.
42014         * tests/unicase/test-uc_totitle.c: Likewise.
42015         * tests/unicase/test-uc_toupper.c: Likewise.
42016         * tests/unictype/test-categ_C.c: Likewise.
42017         * tests/unictype/test-categ_Cn.c: Likewise.
42018         * tests/unictype/test-categ_L.c: Likewise.
42019         * tests/unictype/test-categ_Ll.c: Likewise.
42020         * tests/unictype/test-categ_Lm.c: Likewise.
42021         * tests/unictype/test-categ_Lo.c: Likewise.
42022         * tests/unictype/test-categ_Lu.c: Likewise.
42023         * tests/unictype/test-categ_M.c: Likewise.
42024         * tests/unictype/test-categ_Mc.c: Likewise.
42025         * tests/unictype/test-categ_Me.c: Likewise.
42026         * tests/unictype/test-categ_Mn.c: Likewise.
42027         * tests/unictype/test-categ_N.c: Likewise.
42028         * tests/unictype/test-categ_Nd.c: Likewise.
42029         * tests/unictype/test-categ_No.c: Likewise.
42030         * tests/unictype/test-categ_P.c: Likewise.
42031         * tests/unictype/test-categ_Po.c: Likewise.
42032         * tests/unictype/test-categ_S.c: Likewise.
42033         * tests/unictype/test-categ_Sc.c: Likewise.
42034         * tests/unictype/test-categ_Sk.c: Likewise.
42035         * tests/unictype/test-categ_Sm.c: Likewise.
42036         * tests/unictype/test-categ_So.c: Likewise.
42037         * tests/unictype/test-ctype_alnum.c: Likewise.
42038         * tests/unictype/test-ctype_alpha.c: Likewise.
42039         * tests/unictype/test-ctype_graph.c: Likewise.
42040         * tests/unictype/test-ctype_lower.c: Likewise.
42041         * tests/unictype/test-ctype_print.c: Likewise.
42042         * tests/unictype/test-ctype_punct.c: Likewise.
42043         * tests/unictype/test-ctype_upper.c: Likewise.
42044         * tests/unictype/test-decdigit.h: Likewise.
42045         * tests/unictype/test-digit.h: Likewise.
42046         * tests/unictype/test-numeric.h: Likewise.
42047         * tests/unictype/test-pr_alphabetic.c: Likewise.
42048         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
42049         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
42050         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
42051         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
42052         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
42053         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
42054         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
42055         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
42056         * tests/unictype/test-pr_case_ignorable.c: Likewise.
42057         * tests/unictype/test-pr_cased.c: Likewise.
42058         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
42059         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
42060         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
42061         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
42062         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
42063         * tests/unictype/test-pr_combining.c: Likewise.
42064         * tests/unictype/test-pr_composite.c: Likewise.
42065         * tests/unictype/test-pr_currency_symbol.c: Likewise.
42066         * tests/unictype/test-pr_decimal_digit.c: Likewise.
42067         * tests/unictype/test-pr_deprecated.c: Likewise.
42068         * tests/unictype/test-pr_format_control.c: Likewise.
42069         * tests/unictype/test-pr_grapheme_base.c: Likewise.
42070         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
42071         * tests/unictype/test-pr_grapheme_link.c: Likewise.
42072         * tests/unictype/test-pr_id_continue.c: Likewise.
42073         * tests/unictype/test-pr_id_start.c: Likewise.
42074         * tests/unictype/test-pr_ideographic.c: Likewise.
42075         * tests/unictype/test-pr_lowercase.c: Likewise.
42076         * tests/unictype/test-pr_math.c: Likewise.
42077         * tests/unictype/test-pr_numeric.c: Likewise.
42078         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
42079         * tests/unictype/test-pr_other_id_continue.c: Likewise.
42080         * tests/unictype/test-pr_other_math.c: Likewise.
42081         * tests/unictype/test-pr_punctuation.c: Likewise.
42082         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
42083         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
42084         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
42085         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
42086         * tests/unictype/test-pr_uppercase.c: Likewise.
42087         * tests/unictype/test-pr_xid_continue.c: Likewise.
42088         * tests/unictype/test-pr_xid_start.c: Likewise.
42089         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
42090         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
42091         changes.
42092         * lib/unictype/categ_Cc.h: Likewise.
42093         * lib/unictype/categ_Cf.h: Likewise.
42094         * lib/unictype/categ_Co.h: Likewise.
42095         * lib/unictype/categ_Cs.h: Likewise.
42096         * lib/unictype/categ_Lt.h: Likewise.
42097         * lib/unictype/categ_Nl.h: Likewise.
42098         * lib/unictype/categ_Pc.h: Likewise.
42099         * lib/unictype/categ_Pd.h: Likewise.
42100         * lib/unictype/categ_Pe.h: Likewise.
42101         * lib/unictype/categ_Pf.h: Likewise.
42102         * lib/unictype/categ_Pi.h: Likewise.
42103         * lib/unictype/categ_Ps.h: Likewise.
42104         * lib/unictype/categ_Z.h: Likewise.
42105         * lib/unictype/categ_Zl.h: Likewise.
42106         * lib/unictype/categ_Zp.h: Likewise.
42107         * lib/unictype/categ_Zs.h: Likewise.
42108         * lib/unictype/ctype_blank.h: Likewise.
42109         * lib/unictype/ctype_cntrl.h: Likewise.
42110         * lib/unictype/ctype_digit.h: Likewise.
42111         * lib/unictype/ctype_space.h: Likewise.
42112         * lib/unictype/ctype_xdigit.h: Likewise.
42113         * lib/unictype/mirror.h: Likewise.
42114         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
42115         * lib/unictype/pr_bidi_block_separator.h: Likewise.
42116         * lib/unictype/pr_bidi_common_separator.h: Likewise.
42117         * lib/unictype/pr_bidi_control.h: Likewise.
42118         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
42119         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
42120         * lib/unictype/pr_bidi_european_digit.h: Likewise.
42121         * lib/unictype/pr_bidi_pdf.h: Likewise.
42122         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
42123         * lib/unictype/pr_bidi_whitespace.h: Likewise.
42124         * lib/unictype/pr_dash.h: Likewise.
42125         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
42126         * lib/unictype/pr_diacritic.h: Likewise.
42127         * lib/unictype/pr_extender.h: Likewise.
42128         * lib/unictype/pr_hex_digit.h: Likewise.
42129         * lib/unictype/pr_hyphen.h: Likewise.
42130         * lib/unictype/pr_ids_binary_operator.h: Likewise.
42131         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
42132         * lib/unictype/pr_ignorable_control.h: Likewise.
42133         * lib/unictype/pr_iso_control.h: Likewise.
42134         * lib/unictype/pr_join_control.h: Likewise.
42135         * lib/unictype/pr_left_of_pair.h: Likewise.
42136         * lib/unictype/pr_line_separator.h: Likewise.
42137         * lib/unictype/pr_logical_order_exception.h: Likewise.
42138         * lib/unictype/pr_non_break.h: Likewise.
42139         * lib/unictype/pr_not_a_character.h: Likewise.
42140         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
42141         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
42142         * lib/unictype/pr_other_id_start.h: Likewise.
42143         * lib/unictype/pr_other_lowercase.h: Likewise.
42144         * lib/unictype/pr_other_uppercase.h: Likewise.
42145         * lib/unictype/pr_paired_punctuation.h: Likewise.
42146         * lib/unictype/pr_paragraph_separator.h: Likewise.
42147         * lib/unictype/pr_pattern_syntax.h: Likewise.
42148         * lib/unictype/pr_pattern_white_space.h: Likewise.
42149         * lib/unictype/pr_private_use.h: Likewise.
42150         * lib/unictype/pr_quotation_mark.h: Likewise.
42151         * lib/unictype/pr_radical.h: Likewise.
42152         * lib/unictype/pr_soft_dotted.h: Likewise.
42153         * lib/unictype/pr_space.h: Likewise.
42154         * lib/unictype/pr_titlecase.h: Likewise.
42155         * lib/unictype/pr_variation_selector.h: Likewise.
42156         * lib/unictype/pr_white_space.h: Likewise.
42157         * lib/unictype/pr_zero_width.h: Likewise.
42158         * lib/unictype/sy_c_ident.h: Likewise.
42159         * lib/unictype/sy_c_whitespace.h: Likewise.
42160         * lib/unictype/sy_java_whitespace.h: Likewise.
42161         * lib/uninorm/composition-table.gperf: Likewise.
42162         * lib/uninorm/decomposition-table1.h: Likewise.
42163         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
42164         LB8.
42165         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
42166         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
42167         * modules/unictype/*: Bump version number of expected libunistring
42168         version.
42170 2011-01-09  Bruno Haible  <bruno@clisp.org>
42172         Update to Unicode 5.2.0.
42173         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
42174         trailing whitespace removed.
42176 2011-01-09  Bruno Haible  <bruno@clisp.org>
42178         New Unicode character properties, from Unicode 5.2.0.
42179         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
42180         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
42181         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
42182         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
42183         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
42184         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
42185         uc_is_property_cased, uc_is_property_case_ignorable,
42186         uc_is_property_changes_when_lowercased,
42187         uc_is_property_changes_when_uppercased,
42188         uc_is_property_changes_when_titlecased,
42189         uc_is_property_changes_when_casefolded,
42190         uc_is_property_changes_when_casemapped): New declarations.
42191         * lib/unictype/pr_byname.gperf: Add the new properties.
42192         * modules/unictype/property-byname (Depends-on): Depend on the new
42193         properties modules.
42194         * modules/unictype/property-all (Depends-on): Likewise.
42195         * MODULES.html.sh (Unicode string functions): Add
42196         unictype/property-case-ignorable, unictype/property-cased,
42197         unictype/property-changes-when-casefolded,
42198         unictype/property-changes-when-casemapped,
42199         unictype/property-changes-when-lowercased,
42200         unictype/property-changes-when-titlecased,
42201         unictype/property-changes-when-uppercased.
42203         New module 'unictype/property-changes-when-casemapped'.
42204         * modules/unictype/property-changes-when-casemapped: New file.
42205         * lib/unictype/pr_changes_when_casemapped.c: New file.
42206         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
42207         generated by gen-uni-tables.
42208         * modules/unictype/property-changes-when-casemapped-tests: New file.
42209         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
42210         automatically generated by gen-uni-tables.
42212         New module 'unictype/property-changes-when-casefolded'.
42213         * modules/unictype/property-changes-when-casefolded: New file.
42214         * lib/unictype/pr_changes_when_casefolded.c: New file.
42215         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
42216         generated by gen-uni-tables.
42217         * modules/unictype/property-changes-when-casefolded-tests: New file.
42218         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
42219         automatically generated by gen-uni-tables.
42221         New module 'unictype/property-changes-when-titlecased'.
42222         * modules/unictype/property-changes-when-titlecased: New file.
42223         * lib/unictype/pr_changes_when_titlecased.c: New file.
42224         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
42225         generated by gen-uni-tables.
42226         * modules/unictype/property-changes-when-titlecased-tests: New file.
42227         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
42228         automatically generated by gen-uni-tables.
42230         New module 'unictype/property-changes-when-uppercased'.
42231         * modules/unictype/property-changes-when-uppercased: New file.
42232         * lib/unictype/pr_changes_when_uppercased.c: New file.
42233         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
42234         generated by gen-uni-tables.
42235         * modules/unictype/property-changes-when-uppercased-tests: New file.
42236         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
42237         automatically generated by gen-uni-tables.
42239         New module 'unictype/property-changes-when-lowercased'.
42240         * modules/unictype/property-changes-when-lowercased: New file.
42241         * lib/unictype/pr_changes_when_lowercased.c: New file.
42242         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
42243         generated by gen-uni-tables.
42244         * modules/unictype/property-changes-when-lowercased-tests: New file.
42245         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
42246         automatically generated by gen-uni-tables.
42248         New module 'unictype/property-case-ignorable'.
42249         * modules/unictype/property-case-ignorable: New file.
42250         * lib/unictype/pr_case_ignorable.c: New file.
42251         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
42252         by gen-uni-tables.
42253         * modules/unictype/property-case-ignorable-tests: New file.
42254         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
42255         generated by gen-uni-tables.
42257         New module 'unictype/property-cased'.
42258         * modules/unictype/property-cased: New file.
42259         * lib/unictype/pr_cased.c: New file.
42260         * lib/unictype/pr_cased.h: New file, automatically generated by
42261         gen-uni-tables.
42262         * modules/unictype/property-cased-tests: New file.
42263         * tests/unictype/test-pr_cased.c: New file, automatically generated by
42264         gen-uni-tables.
42266 2011-01-09  Bruno Haible  <bruno@clisp.org>
42268         Update to Unicode 5.2.0.
42269         * lib/gen-uni-tables.c (output_predicate, output_category,
42270         output_combclass, output_bidi_category, output_decimal_digit_test,
42271         output_decimal_digit, output_digit_test, output_digit,
42272         output_numeric_test, output_numeric, output_mirror, output_scripts,
42273         output_scripts_byname, output_blocks, output_ident_category): Fix
42274         comment header.
42275         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
42276         get_wbp.
42277         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
42278         items.
42279         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
42280         Changes_When_Lowercased, Changes_When_Uppercased,
42281         Changes_When_Titlecased, Changes_When_Casefolded,
42282         Changes_When_Casemapped.
42283         (is_property_alphabetic, is_property_default_ignorable_code_point):
42284         Update for Unicode 5.2.0.
42285         (is_property_cased, is_property_case_ignorable,
42286         is_property_changes_when_lowercased,
42287         is_property_changes_when_uppercased,
42288         is_property_changes_when_titlecased,
42289         is_property_changes_when_casefolded,
42290         is_property_changes_when_casemapped): New functions.
42291         (output_properties): Output also the properties cased, case_ignorable,
42292         changes_when_lowercased, changes_when_uppercased,
42293         changes_when_titlecased, changes_when_casefolded,
42294         changes_when_casemapped.
42295         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
42296         Unicode TR#11 revision 17 -> 19.
42297         (LBP_CP): New enumeration value.
42298         (LBP_*): Adjust values accordingly.
42299         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
42300         TR#14 revision 22 -> 24.
42301         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
42302         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
42303         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
42304         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
42305         is_WBP_MIDLETTER.
42306         (output_composition_tables): Allow for 24 bits instead of 16 bits in
42307         the code1 and code2 of each composition rule.
42308         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
42309         * lib/unicase/ignorable.h: Likewise.
42310         * lib/unicase/tocasefold.h: Likewise.
42311         * lib/unicase/tolower.h: Likewise.
42312         * lib/unicase/totitle.h: Likewise.
42313         * lib/unicase/toupper.h: Likewise.
42314         * lib/unictype/bidi_of.h: Likewise.
42315         * lib/unictype/blocks.h: Likewise.
42316         * lib/unictype/categ_C.h: Likewise.
42317         * lib/unictype/categ_Cf.h: Likewise.
42318         * lib/unictype/categ_Cn.h: Likewise.
42319         * lib/unictype/categ_L.h: Likewise.
42320         * lib/unictype/categ_Ll.h: Likewise.
42321         * lib/unictype/categ_Lm.h: Likewise.
42322         * lib/unictype/categ_Lo.h: Likewise.
42323         * lib/unictype/categ_Lu.h: Likewise.
42324         * lib/unictype/categ_M.h: Likewise.
42325         * lib/unictype/categ_Mc.h: Likewise.
42326         * lib/unictype/categ_Mn.h: Likewise.
42327         * lib/unictype/categ_N.h: Likewise.
42328         * lib/unictype/categ_Nd.h: Likewise.
42329         * lib/unictype/categ_Nl.h: Likewise.
42330         * lib/unictype/categ_No.h: Likewise.
42331         * lib/unictype/categ_P.h: Likewise.
42332         * lib/unictype/categ_Pd.h: Likewise.
42333         * lib/unictype/categ_Po.h: Likewise.
42334         * lib/unictype/categ_S.h: Likewise.
42335         * lib/unictype/categ_Sc.h: Likewise.
42336         * lib/unictype/categ_So.h: Likewise.
42337         * lib/unictype/categ_of.h: Likewise.
42338         * lib/unictype/combining.h: Likewise.
42339         * lib/unictype/ctype_alnum.h: Likewise.
42340         * lib/unictype/ctype_alpha.h: Likewise.
42341         * lib/unictype/ctype_graph.h: Likewise.
42342         * lib/unictype/ctype_lower.h: Likewise.
42343         * lib/unictype/ctype_print.h: Likewise.
42344         * lib/unictype/ctype_punct.h: Likewise.
42345         * lib/unictype/ctype_upper.h: Likewise.
42346         * lib/unictype/decdigit.h: Likewise.
42347         * lib/unictype/digit.h: Likewise.
42348         * lib/unictype/numeric.h: Likewise.
42349         * lib/unictype/pr_alphabetic.h: Likewise.
42350         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
42351         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
42352         * lib/unictype/pr_bidi_european_digit.h: Likewise.
42353         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
42354         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
42355         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
42356         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
42357         * lib/unictype/pr_combining.h: Likewise.
42358         * lib/unictype/pr_composite.h: Likewise.
42359         * lib/unictype/pr_currency_symbol.h: Likewise.
42360         * lib/unictype/pr_dash.h: Likewise.
42361         * lib/unictype/pr_decimal_digit.h: Likewise.
42362         * lib/unictype/pr_deprecated.h: Likewise.
42363         * lib/unictype/pr_diacritic.h: Likewise.
42364         * lib/unictype/pr_extender.h: Likewise.
42365         * lib/unictype/pr_grapheme_base.h: Likewise.
42366         * lib/unictype/pr_grapheme_extend.h: Likewise.
42367         * lib/unictype/pr_grapheme_link.h: Likewise.
42368         * lib/unictype/pr_id_continue.h: Likewise.
42369         * lib/unictype/pr_id_start.h: Likewise.
42370         * lib/unictype/pr_ideographic.h: Likewise.
42371         * lib/unictype/pr_ignorable_control.h: Likewise.
42372         * lib/unictype/pr_logical_order_exception.h: Likewise.
42373         * lib/unictype/pr_lowercase.h: Likewise.
42374         * lib/unictype/pr_numeric.h: Likewise.
42375         * lib/unictype/pr_other_alphabetic.h: Likewise.
42376         * lib/unictype/pr_punctuation.h: Likewise.
42377         * lib/unictype/pr_sentence_terminal.h: Likewise.
42378         * lib/unictype/pr_terminal_punctuation.h: Likewise.
42379         * lib/unictype/pr_unassigned_code_value.h: Likewise.
42380         * lib/unictype/pr_unified_ideograph.h: Likewise.
42381         * lib/unictype/pr_uppercase.h: Likewise.
42382         * lib/unictype/pr_xid_continue.h: Likewise.
42383         * lib/unictype/pr_xid_start.h: Likewise.
42384         * lib/unictype/pr_zero_width.h: Likewise.
42385         * lib/unictype/scripts.h: Likewise.
42386         * lib/unictype/scripts_byname.gperf: Likewise.
42387         * lib/unictype/sy_java_ident.h: Likewise.
42388         * lib/unigbrk/gbrkprop.h: Likewise.
42389         * lib/unilbrk/lbrkprop1.h: Likewise.
42390         * lib/unilbrk/lbrkprop2.h: Likewise.
42391         * lib/unilbrk/lbrktables.h: Likewise.
42392         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
42393         LBP_CP. Implement rule LB30.
42394         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
42395         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
42396         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
42397         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
42398         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
42399         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
42400         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
42401         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
42402         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
42403         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
42404         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
42405         bits instead of 16 bits in the code1 and code2 of each composition
42406         rule.
42407         (uc_composition): Update for Unicode 5.2.0.
42408         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
42409         * lib/uninorm/decomposition-table2.h: Likewise.
42410         * lib/uniwbrk/wbrkprop.h: Likewise.
42411         * tests/unicase/test-cased.c: Likewise.
42412         * tests/unicase/test-ignorable.c: Likewise.
42413         * tests/unicase/test-uc_tolower.c: Likewise.
42414         * tests/unicase/test-uc_totitle.c: Likewise.
42415         * tests/unicase/test-uc_toupper.c: Likewise.
42416         * tests/unictype/test-categ_C.c: Likewise.
42417         * tests/unictype/test-categ_Cf.c: Likewise.
42418         * tests/unictype/test-categ_Cn.c: Likewise.
42419         * tests/unictype/test-categ_L.c: Likewise.
42420         * tests/unictype/test-categ_Ll.c: Likewise.
42421         * tests/unictype/test-categ_Lm.c: Likewise.
42422         * tests/unictype/test-categ_Lo.c: Likewise.
42423         * tests/unictype/test-categ_Lu.c: Likewise.
42424         * tests/unictype/test-categ_M.c: Likewise.
42425         * tests/unictype/test-categ_Mc.c: Likewise.
42426         * tests/unictype/test-categ_Mn.c: Likewise.
42427         * tests/unictype/test-categ_N.c: Likewise.
42428         * tests/unictype/test-categ_Nd.c: Likewise.
42429         * tests/unictype/test-categ_Nl.c: Likewise.
42430         * tests/unictype/test-categ_No.c: Likewise.
42431         * tests/unictype/test-categ_P.c: Likewise.
42432         * tests/unictype/test-categ_Pd.c: Likewise.
42433         * tests/unictype/test-categ_Po.c: Likewise.
42434         * tests/unictype/test-categ_S.c: Likewise.
42435         * tests/unictype/test-categ_Sc.c: Likewise.
42436         * tests/unictype/test-categ_So.c: Likewise.
42437         * tests/unictype/test-ctype_alnum.c: Likewise.
42438         * tests/unictype/test-ctype_alpha.c: Likewise.
42439         * tests/unictype/test-ctype_graph.c: Likewise.
42440         * tests/unictype/test-ctype_lower.c: Likewise.
42441         * tests/unictype/test-ctype_print.c: Likewise.
42442         * tests/unictype/test-ctype_punct.c: Likewise.
42443         * tests/unictype/test-ctype_upper.c: Likewise.
42444         * tests/unictype/test-decdigit.h: Likewise.
42445         * tests/unictype/test-digit.h: Likewise.
42446         * tests/unictype/test-numeric.h: Likewise.
42447         * tests/unictype/test-pr_alphabetic.c: Likewise.
42448         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
42449         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
42450         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
42451         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
42452         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
42453         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
42454         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
42455         * tests/unictype/test-pr_combining.c: Likewise.
42456         * tests/unictype/test-pr_composite.c: Likewise.
42457         * tests/unictype/test-pr_currency_symbol.c: Likewise.
42458         * tests/unictype/test-pr_dash.c: Likewise.
42459         * tests/unictype/test-pr_decimal_digit.c: Likewise.
42460         * tests/unictype/test-pr_deprecated.c: Likewise.
42461         * tests/unictype/test-pr_diacritic.c: Likewise.
42462         * tests/unictype/test-pr_extender.c: Likewise.
42463         * tests/unictype/test-pr_grapheme_base.c: Likewise.
42464         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
42465         * tests/unictype/test-pr_grapheme_link.c: Likewise.
42466         * tests/unictype/test-pr_id_continue.c: Likewise.
42467         * tests/unictype/test-pr_id_start.c: Likewise.
42468         * tests/unictype/test-pr_ideographic.c: Likewise.
42469         * tests/unictype/test-pr_ignorable_control.c: Likewise.
42470         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
42471         * tests/unictype/test-pr_lowercase.c: Likewise.
42472         * tests/unictype/test-pr_numeric.c: Likewise.
42473         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
42474         * tests/unictype/test-pr_punctuation.c: Likewise.
42475         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
42476         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
42477         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
42478         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
42479         * tests/unictype/test-pr_uppercase.c: Likewise.
42480         * tests/unictype/test-pr_xid_continue.c: Likewise.
42481         * tests/unictype/test-pr_xid_start.c: Likewise.
42482         * tests/unictype/test-pr_zero_width.c: Likewise.
42483         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
42484         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
42485         changed behaviour: line breaking is now disallowed between a letter
42486         or '=' and '('.
42487         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
42488         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
42489         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
42490         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
42491         * tests/uniwidth/test-uc_width2.sh: Same updates as in
42492         lib/uniwidth/width.c.
42493         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
42494         without comments, but with the original copyright notice.
42495         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
42496         changes.
42497         * lib/unictype/categ_Cc.h: Likewise.
42498         * lib/unictype/categ_Co.h: Likewise.
42499         * lib/unictype/categ_Cs.h: Likewise.
42500         * lib/unictype/categ_Lt.h: Likewise.
42501         * lib/unictype/categ_Me.h: Likewise.
42502         * lib/unictype/categ_Pc.h: Likewise.
42503         * lib/unictype/categ_Pe.h: Likewise.
42504         * lib/unictype/categ_Pf.h: Likewise.
42505         * lib/unictype/categ_Pi.h: Likewise.
42506         * lib/unictype/categ_Ps.h: Likewise.
42507         * lib/unictype/categ_Sk.h: Likewise.
42508         * lib/unictype/categ_Sm.h: Likewise.
42509         * lib/unictype/categ_Z.h: Likewise.
42510         * lib/unictype/categ_Zl.h: Likewise.
42511         * lib/unictype/categ_Zp.h: Likewise.
42512         * lib/unictype/categ_Zs.h: Likewise.
42513         * lib/unictype/ctype_blank.h: Likewise.
42514         * lib/unictype/ctype_cntrl.h: Likewise.
42515         * lib/unictype/ctype_digit.h: Likewise.
42516         * lib/unictype/ctype_space.h: Likewise.
42517         * lib/unictype/ctype_xdigit.h: Likewise.
42518         * lib/unictype/mirror.h: Likewise.
42519         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
42520         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
42521         * lib/unictype/pr_bidi_block_separator.h: Likewise.
42522         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
42523         * lib/unictype/pr_bidi_common_separator.h: Likewise.
42524         * lib/unictype/pr_bidi_control.h: Likewise.
42525         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
42526         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
42527         * lib/unictype/pr_bidi_pdf.h: Likewise.
42528         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
42529         * lib/unictype/pr_bidi_whitespace.h: Likewise.
42530         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
42531         * lib/unictype/pr_format_control.h: Likewise.
42532         * lib/unictype/pr_hex_digit.h: Likewise.
42533         * lib/unictype/pr_hyphen.h: Likewise.
42534         * lib/unictype/pr_ids_binary_operator.h: Likewise.
42535         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
42536         * lib/unictype/pr_iso_control.h: Likewise.
42537         * lib/unictype/pr_join_control.h: Likewise.
42538         * lib/unictype/pr_left_of_pair.h: Likewise.
42539         * lib/unictype/pr_line_separator.h: Likewise.
42540         * lib/unictype/pr_math.h: Likewise.
42541         * lib/unictype/pr_non_break.h: Likewise.
42542         * lib/unictype/pr_not_a_character.h: Likewise.
42543         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
42544         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
42545         * lib/unictype/pr_other_id_continue.h: Likewise.
42546         * lib/unictype/pr_other_id_start.h: Likewise.
42547         * lib/unictype/pr_other_lowercase.h: Likewise.
42548         * lib/unictype/pr_other_math.h: Likewise.
42549         * lib/unictype/pr_other_uppercase.h: Likewise.
42550         * lib/unictype/pr_paired_punctuation.h: Likewise.
42551         * lib/unictype/pr_paragraph_separator.h: Likewise.
42552         * lib/unictype/pr_pattern_syntax.h: Likewise.
42553         * lib/unictype/pr_pattern_white_space.h: Likewise.
42554         * lib/unictype/pr_private_use.h: Likewise.
42555         * lib/unictype/pr_quotation_mark.h: Likewise.
42556         * lib/unictype/pr_radical.h: Likewise.
42557         * lib/unictype/pr_soft_dotted.h: Likewise.
42558         * lib/unictype/pr_space.h: Likewise.
42559         * lib/unictype/pr_titlecase.h: Likewise.
42560         * lib/unictype/pr_variation_selector.h: Likewise.
42561         * lib/unictype/pr_white_space.h: Likewise.
42562         * lib/unictype/sy_c_ident.h: Likewise.
42563         * lib/unictype/sy_c_whitespace.h: Likewise.
42564         * lib/unictype/sy_java_whitespace.h: Likewise.
42565         * modules/uni*/*: Bump version number of expected libunistring version.
42566         Reported by Simon Josefsson.
42568 2011-01-09  Karl Heuer  <kwzh@gnu.org>
42570         useless-if-before-free: fix typo in --help and make the internal,
42571         automatic version date update process work once again.
42572         --help output contained a NUL character instead of the
42573         backslash-zero that was intended.  Also, the "must lie within
42574         the first 8 lines" line is on line 9, and hence not getting
42575         automatically updated.
42576         * build-aux/useless-if-before-free: Fix the former by adding a
42577         backslash, and the latter by condensing the three lines of what-it-does
42578         to a single line, leaving one line of slack for the future.
42580 2011-01-09  Bruno Haible  <bruno@clisp.org>
42582         uniwidth/width: Fix width of U+1D173..U+1D17A.
42583         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
42584         symbolic_width, output_width_property_test): New functions.
42585         (main): Invoke output_nonspacing_property, output_width_property_test.
42586         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
42587         U+1D173..U+1D17A.
42588         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
42589         1.
42590         * modules/uniwidth/*: Bump version number of expected libunistring
42591         version.
42592         * modules/unilbrk/*: Likewise.
42594 2011-01-08  Bruno Haible  <bruno@clisp.org>
42596         uninorm tests: Preserve copyright of Unicode data file.
42597         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
42598         Mention modifications.
42600 2011-01-08  Bruno Haible  <bruno@clisp.org>
42602         gen-uni-tables: Prepare for Unicode 5.2.0.
42603         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
42604         (debug_output_lbp, output_lbp): Update.
42606 2011-01-08  Bruno Haible  <bruno@clisp.org>
42608         unilbrk: Clarify gen-uni-tables.c code.
42609         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
42610         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
42611         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
42613 2011-01-07  Bruno Haible  <bruno@clisp.org>
42615         strtod: Restore errno when successfully parsing Infinity or NaN.
42616         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
42617         restore the original errno.
42619 2011-01-07  Bruno Haible  <bruno@clisp.org>
42621         remove test: Avoid failure on HP-UX 11.
42622         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
42624 2011-01-07  Bruno Haible  <bruno@clisp.org>
42626         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
42627         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
42628         error code.
42630 2011-01-07  Pádraig Brady  <P@draigBrady.com>
42632         ignore-value: fixup comments, and add Eric Blake
42633         as an author since he rewrote the macros.
42634         * lib/ignore-value.h (ignore_value):  State that
42635         we now support aggregates.  Also specify exactly
42636         when the GCC warn_unused_result feature was added.
42638 2011-01-06  Eric Blake  <eblake@redhat.com>
42640         ignore-value: support aggregate types
42641         * lib/ignore-value.h (ignore_value): Provide separate gcc
42642         definition.
42643         * modules/ignore-value-tests: New test module.
42644         * tests/test-ignore-value.c: New test.
42646         maint.mk: improve sc_prohibit_strcmp regex
42647         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
42648         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
42649         definition of STRNEQ.
42651         signal: work around Haiku issue with SIGBUS
42652         * lib/siglist.h: Add comment.
42653         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
42654         strsignal's favoring of SIGSEGV.
42655         * tests/test-signal.c (main): Avoid test failure.
42656         * doc/posix-headers/signal.texi (signal.h): Document the issue.
42657         Reported by Scott McCreary.
42659         maint.mk: add pre-release check to ensure submodule commits are public
42660         * top/maint.mk (public-submodule-commit): New rule.
42661         (submodule-checks): New variable.
42662         (alpha beta stable): Depend on the variable.
42664 2011-01-05  Pádraig Brady  <P@draigBrady.com>
42665         and Jim Meyering  <meyering@redhat.com>
42667         ignore-value: make ignore_value more generic; deprecate ignore_ptr
42668         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
42669         (ATTRIBUTE_DEPRECATED): Define.
42670         (_ignore_case): New function.
42671         (ignore_value): New macro, to replace the old function.
42672         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
42673         * modules/ignore-value (Depends-on): Add stdint.
42675 2011-01-04  Eric Blake  <eblake@redhat.com>
42677         doc: regenerate INSTALL
42678         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
42679         @firstparagraphindent support, now that autoconf dropped it.
42680         (INSTALL_PRELUDE): Reinstate old macro.
42681         * doc/install.texi: Resync from autoconf.
42682         * doc/INSTALL: Reflect recent autoconf update.
42683         * doc/INSTALL.ISO: Likewise.
42684         * doc/INSTALL.UTF-8: Likewise.
42685         Reported by Karl Berry.
42687 2011-01-04  Bruce Korb  <address@hidden>
42689         git-version-gen: avoid a sub-shell
42690         * build-aux/git-version-gen: Redirect stderr in `...` via
42691         "exec 2>...", rather than via an added sub-shell.
42693 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
42695         git-version-gen: use (...) rather than sh -c '...'
42696         * build-aux/git-version-gen: Rather than hard-coding a shell's name
42697         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
42699 2011-01-03  Jim Meyering  <meyering@redhat.com>
42701         git-version-gen: convert leading TABs to spaces
42702         * build-aux/git-version-gen: Expand leading TABs.
42704         git-version-gen: handle failed "git rev-list"
42705         * build-aux/git-version-gen: Rather than leaking a "fatal" error
42706         from git and proceeding as if it had succeeded but printed no SHA1
42707         checksums, suppress the diagnostic and handle the failure.
42708         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
42710         git-version-gen: include command name in one more diagnostic
42711         * build-aux/git-version-gen: When the required .tarball-version file
42712         was missing or unreadable, you might see the diagnostic from "cat",
42713         but no trace of the name of the invoking script.  Now, you still see
42714         the diagnostic from cat, but also get one from "git-version-gen: ".
42715         Inspired by a patch from Bruce Korb.
42717         update-copyright: adjust test to match changed code
42718         * tests/test-update-copyright.sh: Change test's expected output
42719         to match new actual output.
42721 2011-01-02  Bruno Haible  <bruno@clisp.org>
42723         getlogin_r: Avoid test failure on HP-UX 11.
42724         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
42725         ERANGE when the second argument is zero.
42726         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
42727         portability problem.
42729 2011-01-02  Bruce Korb  <bkorb@gnu.org>
42731         * build-aux/update-copyright: doc Simon's changes
42733 2011-01-02  Simon Josefsson  <simon@josefsson.org>
42735         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
42736         environment variable.
42738 2011-01-02  Bruno Haible  <bruno@clisp.org>
42740         unigbrk: Avoid gcc warnings.
42741         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
42742         unused variable.
42743         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
42744         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
42745         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
42746         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
42747         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
42748         Change type of first argument to 'const char *'.
42749         (main): Remove unused variable.
42750         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
42751         type of first argument to 'const char *'.
42752         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
42753         Likewise.
42754         (main): Change type of variable 's'.
42755         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
42756         to 'int'.
42758 2011-01-02  Bruno Haible  <bruno@clisp.org>
42760         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
42761         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
42762         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
42763         bug.
42764         * lib/pwrite.c: Undo 2010-12-31 patch.
42765         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
42767 2011-01-02  Bruno Haible  <bruno@clisp.org>
42769         pread: Fix test whether it works.
42770         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
42772 2011-01-02  Bruno Haible  <bruno@clisp.org>
42774         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
42775         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
42776         ends in "6". Don't require a specific month name. Try also the locale
42777         names found on HP-UX 11 and Solaris 7.
42779 2011-01-02  Bruno Haible  <bruno@clisp.org>
42781         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
42782         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
42783         C linkage.
42784         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
42786 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
42788         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
42789         for consistency, since the "cluster" term is not used elsewhere.
42790         * lib/unigbrk.in.h: Update name.
42791         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
42792         * lib/unigbrk/u16-grapheme-next.c: Update name.
42793         * lib/unigbrk/u16-grapheme-prev.c: Update name.
42794         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
42795         * lib/unigbrk/u32-grapheme-next.c: Update name.
42796         * lib/unigbrk/u32-grapheme-prev.c: Update name.
42797         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
42798         * lib/unigbrk/u8-grapheme-next.c: Update name.
42799         * lib/unigbrk/u8-grapheme-prev.c: Update name.
42800         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
42801         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
42802         Suggested by Bruno Haible.
42804 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
42806         Remove module 'u8-grapheme-len' as too redundant with
42807         'u8-grapheme-next'.
42808         * modules/unigbrk/u8-grapheme-len: Delete file.
42809         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
42810         * lib/unigbrk.in.h: Remove prototype for deleted function.
42811         * lib/unigbrk/u8-grapheme-len.c: Delete file.
42812         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
42814         Remove module 'u16-grapheme-len' as too redundant with
42815         'u16-grapheme-next'.
42816         * modules/unigbrk/u16-grapheme-len: Delete file.
42817         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
42818         * lib/unigbrk.in.h: Remove prototype for deleted function.
42819         * lib/unigbrk/u16-grapheme-len.c: Delete file.
42820         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
42822         Remove module 'u32-grapheme-len' as too redundant with
42823         'u32-grapheme-next'.
42824         * modules/unigbrk/u32-grapheme-len: Delete file.
42825         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
42826         * lib/unigbrk.in.h: Remove prototype for deleted function.
42827         * lib/unigbrk/u32-grapheme-len.c: Delete file.
42828         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
42830         Suggested by Bruno Haible.
42832 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
42834         * unigbrk.in.h: Fix typo: "ben" => "been".
42835         Reported by Bruno Haible.
42837 2011-01-01  Jim Meyering  <meyering@redhat.com>
42839         maint: update almost all copyright ranges to include 2011
42840         Run the new "make update-copyright" rule.
42842 2011-01-01  Jim Meyering  <meyering@redhat.com>
42844         maint: update-copyright: exempt doc/INSTALL*
42845         * Makefile (update-copyright): Also exclude doc/INSTALL*,
42846         since they are generated.  Suggested by Bruno Haible.
42848 2011-01-01  Jim Meyering  <meyering@redhat.com>
42850         maint: refine the update-copyright rule
42851         * Makefile (update-copyright): Also exclude any file that includes
42852         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
42853         code that merely generates the comment.
42855 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
42857         New module 'u8-grapheme-len'.
42858         * modules/unigbrk/u8-grapheme-len: New file.
42859         * modules/unigbrk/u8-grapheme-len-tests: New file.
42860         * lib/unigbrk.in.h: Add prototype for new function.
42861         * lib/unigbrk/u8-grapheme-len.c: New file.
42862         * tests/unigbrk/test-u8-grapheme-len.c: New file.
42864         New module 'u16-grapheme-len'.
42865         * modules/unigbrk/u16-grapheme-len: New file.
42866         * modules/unigbrk/u16-grapheme-len-tests: New file.
42867         * lib/unigbrk.in.h: Add prototype for new function.
42868         * lib/unigbrk/u16-grapheme-len.c: New file.
42869         * tests/unigbrk/test-u16-grapheme-len.c: New file.
42871         New module 'u32-grapheme-len'.
42872         * modules/unigbrk/u32-grapheme-len: New file.
42873         * modules/unigbrk/u32-grapheme-len-tests: New file.
42874         * lib/unigbrk.in.h: Add prototype for new function.
42875         * lib/unigbrk/u32-grapheme-len.c: New file.
42876         * tests/unigbrk/test-u32-grapheme-len.c: New file.
42878         New module 'u8-grapheme-next'.
42879         * modules/unigbrk/u8-grapheme-next: New file.
42880         * modules/unigbrk/u8-grapheme-next-tests: New file.
42881         * lib/unigbrk.in.h: Add prototype for new function.
42882         * lib/unigbrk/u8-grapheme-next.c: New file.
42883         * tests/unigbrk/test-u8-grapheme-next.c: New file.
42885         New module 'u16-grapheme-next'.
42886         * modules/unigbrk/u16-grapheme-next: New file.
42887         * modules/unigbrk/u16-grapheme-next-tests: New file.
42888         * lib/unigbrk.in.h: Add prototype for new function.
42889         * lib/unigbrk/u16-grapheme-next.c: New file.
42890         * tests/unigbrk/test-u16-grapheme-next.c: New file.
42892         New module 'u32-grapheme-next'.
42893         * modules/unigbrk/u32-grapheme-next: New file.
42894         * modules/unigbrk/u32-grapheme-next-tests: New file.
42895         * lib/unigbrk.in.h: Add prototype for new function.
42896         * lib/unigbrk/u32-grapheme-next.c: New file.
42897         * tests/unigbrk/test-u32-grapheme-next.c: New file.
42899         New module 'u8-grapheme-prev'.
42900         * modules/unigbrk/u8-grapheme-prev: New file.
42901         * modules/unigbrk/u8-grapheme-prev-tests: New file.
42902         * lib/unigbrk.in.h: Add prototype for new function.
42903         * lib/unigbrk/u8-grapheme-prev.c: New file.
42904         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
42906         New module 'u16-grapheme-prev'.
42907         * modules/unigbrk/u16-grapheme-prev: New file.
42908         * modules/unigbrk/u16-grapheme-prev-tests: New file.
42909         * lib/unigbrk.in.h: Add prototype for new function.
42910         * lib/unigbrk/u16-grapheme-prev.c: New file.
42911         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
42913         New module 'u32-grapheme-prev'.
42914         * modules/unigbrk/u32-grapheme-prev: New file.
42915         * modules/unigbrk/u32-grapheme-prev-tests: New file.
42916         * lib/unigbrk.in.h: Add prototype for new function.
42917         * lib/unigbrk/u32-grapheme-prev.c: New file.
42918         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
42920         New module 'u8-grapheme-breaks'.
42921         * modules/unigbrk/u8-grapheme-breaks: New file.
42922         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
42923         * lib/unigbrk.in.h: Add prototype for new function.
42924         * lib/unigbrk/u8-grapheme-breaks.c: New file.
42925         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
42927         New module 'u16-grapheme-breaks'.
42928         * modules/unigbrk/u16-grapheme-breaks: New file.
42929         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
42930         * lib/unigbrk.in.h: Add prototype for new function.
42931         * lib/unigbrk/u16-grapheme-breaks.c: New file.
42932         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
42934         New module 'u32-grapheme-breaks'.
42935         * modules/unigbrk/u32-grapheme-breaks: New file.
42936         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
42937         * lib/unigbrk.in.h: Add prototype for new function.
42938         * lib/unigbrk/u32-grapheme-breaks.c: New file.
42939         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
42941         New module 'ulc-grapheme-breaks'.
42942         * modules/unigbrk/ulc-grapheme-breaks: New file.
42943         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
42944         * m4/locale-ar.m4: New file.
42945         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
42946         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
42947         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
42949 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
42951         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
42952         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
42953         modified how this file was generated before I initially submitted
42954         the module, but failed to regenerate it.  This meant that several
42955         of the level2 entries were wrong.
42956         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
42957         Remove the division-by-2 that is folded into the table now that
42958         gbrkprop.h has been regenerated properly.  Now -1 entries are
42959         handled correctly.
42961         New module 'unigbrk/uc-gbrk-prop-tests'.
42962         * modules/unigbrk/uc-gbrk-prop-tests: New file.
42963         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
42964         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
42965         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
42967 2011-01-01  Bruno Haible  <bruno@clisp.org>
42969         Avoid use of hexadecimal escapes.
42970         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
42971         instead of hexadecimal escapes.
42973 2011-01-01  Jim Meyering  <meyering@redhat.com>
42975         maint: new rule to update copyright year ranges
42976         * Makefile (update-copyright): New rule.
42978         maint: indent with TABs in Makefile
42979         * Makefile: Expand leading sequences of spaces to TABs
42981         version-etc: update the copyright year it reports
42982         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
42984 2010-12-31  Bruno Haible  <bruno@clisp.org>
42986         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
42987         * lib/isfinite.c (zerof, zerod, zerol): New variables.
42988         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
42989         zero.
42991 2010-12-31  Bruno Haible  <bruno@clisp.org>
42993         pwrite: Work around HP-UX 11.11 bug.
42994         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
42995         works and set REPLACE_PWRITE if not.
42996         * lib/pwrite.c (pwrite): Add an implementation that uses the system
42997         function.
42998         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
43000 2010-12-31  Bruno Haible  <bruno@clisp.org>
43002         pread: Work around HP-UX 11 bugs.
43003         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
43004         and set REPLACE_PREAD if not.
43005         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
43007 2010-12-31  Eric Blake  <eblake@redhat.com>
43009         nl_langinfo: fix YESEXPR on Irix 6.5
43010         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
43011         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
43012         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
43013         it.
43015 2010-12-31  Bruno Haible  <bruno@clisp.org>
43017         iconv: Document HP-UX 11 bug.
43018         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
43020 2010-12-31  Bruno Haible  <bruno@clisp.org>
43022         ldexpl: Fix link error on HP-UX 11.
43023         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
43024         LDEXPL_LIBM, using $ISNANL_LIBM.
43026 2010-12-31  Eric Blake  <eblake@redhat.com>
43028         ftello: avoid compilation failure with SunStudio c89
43029         * lib/ftello.c (ftello): Use lseek, not llseek.
43031         tests: avoid failing coreutils tests on cygwin
43032         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
43033         (create_exe_shims_): Return 0 when skipping.
43035 2010-12-31  Bruno Haible  <bruno@clisp.org>
43037         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
43038         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
43040 2010-12-31  Bruno Haible  <bruno@clisp.org>
43042         waitpid: Fix link error in C++ mode.
43043         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
43045 2010-12-31  Bruno Haible  <bruno@clisp.org>
43047         isnan: Use GCC built-ins when possible.
43048         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
43049         __builtin_isnan.
43050         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
43051         (isnan): Define using GCC built-ins for GCC >= 4.0.
43053 2010-12-31  Bruno Haible  <bruno@clisp.org>
43055         isnand: Fix mistake.
43056         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
43057         __builtin_isnand.
43059 2010-12-31  Bruno Haible  <bruno@clisp.org>
43061         open: Avoid C++ error on HP-UX 11.
43062         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
43064 2010-12-31  Bruno Haible  <bruno@clisp.org>
43066         time_r: Add missing declarations on HP-UX 11.
43067         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
43068         instead of HAVE_LOCALTIME_R.
43069         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
43070         HAVE_LOCALTIME_R always.
43071         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
43072         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
43073         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
43074         HAVE_LOCALTIME_R.
43075         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
43076         * doc/posix-functions/localtime_r.texi: Likewise.
43078 2010-12-29  Eric Blake  <eblake@redhat.com>
43080         mountlist: tweak previous commit
43081         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
43082         Reported by Paul Eggert.
43084         mountlist: fix local drive detection on cygwin
43085         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
43086         that works for cygwin.
43088 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
43090         ftoastr, snprintf: ftoastr + snprintf module
43091         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
43092         since the snprintf module now should be good enough here.
43093         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
43094         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
43095         and gl_MODULE_INDICATOR([snprintf]), but the former enables
43096         GNULIB_SNPRINTF only for the test directory, and the latter
43097         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
43098         seems to suffice by itself.
43100 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
43102         alloca: one step towards thread-safety
43103         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
43104         need for a static variable.  All callers changed.  This does not
43105         make the alloca replacement thread-safe, but it's one step.
43107         tests: minor indenting change
43108         * tests/init.sh: Sync from coreutils housekeeping patch
43109         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
43110         to keep lines within 80 columns.
43112 2010-12-28  Jim Meyering  <meyering@redhat.com>
43114         regex: don't infloop on persistent failing calloc
43115         * lib/regexec.c (build_trtable): Return failure indication upon
43116         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
43117         In glibc, this was fixed for version 2.13:
43118         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
43120 2010-12-28  Bruno Haible  <bruno@clisp.org>
43121             Paul Eggert <eggert@cs.ucla.edu>
43123         linkat: Make implementation robust against system behaviour variations.
43124         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
43125         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
43126         way, and to -2 if it needs a generic runtime test.
43127         * lib/linkat.c (solaris_optimized_link_immediate,
43128         solaris_optimized_link_follow): New functions.
43129         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
43130         (check_same_link): Use it.
43132 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
43134         New module 'unigbrk/base'.
43135         * modules/unigbrk/base: New file.
43136         * lib/unigbrk.in.h: New file.
43138         New module 'unigbrk/uc-gbrk-prop'.
43139         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
43140         * modules/unigbrk/uc-gbrk-prop: New file.
43141         * lib/unigbrk/gbrkprop.h: New file.
43142         * lib/unigbrk/uc-gbrk-prop.c: New file.
43144         New module 'unigbrk/uc-is-grapheme-break'.
43145         * modules/unigbrk/uc-is-grapheme-break: New file.
43146         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
43147         * lib/unigbrk/uc-is-grapheme-break.c: New file.
43148         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
43149         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
43150         * tests/unigbrk/GraphemeBreakTest.txt: New file.
43152         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
43154 2010-12-27  Bruno Haible  <bruno@clisp.org>
43156         linkat test: Avoid failure on Solaris 11 2010-11.
43157         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
43159 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
43161         utimens: work around glibc rounding bug on more platforms
43162         * lib/utimens.c (fdutimens): Work around rounding bug even if
43163         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
43164         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
43166 2010-12-27  Bruno Haible  <bruno@clisp.org>
43168         select tests: Improve comments.
43169         * tests/test-select.c (do_select): Add comments.
43171 2010-12-27  Bruno Haible  <bruno@clisp.org>
43173         select tests: Safer way of handling timeout.
43174         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
43175         at every invocation.
43177 2010-12-27  Bruno Haible  <bruno@clisp.org>
43179         select tests: Use 'bool' where appropriate.
43180         * tests/test-select.c (connect_to_socket): Change argument type to
43181         'bool'.
43183 2010-12-27  Bruno Haible  <bruno@clisp.org>
43185         select tests: Use existing modules.
43186         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
43187         (configure.ac): Don't test for unistd.h.
43188         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
43189         declared in <unistd.h>.
43191 2010-12-27  Bruno Haible  <bruno@clisp.org>
43193         mbrtowc: Work around a Solaris 7 bug.
43194         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
43195         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
43196         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
43197         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
43198         MBRTOWC_NULL_ARG1_BUG.
43199         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
43200         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
43201         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
43202         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
43204 2010-12-27  Jim Meyering  <meyering@redhat.com>
43206         read-file.c: tweak syntax
43207         * lib/read-file.c (fread_file): Remove space after "*" in function
43208         definitions.
43210 2010-12-27  Bruno Haible  <bruno@clisp.org>
43212         times test: Avoid gcc warnings on OSF/1.
43213         * tests/test-times.c (main): Cast printf arguments from clock_t to
43214         'long int'.
43216 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
43218         utimens: work around glibc rounding bug on older Linux kernels
43219         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
43220         on Linux with a glibc whose utimes might not work, then work
43221         around a longstanding glibc bug involving rounding rather than
43222         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
43223         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
43225 2010-12-26  Bruno Haible  <bruno@clisp.org>
43227         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
43228         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
43229         _GL_CXXALIAS_SYS.
43230         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
43232 2010-12-26  Bruno Haible  <bruno@clisp.org>
43234         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
43235         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
43236         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
43237         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
43238         looking for the declaration.
43239         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
43240         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
43241         problem.
43242         * doc/posix-functions/inet_pton.texi: Likewise.
43244 2010-12-26  Bruno Haible  <bruno@clisp.org>
43246         arpa_inet: Use the common idioms with C++ support.
43247         * lib/arpa_inet.in.h: Include c++defs.h.
43248         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
43249         support.
43250         * modules/arpa_inet (Depends-on): Add c++defs.
43251         (Makefile.am): Substitute the contents of c++defs.h.
43252         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
43253         * modules/arpa_inet-c++-tests: New file.
43254         * tests/test-arpa_inet-c++.cc: New file.
43256 2010-12-25  Bruno Haible  <bruno@clisp.org>
43258         Fix more C++ link errors on Solaris 8.
43259         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
43260         $(LIB_EACCESS).
43261         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
43262         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
43263         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
43264         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
43265         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
43267 2010-12-25  Bruno Haible  <bruno@clisp.org>
43269         printf-posix: Fix link error when a non-GCC compiler is used.
43270         * lib/stdio.in.h (printf): When not using GCC, override printf
43271         correctly.
43272         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
43274 2010-12-25  Bruno Haible  <bruno@clisp.org>
43276         strerror_r-posix: Update doc.
43277         * doc/posix-functions/strerror_r.texi: Update doc about the return
43278         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
43280 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
43282         utimens: simplify the logic of the previous change
43283         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
43284         This should not affect whether the test succeeds or fails.
43286         utimens: configure better on hosts with NFS clock skew
43287         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
43288         uses the clock of the local host.  It might use the clock of the
43289         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
43290         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
43292 2010-12-25  Bruno Haible  <bruno@clisp.org>
43294         ptsname test: Avoid failure on Solaris.
43295         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
43296         open a pseudo-terminal; don't use BSD-style ptys.
43297         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
43299 2010-12-25  Bruno Haible  <bruno@clisp.org>
43301         ptsname: Avoid ERANGE failure on some systems.
43302         * lib/ptsname.c (buffer): Increase size.
43304 2010-12-25  Bruno Haible  <bruno@clisp.org>
43306         rename, renameat: Avoid test failures at NFS mounted locations.
43307         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
43308         so that subsequent mkdir calls succeed.
43310 2010-12-25  Bruno Haible  <bruno@clisp.org>
43312         iswblank: Fix C++ link error on Solaris 8.
43313         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
43314         _GL_FUNCDECL_SYS.
43316 2010-12-25  Bruno Haible  <bruno@clisp.org>
43318         unistd: Fix C++ link error on Solaris 8.
43319         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
43321 2010-12-25  Bruno Haible  <bruno@clisp.org>
43323         readlink doc: Mention an old glibc bug.
43324         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
43326 2010-12-25  Bruno Haible  <bruno@clisp.org>
43328         fcntl-h: Fix for use of C++ on glibc systems.
43329         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
43330         also on glibc systems in C++ mode.
43331         Reported by Gary V. Vaughan <gary@gnu.org>.
43333 2010-12-25  Bruno Haible  <bruno@clisp.org>
43335         roundl-ieee: Make it work on OSF/1 5.1 with cc.
43336         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
43338 2010-12-25  Bruno Haible  <bruno@clisp.org>
43340         truncl-ieee: Make it work on OSF/1 5.1 with cc.
43341         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
43342         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
43343         test whether truncl works according to ISO C 99 with IEC 60559.
43344         * m4/truncl-ieee.m4: New file.
43345         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
43346         m4/signbit.m4.
43347         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
43349 2010-12-25  Bruno Haible  <bruno@clisp.org>
43351         ceill-ieee: Make it work on OSF/1 5.1 with cc.
43352         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
43353         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
43354         test whether ceill works according to ISO C 99 with IEC 60559.
43355         * m4/ceill-ieee.m4: New file.
43356         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
43357         m4/signbit.m4.
43358         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
43360 2010-12-25  Bruno Haible  <bruno@clisp.org>
43362         Ensure all prerequisites of <wchar.h> are included.
43363         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
43364         before <wchar.h>.
43365         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
43366         gl_MBRLEN_NUL_RETVAL): Likewise.
43367         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
43368         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
43369         AC_FUNC_MBRTOWC): Likewise.
43370         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
43371         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
43372         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
43373         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
43374         Likewise.
43375         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
43376         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
43377         (gl_WCHAR_H): Improve comments.
43378         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
43380 2010-12-25  Bruno Haible  <bruno@clisp.org>
43382         strtok_r: Fix C syntax error in autoconf macro.
43383         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
43384         characters in test program.
43386 2010-12-24  Bruno Haible  <bruno@clisp.org>
43388         ceil, trunc, round: Fix gcc warnings.
43389         * lib/ceil.c (MIN): Undefine before redefining.
43390         * lib/trunc.c (MIN): Likewise.
43391         * lib/round.c (MIN): Likewise.
43392         Include <math.h> first.
43394 2010-12-24  Bruno Haible  <bruno@clisp.org>
43396         select tests: Avoid failures on OSF/1 5.1.
43397         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
43398         failure of closing the last socket; it may fail with ECONNRESET.
43400 2010-12-24  Eric Blake  <eblake@redhat.com>
43402         stdint: avoid HP-UX 10.20 preprocessor bug
43403         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
43404         than #if.
43405         * tests/test-floor2.c (main): Likewise.
43406         Reported by Peter O'Gorman.
43408         pipe: make obsoletion transition easier
43409         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
43410         * modules/pipe (Files): Include revived file.
43411         (Include): Drop reference, to mirror getdate's behavior.
43413 2010-12-24  Bruno Haible  <bruno@clisp.org>
43415         sys_socket: Hide mismatch of declarations on NonStop Kernel.
43416         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
43417         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
43418         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
43420 2010-12-24  Bruno Haible  <bruno@clisp.org>
43422         gethostname: Ensure declaration on NonStop Kernel.
43423         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
43424         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
43426 2010-12-24  Bruno Haible  <bruno@clisp.org>
43428         sys_select: Ensure all necessary types on NonStop Kernel.
43429         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
43430         include <sys/time.h>.
43431         * doc/posix-headers/sys_select.texi: Mention that it's missing on
43432         NonStop Kernel.
43433         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
43435 2010-12-24  Bruno Haible  <bruno@clisp.org>
43437         sys_select: Remove unneeded include.
43438         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
43439         have <sys/select.h>.
43441 2010-12-24  Bruno Haible  <bruno@clisp.org>
43443         gethostname: Provide a fallback for HOST_NAME_MAX.
43444         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
43445         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
43446         instead.
43447         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
43449 2010-12-24  Bruno Haible  <bruno@clisp.org>
43451         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
43452         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
43453         (SA_RESTART): Likewise.
43454         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
43456 2010-12-24  Bruno Haible  <bruno@clisp.org>
43458         signal: Define NSIG.
43459         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
43460         * tests/test-signal.c (nsig): New variable.
43461         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
43463 2010-12-24  Bruno Haible  <bruno@clisp.org>
43465         rename, renameat: Avoid test failures on OSF/1 5.1.
43466         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
43467         alternative error codes.
43468         * tests/test-renameat.c (main): Likewise.
43470 2010-12-24  Bruno Haible  <bruno@clisp.org>
43472         *printf: Detect large precisions bug on Solaris 10/SPARC.
43473         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
43474         by Paul Eggert.
43475         * tests/test-snprintf-posix.h (test_function): Add this test code here
43476         too.
43477         * tests/test-sprintf-posix.h (test_function): Likewise.
43478         * tests/test-vasnprintf-posix.c (test_function): Likewise.
43479         * tests/test-vasprintf-posix.c (test_function): Likewise.
43480         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
43481         around by gnulib.
43482         * doc/posix-functions/printf.texi: Likewise.
43483         * doc/posix-functions/snprintf.texi: Likewise.
43484         * doc/posix-functions/sprintf.texi: Likewise.
43485         * doc/posix-functions/vfprintf.texi: Likewise.
43486         * doc/posix-functions/vprintf.texi: Likewise.
43487         * doc/posix-functions/vsnprintf.texi: Likewise.
43488         * doc/posix-functions/vsprintf.texi: Likewise.
43489         * doc/posix-functions/dprintf.texi: Undo last commit.
43490         * doc/posix-functions/vdprintf.texi: Likewise.
43492 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
43494         tests: port test-fdutimensat.c to Solaris 8
43495         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
43496         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
43497         On Solaris 8, it fails with errno == ENOSYS, because there is no
43498         futimens (so it can't use the fd), and there is no lutimens (so it
43499         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
43501         vsnprintf: make more consistent with snprintf; doc fixes
43503         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
43504         the byte count return problem was promoted from the snprintf-posix
43505         to the snprintf module.
43506         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
43507         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
43508         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
43509         * tests/test-snprintf.c (main): Check the byte count returned.
43510         * tests/test-vsnprintf.c (main): Likewise.
43512 2010-12-23  Eric Blake  <eblake@redhat.com>
43514         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
43515         * modules/sigpipe (License): Relax license.
43517 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
43519         doc: document Solaris printf bug with large float precisions
43520         * doc/posix-functions/dprintf.texi (dprintf):
43521         * doc/posix-functions/fprintf.texi (fprintf):
43522         * doc/posix-functions/printf.texi (printf):
43523         * doc/posix-functions/snprintf.texi (snprintf):
43524         * doc/posix-functions/sprintf.texi (sprintf):
43525         * doc/posix-functions/vdprintf.texi (vdprintf):
43526         * doc/posix-functions/vfprintf.texi (vfprintf):
43527         * doc/posix-functions/vprintf.texi (vprintf):
43528         * doc/posix-functions/vsnprintf.texi (vsnprintf):
43529         * doc/posix-functions/vsprintf.texi (vsprintf):
43530         Mention that these functions mishandle large floating point
43531         precisions on Solaris 10.  The same bug is also present in Solaris
43532         8, and I assume earlier.  This causes "cd gnulib-tests; make
43533         check" to fail on Solaris 8 (and I assume, later) when building
43534         the latest coreutils, in test-vasprintf-posix's call to
43535         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
43536         the wide flavors (e.g., wprintf) so this patch just updates the
43537         documentation for the narrow ones.
43539         test-posixtm.c: add two tests
43540         * tests/test-posixtm.c: Add two tests, to highlight the
43541         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
43542         around this bug; this is merely to document it.
43544 2010-12-22  Bruno Haible  <bruno@clisp.org>
43546         getlogin_r: Work around portability problem on OSF/1.
43547         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
43548         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
43549         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
43550         test for a truncated result.
43551         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
43552         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
43553         * modules/getlogin_r (Depends-on): Add memchr.
43554         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
43556 2010-12-22  Bruno Haible  <bruno@clisp.org>
43558         ptsname: Avoid test failure on OSF/1 5.1.
43559         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
43560         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
43561         (same_slave): New function.
43562         (main): Use it to compare ptsname's result with the expected file name.
43564 2010-12-22  Bruno Haible  <bruno@clisp.org>
43566         Port extended stdio modules to HP NonStop Kernel.
43567         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
43568         macros.
43569         * lib/fbufmode.c: Update comments.
43570         * lib/fflush.c: Likewise.
43571         * lib/fpurge.c: Likewise.
43572         * lib/freadable.c: Likewise.
43573         * lib/freadahead.c: Likewise.
43574         * lib/freading.c: Likewise.
43575         * lib/freadptr.c: Likewise.
43576         * lib/freadseek.c: Likewise.
43577         * lib/fseeko.c: Likewise.
43578         * lib/fseterr.c: Likewise.
43579         * lib/fwritable.c: Likewise.
43580         * lib/fwriting.c: Likewise.
43581         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
43583 2010-12-22  Bruno Haible  <bruno@clisp.org>
43585         ttyname_r: Work around bug on OSF/1 5.1.
43586         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
43587         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
43588         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
43589         present.
43590         * lib/ttyname_r.c (ttyname_r): Update comments.
43592 2010-12-22  Bruno Haible  <bruno@clisp.org>
43594         round: Implement result sign according to IEEE 754.
43595         * lib/round.c (MIN, MINUS_ZERO): New macros.
43596         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
43597         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
43598         * tests/test-round-ieee.c (main): Likewise.
43599         * tests/test-roundl-ieee.c (main): Likewise.
43601         trunc: Implement result sign according to IEEE 754.
43602         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
43603         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
43604         * tests/test-trunc2.c: Include minus-zero.h.
43605         (MINUS_ZERO): New macro.
43606         (trunc_reference): Keep in sync with lib/trunc.c.
43607         * tests/test-truncf2.c: Include minus-zero.h.
43608         (MINUS_ZERO): New macro.
43609         (truncf_reference): Keep in sync with lib/trunc.c.
43610         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
43611         * tests/test-trunc-ieee.c (main): Likewise.
43612         * tests/test-truncl-ieee.c (main): Likewise.
43614         ceil: Implement result sign according to IEEE 754.
43615         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
43616         (FUNC): Return -0.0 for -1 < x < 0.
43617         * tests/test-ceil2.c: Include minus-zero.h.
43618         (MINUS_ZERO): New macro.
43619         (ceil_reference): Keep in sync with lib/ceil.c.
43620         * tests/test-ceilf2.c: Include minus-zero.h.
43621         (MINUS_ZERO): New macro.
43622         (ceilf_reference): Keep in sync with lib/ceil.c.
43623         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
43624         * tests/test-ceil-ieee.c (main): Likewise.
43625         * tests/test-ceill-ieee.c (main): Likewise.
43627         floor: Implement result sign according to IEEE 754.
43628         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
43629         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
43630         * tests/test-floorf2.c (floorf_reference): Likewise.
43631         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
43632         * tests/test-floor-ieee.c (main): Likewise.
43633         * tests/test-floorl-ieee.c (main): Likewise.
43635 2010-12-22  Bruno Haible  <bruno@clisp.org>
43637         getaddrinfo: Update doc.
43638         * doc/posix-functions/gai_strerror.texi: Return type is also different
43639         on AIX and HP-UX.
43641 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
43643         getaddrinfo, inet_ntop: Update doc for Solaris.
43644         * doc/posix-functions/gai_strerror.texi: Return type is also an
43645         issue on Solaris 9 and earlier.
43646         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
43647         on Solaris 10 and earlier.
43649 2010-12-21  Bruno Haible  <bruno@clisp.org>
43651         New module 'roundl-ieee'.
43652         * modules/roundl-ieee: New file.
43653         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
43654         test whether roundl works according to ISO C 99 with IEC 60559.
43655         * m4/roundl-ieee.m4: New file.
43656         * modules/roundl-ieee-tests: New file.
43657         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
43658         * tests/test-roundl.c (main): Remove signbit tests.
43659         * modules/roundl-tests (Depends-on): Remove signbit.
43660         * doc/posix-functions/roundl.texi: Mention the new module.
43662 2010-12-21  Bruno Haible  <bruno@clisp.org>
43664         New module 'truncl-ieee'.
43665         * modules/truncl-ieee: New file.
43666         * modules/truncl-ieee-tests: New file.
43667         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
43668         * tests/test-truncl.c (main): Remove signbit tests.
43669         * modules/truncl-tests (Depends-on): Remove signbit.
43670         * doc/posix-functions/truncl.texi: Mention the new module.
43672 2010-12-21  Bruno Haible  <bruno@clisp.org>
43674         New module 'ceill-ieee'.
43675         * modules/ceill-ieee: New file.
43676         * modules/ceill-ieee-tests: New file.
43677         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
43678         * tests/test-ceill.c (main): Remove signbit tests.
43679         * modules/ceill-tests (Depends-on): Remove signbit.
43680         * doc/posix-functions/ceill.texi: Mention the new module.
43682 2010-12-21  Bruno Haible  <bruno@clisp.org>
43684         New module 'floorl-ieee'.
43685         * modules/floorl-ieee: New file.
43686         * modules/floorl-ieee-tests: New file.
43687         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
43688         * tests/test-floorl.c (main): Remove signbit tests.
43689         * modules/floorl-tests (Depends-on): Remove signbit.
43690         * doc/posix-functions/floorl.texi: Mention the new module.
43692 2010-12-21  Bruno Haible  <bruno@clisp.org>
43694         New module 'round-ieee'.
43695         * modules/round-ieee: New file.
43696         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
43697         whether round works according to ISO C 99 with IEC 60559.
43698         * m4/round-ieee.m4: New file.
43699         * modules/round-ieee-tests: New file.
43700         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
43701         * tests/test-round1.c (main): Remove signbit tests.
43702         * modules/round-tests (Depends-on): Remove 'signbit'.
43703         * doc/posix-functions/round.texi: Mention the new module.
43705 2010-12-21  Bruno Haible  <bruno@clisp.org>
43707         New module 'trunc-ieee'.
43708         * modules/trunc-ieee: New file.
43709         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
43710         whether trunc works according to ISO C 99 with IEC 60559.
43711         * m4/trunc-ieee.m4: New file.
43712         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
43713         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
43714         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
43715         * modules/trunc-ieee-tests: New file.
43716         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
43717         * tests/test-trunc1.c (main): Remove signbit tests.
43718         * modules/trunc-tests (Depends-on): Remove 'signbit'.
43719         * doc/posix-functions/trunc.texi: Mention the new module.
43721 2010-12-21  Bruno Haible  <bruno@clisp.org>
43723         New module 'ceil-ieee'.
43724         * modules/ceil-ieee: New file.
43725         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
43726         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
43727         ISO C 99 with IEC 60559.
43728         * m4/ceil-ieee.m4: New file.
43729         * modules/ceil (Files): Add lib/ceil.c.
43730         (Depends-on): Add 'float'.
43731         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
43732         * lib/math.in.h (ceil): New declaration.
43733         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
43734         REPLACE_CEIL.
43735         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
43736         * modules/ceil-ieee-tests: New file.
43737         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
43738         * tests/test-math-c++.cc: Check the signature of 'ceil'.
43739         * doc/posix-functions/ceil.texi: Mention the new module.
43741 2010-12-21  Bruno Haible  <bruno@clisp.org>
43743         New module 'floor-ieee'.
43744         * modules/floor-ieee: New file.
43745         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
43746         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
43747         ISO C 99 with IEC 60559.
43748         * m4/floor-ieee.m4: New file.
43749         * modules/floor (Files): Add lib/floor.c.
43750         (Depends-on): Add 'float'.
43751         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
43752         * lib/math.in.h (floor): New declaration.
43753         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
43754         REPLACE_FLOOR.
43755         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
43756         * modules/floor-ieee-tests: New file.
43757         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
43758         * tests/test-math-c++.cc: Check the signature of 'floor'.
43759         * doc/posix-functions/floor.texi: Mention the new module.
43761 2010-12-21  Bruno Haible  <bruno@clisp.org>
43763         New module 'roundf-ieee'.
43764         * modules/roundf-ieee: New file.
43765         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
43766         test whether roundf works according to ISO C 99 with IEC 60559.
43767         * m4/roundf-ieee.m4: New file.
43768         * modules/roundf-ieee-tests: New file.
43769         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
43770         * tests/test-roundf1.c (main): Remove signbit tests.
43771         * modules/roundf-tests (Depends-on): Remove 'signbit'.
43772         * doc/posix-functions/roundf.texi: Mention the new module.
43774 2010-12-21  Bruno Haible  <bruno@clisp.org>
43776         New module 'truncf-ieee'.
43777         * modules/truncf-ieee: New file.
43778         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
43779         test whether truncf works according to ISO C 99 with IEC 60559.
43780         * m4/truncf-ieee.m4: New file.
43781         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
43782         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
43783         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
43784         * modules/truncf-ieee-tests: New file.
43785         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
43786         * tests/test-truncf1.c (main): Remove signbit tests.
43787         * modules/truncf-tests (Depends-on): Remove 'signbit'.
43788         * doc/posix-functions/truncf.texi: Mention the new module.
43790 2010-12-21  Bruno Haible  <bruno@clisp.org>
43792         New module 'ceilf-ieee'.
43793         * modules/ceilf-ieee: New file.
43794         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
43795         test whether ceilf works according to ISO C 99 with IEC 60559.
43796         * m4/ceilf-ieee.m4: New file.
43797         * modules/ceilf-ieee-tests: New file.
43798         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
43799         * tests/test-ceilf1.c (main): Remove signbit tests.
43800         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
43801         * doc/posix-functions/ceilf.texi: Mention the new module.
43803 2010-12-21  Bruno Haible  <bruno@clisp.org>
43805         New module 'floorf-ieee'.
43806         * modules/floorf-ieee: New file.
43807         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
43808         test whether floorf works according to ISO C 99 with IEC 60559.
43809         * m4/floorf-ieee.m4: New file.
43810         * modules/floorf-ieee-tests: New file.
43811         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
43812         * tests/test-floorf1.c (main): Remove signbit tests.
43813         * modules/floorf-tests (Depends-on): Remove 'signbit'.
43814         * doc/posix-functions/floorf.texi: Mention the new module.
43816 2010-12-21  Bruno Haible  <bruno@clisp.org>
43818         Support for minus zero in autoconf macros.
43819         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
43820         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
43821         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
43822         * tests/minus-zero.h: Update comments.
43824 2010-12-21  Bruno Haible  <bruno@clisp.org>
43826         Tests for module 'ceil'.
43827         * modules/ceil-tests: New file.
43828         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
43829         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
43831 2010-12-21  Bruno Haible  <bruno@clisp.org>
43833         Tests for module 'floor'.
43834         * modules/floor-tests: New file.
43835         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
43836         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
43838 2010-12-21  Bruno Haible  <bruno@clisp.org>
43840         math: Fix indentation.
43841         * lib/math.in.h (floorf): Fix indentation.
43843 2010-12-21  Bruno Haible  <bruno@clisp.org>
43845         Fix cross-compilation guesses on Solaris.
43846         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
43847         not match "solaris2.10".
43848         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
43849         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
43850         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
43852 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
43854         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
43855         This fixes a problem observed with the latest coreutils snapshot
43856         that caused a test to fail on Solaris 8.  src/csplit.c's call
43857         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
43858         earlier, instead of returning the number of bytes that would have
43859         been generated; this causes csplit to incorrectly report memory
43860         exhaustion.
43861         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
43862         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
43863         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
43864         comments to match.
43865         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
43866         Fix typo in matching older versions of Solaris: "solaris2.10"
43867         is matched by the shell pattern "solaris2.[0-9]*".  This matters
43868         only for guessing while cross-compiling.
43869         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
43871 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
43873         ftoastr: fix comment again
43874         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
43875         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
43876         Also, simplify example a bit by using flags = 0.
43878 2010-12-20  Bruno Haible  <bruno@clisp.org>
43880         round*, trunc*: Update documentation regarding glibc.
43881         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
43882         * doc/posix-functions/round.texi: Likewise.
43883         * doc/posix-functions/roundl.texi: Likewise.
43884         * doc/posix-functions/truncf.texi: Likewise.
43885         * doc/posix-functions/trunc.texi: Likewise.
43886         * doc/posix-functions/truncl.texi: Likewise.
43888 2010-12-20  Bruno Haible  <bruno@clisp.org>
43890         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
43891         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
43892         * doc/posix-functions/round.texi: Likewise.
43893         * doc/posix-functions/roundl.texi: Likewise.
43895 2010-12-20  Bruno Haible  <bruno@clisp.org>
43897         ttyname_r: Add missing declaration on HP-UX 11.
43898         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
43899         HAVE_TTYNAME_R.
43900         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
43901         declared. Set HAVE_TTYNAME_R always.
43902         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43903         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
43904         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
43905         HAVE_TTYNAME_R.
43906         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
43908 2010-12-20  Bruno Haible  <bruno@clisp.org>
43910         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
43911         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
43912         * doc/posix-functions/getlogin_r.texi: Likewise.
43913         * tests/test-getlogin.c: Include <errno.h>.
43914         (main): Avoid test failure on HP-UX 11.11.
43915         * tests/test-getlogin_r.c (main): Likewise.
43917 2010-12-20  Bruno Haible  <bruno@clisp.org>
43919         getlogin_r: Add missing declaration on HP-UX 11.
43920         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
43921         declared also when it exists as a function.
43922         * doc/posix-functions/getlogin_r.texi: Document this workaround.
43924 2010-12-20  Bruno Haible  <bruno@clisp.org>
43926         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
43927         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
43928         through wcrtomb.
43930 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
43932         ftoastr: fix comment
43933         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
43934         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
43936 2010-12-19  Bruno Haible  <bruno@clisp.org>
43938         isnan: Ensure it is a macro.
43939         * lib/math.in.h (isnan): Define as a macro if not already a macro.
43940         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
43941         Solaris.
43943 2010-12-19  Bruno Haible  <bruno@clisp.org>
43945         ldexpl test: Fix link error on OSF/1 5.1.
43946         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
43948 2010-12-19  Bruno Haible  <bruno@clisp.org>
43950         wctype: Make it work in C++ mode on OSF/1 5.1.
43951         * lib/wctype.in.h (iswblank): Declare but not define here.
43952         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
43953         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
43954         * modules/wctype (Files): Add lib/iswblank.c.
43956 2010-12-19  Bruno Haible  <bruno@clisp.org>
43958         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
43959         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
43960         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
43962 2010-12-19  Bruno Haible  <bruno@clisp.org>
43964         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
43965         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
43966         _POSIX_PII_SOCKET.
43967         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
43968         * doc/posix-functions/recvfrom.texi: Likewise.
43969         * doc/posix-functions/send.texi: Likewise.
43970         * doc/posix-functions/sendto.texi: Likewise.
43972 2010-12-19  Bruno Haible  <bruno@clisp.org>
43974         tcgetsid: Add missing declaration on OSF/1 5.1.
43975         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
43976         HAVE_TCGETSID.
43977         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
43978         Don't set HAVE_TCGETSID.
43979         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
43980         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
43981         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
43982         HAVE_TCGETSID.
43983         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
43985 2010-12-19  Bruno Haible  <bruno@clisp.org>
43987         stdio: Fix problem with popen() declaration on OSF/1 5.1.
43988         * lib/stdio.in.h: During the include_next statement, let recursive
43989         includes of this file include only the system header file.
43991 2010-12-19  Bruno Haible  <bruno@clisp.org>
43993         iconv_open: Fix regression from 2010-12-04.
43994         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
43995         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
43997 2010-12-19  Bruno Haible  <bruno@clisp.org>
43999         stdbool test: Avoid a gcc warning.
44000         * tests/test-stdbool.c (main): Fail if e1 is false.
44001         Reported by Jim Meyering.
44003 2010-12-19  Jim Meyering  <meyering@redhat.com>
44005         setenv: restore to working order
44006         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
44007         mistakenly removed.
44008         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
44009         HAVE_SETENV.
44010         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
44011         HAVE_SETENV.
44013 2010-12-19  Bruno Haible  <bruno@clisp.org>
44015         Document some different function declarations on OSF/1 5.1.
44016         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
44017         * doc/posix-functions/inet_ntop.texi: Likewise.
44018         * doc/posix-functions/gethostname.texi: Likewise.
44019         * lib/unistd.in.h (gethostname): Update comment.
44021 2010-12-19  Bruno Haible  <bruno@clisp.org>
44023         doc: Mention vasprintf-posix module.
44024         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
44025         the 'vasprintf-posix' module.
44026         * doc/glibc-functions/vasprintf.texi: Likewise.
44028 2010-12-19  Bruno Haible  <bruno@clisp.org>
44030         unsetenv: Add missing declaration on OSF/1 5.1.
44031         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
44032         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
44033         Don't set HAVE_UNSETENV. In the test program, set _BSD.
44034         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
44035         not HAVE_UNSETENV.
44036         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
44037         HAVE_UNSETENV.
44038         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
44040 2010-12-19  Bruno Haible  <bruno@clisp.org>
44042         setenv: Add missing declaration on OSF/1 5.1.
44043         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
44044         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
44045         declared. Don't set HAVE_SETENV.
44046         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
44047         not HAVE_SETENV.
44048         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
44049         HAVE_SETENV.
44050         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
44052 2010-12-19  Bruno Haible  <bruno@clisp.org>
44054         nl_langinfo tests: Avoid gcc warning.
44055         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
44057 2010-12-19  Bruno Haible  <bruno@clisp.org>
44059         mknod: Avoid error in C++ mode on OSF/1 with GCC.
44060         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
44061         _GL_CXXALIAS_SYS.
44063 2010-12-19  Bruno Haible  <bruno@clisp.org>
44065         stdbool: Relax test.
44066         * tests/test-stdbool.c (e): Don't require that casts from a variable's
44067         address to 'bool' work in static initializer, for compilers other than
44068         GCC.
44070 2010-12-19  Bruno Haible  <bruno@clisp.org>
44072         ftello: Add missing declaration on OSF/1 5.1.
44073         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
44074         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
44075         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
44076         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
44077         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
44079 2010-12-19  Bruno Haible  <bruno@clisp.org>
44081         fseeko: Add missing declaration on OSF/1 5.1.
44082         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
44083         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
44084         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
44085         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
44086         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
44088 2010-12-19  Bruno Haible  <bruno@clisp.org>
44090         fchdir: Add missing declaration on OSF/1 5.1.
44091         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
44092         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
44093         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
44094         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
44095         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
44097 2010-12-19  Bruno Haible  <bruno@clisp.org>
44099         relocatable-prog-wrapper: Separate from relocatable-prog.
44100         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
44101         uninstall-relocwrapper rule here.
44102         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
44103         Reported by Ian Beckwith <ianb@erislabs.net>.
44105 2010-12-19  Bruno Haible  <bruno@clisp.org>
44107         unistr/u8-mbsnlen: Add missing dependency.
44108         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
44109         Reported by Ian Beckwith <ianb@erislabs.net>.
44111 2010-12-19  Bruno Haible  <bruno@clisp.org>
44113         iconv: Make it possible again to use this module without 'iconv-h'.
44114         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
44115         if it is not defined.
44116         Reported by Ian Beckwith <ianb@erislabs.net>.
44118 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
44120         acl: port to Solaris 8 when copying from tmpfs to ufs
44121         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
44122         error number.  Problem observed on Solaris 8 with latest
44123         coreutils, with "mv A B", where A is on a tmpfs file system and B
44124         is on a ufs file system.  This caused coreutils' mv/part-symlink
44125         test to fail.
44127         tests: set fail=0 at start
44128         * tests/init.sh (setup_): Move fail=0 initialization here ...
44129         (mktempd_): ... from here, so that tests can rely on fail being
44130         set to 0 initially.  This fixes a problem in coreutils; see:
44131         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
44133 2010-12-18  Bruno Haible  <bruno@clisp.org>
44135         memmem-simple: Stylistic changes.
44136         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
44137         Fix preprocessor directive indentation.
44139 2010-12-15  Pádraig Brady  <P@draigBrady.com>
44141         memmem, memmem-simple: reorganize and expand empty needle check
44142         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
44143         functional checks to memmem-simple so that one has a fully functional
44144         memmem by using just this module.
44145         Restrict the performance only check to the memmem module.
44146         Also expand the empty needle check to ensure the correct
44147         pointer is returned, not just a non NULL pointer.
44148         * doc/glibc-functions/memmem.texi: Rearrange the portability
44149         documentation to correlate with the rearranged checks.
44150         Clarify exactly how the memmem and memmem-simple modules
44151         relate to each other.
44153 2010-12-15  Pádraig Brady  <P@draigBrady.com>
44154             Bruno Haible  <bruno@clisp.org>
44156         Improve cross-compilation guesses for uClibc.
44157         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
44158         that uClibc does not have the glibc bug.
44159         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
44160         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
44162 2010-12-14  Eric Blake  <eblake@redhat.com>
44164         configmake: provide fallbacks for oldest supported autotools
44165         * m4/configmake.m4: New file.
44166         * modules/configmake (Files): Ship it.
44167         (configure.ac): Use it to guarantee fallbacks.
44169 2010-12-13  Pádraig Brady  <P@draigBrady.com>
44171         read-file: Improve handling of large files
44172         * lib/read-file.c (fread_file): Minimize realloc()s
44173         for regular files, and better manage sizes around SIZE_MAX.
44175 2010-12-13  Eric Blake  <eblake@redhat.com>
44177         cloexec, fcntl: relax license
44178         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
44179         consent from all contributors.
44180         * modules/fcntl (License): Likewise.
44182 2010-12-10  Bruno Haible  <bruno@clisp.org>
44184         Tests for module 'pipe-posix'.
44185         * modules/pipe-posix-tests: New file.
44186         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
44188 2010-12-10  Bruno Haible  <bruno@clisp.org>
44190         pipe-posix: Make it work in C++ mode.
44191         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
44192         (pipe): Use common idiom, not a macro definition.
44193         * lib/pipe.c: New file.
44194         * m4/pipe.m4: New file.
44195         * modules/pipe-posix (Description): Enhance.
44196         (Files): Add lib/pipe.c, m4/pipe.m4.
44197         (configure.ac): Invoke gl_FUNC_PIPE.
44198         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
44199         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
44200         * tests/test-unistd-c++.cc: Check the signature of pipe.
44202 2010-12-10  Bruno Haible  <bruno@clisp.org>
44204         Rename module 'pipe' to 'spawn-pipe'.
44205         * modules/spawn-pipe: New file, renamed from modules/pipe.
44206         (Files, configure.ac, Makefile.am): Update.
44207         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
44208         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
44209         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
44210         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
44211         "spawn-pipe.h" instead of "pipe.h".
44212         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
44213         to gl_SPAWN_PIPE.
44214         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
44215         (Files, Makefile.am): Update.
44216         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
44217         Update.
44218         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
44219         Include "spawn-pipe.h" instead of "pipe.h".
44220         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
44221         * lib/javacomp.c: Likewise.
44222         * lib/javaversion.c: Likewise.
44223         * lib/pipe-filter-gi.c: Likewise.
44224         * lib/pipe-filter-ii.c: Likewise.
44225         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
44226         * modules/javacomp (Depends-on): Likewise.
44227         * modules/javaversion (Depends-on): Likewise.
44228         * modules/pipe-filter-gi (Depends-on): Likewise.
44229         * modules/pipe-filter-ii (Depends-on): Likewise.
44230         * MODULES.html.sh (Executing programs): Update.
44231         * NEWS: Mention the change.
44233 2010-12-10  Eric Blake  <eblake@redhat.com>
44235         pipe-posix: new module
44236         * modules/pipe-posix: New file.
44237         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
44238         (gl_UNISTD_H): Check for declaration.
44239         * modules/unistd (Makefile.am): Substitute it.
44240         * lib/unistd.in.h (pipe): Provide it for mingw.
44241         * doc/posix-functions/pipe.texi (pipe): Update documentation.
44242         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
44244 2010-12-07  Bruno Haible  <bruno@clisp.org>
44246         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
44247         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
44248         u8_strcmp_gnu.
44249         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
44251 2010-12-06  Bruno Haible  <bruno@clisp.org>
44253         Update internal documentation.
44254         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
44256 2010-12-04  Bruno Haible  <bruno@clisp.org>
44258         Put more information about failed tests into the test return codes.
44259         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
44260         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
44261         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
44262         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
44263         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
44264         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
44265         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
44266         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
44267         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
44268         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44269         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
44270         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
44271         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
44272         * m4/stdint.m4 (gl_STDINT_H): Likewise.
44273         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
44274         returns a bit mask.
44275         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
44276         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
44277         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
44278         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
44279         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
44280         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
44281         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
44282         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
44283         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
44284         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
44285         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
44286         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
44287         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
44288         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
44289         * m4/link.m4 (gl_FUNC_LINK): Likewise.
44290         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
44291         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
44292         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
44293         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
44294         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
44295         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
44296         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
44297         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
44298         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
44299         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
44300         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
44301         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
44302         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
44303         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
44304         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
44305         gl_PRINTF_PRECISION): Likewise.
44306         * m4/regex.m4 (gl_REGEX): Likewise.
44307         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
44308         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
44309         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
44310         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
44311         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
44312         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44313         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
44314         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
44315         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44316         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
44317         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
44318         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
44319         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
44320         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
44321         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
44322         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
44323         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
44324         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
44325         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
44326         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
44327         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
44328         enumerated value.
44329         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
44331 2010-12-04  Bruno Haible  <bruno@clisp.org>
44333         Update for Solaris 11 2010-11.
44334         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
44335         Express, released in November 2010.
44337 2010-12-04  Bruno Haible  <bruno@clisp.org>
44339         nproc: Relax license.
44340         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
44341         and Paul Eggert.
44342         Requested by Ludovic Courtès <ludo@gnu.org>.
44344 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
44346         utimecmp: fine-grained src to nearby coarse-grained dest
44348         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
44349         and the source is on a file system with higher-resolution time
44350         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
44351         not work, and the time stamps are close together, the algorithm to
44352         determine the exact resolution from the read-back mtime was buggy:
44353         it had a "!=" where it should have had an "==".  This bug has been
44354         in the code ever since it was introduced to gnulib.
44355         Problem reported by Dan Jacobson in
44356         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
44358 2010-11-30  Bruno Haible  <bruno@clisp.org>
44360         strerror_r-posix: Fix autoconf test.
44361         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
44363 2010-11-28  Bruno Haible  <bruno@clisp.org>
44364             Paul Eggert  <eggert@cs.ucla.edu>
44366         Tests for module 'getdomainname'.
44367         * modules/getdomainname-tests: New file.
44368         * tests/test-getdomainname.c: New file, based on
44369         tests/test-gethostname.c.
44371 2010-11-28  Bruno Haible  <bruno@clisp.org>
44372             Paul Eggert  <eggert@cs.ucla.edu>
44374         getdomainname: Use the system function when possible.
44375         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
44376         (getdomainname): Replace if needed. Provide the declaration if it is
44377         missing. Don't use _GL_CXXALIAS_SYS_CAST.
44378         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
44379         (getdomainname): When the system has getdomainname, call the system
44380         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
44381         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
44382         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
44383         found in libnsl. Look for the declaration also in <netdb.h>. Replace
44384         the function if its second argument is of type 'int' or if it is found
44385         in libnsl.
44386         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
44387         <sys/systeminfo.h> and sysinfo().
44388         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
44389         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44390         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
44391         HAVE_GETDOMAINNAME.
44392         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
44393         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
44394         * doc/glibc-functions/getdomainname.texi: Document the problems with
44395         the getdomainname declaration.
44397 2010-11-28  Bruno Haible  <bruno@clisp.org>
44399         sys_socket: Ensure ss_family field on AIX.
44400         * lib/sys_socket.in.h (ss_family): New macro definition.
44401         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
44402         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
44403         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
44404         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
44405         * modules/sys_socket (Makefile.am): Substitute
44406         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
44407         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
44409 2010-11-27  Bruno Haible  <bruno@clisp.org>
44411         readline: Improve configure output.
44412         * m4/readline.m4 (gl_FUNC_READLINE): Make the
44413         "checking for readline..." result understandable.
44415 2010-11-27  Bruno Haible  <bruno@clisp.org>
44417         *printf-posix: Detect a bug on Solaris 10/x86.
44418         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
44419         for floating-point output.
44420         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
44421         directive.
44422         * tests/test-snprintf-posix.h (test_function): Likewise.
44423         * tests/test-sprintf-posix.h (test_function): Likewise.
44424         * tests/test-vasprintf-posix.c (test_function): Likewise.
44425         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
44426         * doc/posix-functions/printf.texi: Likewise.
44427         * doc/posix-functions/snprintf.texi: Likewise.
44428         * doc/posix-functions/sprintf.texi: Likewise.
44429         * doc/posix-functions/vfprintf.texi: Likewise.
44430         * doc/posix-functions/vprintf.texi: Likewise.
44431         * doc/posix-functions/vsnprintf.texi: Likewise.
44432         * doc/posix-functions/vsprintf.texi: Likewise.
44433         * doc/glibc-functions/obstack_printf.texi: Likewise.
44434         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
44436 2010-11-27  Bruno Haible  <bruno@clisp.org>
44438         Fix link error when module libunistring-optional is in use.
44439         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
44440         * modules/striconveha-tests (Makefile.am): Likewise.
44442 2010-11-27  Bruno Haible  <bruno@clisp.org>
44444         regex: Mention link dependencies.
44445         * modules/regex (Link): New section.
44446         * modules/rpmatch (Link): Likewise.
44447         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
44449 2010-11-27  Bruno Haible  <bruno@clisp.org>
44451         ftoastr: Fix compilation error on Solaris.
44452         * lib/ftoastr.c: Include <config.h>.
44454 2010-11-27  Bruno Haible  <bruno@clisp.org>
44456         getloadavg: Update documentation.
44457         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
44459 2010-11-27  Bruno Haible  <bruno@clisp.org>
44461         sys_socket: Fix test whether the functions are declared.
44462         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
44463         not <sys/select.h>.
44465 2010-11-27  Bruno Haible  <bruno@clisp.org>
44467         getpass: Make sure to get system declaration on some platforms.
44468         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
44469         gl_USE_SYSTEM_EXTENSIONS.
44470         * modules/getpass (Depends-on): Add extensions.
44472 2010-11-26  Bruno Haible  <bruno@clisp.org>
44474         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
44475         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
44476         'iconv' module is present.
44477         (ICONV_CONST): New macro.
44478         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
44479         ICONV_CONST.
44480         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
44481         set ICONV_CONST.
44482         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
44483         here.
44484         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
44485         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
44486         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
44487         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
44488         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
44489         present.
44491 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
44493         ftoastr: comment fix
44494         * lib/ftoastr.c: "little" -> "little or no" in comment
44496 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
44498         stdint: port to GCC 4.3 + OSX + Octave
44499         On this platform, stdint.h is buggy and defines int64_t to long
44500         long int.  The replacement defined it to long int, causing
44501         problems with C++ style name mangling.  Instead, trust the system
44502         definition if INT64_MAX is defined, and likewise for the unsigned
44503         variant.   Problem reported by Jarno Rajahalme in
44504         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
44505         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
44506         and don't mess with int64_t and INT64_MAX in this case.
44507         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
44509 2010-11-24  Bruno Haible  <bruno@clisp.org>
44511         doc: Corrections regarding MacOS X 10.4 and 10.5.
44512         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
44513         MacOS X.
44514         Reported by Simon Josefsson.
44516 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
44518         Uninstall ".bin" files installed by relocwrapper.
44519         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
44520         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
44521         unless it is already there.
44523 2010-11-21  Bruno Haible  <bruno@clisp.org>
44525         Update for NetBSD 5.0.
44526         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
44527         NetBSD; the test fails on NetBSD 5.0.
44528         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
44529         about NetBSD.
44531 2010-11-21  Bruno Haible  <bruno@clisp.org>
44533         Update for HP-UX 11.23 and HP-UX 11.31.
44534         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
44535         HP-UX.
44537 2010-11-21  Bruno Haible  <bruno@clisp.org>
44539         Update for MacOS X 10.5.
44540         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
44541         MacOS X; the test fails on MacOS X 10.5.8.
44542         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
44543         about MacOS X.
44545 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
44547         bootstrap: add bootstrap_sync option.
44548         See discussion at
44549         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
44550         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
44551         * build-aux/bootstrap: Accept --bootstrap-sync to update
44552         bootstrap if it is not identical to the local gnulib's
44553         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
44554         enable this by default.  Accept --no-bootstrap-sync to disable
44555         it.
44557 2010-11-20  Bruno Haible  <bruno@clisp.org>
44559         Ensure that <features.h> is included before __GLIBC__ is tested.
44560         * lib/printf-parse.h: Include <features.h>.
44561         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
44562         Reported by Mike Frysinger <vapier@gentoo.org>.
44564         Ensure that <features.h> is included before __GLIBC__ is tested.
44565         * lib/wchar.in.h: Include <features.h>.
44566         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
44567         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
44568         Reported by Mike Frysinger <vapier@gentoo.org>.
44570         Ensure that <features.h> is included before __GLIBC__ is tested.
44571         * lib/arpa_inet.in.h: Include <features.h>.
44572         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
44573         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
44574         Reported by Mike Frysinger <vapier@gentoo.org>.
44576         Ensure that <features.h> is included before __GLIBC__ is tested.
44577         * build-aux/link-warning.h: Include <features.h>.
44578         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
44579         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
44580         Reported by Mike Frysinger <vapier@gentoo.org>.
44582         Ensure that <features.h> is included before __GLIBC__ is tested.
44583         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
44584         Reported by Mike Frysinger <vapier@gentoo.org>.
44586 2010-11-20  Bruno Haible  <bruno@clisp.org>
44588         memmem: Fix autoconf test.
44589         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
44591 2010-11-20  Bruno Haible  <bruno@clisp.org>
44593         Port to uClibc.
44594         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
44595         * lib/fcntl.in.h: Likewise.
44596         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
44597         * lib/mbrtowc.c (mbrtowc): Likewise.
44598         * lib/relocatable.c (find_shared_library_fullname): Likewise.
44599         * lib/strerror_r.c: Likewise.
44600         * lib/unistr/u8-strnlen.c: Likewise.
44601         * lib/vasnprintf.c (decimal_point_char): Likewise.
44602         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
44603         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
44604         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
44605         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
44606         * tests/test-sigaction.c (handler, main): Likewise.
44607         * lib/freading.h: Treat uClibc like a non-glibc platform.
44608         * lib/freading.c: Likewise.
44609         * lib/gettext.h: Likewise.
44610         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
44611         Likewise.
44612         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
44613         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
44614         * lib/propername.c (proper_name_utf8): Likewise.
44615         * lib/spawn.in.h: Likewise.
44616         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
44617         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
44618         mem_cd_iconveh_internal): Likewise.
44619         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
44620         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
44621         strstr, strcasestr): Likewise.
44622         * lib/unicodeio.c (unicode_to_mb): Likewise.
44623         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
44624         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
44625         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
44626         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
44627         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
44628         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
44629         * lib/unistr/u8-stpncpy.c: Likewise.
44630         * lib/vasnprintf.c (VASNPRINTF): Likewise.
44631         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
44632         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
44633         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
44634         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
44635         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
44636         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
44637         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
44638         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
44639         Likewise.
44640         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
44641         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
44642         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
44643         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
44644         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
44645         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
44646         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
44647         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
44648         * tests/test-getopt.h (OPTIND_MIN): Likewise.
44649         * tests/test-striconveha.c (main): Likewise.
44650         * tests/test-vasnprintf-posix.c (test_function): Likewise.
44651         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
44652         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
44653         * doc/posix-functions/getline.texi: Likewise.
44654         Reported by Mike Frysinger <vapier@gentoo.org>.
44656 2010-11-20  Bruno Haible  <bruno@clisp.org>
44658         nproc: Fix condition.
44659         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
44660         HAVE_PTHREAD_AFFINITY_NP.
44662 2010-11-20  Bruno Haible  <bruno@clisp.org>
44664         Fix a comment.
44665         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
44667 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
44669         ftoastr: don't assume snprintf
44670         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
44671         Implement a subset of snprintf here, by using sprintf safely.
44672         * modules/ftoastr (Depends-on): Remove snprintf.
44674 2010-11-19  Jim Meyering  <meyering@redhat.com>
44676         test-rename.h: fix compilation failure
44677         * tests/test-rename.h (test_rename): Add omitted "}".
44679 2010-11-17  Jim Meyering  <meyering@redhat.com>
44681         maint.mk: add a URL discussing the no-@acronym policy
44682         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
44684 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
44686         ftoastr: depend on snprintf, improve comments
44687         * lib/ftoastr.c: Also mention Loitsch's draft.
44688         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
44689         needed in the current implementation, but it might simplify
44690         speeding up the code later.
44691         * modules/ftoastr: Depend on snprintf; this improves portability.
44692         Suggested by Bruno Haible in the same email.
44694         ftoastr: port to hosts lacking strtof and strtold
44695         Problem reported by Bruno Haible in
44696         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
44697         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
44698         environment and strtold (and presumably strtof) are not available.
44699         * modules/ftoastr (Files): Add m4/c-strtod.m4.
44700         (configure.ac): Require gl_C99_STRTOLD.
44702 2010-11-18  Bruno Haible  <bruno@clisp.org>
44704         c-strtold: Avoid link error on AIX 7.
44705         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
44706         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
44707         (gl_C_STRTOLD): Test whether strtold_l exists.
44708         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44710 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
44712         intprops: new macro INT_BITS_STRLEN_BOUND
44713         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
44714         ftoastr.h.  This exposes an internal of intprops.h that was formerly
44715         not exposed.  Also, it uses a slightly tighter bound than before;
44716         though this makes no practical difference, we might as well be as
44717         tight as we easily can.
44719         ftoastr: new module, for lossless conversion of floats to short strings
44720         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
44721         * modules/ftoastr: New files.
44723 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
44725         bootstrap: port to Solaris sed
44726         * build-aux/bootstrap (get_version): Port to Solaris sed.
44727         See Ralf Wildenhues's note in
44728         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
44730 2010-11-14  Jim Meyering  <meyering@redhat.com>
44732         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
44733         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
44734         and move definition closer to sole use.
44736 2010-11-13  Jim Meyering  <meyering@redhat.com>
44738         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
44739         Now we require at least autoconf-2.59, which means the work-around
44740         is no longer needed.
44741         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
44742         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
44743         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
44744         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
44745         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
44747 2010-11-13  Bruno Haible  <bruno@clisp.org>
44749         rename, renameat: Avoid test failures at NFS mounted locations.
44750         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
44751         functions.
44752         (test_rename): Use assert_nonexistent.
44753         * tests/test-rename.c: Include <dirent.h>.
44754         * tests/test-renameat.c: Likewise.
44755         Reported by Gary V. Vaughan <gary@gnu.org>.
44757         rename, renameat: Document Linux bug with NFS
44758         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
44759         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
44760         * doc/posix-functions/renameat.texi: Likewise.
44761         Suggested by Eric Blake.
44763 2010-11-13  Bruno Haible  <bruno@clisp.org>
44765         rename test: Add comments.
44766         * tests/test-rename.h (test_rename): Add structure and comments.
44768 2010-11-13  Eric Blake  <eblake@redhat.com>
44770         maintainer-makefile: cover a few more files
44771         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
44772         scripts generated within C files, for libvirt.
44774 2010-11-13  Bruno Haible  <bruno@clisp.org>
44776         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
44777         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
44778         character, return the number of bytes that belong together, not always
44779         1.
44780         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
44781         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
44782         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
44783         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
44784         number of bytes of an invalid character.
44785         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
44786         (main): Invoke it.
44787         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
44788         results.
44789         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
44790         malformed byte sequences.
44791         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
44792         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
44793         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
44794         Reported by Ben Pfaff and Paolo Bonzini.
44796 2010-11-13  Bruno Haible  <bruno@clisp.org>
44798         openat: Work around glibc bug with fchownat() and empty file names.
44799         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
44800         (gl_FUNC_FCHOWNAT): Invoke it.
44801         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
44802         * doc/posix-functions/fchownat.texi: Document the glibc bug.
44803         Reported by Gary V. Vaughan <gary@gnu.org>.
44805 2010-11-13  Bruno Haible  <bruno@clisp.org>
44807         openat: Ensure autoconf macro ordering.
44808         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
44809         gl_USE_SYSTEM_EXTENSIONS.
44810         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
44812 2010-11-13  Bruno Haible  <bruno@clisp.org>
44814         Update comments.
44815         * lib/unistr/u8-check.c: Update file name in comments.
44816         * lib/unistr/u8-mblen.c: Likewise.
44817         * lib/unistr/u8-prev.c: Likewise.
44818         * lib/unistr/u8-strmblen.c: Likewise.
44819         * lib/unistr/u8-strmbtouc.c: Likewise.
44821 2010-11-13  Jim Meyering  <meyering@redhat.com>
44823         tests: avoid test failure on Solaris 10 due to lack of PATH export
44824         * tests/test-update-copyright.sh: Don't forget to export PATH.
44826         init.sh: ensure that IFS is defined, just in case...
44827         * tests/init.sh (setup_): Ensure that IFS is defined,
44828         so that saving and restoring it works as expected.  This
44829         appears to be useful at least for an old version of dash
44830         from a long time ago (RH 6).  See here for details:
44831         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
44833         maint.mk: tighten "test a == b" check
44834         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
44835         test to files that contain something like #!/bin/sh.
44836         Without this, coreutils would get two false positives in
44837         the comments of C source files.
44839 2010-11-12  Eric Blake  <eblake@redhat.com>
44841         bootstrap: fix typo in previous attempt
44842         * build-aux/bootstrap (buildreq): Correct the grouping.
44843         Reported by Paul Eggert.
44845         maintainer-makefile: prohibit test x == x
44846         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
44847         Based on a report by Matthias Bolte.
44849         bootstrap: allow FreeBSD gzip
44850         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
44851         which has no '.' and goes to stderr.
44852         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
44853         Reported by Matthias Bolte.
44855         maintainer-makefile: check for i18n setup
44856         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
44857         will likely work.
44859 2010-11-12  Bruno Haible  <bruno@clisp.org>
44861         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
44862         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
44863         * lib/nanosleep.c (nanosleep): Likewise.
44865 2010-11-11  Bruno Haible  <bruno@clisp.org>
44867         fcntl-h: Fix for use of C++ on glibc systems.
44868         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
44869         also on glibc systems in C++ mode.
44870         Reported by Gary V. Vaughan <gary@gnu.org>.
44872 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
44874         mknod: avoid false failure with dash
44875         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
44877 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
44879         unlink: Fix "is it should" typo in diagnostic.
44880         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
44881         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
44883 2010-11-11  Bruno Haible  <bruno@clisp.org>
44885         Tests for module 'strerror_r-posix'.
44886         * modules/strerror_r-posix-tests: New file.
44887         * tests/test-strerror_r.c: New file.
44888         * tests/test-string-c++.cc: Check the signature of strerror_r.
44890         New module 'strerror_r-posix'.
44891         * lib/string.in.h (strerror_r): New declaration.
44892         * lib/strerror_r.c: New file.
44893         * m4/strerror_r.m4: New file.
44894         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
44895         of strerror_r.
44896         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
44897         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
44898         * modules/strerror_r-posix: New file.
44899         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
44900         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
44901         * doc/posix-functions/strerror_r.texi: Mention the new module and the
44902         portability problems.
44904 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
44906         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
44907         line is also considered for output. Quoted function name in shell
44908         command, so temporary files for functions like MyClass::operator()
44909         are removed correctly without errors.
44911 2010-11-09  Bruno Haible  <bruno@clisp.org>
44913         * doc/posix-functions/strerror.texi: List more failing platforms.
44915         * doc/posix-functions/strerror.texi: Add a comment.
44917 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
44919         fdopendir: fix bug on MacOS X when low on file descriptors
44921         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
44922         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
44923         All callers changed.
44924         (fdopendir): Invoke save_cwd at the top level, not after using
44925         multiple dup() calls to use up file descriptors.  Then retry
44926         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
44927         less than the maximum number of open file descriptors, because
44928         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
44929         on Mac OS X 10.6.4 for tar 1.24
44930         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
44931         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
44932         and for tar 1.25
44933         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
44935 2010-11-07  Bruno Haible  <bruno@clisp.org>
44937         vasnprintf: Support I flag on glibc systems.
44938         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
44939         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
44940         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
44941         snprintf function.
44942         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
44943         glibc systems.
44944         * tests/test-vasnprintf-posix3.c: New file.
44945         * modules/vasnprintf-posix-tests (Files): Add it.
44946         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
44948 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
44950         [html] Fix copy/paste bug: Use unique name for compiler warnings.
44951         * MODULES.html.sh: For compiler warnings, use name
44952         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
44954 2010-11-05  Eric Blake  <eblake@redhat.com>
44956         ceil, floor: avoid spurious failure with icc
44957         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
44958         [denormals-as-zero] when optimizing without -mieee-fp option.
44959         * tests/test-floorf2.c (floorf_reference): Likewise.
44960         * tests/test-ceilf1.c (dummy): New function.
44961         (main): Use it to outsmart icc's optimization.
44962         * tests/test-floorf1.c (dummy, main): Likewise.
44964         tests: require working signbit
44965         * modules/ceilf-tests (Depends-on): Add signbit.
44966         * modules/ceill-tests (Depends-on): Likewise.
44967         * modules/floorf-tests (Depends-on): Likewise.
44968         * modules/floorl-tests (Depends-on): Likewise.
44969         * modules/round-tests (Depends-on): Likewise.
44970         * modules/roundf-tests (Depends-on): Likewise.
44971         * modules/roundl-tests (Depends-on): Likewise.
44972         * modules/trunc-tests (Depends-on): Likewise.
44973         * modules/truncf-tests (Depends-on): Likewise.
44974         * modules/truncl-tests (Depends-on): Likewise.
44976         strtod: work around icc bug
44977         * lib/strtod.c (minus_zero): Define to working value.
44978         (strtod): Use it to avoid icc bug.
44980         copysign: enhance tests
44981         * modules/copysign-tests (Files): Add minus-zero.h.
44982         * tests/test-copysign.c (main): Also test zeros.
44984 2010-11-04  Eric Blake  <eblake@redhat.com>
44986         ceil, floor, round, trunc: enhance tests of -0
44987         * tests/test-ceilf1.c (main): Ensure correct sign of result.
44988         * tests/test-ceill.c (main): Likewise.
44989         * tests/test-floorf1.c (main): Likewise.
44990         * tests/test-floorl.c (main): Likewise.
44991         * tests/test-round1.c (main): Likewise.
44992         * tests/test-roundf1.c (main): Likewise.
44993         * tests/test-roundl.c (main): Likewise.
44994         * tests/test-trunc1.c (main): Likewise.
44995         * tests/test-truncf1.c (main): Likewise.
44996         * tests/test-truncl.c (main): Likewise.
44998 2010-11-04  Eric Blake  <eblake@redhat.com>
45000         frexp, tests: work around ICC bug with -zero
45001         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
45002         works with more compilers.
45003         * tests/minus-zero.h: New file.
45004         * modules/ceilf-tests (Files): Include it.
45005         * modules/ceill-tests (Files): Likewise.
45006         * modules/floorf-tests (Files): Likewise.
45007         * modules/floorl-tests (Files): Likewise.
45008         * modules/frexp-nolibm-tests (Files): Likewise.
45009         * modules/frexp-tests (Files): Likewise.
45010         * modules/frexpl-nolibm-tests (Files): Likewise.
45011         * modules/frexpl-tests (Files): Likewise.
45012         * modules/isnan-tests (Files): Likewise.
45013         * modules/isnand-nolibm-tests (Files): Likewise.
45014         * modules/isnand-tests (Files): Likewise.
45015         * modules/isnanf-nolibm-tests (Files): Likewise.
45016         * modules/isnanf-tests (Files): Likewise.
45017         * modules/isnanl-nolibm-tests (Files): Likewise.
45018         * modules/isnanl-tests (Files): Likewise.
45019         * modules/round-tests (Files): Likewise.
45020         * modules/roundf-tests (Files): Likewise.
45021         * modules/roundl-tests (Files): Likewise.
45022         * modules/ldexpl-tests (Files): Likewise.
45023         * modules/signbit-tests (Files): Likewise.
45024         * modules/snprintf-posix-tests (Files): Likewise.
45025         * modules/sprintf-posix-tests (Files): Likewise.
45026         * modules/strtod-tests (Files): Likewise.
45027         * modules/trunc-tests (Files): Likewise.
45028         * modules/truncf-tests (Files): Likewise.
45029         * modules/truncl-tests (Files): Likewise.
45030         * modules/vsnprintf-posix-tests (Files): Likewise.
45031         * modules/vsprintf-posix-tests (Files): Likewise.
45032         * modules/vasnprintf-posix-tests (Files): Likewise.
45033         * modules/vasprintf-posix-tests (Files): Likewise.
45034         * tests/test-ceilf1.c (main): Use it.
45035         * tests/test-ceill.c (main): Likewise.
45036         * tests/test-floorf1.c (main): Likewise.
45037         * tests/test-floorl.c (main): Likewise.
45038         * tests/test-frexp.c (main): Likewise.
45039         * tests/test-frexpl.c (main): Likewise.
45040         * tests/test-isnan.c (main): Likewise.
45041         * tests/test-isnand.h (main): Likewise.
45042         * tests/test-isnanf.h (main): Likewise.
45043         * tests/test-isnanl.h (main): Likewise.
45044         * tests/test-ldexpl.c (main): Likewise.
45045         * tests/test-round.c (main): Likewise.
45046         * tests/test-roundf.c (main): Likewise.
45047         * tests/test-roundl.c (main): Likewise.
45048         * tests/test-signbit.c (test_signbitf, test_signbitd)
45049         (test_signbitl): Likewise.
45050         * tests/test-snprintf-posix.h (test_function): Likewise.
45051         * tests/test-sprintf-posix.h (test_function): Likewise.
45052         * tests/test-strtod.c (main): Likewise.
45053         * tests/test-trunc1.c (main): Likewise.
45054         * tests/test-truncf1.c (main): Likewise.
45055         * tests/test-truncl.c (main): Likewise.
45057         isnanl: work around icc bug
45058         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
45060 2010-11-03  Eric Blake  <eblake@redhat.com>
45062         tests: fix compiler warnings
45063         * tests/test-getopt.h (test_getopt): Fix condition.
45064         * tests/test-getopt_long.h (test_getopt_long): Likewise.
45065         * tests/test-pipe2.c (main): Likewise.
45066         * tests/test-quotearg-simple.c (main): Avoid icc warning.
45068         utimens: fix broken m4 test
45069         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
45071 2010-10-28  Bruno Haible  <bruno@clisp.org>
45073         posix_spawn*, getdtablesize: Relax license.
45074         * modules/posix_spawn (License): Change to LGPLv2+.
45075         * modules/posix_spawnp (License): Likewise.
45076         * modules/posix_spawn-internal (License): Likewise.
45077         * modules/posix_spawnattr_init (License): Likewise.
45078         * modules/posix_spawnattr_getflags (License): Likewise.
45079         * modules/posix_spawnattr_setflags (License): Likewise.
45080         * modules/posix_spawnattr_getpgroup (License): Likewise.
45081         * modules/posix_spawnattr_setpgroup (License): Likewise.
45082         * modules/posix_spawnattr_getschedparam (License): Likewise.
45083         * modules/posix_spawnattr_setschedparam (License): Likewise.
45084         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
45085         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
45086         * modules/posix_spawnattr_getsigdefault (License): Likewise.
45087         * modules/posix_spawnattr_setsigdefault (License): Likewise.
45088         * modules/posix_spawnattr_getsigmask (License): Likewise.
45089         * modules/posix_spawnattr_setsigmask (License): Likewise.
45090         * modules/posix_spawnattr_destroy (License): Likewise.
45091         * modules/posix_spawn_file_actions_init (License): Likewise.
45092         * modules/posix_spawn_file_actions_addclose (License): Likewise.
45093         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
45094         * modules/posix_spawn_file_actions_addopen (License): Likewise.
45095         * modules/posix_spawn_file_actions_destroy (License): Likewise.
45096         * modules/getdtablesize (License): Likewise.
45097         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
45099 2010-10-26  Bruno Haible  <bruno@clisp.org>
45101         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
45102         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
45103         Cygwin and mingw.
45104         Suggested by Eric Blake.
45106 2010-10-26  Bruno Haible  <bruno@clisp.org>
45108         stdio: Work around compilation error due to renameat() on Solaris 10.
45109         * lib/stdio.in.h: Include <unistd.h> on Solaris.
45110         * lib/renameat.c: Don't include <unistd.h> here.
45111         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
45112         Reported by Paul Eggert and Eric Blake.
45114 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
45116         renameat: port to Solaris 10, which declares renameat in unistd.h
45118         * lib/renameat.c: Include unistd.h before stdio.h, because
45119         Solaris 10 declares renameat in unistd.h.  Problem encountered
45120         when building GNU tar 1.24 on Solaris 10.
45122 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
45124         fdopendir: fix C89 compilation
45125         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
45126         compilers.
45128 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
45130         inttostr: simplify by removing unnecessary redundancy
45131         * lib/anytostr.c: Don't include verify.h.
45132         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
45133         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
45134         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
45135         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
45136         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
45137         Likewise.
45138         * modules/inttostr (Depends-on): Remove 'verify'.
45140 2010-10-23  Bruno Haible  <bruno@clisp.org>
45142         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
45143         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
45144         Reported by Eric Blake.
45146 2010-10-23  Bruno Haible  <bruno@clisp.org>
45148         Tests: Fix LOCALE_JA on MirBSD 10.
45149         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
45150         to an UTF-8 locale.
45151         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
45152         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
45153         Reported by Eric Blake.
45155 2010-10-21  Bruno Haible  <bruno@clisp.org>
45157         nl_langinfo test: Avoid test failure on NetBSD 5.
45158         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
45159         Reported by Eric Blake.
45161 2010-10-21  Eric Blake  <eblake@redhat.com>
45163         c-stack: work around libsigsegv 2.8 bug
45164         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
45165         overflow on at least PowerPC64.
45167 2010-10-17  Bruno Haible  <bruno@clisp.org>
45169         userspec: Drop redundant file.
45170         * modules/userspec (Files): Remove lib/inttostr.h.
45172 2010-10-17  Bruno Haible  <bruno@clisp.org>
45174         nl_langinfo tests: Silence some warnings.
45175         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
45176         Reported by Jim Meyering.
45178 2010-10-17  Bruno Haible  <bruno@clisp.org>
45180         Make use of GCC's attribute __alloc_size__.
45181         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
45182         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
45183         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
45184         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
45185         __alloc_size__.
45186         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
45187         Suggested by Jim Meyering.
45189 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
45191         bootstrap: anchor .gitignore entries.
45192         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
45193         with...
45194         (insert_vc_ignore): ... this new function, which prepends `/' to
45195         all .gitignore entries before passing them to
45196         insert_sorted_if_absent.
45198 2010-10-16  Bruno Haible  <bruno@clisp.org>
45200         nextafter: Fix configure check.
45201         * modules/nextafter (configure.ac): Correct expected prototype.
45203 2010-10-16  Bruno Haible  <bruno@clisp.org>
45205         termios: Update documentation.
45206         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
45208 2010-10-16  Bruno Haible  <bruno@clisp.org>
45210         tests: Make them compile with TinyCC.
45211         * tests/test-strstr.c (main): Remove parentheses around array
45212         initializer.
45214 2010-10-15  Eric Blake  <eblake@redhat.com>
45216         ignore-value: make header idempotent
45217         * lib/ignore-value.h: Add double-inclusion guards.
45218         Reported by Stefan Berger.
45220 2010-10-15  Jim Meyering  <meyering@redhat.com>
45222         GNUmakefile: handle "stable" target, not "major"
45223         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
45224         lists in maint.mk and announce-gen.  Without this, "make stable"
45225         would fail to ensure that $(VERSION) is up to date.
45227 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
45229         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
45230         & co.
45232 2010-10-14  Bruno Haible  <bruno@clisp.org>
45234         vasnprintf: Don't set errno to 0.
45235         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
45236         block that sets it to 0.
45237         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
45239 2010-10-14  Bruno Haible  <bruno@clisp.org>
45241         socketlib: Fix.
45242         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
45243         gl_PREREQ_SYS_H_WINSOCK2.
45244         Reported by Ian Beckwith <ianb@erislabs.net>.
45246 2010-10-13  Jim Meyering  <meyering@redhat.com>
45248         test-select-stdin.c: avoid warn_unused_result warnings
45249         * tests/test-select-stdin.c: Include "macros.h".
45250         ASSERT that read and fflush succeed.
45252 2010-10-13  Jim Meyering  <meyering@redhat.com>
45254         git-version-gen: do require git-VC'd files in cwd
45255         * build-aux/git-version-gen: Reject a git version string
45256         if there are no commits associated with the current directory.
45257         This avoids an unlikely false-positive (unrelated dir whose parent
45258         repository also contains a tag matching v*), as pointed out
45259         by Giuseppe Scrivano in
45260         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
45262 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
45264         argv-iter: omit nonconforming declaration
45265         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
45266         enum arg_iter_err declaration, which doesn't conform to C99.
45267         Solaris 10 cc warns about this.
45269 2010-10-13  Eric Blake  <eblake@redhat.com>
45271         termios: fix compilation on mingw
45272         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
45273         (gl_TERMIOS_H): Adjust it on mingw.
45274         * modules/termios (Makefile.am): Substitute new key.
45275         * lib/termios.in.h (includes): Make include_next conditional.
45276         * doc/posix-headers/termios.texi (termios.h): Update
45277         documentation.
45278         Reported by Daniel P. Berrange.
45280 2010-10-13  Jim Meyering  <meyering@redhat.com>
45282         git-version-gen: don't require that .git/ be in the current dir
45283         * build-aux/git-version-gen: Adjust this script so that it works
45284         when run from any working directory beneath the top-level .git/-
45285         containing directory.  Inspired by a patch from Giuseppe Scrivano,
45286         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
45288         test-select: avoid warn_unused_result warnings
45289         * tests/test-select.c: Include "macros.h".
45290         ASSERT that each call to read, write, and pipe succeeds.
45291         While not technically required, also check each "close".
45292         * modules/select-tests (Files): Add tests/macros.h.
45294         test-symlinkat: remove declaration of unused local
45295         * tests/test-symlinkat.c (main): Remove unused local, "buf".
45297         test-inttostr: avoid shadowing warnings
45298         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
45299         and use malloc rather than the stack for the same reason as
45300         mentioned in the comment justifying the other allocation.
45302 2010-10-11  Bruno Haible  <bruno@clisp.org>
45304         stdlib: Allow multiple gnulib generated replacements to coexist.
45305         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
45306         Reported by Sam Steingold <sds@gnu.org>.
45308 2010-10-11  Jim Meyering  <meyering@redhat.com>
45310         fix a documentation typo
45311         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
45313 2010-10-11  Eric Blake  <eblake@redhat.com>
45315         futimens: work around Solaris 11 bug
45316         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
45317         * tests/test-futimens.h (test_futimens): Enhance, rather than
45318         weaken test.
45319         * doc/posix-functions/futimens.texi (futimens): Document the bug.
45321 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
45323         Indentation.
45324         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
45325         higher-level operators more to the left.
45327 2010-10-11  Jim Meyering  <meyering@redhat.com>
45329         test-futimens: avoid unwarranted test failure on Solaris 5.11
45330         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
45331         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
45332         because it tries to dereference the NULL name argument.
45334 2010-10-11  Bruno Haible  <bruno@clisp.org>
45336         Indentation.
45337         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
45338         indentation.
45340 2010-10-11  Jim Meyering  <meyering@redhat.com>
45342         spawn.in.h: make indentation consistent with parentheses
45343         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
45344         Make indentation consistent with parentheses.
45346 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
45348         Fix mismatched parens in previous commit
45349         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
45350         parens.
45352 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
45354         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
45356         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
45357         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
45358         * lib/malloca.c: Include "verify.h".
45359         (verify1): Remove, replacing with a verify call.
45360         * lib/relocwrapper.c (verify1): Likewise.
45361         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
45362         Likewise.
45363         * modules/malloca (Depends-on): Add 'verify'.
45364         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
45365         * modules/vasnprintf (Depends-on): Add 'verify'.
45366         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45367         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45368         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45369         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45370         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45371         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45372         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45374         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
45376         Formerly the style was sometimes 2*X - 1, because the C standard
45377         was wrongly thought to disallow ?: in integral constant expressions.
45378         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
45379         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
45380         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
45381         * lib/stdint.in.h (_verify_intmax_size): Likewise.
45382         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
45383         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
45384         verify that time_t cannot be floating.
45386 2010-10-08  Eric Blake  <eblake@redhat.com>
45388         time: enforce recent POSIX ruling that time_t is integral
45389         * lib/time.in.h (__time_t_must_be_integral): Detect any
45390         problematic systems, allowing the rest of gnulib to assume POSIX.
45392 2010-10-08  Jim Meyering  <meyering@redhat.com>
45394         fdopendir: fix a bug on systems lacking openat and /proc support
45395         OpenBSD 4.7 is one such system.  The most noticeable effect was
45396         failure of any application making nontrivial use of fts: rm, du,
45397         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
45398           ./rm: traversal failed: `a': Bad file descriptor
45399         Debugging that, you see that even though FD 6 was closed just
45400         prior to the opendir call in fd_clone_opendir, its resulting
45401         dir->dd_fd was 8, rather than the expected value of 6:
45403         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
45404         93                close (fd);
45405         (gdb) n
45406         94                dir = fd_clone_opendir (dupfd);
45407         (gdb) n
45408         95                saved_errno = errno;
45409         (gdb) p dir->dd_fd
45410         $11 = 8
45412         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
45413         The problem is that on OpenBSD, fd_clone_opendir has to resort
45414         to using the old-style save/restore CWD mechanism, due to its
45415         lack of openat/proc support, and *that* would steal the FD (6)
45416         that opendir was supposed to use.
45418         The fix is to squirrel away the desired FD so that save_cwd uses a
45419         different one, and then free the dest FD right before calling opendir.
45420         That guarantees opendir will use the required file descriptor.
45422         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
45424 2010-10-08  Bruno Haible  <bruno@clisp.org>
45426         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
45427         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
45429 2010-10-08  Bruno Haible  <bruno@clisp.org>
45431         nanosleep: Make replacement POSIX compliant.
45432         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
45433         is out of range.
45434         Reported by Jim Meyering.
45436 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
45438         bootstrap: add hook for altering gnulib.mk, for Bison
45439         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
45440         the Bison bootstrapping process can rewrite file names and variables
45441         in this file before later parts of 'bootstrap' use the file.
45442         Bison wants to include lib/gnulib.mk from the top-level makefile,
45443         so it needs the file names in this file to be relative to the top
45444         level, not relative to lib; plus it needs variable names to be
45445         rewritten.
45446         (slurp): Use the new function.
45448         bootstrap: reformat for readability
45449         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
45451 2010-10-08  Eric Blake  <eblake@redhat.com>
45453         docs: update cygwin progress
45454         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
45455         1.7.7.
45456         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
45457         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
45458         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
45459         * doc/posix-functions/carg.texi (carg): Likewise.
45460         * doc/posix-functions/cargf.texi (cargf): Likewise.
45461         * doc/posix-functions/casin.texi (casin): Likewise.
45462         * doc/posix-functions/casinf.texi (casinf): Likewise.
45463         * doc/posix-functions/casinh.texi (casinh): Likewise.
45464         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
45465         * doc/posix-functions/catan.texi (catan): Likewise.
45466         * doc/posix-functions/catanf.texi (catanf): Likewise.
45467         * doc/posix-functions/catanh.texi (catanh): Likewise.
45468         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
45469         * doc/posix-functions/ccos.texi (ccos): Likewise.
45470         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
45471         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
45472         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
45473         * doc/posix-functions/cexp.texi (cexp): Likewise.
45474         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
45475         * doc/posix-functions/cimag.texi (cimag): Likewise.
45476         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
45477         * doc/posix-functions/clog.texi (clog): Likewise.
45478         * doc/posix-functions/clogf.texi (clogf): Likewise.
45479         * doc/posix-functions/conj.texi (conj): Likewise.
45480         * doc/posix-functions/conjf.texi (conjf): Likewise.
45481         * doc/posix-functions/cpow.texi (cpow): Likewise.
45482         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
45483         * doc/posix-functions/cproj.texi (cproj): Likewise.
45484         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
45485         * doc/posix-functions/creal.texi (creal): Likewise.
45486         * doc/posix-functions/crealf.texi (crealf): Likewise.
45487         * doc/posix-functions/csin.texi (csin): Likewise.
45488         * doc/posix-functions/csinf.texi (csinf): Likewise.
45489         * doc/posix-functions/csinh.texi (csinh): Likewise.
45490         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
45491         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
45492         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
45493         * doc/posix-functions/ctan.texi (ctan): Likewise.
45494         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
45495         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
45496         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
45497         * doc/posix-headers/complex.texi (complex.h): Likewise.
45499 2010-10-07  Jim Meyering  <meyering@redhat.com>
45501         parse-datetime: avoid compilation failure on OpenBSD 4.7
45502         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
45503         This works around a compilation failure on OpenBSD 4.7:
45504         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
45506 2010-10-07  Eric Blake  <eblake@redhat.com>
45508         docs: update cygwin progress
45509         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
45510         1.7.6.
45511         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
45512         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
45513         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
45514         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
45515         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
45516         Likewise.
45517         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
45518         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
45519         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
45520         Likewise.
45521         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
45522         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
45523         Likewise.
45524         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
45525         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
45526         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
45527         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
45528         Likewise.
45529         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
45530         Likewise.
45531         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
45533         docs: update parse-datetime history
45534         * doc/parse-datetime.texi (Authors of parse_datetime): Better
45535         documentation of this function's history and alternatives.
45537         cygwin: use more robust version check
45538         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
45539         exclude an eventual cygwin 1.9.1.
45540         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
45541         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
45542         (gl_FUNC_STRCASESTR): Likewise.
45543         Reported by Bruno Haible.
45545 2010-10-06  Bruno Haible  <bruno@clisp.org>
45547         string, sys_select: Avoid #including large headers unless necessary.
45548         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
45549         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
45550         OSF/1, BeOS, Haiku.
45551         Reported by Jim Meyering.
45553 2010-10-05  Eric Blake  <eblake@redhat.com>
45555         memmem, strstr, strcasestr: fix bug with long periodic needle
45556         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
45557         periodic needle having false positive.
45558         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
45559         and cygwin 1.7.7.
45560         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
45561         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
45562         (gl_FUNC_STRCASESTR): Likewise.
45563         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
45564         * tests/test-memmem.c (main): Expose the bug.
45565         * tests/test-strcasestr.c (main): Likewise.
45566         * tests/test-strstr.c (main): Likewise.
45567         * tests/test-c-strcasestr.c (main): Likewise.
45568         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
45569         * doc/posix-functions/strstr.texi (strstr): Likewise.
45570         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
45571         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
45573 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
45575         parse-datetime: do some more renaming
45576         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
45577         parse_datetime, not get_date.  Mention the renaming.
45578         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
45579         in comments.
45580         * m4/bison.m4: Likewise.
45582 2010-10-05  Eric Blake  <eblake@redhat.com>
45584         parse-datetime: better name than get_date
45585         * NEWS: Reword the deprecation notice.
45586         * modules/get_date: Rename to modules/parse-datetime.
45587         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
45588         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
45589         * lib/get_date.y: Rename to lib/parse-datetime.y.
45590         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
45591         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
45592         * doc/getdate.texi: Provide fallback wrapper.
45593         * lib/getdate.h: Move guts, and wrap...
45594         * lib/parse-datetime.h: ...new file.
45595         * lib/parse-datetime.y (get_date): Rename...
45596         (parse_datetime): ...to this.
45597         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
45598         (gl_PARSE_DATETIME): ...to this.
45599         * doc/posix-functions/getdate.texi (get_date): Provide fallback
45600         documentation.
45601         * modules/getdate (Files): Provide fallback docs and header.
45602         (Notice, Depends-on): Update references.
45603         * tests/test-parse-datetime.c: Likewise.
45604         * DEPENDENCIES: Likewise.
45605         * MODULES.html.sh (Date and time <time.h>): Likewise.
45606         * doc/parse-datetime.texi (Date input formats)
45607         (Authors of parse_datetime): Likewise.
45608         * modules/parse-datetime (Files, configure.ac, Makefile.am)
45609         (Include): Likewise.
45610         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
45611         * gnulib-tool: Likewise.
45612         * m4/bison.m4 (gl_BISON): Likewise.
45613         Suggested by Bruno Haible.
45615 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
45617         more ports to Solaris tr, which needs [] around ranges
45618         * gnulib-tool: Solaris tr needs [] around ranges.
45619         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
45620         * tests/test-pipe-filter-gi1.c (main): Likewise.
45621         * tests/test-pipe-filter-ii1.c (main): Likewise.
45623 2010-10-05  Eric Blake  <eblake@redhat.com>
45625         bootstrap: fix Solaris regression
45626         * build-aux/bootstrap (check_versions): Solaris tr still needs []
45627         around ranges.
45628         Reported by Pádraig Brady.
45630         bootstrap: work with pkg-config
45631         * build-aux/bootstrap (check_versions): Also transliterate - in
45632         prerequisite name.
45633         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
45634         prerequisites that were already found, to avoid confusion.
45635         Reported by Justin Clift.
45637         faccessat: remove unused wrappers
45638         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
45639         presence of these wrappers dragged in -lgen on Solaris.
45640         Reported by Clemens Brogi; fix suggested by Paul Eggert.
45642 2010-10-05  Jim Meyering  <meyering@redhat.com>
45644         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
45645         * Makefile (sc_pragma_columns): New syntax-check rule.
45647 2010-10-04  Bruno Haible  <bruno@clisp.org>
45649         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
45650         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
45651         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
45652         Reported by Bruce Korb and Eric Blake.
45654 2010-10-04  Bruno Haible  <bruno@clisp.org>
45656         threadlib: Make option --with-libpth-prefix work.
45657         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
45658         use $LIBPTH, not just -lpth.
45660 2010-10-04  Bruno Haible  <bruno@clisp.org>
45662         Avoid line length limitation from HP NonStop system header files.
45663         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
45664         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
45665         * lib/ctype.in.h: Likewise.
45666         * lib/dirent.in.h: Likewise.
45667         * lib/errno.in.h: Likewise.
45668         * lib/fcntl.in.h: Likewise.
45669         * lib/float.in.h: Likewise.
45670         * lib/getopt.in.h: Likewise.
45671         * lib/iconv.in.h: Likewise.
45672         * lib/inttypes.in.h: Likewise.
45673         * lib/langinfo.in.h: Likewise.
45674         * lib/locale.in.h: Likewise.
45675         * lib/math.in.h: Likewise.
45676         * lib/netdb.in.h: Likewise.
45677         * lib/netinet_in.in.h: Likewise.
45678         * lib/poll.in.h: Likewise.
45679         * lib/pthread.in.h: Likewise.
45680         * lib/pty.in.h: Likewise.
45681         * lib/sched.in.h: Likewise.
45682         * lib/se-selinux.in.h: Likewise.
45683         * lib/search.in.h: Likewise.
45684         * lib/signal.in.h: Likewise.
45685         * lib/spawn.in.h: Likewise.
45686         * lib/stdarg.in.h: Likewise.
45687         * lib/stddef.in.h: Likewise.
45688         * lib/stdint.in.h: Likewise.
45689         * lib/stdio.in.h: Likewise.
45690         * lib/stdlib.in.h: Likewise.
45691         * lib/string.in.h: Likewise.
45692         * lib/strings.in.h: Likewise.
45693         * lib/sys_file.in.h: Likewise.
45694         * lib/sys_ioctl.in.h: Likewise.
45695         * lib/sys_select.in.h: Likewise.
45696         * lib/sys_socket.in.h: Likewise.
45697         * lib/sys_stat.in.h: Likewise.
45698         * lib/sys_time.in.h: Likewise.
45699         * lib/sys_times.in.h: Likewise.
45700         * lib/sys_utsname.in.h: Likewise.
45701         * lib/sys_wait.in.h: Likewise.
45702         * lib/sysexits.in.h: Likewise.
45703         * lib/termios.in.h: Likewise.
45704         * lib/time.in.h: Likewise.
45705         * lib/unistd.in.h: Likewise.
45706         * lib/wchar.in.h: Likewise.
45707         * lib/wctype.in.h: Likewise.
45708         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
45709         * modules/ctype (Makefile.am): Likewise.
45710         * modules/dirent (Makefile.am): Likewise.
45711         * modules/errno (Makefile.am): Likewise.
45712         * modules/fcntl-h (Makefile.am): Likewise.
45713         * modules/float (Makefile.am): Likewise.
45714         * modules/getopt-posix (Makefile.am): Likewise.
45715         * modules/iconv-h (Makefile.am): Likewise.
45716         * modules/inttypes (Makefile.am): Likewise.
45717         * modules/langinfo (Makefile.am): Likewise.
45718         * modules/locale (Makefile.am): Likewise.
45719         * modules/math (Makefile.am): Likewise.
45720         * modules/netdb (Makefile.am): Likewise.
45721         * modules/netinet_in (Makefile.am): Likewise.
45722         * modules/poll-h (Makefile.am): Likewise.
45723         * modules/pthread (Makefile.am): Likewise.
45724         * modules/pty (Makefile.am): Likewise.
45725         * modules/sched (Makefile.am): Likewise.
45726         * modules/search (Makefile.am): Likewise.
45727         * modules/selinux-h (Makefile.am): Likewise.
45728         * modules/signal (Makefile.am): Likewise.
45729         * modules/spawn (Makefile.am): Likewise.
45730         * modules/stdarg (Makefile.am): Likewise.
45731         * modules/stddef (Makefile.am): Likewise.
45732         * modules/stdint (Makefile.am): Likewise.
45733         * modules/stdio (Makefile.am): Likewise.
45734         * modules/stdlib (Makefile.am): Likewise.
45735         * modules/string (Makefile.am): Likewise.
45736         * modules/strings (Makefile.am): Likewise.
45737         * modules/sys_file (Makefile.am): Likewise.
45738         * modules/sys_ioctl (Makefile.am): Likewise.
45739         * modules/sys_select (Makefile.am): Likewise.
45740         * modules/sys_socket (Makefile.am): Likewise.
45741         * modules/sys_stat (Makefile.am): Likewise.
45742         * modules/sys_time (Makefile.am): Likewise.
45743         * modules/sys_times (Makefile.am): Likewise.
45744         * modules/sys_utsname (Makefile.am): Likewise.
45745         * modules/sys_wait (Makefile.am): Likewise.
45746         * modules/sysexits (Makefile.am): Likewise.
45747         * modules/termios (Makefile.am): Likewise.
45748         * modules/time (Makefile.am): Likewise.
45749         * modules/unistd (Makefile.am): Likewise.
45750         * modules/wchar (Makefile.am): Likewise.
45751         * modules/wctype (Makefile.am): Likewise.
45753 2010-10-04  Bruno Haible  <bruno@clisp.org>
45755         read-file tests: Avoid a test failure on NonStop Kernel.
45756         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
45757         a regular file.
45758         Reported by Joachim Schmitz <schmitz@hp.com>.
45760 2010-10-03  Bruno Haible  <bruno@clisp.org>
45762         gnulib-tool: Fixes for --create-testdir with --libtool.
45763         * gnulib-tool (func_get_automake_snippet): Don't augment
45764         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
45765         an executable.
45766         (func_create_testdir): Handle module 'alloca' like func_import.
45767         Reported by Bruce Korb <bruce.korb@gmail.com>.
45769 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
45771         Avoid some lines longer than 80 characters.
45772         * lib/stdint.in.h: Break long comment lines.
45773         * lib/math.in.h: Likewise.
45774         (_GL_NUM_UINT_WORDS): New macro, for readability.
45775         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
45776         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
45777         * lib/stdlib.in.h: Likewise.
45778         * lib/spawn.in.h: Likewise.
45779         * lib/sys_socket.in.h: Update an URL.
45780         * lib/sys_stat.in.h: Break long line.
45782 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
45784         Improve pmccabe2html.
45785         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
45786         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
45787         when the sources change. Remove the line in the HTML about "Used
45788         ranges" (which implied that there might be other unused ranges),
45789         rename "Resume" to "Summary" (easier to understand for more users).
45790         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
45791         styles, and some unnecessary blank lines.
45793 2010-10-03  Bruno Haible  <bruno@clisp.org>
45794             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
45796         acl: Add support for ACLs on NonStop Kernel.
45797         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
45798         Check whether the function aclsort() exists.
45799         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
45800         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
45801         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
45802         (acl_nontrivial [HAVE_ACLSORT]: New function.
45803         (file_has_acl): Implement for NonStop Kernel.
45804         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
45805         (qset_acl): Implement for NonStop Kernel.
45806         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
45807         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
45808         (main): Implement for NonStop Kernel.
45809         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
45810         Kernel. Handle this flavor.
45811         * tests/test-set-mode-acl.sh: Likewise.
45812         * tests/test-copy-acl.sh: Likewise.
45813         * tests/test-copy-file.sh: Likewise.
45815 2010-10-03  Bruno Haible  <bruno@clisp.org>
45817         Info about ACLs on NonStop Kernel.
45818         * doc/acl-resources.txt: Add info about NonStop Kernel.
45819         References by Joachim Schmitz <schmitz@hp.com>.
45821 2010-10-02  Bruno Haible  <bruno@clisp.org>
45823         Define missing EDQUOT on NonStop Kernel.
45824         * lib/errno.in.h (EDQUOT): Assign a value if missing.
45825         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
45826         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
45827         missing.
45828         * doc/posix-headers/errno.texi: Mention the NSK bug.
45829         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
45830         Reported by Joachim Schmitz <schmitz@hp.com>.
45832 2010-10-02  Bruno Haible  <bruno@clisp.org>
45834         Update doc for POSIX:2008.
45835         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
45836         Update URL of POSIX specification.
45838 2010-10-02  Bruno Haible  <bruno@clisp.org>
45840         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
45841         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
45842         from gnulib, not from Automake.
45844 2010-10-02  Bruno Haible  <bruno@clisp.org>
45846         New module 'system-posix'.
45847         * modules/system-posix: New file.
45848         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
45849         module is present.
45850         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
45851         GNULIB_SYSTEM_POSIX.
45852         * modules/stdlib (Depends-on): Remove sys_wait.
45853         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
45854         * doc/posix-functions/system.texi: Mention the new module.
45855         * doc/posix-headers/stdlib.texi: Likewise.
45856         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
45857         define test_sys_wait_macros to a no-op.
45858         Reported by Sam Steingold <sds@gnu.org>.
45860 2010-09-30  Bruno Haible  <bruno@clisp.org>
45862         More renaming from 'getdate' to 'get_date'.
45863         * doc/get_date.texi: Renamed from doc/getdate.texi.
45864         * modules/get_date (Files): Update.
45865         * MODULES.html.sh (Date and time <time.h>): Update.
45866         * DEPENDENCIES: Update.
45867         * gnulib-tool: Update comment.
45868         * m4/bison.m4 (gl_BISON): Likewise.
45869         * m4/get_date.m4 (gl_GET_DATE): Likewise.
45871 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
45873         bootstrap: support ACLOCAL_FLAGS during aclocal
45874         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
45875         can add additional -I dir for third-party .m4 files.
45877 2010-09-30  Eric Blake  <eblake@redhat.com>
45879         bootstrap: use glibtoolize on MacOS
45880         * build-aux/bootstrap (check_versions): Convert libtool into
45881         libtoolize.
45882         (tool search): Move libtool check earlier, and look for
45883         glibtoolize for MacOS.
45884         (gnulib_tool_options): Auto-add --libtool when appropriate.
45885         Reported by Justin Clift.
45887         poll: fix typo that broke test on MacOS
45888         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
45889         Reported by Justin Clift.
45891         getdate: rename to get_date
45892         Note: getdate.h is not renamed, to minimize client impact.
45893         * modules/getdate: Mark obsolete.  Move old contents...
45894         * modules/get_date: ...to new module name.
45895         * modules/getdate-tests: Move...
45896         * modules/get_date-tests: ...here.
45897         * m4/getdate.m4: Move...
45898         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
45899         * lib/getdate.y: Move...
45900         * lib/get_date.y: ...here.
45901         * tests/test-getdate.c: Move...
45902         * tests/test-get_date.c: ...here.
45903         * doc/posix-functions/getdate.texi (getdate): Update name.
45904         * NEWS: Mention the change.
45906 2010-09-29  Bruno Haible  <bruno@clisp.org>
45908         Separate the module 'waitpid' from the module 'sys_wait'.
45909         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
45910         present.
45911         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
45912         gl_MODULE_INDICATOR_FOR_TESTS.
45913         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
45914         * modules/sys_wait (Depends-on): Remove waitpid.
45915         (Makefile.am): Substitute GNULIB_WAITPID.
45916         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
45917         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
45918         signature only if the 'waitpid' module is present.
45919         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
45920         * NEWS: Mention the change.
45921         * modules/grantpt (Depends-on): Add waitpid.
45922         * modules/wait-process (Depends-on): Likewise.
45924 2010-09-29  Bruno Haible  <bruno@clisp.org>
45926         More tests for module 'sys_wait'.
45927         * modules/sys_wait-c++-tests: New file.
45928         * tests/test-sys_wait-c++.cc: New file.
45929         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
45930         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
45932 2010-09-29  Bruno Haible  <bruno@clisp.org>
45934         New module 'waitpid'.
45935         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
45936         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
45937         Don't include <process.h>.
45938         (waitpid): Declare only, using modern idiom.
45939         * m4/waitpid.m4: New file.
45940         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
45941         * modules/waitpid: New file.
45942         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
45943         (Makefile.am): Update.
45944         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
45946 2010-09-28  Bruno Haible  <bruno@clisp.org>
45948         poll: Assume ANSI C.
45949         * lib/poll.c (poll): Use an ANSI C declaration.
45951 2010-09-28  Bruno Haible  <bruno@clisp.org>
45953         poll-h: Create poll.h on all platforms.
45954         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
45955         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
45956         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
45957         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
45958         (gl_REPLACE_POLL_H): Don't set POLL_H.
45959         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
45960         * modules/poll-h (Depends-on): Add include_next.
45961         (Makefile.am): Create poll.h unconditionally. Substitute also
45962         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
45964 2010-09-28  Bruno Haible  <bruno@clisp.org>
45966         Tests for module 'poll-h'.
45967         * modules/poll-h-c++-tests: New file.
45968         * tests/test-poll-h-c++.cc: New file.
45970         Tests for module 'poll-h'.
45971         * modules/poll-h-tests: New file.
45972         * tests/test-poll-h.c: New file.
45974 2010-09-28  Bruno Haible  <bruno@clisp.org>
45976         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
45977         * modules/poll-h (Depends-on): Add 'extensions'.
45979 2010-09-28  Bruno Haible  <bruno@clisp.org>
45981         New module 'poll-h'.
45982         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
45983         (poll): Use modern idiom.
45984         * modules/poll-h: New file.
45985         * modules/poll (Files): Remove lib/poll.in.h.
45986         (Depends-on): Add poll-h.
45987         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
45988         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
45989         * m4/poll_h.m4: New file.
45990         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
45991         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
45992         and invoke gl_REPLACE_POLL_H.
45993         * lib/poll.c: Use common idiom.
45994         * tests/test-poll.c: Likewise.
45995         * doc/posix-headers/poll.texi: Mention the poll-h module.
45996         Suggested by Eric Blake.
45998 2010-09-26  Bruno Haible  <bruno@clisp.org>
46000         sys_wait: Implement WSTOPSIG.
46001         * lib/sys_wait.in.h (WSTOPSIG): New macro.
46002         Reported by Simon Josefsson.
46004 2010-09-26  Simon Josefsson  <simon@josefsson.org>
46006         stdlib, sys_wait: Avoid compilation error on mingw.
46007         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
46009 2010-09-26  Bruno Haible  <bruno@clisp.org>
46011         stdlib tests: Avoid code duplication.
46012         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
46013         * modules/sys_wait-tests (Files): Likewise.
46014         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
46015         * tests/test-stdlib.c: Include test-sys_wait.h.
46016         (main): Invoke test_sys_wait_macros.
46017         * tests/test-sys_wait.c: Include test-sys_wait.h.
46018         (main): Invoke test_sys_wait_macros.
46020 2010-09-25  Simon Josefsson  <simon@josefsson.org>
46022         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
46023         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
46024         sure Windows sockets are working before calling getaddrinfo.
46025         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
46026         * doc/gnulib.texi (Windows sockets): Fix typo.
46028 2010-09-25  Bruno Haible  <bruno@clisp.org>
46030         Tests for module 'regex-quote'.
46031         * modules/regex-quote-tests: New file.
46032         * tests/test-regex-quote.c: New file.
46034         New module 'regex-quote'.
46035         * lib/regex-quote.h: New file.
46036         * lib/regex-quote.c: New file.
46037         * modules/regex-quote: New file.
46038         Suggested by Reuben Thomas <rrt@sc3d.org>.
46040 2010-09-24  Bruno Haible  <bruno@clisp.org>
46042         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
46043         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
46045 2010-09-23  Bruno Haible  <bruno@clisp.org>
46047         setenv: Relax license.
46048         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
46049         Blake.
46050         Requested by Eric Blake.
46052 2010-09-22  Bruno Haible  <bruno@clisp.org>
46054         termios: Relax license.
46055         * modules/termios (License): Change to LGPLv2+.
46056         Requested by Eric Blake.
46058 2010-09-22  Bruno Haible  <bruno@clisp.org>
46060         threadlib: Allow the package to change the default to 'no'.
46061         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
46062         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
46063         Reported by Paul Eggert.
46065 2010-09-22  Pádraig Brady  <P@draigbrady.com>
46066             Bruno Haible  <bruno@clisp.org>
46068         Fix endless loop in mbmemcasecoll.
46069         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
46070         byte.
46071         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
46073 2010-09-22  Bruno Haible  <bruno@clisp.org>
46075         Tests for module 'memcoll'.
46076         * modules/memcoll-tests: New file.
46077         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
46079         memcoll, xmemcoll: Clarify size vs. length.
46080         * modules/memcoll.c (memcoll0): Clarify specification.
46081         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
46082         passed to collate_error.
46084 2010-09-22  Bruno Haible  <bruno@clisp.org>
46086         Tests for module 'memcasecmp'.
46087         * modules/memcasecmp-tests: New file.
46088         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
46090 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
46092         * lib/pthread.in.h: Add split double-inclusion guard, and include
46093         system <pthread.h> if there is one.  Use @@-style as in other
46094         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
46095         pthread.h doesn't.
46096         (pthread_mutexattr_destroy, pthread_mutexattr_init):
46097         (pthread_mutexattr_settype, pthread_mutex_trylock):
46098         New static inline functions, if there's no system <pthread.h>.
46099         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
46100         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
46101         Approximate with mutexes if the system lacks spinlocks, as in
46102         MacOS.
46103         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
46104         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
46105         @@-style.  Check for spinlocks separately.
46106         (gl_PTHREAD_DEFAULTS): New macro.
46107         * modules/pthread: Redo to use a more typical style for in.h files.
46109 2010-09-21  Eric Blake  <eblake@redhat.com>
46111         net_if: enhance tests
46112         * tests/test-net_if.c (main): Move signature checks earlier.
46113         Print failures to stderr.
46114         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
46115         Document the bug that we do not yet fix.
46117 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
46119         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
46120         about gnulib, not GSS.
46122 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
46124         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
46125         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
46126         for Emacs.
46127         * build-aux/pmccabe2html: Make Makefile.am example code more
46128         cut-and-paste friendly.
46130 2010-09-21  Simon Josefsson  <simon@josefsson.org>
46132         * tests/test-net_if.c: New file.
46133         * modules/net_if-tests: New file.
46135 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
46137         pthread: add pthread_spin_destroy
46138         * lib/pthread.in.h (pthread_spin_destroy): New function.
46140 2010-09-19  Bruno Haible  <bruno@clisp.org>
46142         gnulib-tool: Fix --help output.
46143         * gnulib-tool (func_usage): Fix help message.
46144         Reported by Reuben Thomas <rrt@sc3d.org>.
46146 2010-09-18  Jim Meyering  <meyering@redhat.com>
46148         maint.mk: avoid unexpanded \n in two diagnostics
46149         * top/maint.mk (sc_prohibit_always_true_header_tests):
46150         Don't use a literal \n in a halt=... assignment.  It would not be
46151         expanded, and the two \n bytes would appear in the diagnostic output
46152         rather than the desired newline.  Use halt=$$(printf ... instead.
46153         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
46155 2010-09-18  Bruno Haible  <bruno@clisp.org>
46157         netinet_in: Doc tweak.
46158         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
46159         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
46161 2010-09-18  Jim Meyering  <meyering@redhat.com>
46163         init.sh: correct an outdated comment
46164         * tests/init.sh (create_exe_shims_):  s/function/alias/
46166         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
46167         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
46168         a file named "*.exe" is removed between the glob expansion and the
46169         processing of that oddly named file.
46171 2010-09-17  Eric Blake  <eblake@redhat.com>
46173         mirbsd: add some more support
46174         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
46175         in BSD family.
46176         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
46177         devices as OpenBSD.
46178         * m4/host-os.m4 (mirbsd): Add MirBSD.
46180         tests: fix unportable assumption on sys/wait.h
46181         * tests/test-sys_wait.c (main): Relax test.
46182         * tests/test-stdlib.c (main): Likewise.
46184         init.sh: accommodate directory with no .exes
46185         * tests/init.sh: Accomodate directory containing only scripts.
46187         tests: avoid compiler warning
46188         * tests/test-stdlib.c (main): Use the variable.
46190         fdutimens, fdutimensat: update signature, again
46191         * lib/utimens.h (gl_futimens): Delete, and move signature...
46192         (fdutimens): ...here.
46193         (fdutimensat): Rearrange signature.
46194         (lutimensat): Rename variable for clarity.
46195         * lib/fdutimensat.c (fdutimensat): Update signature.
46196         * lib/utimens.c (fdutimens): Likewise.
46197         (gl_futimens): Delete.
46198         (utimens, lutimens): Update callers.
46199         * lib/futimens.c (futimens): Likewise.
46200         * tests/test-fdutimensat.c: Likewise.
46201         * tests/test-utimens.c: Likewise.
46202         * tests/test-futimens.h: Update comment.
46203         * NEWS: Mention this.
46204         Suggested by Paul Eggert.
46206 2010-09-17  Bruno Haible  <bruno@clisp.org>
46208         Take over the maintenance of some older macros from Autoconf.
46209         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
46210         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
46211         GNU Autoconf.
46212         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
46213         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
46215 2010-09-17  Eric Blake  <eblake@redhat.com>
46217         fdutimensat: drop atflag validation
46218         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
46219         with valid fd, to close a race scenario where futimens is
46220         unsupported and FILE was replaced by a symlink.
46221         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
46222         accordingly.
46223         Suggested by Paul Eggert.
46225 2010-09-16  Bruno Haible  <bruno@clisp.org>
46227         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
46228         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
46230 2010-09-16  Bruno Haible  <bruno@clisp.org>
46232         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
46233         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
46234         login_tty exists.
46235         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
46237 2010-09-16  Bruno Haible  <bruno@clisp.org>
46239         login_tty: Make the replacement code work on BSD systems.
46240         * lib/login_tty.c: Include <sys/ioctl.h>.
46241         (login_tty): Use ioctl TIOCSCTTY when available.
46242         * modules/login_tty (Depends-on): Add sys_ioctl.
46243         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
46245 2010-09-16  Bruno Haible  <bruno@clisp.org>
46247         login_tty: Stricter unit test.
46248         * modules/login_tty-tests (Depends-on): Add tcgetsid.
46249         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
46250         and tcgetsid() after login_tty.
46251         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
46253 2010-09-16  Bruno Haible  <bruno@clisp.org>
46255         New module 'tcgetsid'.
46256         * lib/tcgetsid.c: New file.
46257         * m4/tcgetsid.m4: New file.
46258         * modules/tcgetsid: New file.
46259         * modules/termios (Depends-on): Add c++defs, warn-on-use.
46260         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
46261         GNULIB_TCGETSID, HAVE_TCGETSID.
46262         * lib/termios.in.h: Include <sys/types.h>.
46263         (tcgetsid): New declaration.
46264         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
46265         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
46266         * doc/posix-functions/tcgetsid.texi: Mention the new module.
46267         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
46269 2010-09-16  Bruno Haible  <bruno@clisp.org>
46271         Tests for module 'termios'.
46272         * modules/termios-c++-tests: New file.
46273         * modules/termios-tests: New file.
46274         * tests/test-termios-c++.cc: New file.
46275         * tests/test-termios.c: New file.
46277         New module 'termios'.
46278         * modules/termios: New file.
46279         * lib/termios.in.h: New file.
46280         * m4/termios_h.m4: New file.
46281         * doc/posix-headers/termios.texi: Mention the new module.
46283 2010-09-16  Eric Blake  <eblake@redhat.com>
46285         fdutimensat: add an atflag parameter
46286         * lib/fdutimensat.c (fdutimensat): Add new parameter.
46287         * lib/utimens.h (fdutimensat): Update prototype.
46288         * tests/test-fdutimensat.c: Adjust test to match.
46289         * NEWS: Document the change.
46290         Suggested by Paul Eggert.
46292 2010-09-16  Bruno Haible  <bruno@clisp.org>
46294         Fix typos in comments.
46295         * lib/striconveh.h: Fix typo in comment.
46296         * lib/login_tty.c (login_tty): Likewise.
46298 2010-09-15  Bruno Haible  <bruno@clisp.org>
46300         stdlib: clarify MirBSD WEXITSTATUS bug
46301         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
46302         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
46304 2010-09-15  Eric Blake  <eblake@redhat.com>
46306         stdlib: work around MirBSD WEXITSTATUS bug
46307         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
46308         * modules/stdlib (Depends-on): Add sys_wait.
46309         * tests/test-sys_wait.c (main): Enhance test.
46310         * tests/test-stdlib.c (main): Likewise.
46311         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
46313         docs: mention MacOS issue with WEXITSTATUS(constant)
46314         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
46315         issue.
46316         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
46318         strnlen: add tests
46319         * modules/strnlen-tests: New file.
46320         * tests/test-strnlen.c: Likewise.
46322 2010-09-14  Bruno Haible  <bruno@clisp.org>
46324         unistr/base: Avoid link errors when module 'libunistring' is also used.
46325         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
46326         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
46327         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
46328         Declare also when HAVE_LIBUNISTRING is set.
46329         Reported by Pádraig Brady <P@draigbrady.com>.
46331 2010-09-14  Eric Blake  <eblake@redhat.com>
46333         test-rawmemchr: make more robust
46334         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
46335         (Depends-on, configure.ac): Add needed prerequisites to use it.
46336         * modules/memchr-tests (Files, Depends-on, configure.ac):
46337         Likewise, to avoid implicit reliance on memchr module prereqs.
46338         * tests/test-memchr.c (main): Ensure proper masking.
46339         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
46340         reads.
46342         memchr: detect glibc Alpha bug
46343         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
46344         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
46345         Alpha.
46346         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
46347         * tests/test-memchr.c (main): Enhance test.
46348         Reported by Nelson H. F. Beebe.
46350 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
46352         fts, getcwd, glob: audit for dirfd returning -1
46353         * lib/fts.c (opendir): Remove #define; no longer used.
46354         (opendirat): New arg PDIR_FD.  All callers changed.
46355         (fts_build, _opendir2): Use new opendirat to avoid the need for
46356         dirfd, or for checking whether dirfd returns a negative value.
46357         Don't use opendir; always use openat followed by fdopendir.
46358         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
46359         it.
46360         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
46361         returns -1 here.
46362         * modules/fts (Depends-on): Remove dirfd.
46363         * modules/getcwd (Depends-on): Likewise.
46365 2010-09-13  Eric Blake  <eblake@redhat.com>
46367         float: fix broken MirBSD header
46368         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
46369         * doc/posix-headers/float.texi (float.h): Document it.
46371 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
46373         fts: use O_NOFOLLOW to avoid race condition when opening a directory
46374         * lib/fts.c (opendirat): New arg extra_flags.
46375         (__opendir2): Use it to avoid following symlinks when opening
46376         a directory, if symlinks are not supposed to be followed.  See
46377         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
46379         fdopendir: preserve argument fd before returning
46380         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
46381         (fdopendir_with_dup, fd_clone_opendir): New static functions.
46382         (fdopendir): Use them, arranging for FD to be open to the same
46383         directory that it was when it started.  (It might be temporarily
46384         closed while fdopendir is running, so this not thread- or
46385         signal-safe.)  Be careful to do the right thing even when file
46386         descriptors are scarce and dup fails with errno == EMFILE.  See
46387         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
46389 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
46391         regex: Pass the system regex if its only problem is 32-bit regoff_t.
46392         * NEWS: Document change.
46393         * m4/regex.m4: Disable test for regoff_t size.
46395 2010-09-13  Jim Meyering  <meyering@redhat.com>
46397         fts: don't operate on an invalid file descriptor after failed dup
46398         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
46399         negative file descriptor.
46401 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
46403         savedir: add streamsavedir, deprecate fdsavedir
46404         * NEWS: Mention deprecation of fdsavedir.
46405         * lib/savedir.c (streamsavedir): New extern function, whose name
46406         ends in "savedir" to be consistent with the others.  This differs
46407         from savedirstream in that it doesn't close its argument.  The
46408         next version of GNU tar will use this instead of fdsavedir, to
46409         avoid some race conditions and conserve file descriptors.
46410         (savedirstream): Reimplement as a wrapper around streamsavedir.
46411         (fdsavedir): Add a comment deprecating this function.  As far as
46412         I know, only GNU tar used it, and GNU tar doesn't need it any more.
46413         * lib/savedir.h (streamsavedir): New decl.
46414         (fdsavedir): Add a comment deprecating this.
46416 2010-09-10  Bruno Haible  <bruno@clisp.org>
46418         langinfo: Fix last commit.
46419         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
46420         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
46421         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46423 2010-09-10  Bruno Haible  <bruno@clisp.org>
46425         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
46426         * lib/progreloc.c (O_EXEC): Define fallback.
46428 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
46430         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
46431         * NEWS: Document recent changes to fcntl-h.
46432         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
46433         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
46434         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
46435         Similarly for O_SEARCH; this last was already true, but not documented.
46436         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
46437         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
46438         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
46439         Likewise.
46440         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
46441         is zero, not whether it is defined.
46442         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
46443         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
46444         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
46446 2010-09-10  Bruno Haible  <bruno@clisp.org>
46448         langinfo, nl_langinfo: Fix for IRIX 5.3.
46449         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
46450         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
46451         HAVE_LANGINFO_YESEXPR.
46452         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
46453         HAVE_LANGINFO_YESEXPR.
46454         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
46455         HAVE_LANGINFO_T_FMT_AMPM is 0.
46456         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
46457         HAVE_LANGINFO_YESEXPR is 0.
46458         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
46459         NOEXPR.
46460         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
46461         * doc/posix-functions/nl_langinfo.texi: Likewise.
46462         Reported by Eric Blake.
46464 2010-09-10  Bruno Haible  <bruno@clisp.org>
46466         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
46467         * doc/glibc-functions/login_tty.texi: Mention the include file problem
46468         on FreeBSD 8.0 and OpenBSD 4.6.
46469         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
46470         * m4/pty_h.m4 (gl_PTY_H): Likewise.
46471         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
46472         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
46473         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
46474         ac_includes_default.
46475         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
46477 2010-09-09  Eric Blake  <eblake@redhat.com>
46479         strsignal: work around NetBSD bug
46480         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
46481         * lib/string.in.h (includes): Likewise.
46482         * doc/posix-functions/strsignal.texi (strsignal): Document the
46483         bug.
46484         Reported by Nelson H. F. Beebe.
46486         gnulib-tool: work with NetBSD /bin/sh
46487         * gnulib-tool (func_cache_var, func_cache_lookup_module)
46488         (func_get_description, func_get_comment, func_get_status)
46489         (func_get_notice, func_get_applicability, func_get_filelist)
46490         (func_get_dependencies, func_get_autoconf_early_snippet)
46491         (func_get_autoconf_snippet, func_get_automake_snippet)
46492         (func_get_include_directive, func_get_link_directive)
46493         (func_get_license, func_get_maintainer, func_import): Avoid
46494         shell syntax errors from parsing syntax extensions.
46496 2010-09-09  Bruno Haible  <bruno@clisp.org>
46498         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
46499         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
46500         a reliable way to determine whether the 'alias' command works.
46502 2010-09-08  Jim Meyering  <meyering@redhat.com>
46504         init.sh: penalize a set-x-impaired shell; don't disqualify it
46505         * tests/init.sh: Too many shells corrupt application stderr when
46506         you set -x, so we can't afford to disqualify them, since at least
46507         on Irix-6.5, that would disqualify all bourne shells.
46508         Instead, use a two-pass approach.
46509         On the first pass, try to find a shell that meets the stricter
46510         condition that set -x does not corrupt stderr.
46511         If no shell meets the stricter condition, retest each candidate
46512         shell, but without that extra condition.  Finally, when
46513         VERBOSE=yes is requested and set -x might cause trouble, simply
46514         issue a warning and refrain from enabling debug output.
46516 2010-09-08  Eric Blake  <eblake@redhat.com>
46518         unsetenv: fix OpenBSD bug
46519         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
46520         * doc/posix-functions/unsetenv.texi (unsetenv): Update
46521         documentation.
46522         Reported by Jim Meyering.
46524         strtod: work around IRIX 6.5 bug
46525         * lib/strtod.c (strtod): Reparse number on shorter string if
46526         exponent parse was invalid.
46527         * tests/test-strtod.c (main): Add check for "0x1p 2".
46528         Reported by Tom G. Christensen.
46530         getopt: optimize previous patch
46531         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
46532         empty variable.  Speed up awk script.
46533         Reported by Paolo Bonzini.
46535 2010-09-08  Jim Meyering  <meyering@redhat.com>
46537         test.sh: disqualify shells for which set -x corrupts stderr
46538         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
46539         and OpenBSD 4.7.  They make it so with "set -x", environment settings
46540         appear in stderr output.  For example, this command:
46541             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
46542         prints "P=1" on those two systems:
46544 2010-09-08  Bruno Haible  <bruno@clisp.org>
46546         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
46547         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
46548         commands, because some shells ignore redirections when there is an
46549         error in the command lookup.
46550         Reported by Eric Blake.
46552 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
46554         * lib/regex.h: Fix a mention of `regex_compile' (should be
46555         `re_compile_pattern').
46556         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
46557         (re_set_registers): Correct name of parameter in comment.
46559         * doc/regex.texi: Add documentation for missing syntax flags.
46560         Remove commented-out documentation of defunct syntax option
46561         RE_NO_EMPTY_ALTS.
46562         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
46563         Add documentation of re_set_registers.
46564         Document trick to re-use a pattern buffer by setting fastmap manually.
46565         Update documentation of struct re_pattern_buffer per public members.
46566         Uncomment documentation of equivalence class operators and
46567         collating symbol operators, since they are now implemented,
46568         Explain leftmost-longest matching in relation to alternatives.
46569         Tidy documentation of substring matching.
46570         Remove POSIX documentation, which is done better in
46571         glibc, and refer the reader there. Keep BSD API documentation, as
46572         that is not readily available elsewhere.
46574 2010-09-07  Eric Blake  <eblake@redhat.com>
46576         getopt: handle POSIXLY_CORRECT set but not exported
46577         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
46578         export state of POSIXLY_CORRECT, due to bash set -o posix.
46579         Reported by Dustin J. Mitchell.
46581 2010-09-05  Bruno Haible  <bruno@clisp.org>
46583         gnulib-tool: Highlight the changed options.
46584         * gnulib-tool (func_usage): Display the --import, --add-import,
46585         --remove-import explanations in bold font.
46587 2010-09-06  Karl Berry  <karl@gnu.org>
46589         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
46591 2010-09-05  Bruno Haible  <bruno@clisp.org>
46593         uniwidth/width: Update comment.
46594         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
46595         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
46597 2010-09-05  Bruno Haible  <bruno@clisp.org>
46599         isinf, isnan: Relax license.
46600         * modules/isinf (License): Change from GPL to LGPL, with consent from
46601         Ben Pfaff.
46602         * modules/isnan (License): Likewise.
46603         Requested by Ludovic Courtès.
46605 2010-09-04  Bruno Haible  <bruno@clisp.org>
46607         gnulib-tool: Help migration from --import to --add-import or --update.
46608         * gnulib-tool: Emit a verbose error message when --import is used
46609         without any module name.
46611 2010-09-04  Bruno Haible  <bruno@clisp.org>
46613         Update doc about gnulib-tool.
46614         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
46615         'gnulib-tool --update' in more detail.
46616         Reported by Eric Blake.
46618 2010-09-04  Bruno Haible  <bruno@clisp.org>
46620         gnulib-tool: Change --import. New options --add/remove-import.
46621         * gnulib-tool: New options --add-import, --remove-import.
46622         (func_usage): Document them.
46623         (have_associative): Define always.
46624         (func_import): In import mode, don't merge the specified settings with
46625         the cached settings. Implement remove-import mode.
46626         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
46627         Explain when to use them versus --import.
46628         (Simple update): Use --add-import instead of --import.
46629         * NEWS: Mention the change.
46631 2010-09-04  Bruno Haible  <bruno@clisp.org>
46633         * doc/gnulib-tool.texi (Initial import): Update paragraph about
46634         separate gnulib.mk.
46636 2010-09-04  Bruno Haible  <bruno@clisp.org>
46638         gnulib-tool: Don't talk about CVS any more.
46639         * gnulib-tool (func_usage, func_import): Write "version control"
46640         instead of CVS.
46642 2010-09-04  Jim Meyering  <meyering@redhat.com>
46644         maint.mk: avoid obscure sc_copyright_check failure in coreutils
46645         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
46646         false positives (whose names may be ill-chosen) when searching
46647         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
46648         would cause a false-positive.
46650         avoid coreutils "make distcheck" failure
46651         Coreutils tests with an absolute build directory name that contains
46652         a space.  Not quoting this directory name caused a failure.
46653         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
46654         * tests/test-vc-list-files-cvs.sh: Likewise.
46656 2010-09-04  Bruno Haible  <bruno@clisp.org>
46658         gnulib-tool: Avoid error when run in a package without Makefile.am.
46659         * gnulib-tool: When collecting the m4dirs in a package that does not
46660         have a Makefile.am, eliminate those directories that contain no
46661         gnulib-cache.m4. Fix expression that counts these directories.
46663 2010-09-04  Bruno Haible  <bruno@clisp.org>
46665         update-copyright test: Improve output when perl is missing or too old.
46666         * tests/test-update-copyright.sh: Move test of Perl version down after
46667         the test whether Perl exists. Provide an explanation relating Perl's
46668         error message to Automake's SKIP: message.
46670 2010-09-04  Bruno Haible  <bruno@clisp.org>
46672         Don't augment PATH in TESTS_ENVIRONMENT.
46673         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
46674         set abs_aux_dir instead of augmenting PATH.
46675         * modules/vc-list-files-tests (Makefile.am): Likewise.
46676         * tests/test-update-copyright.sh: Augment PATH here.
46677         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
46678         path_prepend_.
46679         * tests/test-vc-list-files-git.sh: Likewise.
46681 2010-09-04  Jim Meyering  <meyering@redhat.com>
46683         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
46684         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
46686 2010-09-04  Bruno Haible  <bruno@clisp.org>
46688         strdup: Fix compilation error in C++ mode.
46689         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
46690         the macro.
46692 2010-09-04  Bruno Haible  <bruno@clisp.org>
46694         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
46695         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
46696         macro into a function.
46697         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
46699 2010-09-04  Bruno Haible  <bruno@clisp.org>
46701         Set PATH_SEPARATOR the same way autoconf does.
46702         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
46703         the value of PATH_SEPARATOR the same way autoconf-generated configure
46704         scripts do.
46705         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
46706         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
46708 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
46710         Set PATH_SEPARATOR the same way autoconf does.
46711         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
46712         the same way autoconf-generated configure scripts do.
46713         * posix-modules: Likewise.
46715 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
46717         hash: fix safe_hasher const typo
46718         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
46719         const; otherwise, there is a type error later.
46721 2010-09-02  Jim Meyering  <meyering@redhat.com>
46723         test-update-copyright.sh: require perl 5.8.0
46724         * tests/test-update-copyright.sh: Require 5.8.0,
46725         which Tom G. Christensen has confirmed is adequate,
46726         while 5.6.1 is not.
46728 2010-09-02  Eric Blake  <eblake@redhat.com>
46730         tests: init.sh improvements for re-exec'ing with zsh
46731         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
46732         -vx through shell re-exec.
46733         Reported by Tom G. Christensen.
46735         wctype: fix typo in previous commit
46736         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
46737         Reported by Ludovic Courtès.
46739 2010-09-02  Jim Meyering  <meyering@redhat.com>
46741         test-update-copyright.sh: skip test if Perl is too old
46742         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
46743         Reported by Tom G. Christensen.
46745 2010-09-02  Bruno Haible  <bruno@clisp.org>
46747         wctype: Avoid compilation error on IRIX 6.5.30.
46748         * lib/wctype.in.h (iswblank): Declare with a replacement if
46749         REPLACE_ISWBLANK is set.
46750         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
46751         declared. Set REPLACE_ISWBLANK.
46752         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
46753         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
46754         * doc/posix-headers/wctype.texi: Likewise.
46755         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46757 2010-09-01  Bruno Haible  <bruno@clisp.org>
46759         New module 'socketlib'.
46760         * modules/socketlib: New file.
46761         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
46762         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
46763         * modules/sockets (Depends-on): Add socketlib.
46764         Suggested by Sam Steingold <sds@gnu.org>.
46766 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
46768         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
46770         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
46771         when one needs search access to a directory but not read access.
46772         On systems where it is available, it works in some cases where
46773         O_RDONLY does not, namely on directories that are searchable but
46774         not readable, and which need only to be searchable.  If O_SEARCH
46775         is not available, fall back to the traditional method of using
46776         O_RDONLY.
46778         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
46779         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
46780         when opening a directory that needs only to be searchable.
46781         * lib/chdir-safer.c (chdir_no_follow): Likewise.
46782         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
46783         * lib/openat-proc.c (openat_proc_name): Likewise.
46784         * lib/openat.c (openat_needs_fchdir): Likewise.
46785         * lib/save-cwd.c (save_cwd): Likewise.
46786         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
46788 2010-08-28  Bruno Haible  <bruno@clisp.org>
46790         New module 'host-cpu-c-abi'.
46791         * modules/host-cpu-c-abi: New file.
46792         * m4/host-cpu-c-abi.m4: New file, based on part of
46793         clisp/src/m4/general.m4.
46794         Requested by Sam Steingold <sds@gnu.org>.
46796 2010-08-31  Eric Blake  <eblake@redhat.com>
46797         and Jim Meyering  <meyering@redhat.com>
46799         hash: factor, and guard against misbehaving hasher function
46800         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
46801         of table->hasher's return value.  Also protect against a hash value
46802         so large that adding it to table->bucket results in a NULL pointer.
46803         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
46804         Use it in place of open-coded check-and-abort.
46806 2010-08-30  Bruno Haible  <bruno@clisp.org>
46808         hash: silence spurious clang warning
46809         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
46810         Reported by Eric Blake.
46812 2010-08-30  Eric Blake  <eblake@redhat.com>
46814         strstr, memmem, strcasestr: avoid leaked shell message
46815         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
46816         FreeBSD.
46817         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46818         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46820         tests: silence clang warning
46821         * tests/test-malloca.c (do_allocation): Avoid dead store.
46823 2010-08-29  Bruno Haible  <bruno@clisp.org>
46825         gettext: Fix recent mistake.
46826         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
46828 2010-08-29  Bruno Haible  <bruno@clisp.org>
46830         selinux-h: Offer a --without-selinux option.
46831         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
46832         --without-selinux was specified, skip all tests and define
46833         HAVE_SELINUX_SELINUX_H to 0.
46834         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
46835         set LIB_SELINUX to empty.
46836         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
46837         gl_LIBSELINUX. If --without-selinux was specified, replace
46838         selinux/context.h.
46839         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
46841 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46842             Bruno Haible  <bruno@clisp.org>
46844         Make the module 'realloc-gnu' work again on AIX and OSF/1.
46845         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
46846         of HAVE_REALLOC.
46847         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
46848         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
46849         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
46850         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
46852 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46853             Bruno Haible  <bruno@clisp.org>
46855         Make the module 'calloc-gnu' work again on AIX and OSF/1.
46856         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
46857         HAVE_CALLOC.
46858         * lib/xmalloc.c: Update accordingly.
46859         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
46860         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
46861         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
46863 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46864             Bruno Haible  <bruno@clisp.org>
46866         Make the module 'malloc-gnu' work again on AIX and OSF/1.
46867         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
46868         HAVE_MALLOC.
46869         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
46870         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
46871         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
46873 2010-08-29  Bruno Haible  <bruno@clisp.org>
46875         Update modules list.
46876         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
46877         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
46878         (String handling <string.h>): Add astrxfrm.
46879         (File system functions): Add readlinkat.
46881 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46883         Tests for module 'realloc-gnu'.
46884         * modules/realloc-gnu-tests: New file.
46885         * tests/test-realloc-gnu.c: New file.
46887         Tests for module 'calloc-gnu'.
46888         * modules/calloc-gnu-tests: New file.
46889         * tests/test-calloc-gnu.c: New file.
46891         Tests for module 'malloc-gnu'.
46892         * modules/malloc-gnu-tests: New file.
46893         * tests/test-malloc-gnu.c: New file.
46895 2010-08-28  Bruno Haible  <bruno@clisp.org>
46897         Rename module 'realloc' -> 'realloc-gnu'.
46898         * modules/realloc-gnu: New file, copied from modules/realloc.
46899         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
46900         obsolete.
46901         * modules/mgetgroups (Depends-on): Update.
46902         * doc/posix-functions/realloc.texi: Update.
46903         * NEWS: Mention the change.
46905         Rename module 'calloc' -> 'calloc-gnu'.
46906         * modules/calloc-gnu: New file, copied from modules/calloc.
46907         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
46908         obsolete.
46909         * doc/posix-functions/calloc.texi: Update.
46910         * NEWS: Mention the change.
46912         Rename module 'malloc' -> 'malloc-gnu'.
46913         * modules/malloc-gnu: New file, copied from modules/malloc.
46914         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
46915         obsolete.
46916         * modules/argp (Depends-on): Update.
46917         * modules/regex (Depends-on): Update.
46918         * doc/posix-functions/malloc.texi: Update.
46919         * NEWS: Mention the change.
46921 2010-08-28  Eric Blake  <eblake@redhat.com>
46923         pread, pwrite: add missing dependency
46924         * modules/pread (Depends-on): Add extensions.
46925         * modules/pwrite (Depends-on): Likewise.
46927 2010-08-28  Bruno Haible  <bruno@clisp.org>
46929         unistr/u*-strchr: Fix tests dependencies.
46930         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
46931         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
46932         Reported by Ian Beckwith <ianb@erislabs.net>.
46934 2010-08-28  Bruno Haible  <bruno@clisp.org>
46936         read-file: Don't occupy too much unused memory.
46937         * lib/read-file.c (fread_file): Shrink the buffer at the end.
46939 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
46940             Eric Blake  <eblake@redhat.com>
46941             Bruno Haible  <bruno@clisp.org>
46943         read-file: Avoid memory reallocations with regular files.
46944         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
46945         (fread_file): With regular files, use the remaining length as the
46946         initial buffer size.  Check against overflow.
46947         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
46948         sys_stat.
46950 2010-08-28  Bruno Haible  <bruno@clisp.org>
46952         ftello: Relax license.
46953         * modules/ftello (License): Relax to LGPLv2+.
46954         Reported by Eric Blake.
46956 2010-08-28  Bruno Haible  <bruno@clisp.org>
46958         Avoid relocwrapper link errors due to gnulib replacement functions.
46959         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
46960         function.
46961         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46963 2010-08-28  Bruno Haible  <bruno@clisp.org>
46965         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
46966         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
46967         defined.
46968         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
46969         Suggested by Eric Blake.
46971 2010-08-28  Bruno Haible  <bruno@clisp.org>
46973         sys_socket, netdb: Ensure socklen_t gets defined.
46974         * modules/sys_socket (Depends-on): Add socklen.
46975         * modules/netdb (Depends-on): Likewise.
46976         * modules/getaddrinfo (Depends-on): Remove socklen.
46977         * modules/getsockopt (Depends-on): Likewise.
46978         * modules/setsockopt (Depends-on): Likewise.
46979         * tests/test-sys_socket.c: Check that socklen_t is defined.
46980         * tests/test-netdb.c: Likewise.
46981         * m4/socklen.m4: Update comments.
46982         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46984 2010-08-27  Eric Blake  <eblake@redhat.com>
46986         login_tty: add missing dependency
46987         * modules/login_tty (Depends-on): Add pty.
46989 2010-08-26  Eric Blake  <eblake@redhat.com>
46991         lib-symbol-versions: fix m4 quoting
46992         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
46993         format for AC_LINK_IFELSE.
46995         glob: fix compile test
46996         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
46998         btowc: fix missing file
46999         * modules/btowc (Files): Also ship locale-fr.m4.
47001         lseek: fix link test
47002         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
47003         AC_LINK_IFELSE.
47005         include_next: silence autoconf 2.68 warning
47006         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
47007         AC_COMPILE_IFELSE as special.
47008         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
47009         autoconf < 2.68.
47011         acl: fix compilation test
47012         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
47013         AC_COMPILE_IFELSE.
47015 2010-08-26  Bruno Haible  <bruno@clisp.org>
47017         Modernize AC_TRY_RUN invocations.
47018         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
47019         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
47020         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
47021         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
47022         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
47023         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
47024         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
47025         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
47026         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
47027         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
47028         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
47029         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
47030         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
47031         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
47032         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
47033         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
47034         gl_MBRLEN_NUL_RETVAL): Likewise.
47035         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
47036         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
47037         Likewise.
47038         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
47039         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
47040         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
47041         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
47042         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
47043         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
47044         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
47045         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
47046         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
47047         Likewise.
47048         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
47049         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
47050         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
47051         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
47052         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
47053         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
47054         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
47055         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
47056         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
47057         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47059 2010-08-26  Bruno Haible  <bruno@clisp.org>
47061         Modernize AC_TRY_LINK invocations.
47062         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
47063         AC_TRY_LINK.
47064         * m4/argp.m4 (gl_ARGP): Likewise.
47065         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
47066         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
47067         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
47068         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
47069         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
47070         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
47071         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
47072         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
47073         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
47074         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
47075         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
47076         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
47077         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
47078         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
47079         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
47080         * m4/hostent.m4 (gl_HOSTENT): Likewise.
47081         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
47082         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
47083         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
47084         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
47085         Likewise.
47086         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
47087         Likewise.
47088         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
47089         Likewise.
47090         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
47091         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
47092         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
47093         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
47094         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
47095         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
47096         * m4/servent.m4 (gl_SERVENT): Likewise.
47097         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
47098         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
47099         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
47100         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
47101         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
47102         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
47103         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
47104         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
47105         * modules/tsearch-tests (configure.ac): Likewise.
47107 2010-08-26  Bruno Haible  <bruno@clisp.org>
47109         Modernize AC_TRY_COMPILE invocations.
47110         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
47111         AC_TRY_COMPILE.
47112         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
47113         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
47114         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
47115         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
47116         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
47117         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
47118         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
47119         * m4/lock.m4 (gl_LOCK): Likewise.
47120         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
47121         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
47122         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
47123         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
47124         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
47125         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
47126         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
47127         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
47128         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
47129         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
47130         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
47131         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
47132         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
47133         extraneous semicolon.
47135 2010-08-26  Jim Meyering  <meyering@redhat.com>
47137         stat-time: relax license LGPL
47138         * modules/stat-time (License): Change from GPL to LGPL,
47139         with consent from all contributors, for use in libguile.
47140         Requested by Ludovic Courtès.
47142 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
47144         poll: return immediately on POLLHUP.
47145         * lib/poll.c (poll): Always set timeout before wait_timeout is
47146         computed.
47148 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47150         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
47151         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
47152         rmdir ("dir/.//"), unlinkat.
47154 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
47156         stdbool: avoid spurious failure with modern xlc
47157         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
47159 2010-08-24  Bruno Haible  <bruno@clisp.org>
47161         getloadavg: simplify code
47162         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
47163         gl_have_func. Update comments.
47165 2010-08-24  Eric Blake  <eblake@redhat.com>
47167         getloadavg: don't define SVR4 on cygwin
47168         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
47169         only define SVR4 when -lkvm is required.
47170         Reported by Yaakov Selkowitz.
47172 2010-08-24  Bruno Haible  <bruno@clisp.org>
47174         priv-set: fix comment
47175         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
47177 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
47179         priv-set: fix comments
47180         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
47181         to match code, as suggested by David Bartley in:
47182         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
47184 2010-08-23  Eric Blake  <eblake@redhat.com>
47186         stdbool: avoid rejecting clang
47187         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
47188         * tests/test-stdbool.c: Enable more tests if using the system
47189         <stdbool.h> instead of the gnulib replacement.
47190         (main): Move xlc bug test to a runtime test for all compilers.
47191         Reported by Anders Kaseorg.
47193         argz: fix shell quoting issue
47194         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
47195         Reported by Charles Wilson.
47197 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
47198             Erik Faye-Lund <kusmabite@gmail.com>
47200         poll, select: handle ERROR_BROKEN_PIPE.
47201         * lib/poll.c (win32_compute_revents): Return POLLHUP when
47202         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
47203         * lib/select.c (win32_compute_revents): Do not mark a pipe
47204         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
47206 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
47208         fts: allow compilation with C++
47209         * lib/fts_.h: Specify extern "C" linkage with C++.
47211 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47213         Fix gnulib-tool sed script de-commentation for AIX sed.
47214         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
47215         sed.
47217 2010-08-17  Eric Blake  <eblake@redhat.com>
47219         test-stddef: test for (some) offsetof bugs
47220         * tests/test-stddef.c: Enhance test to ensure correct type of
47221         offsetof.
47222         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
47223         that we are not fixing at this time.
47225 2010-08-15  Bruno Haible  <bruno@clisp.org>
47227         stpncpy: Allow stpncpy to be defined as a macro.
47228         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
47229         if it's already correctly declared.
47230         * lib/string.in.h (stpncpy): Undefine before redefining.
47231         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
47233 2010-08-14  Bruno Haible  <bruno@clisp.org>
47235         Rename module 'memxfrm' to 'amemxfrm'.
47236         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
47237         (amemxfrm): Renamed from memxfrm.
47238         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
47239         (amemxfrm): Renamed from memxfrm.
47240         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
47241         * NEWS: Mention the change.
47242         * MODULES.html.sh (String handling <string.h>): Update.
47243         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
47244         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
47245         * lib/unicase/u16-casexfrm.c: Likewise.
47246         * lib/unicase/u32-casexfrm.c: Likewise.
47247         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
47248         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
47249         * lib/uninorm/u16-normxfrm.c: Likewise.
47250         * lib/uninorm/u32-normxfrm.c: Likewise.
47251         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
47252         memxfrm.
47253         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
47254         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
47255         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
47256         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
47257         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
47258         Suggested by Paul Eggert.
47260 2010-08-14  Bruno Haible  <bruno@clisp.org>
47262         Tests for module 'astrxfrm'.
47263         * modules/astrxfrm-tests: New file.
47264         * tests/test-astrxfrm.c: New file.
47266         New module 'astrxfrm'.
47267         * lib/astrxfrm.h: New file.
47268         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
47269         * modules/astrxfrm: New file.
47271 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
47273         regex: Tweak doc.
47274         * doc/regex.texi (Overview): Don't mention regex.c.
47275         (GNU Regular Expression Compiling): Likewise.
47276         (Match-end-of-line Operator): Mention 'not_eol'.
47278 2010-08-14  Brian Gough  <bjg@gnu.org>
47279             Bruno Haible  <bruno@clisp.org>
47281         git-merge-changelog: add doc relating to use with bzr and hg.
47282         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
47284 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
47286         pthread: fix pthread.h creation for srcdir != builddir
47287         * modules/pthread (Makefile.am): Fix the rule to work also in a
47288         non-srcdir build.
47290 2010-08-13  Karl Berry  <karl@gnu.org>
47292         * doc/regex.texi (Predefined Syntaxes): @smallexample.
47293         * doc/posix-*/*: force line break before @url of POSIX
47294         specifications.
47295         Suggested by Werner Lemberg.
47297 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
47299         strtod: fix const diagnostic
47300         * lib/strtod.c (strtod): Don't assign const char * to char *,
47301         as this elicits a warning from GCC when warnings are enabled.
47303 2010-08-10  Pádraig Brady  <P@draigbrady.com>
47304         and Eric Blake  <eblake@redhat.com>
47306         copy-acl: ignore ENOTSUP on HP-UX
47307         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
47308         so that it is available for HP-UX.
47309         * lib/copy-acl.c (qcopy_acl): Use it.
47310         Reported by Patrick M. Callahan.
47312 2010-08-10  Eric Blake  <eblake@redhat.com>
47314         open, chown: relax license
47315         * modules/open (License): Change to LGPLv2+, with consent by all
47316         authors, for use in augeas.
47317         * modules/chown (License): Likewise.
47318         * modules/lchown (Likewise): Likewise.
47319         Requested by Adam Stokes.
47321 2010-08-09  Karl Berry  <karl@gnu.org>
47323         * build-aux/ar-lib: new file, import from Automake.
47324         * config/srclist.txt: autocheck for updates.
47326 2010-08-09  Eric Blake  <eblake@redhat.com>
47328         readlinkat: adjust client modules
47329         * modules/areadlinkat (Depends-on): Use readlinkat, not
47330         symlinkat.
47331         * modules/areadlinkat-with-size (Depends-on): Likewise.
47333         mknod: be more vocal about danger of running tests as root
47334         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
47335         root, since that is just asking for problems.
47336         Suggested by Bruno Haible, based on a report by Rainer Tammer.
47338         readlinkat: split into its own module
47339         * modules/symlinkat: Split readlinkat...
47340         * modules/readlinkat: ...into separate module.
47341         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
47342         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
47343         * lib/symlinkat.c (readlinkat): Move...
47344         * lib/readlinkat.c: ...into new file.
47345         * modules/symlinkat-tests: Split readlinkat test...
47346         * modules/readlinkat-tests: ...into separate module.
47347         * tests/test-symlinkat.c: Split...
47348         * tests/test-readlinkat.c: ...into new file.
47349         * NEWS: Document the split.
47350         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
47351         * lib/unistd.in.h (readlinkat): Likewise.
47352         Suggested by Bruno Haible.
47354 2010-08-08  Bruno Haible  <bruno@clisp.org>
47356         memxfrm: Speed up.
47357         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
47358         that usually only one call to strxfrm is necessary for each string
47359         part.
47360         Reported by Paul Eggert <eggert@cs.ucla.edu>.
47362 2010-08-07  Karl Berry  <karl@gnu.org>
47364         * doc/posix-headers/limits.texi,
47365         * doc/posix-functions/malloc.texi,
47366         * doc/posix-functions/strsignal.texi: missing @item.
47367         * doc/ld-version-script.texi: spurious leading i.
47368         * doc/regex.texi (Interval Operators): no commas inside @var.
47370 2010-08-01  Bruno Haible  <bruno@clisp.org>
47372         Integrate the regex documentation.
47373         * doc/gnulib.texi: Define 'cn' index.
47374         (Regular expressions): New a chapter that includes regex.texi and
47375         regexprops-generic.texi.
47376         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
47377         syntax.
47379         Whitespace cleanup.
47380         * doc/regex.texi: Remove trailing spaces.
47382         Add regex documentation.
47383         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
47384         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
47385         Written by Kathy A. Hargreaves and Karl Berry.
47387 2010-08-01  Bruno Haible  <bruno@clisp.org>
47389         link: Update documentation.
47390         * doc/posix-functions/link.texi: Update regarding Solaris.
47392 2010-07-31  Bruno Haible  <bruno@clisp.org>
47394         Update modules list.
47395         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
47396         (String handling <string.h>): Add memcmp2, memxfrm.
47397         (Container data structures): Add xlist, xsublist, xoset.
47398         (Core language properties): Add alignof, unused-parameter.
47399         (Process control, Numeric conversion functions <stdlib.h>): Renamed
47400         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
47401         (Unibyte characters <ctype.h>): New section.
47402         (String handling <string.h>): New section.
47403         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
47404         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
47405         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
47406         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
47407         tan, tanh, tanl, y0, y1, yn.
47408         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
47409         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
47410         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
47411         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
47412         unlockpt, vdprintf, vdprintf-posix.
47413         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
47414         (File system functions): Add concat-filename, sys_file, sys_ioctl,
47415         xconcat-filename.
47416         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
47417         getdtablesize, pipe2, pipe2-safer.
47418         (Security): New section.
47419         (Networking functions): Add accept4.
47420         (Signal handling): Add sigpipe.
47421         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
47422         mbmemcasecoll.
47423         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
47424         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
47425         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
47426         pipe-filter-ii.
47427         (Misc): Add argp-version-etc, login_tty, parse-duration.
47429 2010-07-31  Bruno Haible  <bruno@clisp.org>
47431         Improve doc in MODULES.html.
47432         * modules/linkat (Description): Add the word "function".
47433         * modules/mkfifo (Description): Likewise.
47434         * modules/mknod (Description): Likewise.
47435         * modules/remove (Description): Likewise.
47436         * modules/renameat (Description): Likewise.
47437         * modules/stat (Description): Likewise.
47438         * modules/symlink (Description): Likewise.
47439         * modules/unlink (Description): Likewise.
47441 2010-07-31  Bruno Haible  <bruno@clisp.org>
47443         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
47444         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
47445         option --enable/disable-c++ instead of --enable/disable-cxx.
47446         * NEWS: Mention the change.
47448 2010-07-31  Bruno Haible  <bruno@clisp.org>
47450         readlink, areadlink: Relax test a bit.
47451         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
47452         alternative to ENOTDIR.
47453         * tests/test-areadlink.h (test_areadlink): Likewise.
47454         Reported by Rainer Tammer.
47456 2010-07-31  Bruno Haible  <bruno@clisp.org>
47458         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
47459         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
47460         character, perform the search using U_STRCHR.
47461         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
47462         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
47463         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
47464         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
47465         Suggested by Paolo Bonzini.
47467 2010-07-31  Bruno Haible  <bruno@clisp.org>
47469         unistr/u*-strstr: Fix dependencies.
47470         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
47471         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
47472         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
47474 2010-07-31  Bruno Haible  <bruno@clisp.org>
47476         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
47477         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
47478         the beginning of the loop.
47479         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
47480         cases in 'switch' statement.
47482         unistr/u8-strchr: Fix several bugs.
47483         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
47484         the string. When not found, return NULL, not a pointer near the end.
47486         More tests for unistr/u8-strchr.
47487         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
47488         that the function does not read past the first occurrence of the byte
47489         being searched.
47490         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
47491         * tests/unistr/test-u16-strchr.c (main): New function.
47492         * tests/unistr/test-u32-strchr.c (main): New function.
47494 2010-07-31  Bruno Haible  <bruno@clisp.org>
47496         posix-modules: Ignore backup files of documentation files.
47497         * posix-modules: grep only through files named *.texi.
47499 2010-07-31  Bruno Haible  <bruno@clisp.org>
47501         symlinkat: Fix documentation.
47502         * doc/posix-functions/readlinkat.texi: Fix module name.
47504 2010-07-31  Bruno Haible  <bruno@clisp.org>
47506         fchownat: Replace also when chown has the trailing slash bug.
47507         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
47508         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
47509         introduced on 2010-04-10.
47510         Reported by Rainer Tammer.
47512 2010-07-31  Bruno Haible  <bruno@clisp.org>
47514         linkat: Work around AIX 7.1 bug.
47515         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
47516         whether linkat handles trailing slash correctly. If not, replace linkat
47517         and define LINKAT_TRAILING_SLASH_BUG.
47518         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
47519         check whether (fd1,file1) points to a directory if file1 or file2 ends
47520         in a slash. Code taken from lib/link.c.
47521         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
47522         Reported by Rainer Tammer.
47524 2010-07-31  Bruno Haible  <bruno@clisp.org>
47526         Correctly determine whether pow is available in libc on AIX 7 with xlc.
47527         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
47528         This disables an xlc optimization that was causing wrong test results.
47529         Reported by Rainer Tammer.
47531 2010-07-31  Bruno Haible  <bruno@clisp.org>
47533         iconv: Work around AIX 6.1..7.1 bug.
47534         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
47535         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
47536         cross-compiling, guess no on all versions of AIX.
47537         Reported by Rainer Tammer.
47539 2010-07-31  Bruno Haible  <bruno@clisp.org>
47541         readlink: Relax test a bit.
47542         * tests/test-readlink.h (test_readlink): Allow different errno value
47543         when readlink is called with a file name that ends in / and refers to
47544         a file.
47545         Suggested by Eric Blake.
47546         Reported by Rainer Tammer.
47548 2010-07-31  Bruno Haible  <bruno@clisp.org>
47550         copysign: Does not require -lm on glibc systems.
47551         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
47552         gl_COMMON_DOUBLE_MATHFUNC.
47553         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
47555 2010-07-31  Bruno Haible  <bruno@clisp.org>
47557         duplocale: Work around AIX 7.1 bug.
47558         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
47559         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
47560         * lib/duplocale.c (rpl_duplocale): Update comment.
47561         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
47562         Reported by Rainer Tammer.
47564 2010-07-30  Bruno Haible  <bruno@clisp.org>
47566         dirfd: Avoid link error on AIX 7.1.
47567         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
47568         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
47569         exist, set REPLACE_DIRFD.
47570         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
47571         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
47572         * doc/posix-functions/dirfd.texi: Update.
47573         Reported by Rainer Tammer.
47575 2010-07-30  Eric Blake  <eblake@redhat.com>
47577         strtod: next round of AIX fixes
47578         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
47579         exponent.
47580         * tests/test-strtod.c (main): Enhance tests.
47581         * doc/posix-functions/strtod.texi (strtod): Document next bug.
47582         Reported by Rainer Tammer.
47584         futimens: fix configure check
47585         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
47586         Reported by Bruno Haible.
47588 2010-07-30  Bruno Haible  <bruno@clisp.org>
47590         getline: Update regarding AIX.
47591         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
47592         Reported by Rainer Tammer.
47594 2010-07-30  Bruno Haible  <bruno@clisp.org>
47596         wcwidth: Drop replacement on AIX 7.
47597         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
47598         AIX 7.
47599         Reported by Rainer Tammer.
47601 2010-07-30  Bruno Haible  <bruno@clisp.org>
47603         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
47604         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
47605         a 'char *'.
47606         Reported by Rainer Tammer.
47608 2010-07-30  Bruno Haible  <bruno@clisp.org>
47610         unlink: Update regarding AIX.
47611         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
47612         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
47613         Reported by Rainer Tammer.
47615 2010-07-30  Bruno Haible  <bruno@clisp.org>
47617         symlink: Update regarding AIX.
47618         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
47619         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
47620         Reported by Rainer Tammer.
47622 2010-07-30  Bruno Haible  <bruno@clisp.org>
47624         strndup: Update regarding AIX.
47625         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
47626         AIX 7.
47627         Reported by Rainer Tammer.
47629 2010-07-30  Bruno Haible  <bruno@clisp.org>
47631         stat: Update regarding AIX.
47632         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
47633         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
47634         Reported by Rainer Tammer.
47636 2010-07-30  Bruno Haible  <bruno@clisp.org>
47638         truncl: Fix autoconf test.
47639         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
47640         whether truncl works.
47641         Reported by Rainer Tammer.
47643 2010-07-30  Bruno Haible  <bruno@clisp.org>
47645         round: Update regarding AIX.
47646         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
47647         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
47648         Reported by Rainer Tammer.
47650 2010-07-30  Bruno Haible  <bruno@clisp.org>
47652         rename: Update regarding AIX.
47653         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
47654         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
47655         Reported by Rainer Tammer.
47657 2010-07-30  Bruno Haible  <bruno@clisp.org>
47659         printf.m4: Update regarding AIX.
47660         * m4/printf.m4: Update comments regarding AIX.
47661         Reported by Rainer Tammer.
47663 2010-07-30  Bruno Haible  <bruno@clisp.org>
47665         iconv: Update regarding AIX.
47666         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
47667         AIX 7.
47668         Reported by Rainer Tammer.
47670 2010-07-30  Bruno Haible  <bruno@clisp.org>
47672         getopt: Update regarding AIX.
47673         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
47674         no on AIX.
47675         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
47676         Reported by Rainer Tammer.
47678 2010-07-30  Bruno Haible  <bruno@clisp.org>
47680         ldexpl; Update regarding AIX.
47681         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
47682         on AIX 7.
47683         Reported by Rainer Tammer.
47685 2010-07-30  Bruno Haible  <bruno@clisp.org>
47687         frexpl: Update regarding AIX.
47688         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
47689         on AIX 7.
47690         Reported by Rainer Tammer.
47692 2010-07-30  Bruno Haible  <bruno@clisp.org>
47694         open, fopen: Update regarding AIX.
47695         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
47696         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
47697         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
47698         * doc/posix-functions/fopen.texi: Likewise.
47699         Reported by Rainer Tammer.
47701 2010-07-30  Bruno Haible  <bruno@clisp.org>
47703         chown: Update doc regarding AIX.
47704         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
47705         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
47706         Reported by Rainer Tammer.
47708 2010-07-30  Eric Blake  <eblake@redhat.com>
47710         strtod: fix bug in replacement function on AIX
47711         * lib/strtod.c (strtod): Special case broken "0x" parse in
47712         underlying strtod.
47713         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
47714         * doc/posix-functions/strtod.texi (strtod): Likewise.
47715         Reported by Rainer Tammer.
47717 2010-07-30  Bruno Haible  <bruno@clisp.org>
47719         mbrlen: Fix cross-compilation guess for AIX.
47720         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
47721         guess. Leftover from 2008-12-22.
47723 2010-07-30  Bruno Haible  <bruno@clisp.org>
47725         mbrtowc: Fix cross-compilation guess for AIX.
47726         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
47727         guess. Leftover from 2008-12-21.
47729 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
47731         init.sh: work around trap limitation of some shells
47732         * tests/init.sh (setup_): Move exit trap outside of shell function.
47734 2010-07-29  Eric Blake  <eblake@redhat.com>
47736         strtod: aid debugging
47737         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
47738         understanding why strtod is rejected.
47740 2010-07-28  Bruno Haible  <bruno@clisp.org>
47742         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
47743         * lib/unistr/u8-chr.c: Include <string.h>.
47744         * tests/unistr/test-u8-chr.c: Likewise.
47745         * tests/unistr/test-u16-chr.c: Likewise.
47746         * tests/unistr/test-u32-chr.c: Likewise.
47747         * tests/unistr/test-u8-strchr.c: Likewise.
47748         * tests/unistr/test-u16-strchr.c: Likewise.
47749         * tests/unistr/test-u32-strchr.c: Likewise.
47750         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
47751         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
47752         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
47753         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
47755 2010-07-28  Bruno Haible  <bruno@clisp.org>
47757         Use spaces for indentation, not tabs.
47758         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
47760 2010-07-27  Bruno Haible  <bruno@clisp.org>
47762         mbspcasecmp: Fix function specification.
47763         * lib/string.in.h (mbspcasecmp): Fix specification comment.
47764         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
47765         Reported by Eric Blake <eblake@redhat.com>.
47767 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
47769         timespec: use cast and not conditional, as truncation isn't possible
47770         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
47771         instead of a conditional.  Comment about the situation in more detail.
47772         This undoes most of the 2009-10-29 patch.
47774 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
47776         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
47777         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
47778         * lib/unistr/u8-strchr.c: Likewise.
47779         * modules/unistr/u8-chr: Depend on memchr.
47781         unistr/u*-strchr: add tests
47782         * modules/unistr/u8-strchr-tests: New file.
47783         * modules/unistr/u16-strchr-tests: New file.
47784         * modules/unistr/u32-strchr-tests: New file.
47785         * tests/unistr/test-strchr.h: New file.
47786         * tests/unistr/test-u8-strchr.c: New file.
47787         * tests/unistr/test-u16-strchr.c: New file.
47788         * tests/unistr/test-u32-strchr.c: New file.
47790         unistr/u*-chr: test multibyte sequences more
47791         * tests/unistr/test-chr.h: Do complete testing of the characters in the
47792         test vector.
47793         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
47794         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
47795         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
47797         unistr/u*-chr: test multibyte sequences
47798         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
47800         unistr/u*-chr: prepare for multibyte tests
47801         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
47802         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
47803         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
47804         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
47805         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
47806         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
47808 2010-07-18  Bruno Haible  <bruno@clisp.org>
47810         unistr/u8-strchr: Optimize non-ASCII argument case.
47811         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
47812         because the first byte often matches anyway.
47813         Reported by Pádraig Brady <P@draigbrady.com>.
47815 2010-07-15  Karl Berry  <karl@gnu.org>
47817         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
47819 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
47821         getcwd: on Solaris, work better if ancestors are inaccessible
47822         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
47823         buffer and size, try again with a large buffer.  This works better
47824         on Solaris, since its getcwd succeeds even if the path to the root
47825         is inaccessible, and this is helpful in common cases such as .zfs
47826         hidden directories.  Problem reported by J Chapman Flack in
47827         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
47828         Use system getcwd if it's declared, not merely if it's partly
47829         working; use the partly-working test only to avoid needless effort
47830         if the system getcwd fails.
47831         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
47832         comment that was already obsolete and is now even more obsolete.
47833         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
47834         now might call strdup.
47836 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
47838         pthread: Add enough so that coreutils/src/sort.c compiles.
47839         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
47840         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
47841         gnulib. Include <sched.h> and <time.h>, as per POSIX.
47842         Include <sys/types.h>, in case it defines pthread_t.
47843         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
47844         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
47845         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
47846         (pthread_rwlockattr_t, pthread_spinlock_t):
47847         New typedefs, if HAVE_PTHREAD_T is not defined.
47848         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
47849         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
47850         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
47851         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
47852         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
47853         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
47854         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
47855         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
47856         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
47857         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
47858         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
47859         New macros.
47860         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
47861         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
47862         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
47863         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
47864         (pthread_spin_unlock): New dummy functions.
47865         (pthread_create): Return EAGAIN; don't set errno.
47866         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
47867         require AC_C_INLINE.
47868         * modules/pthread (Depends-on): Add sched, time.
47869         (pthread.h): Use AM_V_GEN.
47871 2010-07-13  Bruno Haible  <bruno@clisp.org>
47873         striconveh: Don't malloc memory if the result buffer is sufficient.
47874         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
47875         buffer if its size is sufficient.
47876         Reported by Ludovic Courtès <ludo@gnu.org>.
47878 2010-07-13  Bruno Haible  <bruno@clisp.org>
47880         strtod: Add safety check.
47881         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
47883 2010-07-12  Bruno Haible  <bruno@clisp.org>
47885         Unify tests that set gl_cv_func_ldexpl_no_libm.
47886         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
47887         gl_FUNC_LDEXPL.
47888         (gl_FUNC_LDEXPL): Invoke it.
47889         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
47891 2010-07-12  Bruno Haible  <bruno@clisp.org>
47893         Unify tests that set gl_cv_func_ldexp_no_libm.
47894         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
47895         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
47896         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
47897         (configure.ac): Simply invoke gl_FUNC_LDEXP.
47898         * modules/strtod (Files): Add m4/ldexp.m4.
47900 2010-07-12  Bruno Haible  <bruno@clisp.org>
47902         Unify tests that set gl_cv_func_frexpl_no_libm.
47903         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
47904         gl_FUNC_FREXPL_NO_LIBM.
47905         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
47906         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
47908 2010-07-12  Bruno Haible  <bruno@clisp.org>
47910         Unify tests that set gl_cv_func_frexp_no_libm.
47911         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
47912         gl_FUNC_FREXP_NO_LIBM.
47913         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
47914         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
47916 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
47918         memcoll: clarify sizes versus lengths, document better, and tweak perf
47919         * lib/memcoll.c (strcoll_loop, memcoll0):
47920         Improve quality of descriptive comments.  Name variables
47921         consistently as to whether they are lengths (which do not include
47922         terminating null) versus sizes (which do).
47923         * lib/xmemcoll.c (xmemcoll0): Likewise.
47924         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
47925         returned when s1size == 0; this is easier to compile and saves
47926         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
47928 2010-07-12  Bruno Haible  <bruno@clisp.org>
47930         Tests for module '_Exit'.
47931         * modules/_Exit-tests: New file.
47932         * tests/test-_Exit.sh: New file.
47933         * tests/test-_Exit.c: New file.
47935         New module '_Exit'.
47936         * lib/stdlib.in.h (__attribute__): New macro.
47937         (_Exit): New declaration.
47938         * lib/_Exit.c: New file.
47939         * m4/_Exit.m4: New file.
47940         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
47941         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
47942         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
47943         * modules/_Exit: New file.
47944         * tests/test-stdlib-c++.cc (_Exit): Check signature.
47945         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
47947 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
47949         strtod: make it more-accurate typically, and don't require libm
47950         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
47951         Include limits.h.  Don't include string.h.
47952         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
47953         (locale_isspace): New function, so that no casts are needed to
47954         check whether *s is a space.
47955         (ldexp): Provide an unused dummy if not available.
47956         (scale_radix_exp, parse_number, underlying_strtod): New functions.
47957         (strtod): Use them.  This implementation prefers to use the
47958         underlying strtod if available, falling back on our own code
47959         only to fix known bugs.  This is more likely to produce an
47960         accurate result.  Also, it avoids the use of libm functions.
47961         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
47962         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
47963         was absent, but it caused a test failure with coreutils.
47964         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
47965         with libm.
47966         * modules/strtod (Makefile.am, Link): libm is no longer needed.
47967         * modules/strtod-tests (Makefile.am): Likewise.
47969 2010-07-11  Pádraig Brady  <P@draigBrady.com>
47970             Bruno Haible  <bruno@clisp.org>
47972         unistr/u8-strchr: Optimize ASCII argument case.
47973         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
47975 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
47977         (x)memcoll: minor tweaks
47978         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
47979         is after the type that it qualifies.
47980         (memcoll0): Likewise.
47981         * lib/memcoll.h (memcoll0): Likewise.
47982         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
47983         * lib/xmemcoll.h (xmemcoll0): Likewise.
47984         * lib/memcoll.c (memcoll0): Correct the comment.  This function
47985         differs from memcoll in that the NUL byte is part of the argument.
47986         Omit the abort-checks, as performance is a real issue here.  Plus,
47987         the checks were wrong anyway (an off-by-one error).  Omit local
47988         variable 'diff', as it's a bit clearer that way.
47989         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
47990         no longer needed.
47992 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
47994         (x)memcoll: speedup when input is known to be NUL delimited
47995         * lib/memcoll.c: Include stdlib.
47996         (memcoll0): New function.
47997         (strcoll_loop): New function, refactored for use in both memcoll
47998         and memcoll0.
47999         * lib/memcoll.h (memcoll0): Add prototype.
48000         * lib/xmemcoll.c (xmemcoll0): New function.
48001         (collate_error): New function, refactored for use in both xmemcoll
48002         and xmemcoll0.
48003         * lib/xmemcoll.h (xmemcoll0): Add prototype.
48004         * m4/memcoll.m4: add inline invocation.
48006 2010-07-06  Pádraig Brady  <P@draigBrady.com>
48008         * build-aux/bootstrap: Remove any local translations
48009         from the translation project synchronization directory,
48010         so that local only translations are not distributed.
48012 2010-07-04  Bruno Haible  <bruno@clisp.org>
48014         fsusage: Clarify which code applies to which platforms.
48015         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
48016         platform.
48017         * lib/fsusage.c (get_fs_usage): Likewise.
48019 2010-07-04  Bruno Haible  <bruno@clisp.org>
48021         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
48022         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
48023         Reported by Martin Lambers <marlam@marlam.de>.
48025 2010-07-04  Jim Meyering  <meyering@redhat.com>
48027         hash: once again explicitly disallow insertion of NULL
48028         * lib/hash.c (hash_insert0): Reinstate just-removed test:
48029         inserting a NULL pointer cannot work with these functions.
48030         Add a comment with details.
48031         This reverts part of the 2010-07-01 commit, 5bef1a35
48032         "hash: extend module to deal with non-pointer keys".
48034 2010-07-01  Bruno Haible  <bruno@clisp.org>
48036         stdbool: Update doc.
48037         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
48038         Info from Christian Weisgerber <naddy@mips.inka.de>.
48040 2010-07-01  Jim Meyering  <meyering@redhat.com>
48042         hash: extend module to deal with non-pointer keys
48043         * lib/hash.c (hash_insert0): New interface, much like hash_insert
48044         but that allows insertion of non-pointer entries.
48045         Do not disallow an ENTRY value of NULL.
48046         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
48047         * lib/hash.h (hash_insert0): Declare.
48049 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
48051         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
48052         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
48053         not present (i.e. with autoconf 2.59 and when using gettextize, not
48054         gnulib), require AC_GNU_SOURCE instead.
48056 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
48058         idpriv-drop: Fix tests.
48059         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
48060         not to the test-idpriv-droptemp program.
48062 2010-06-29  Bruno Haible  <bruno@clisp.org>
48064         string: Fix syntax error with g++ 2.96.
48065         * lib/string.in.h (__pure__): Remove definition.
48066         (_GL_ATTRIBUTE_PURE): New macro.
48067         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
48068         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
48069         Reported by Christian Weisgerber <naddy@mips.inka.de>.
48071 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
48073         unitypes: Fix bug introduced on 2010-05-18.
48074         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
48076 2010-06-22  Eric Blake  <eblake@redhat.com>
48078         memmem: slight optimization
48079         * lib/str-two-way.h (critical_factorization): Update comments.
48080         Reduce work during factorization phase.
48081         Reported by Carlos Bueno <carlos@bueno.org>.
48083 2010-06-21  Bruno Haible  <bruno@clisp.org>
48085         Fix HAVE_CALLOC_POSIX misnomer.
48086         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
48087         !HAVE_CALLOC_POSIX.
48088         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
48089         HAVE_CALLOC_POSIX.
48090         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
48091         instead of HAVE_CALLOC_POSIX.
48092         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
48093         HAVE_CALLOC_POSIX.
48095         Use modern idiom for calloc() replacement.
48096         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
48097         AC_FUNC_CALLOC.
48098         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
48099         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
48100         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
48101         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
48102         (gl_REPLACE_CALLOC): New macro.
48104 2010-06-21  Bruno Haible  <bruno@clisp.org>
48106         Fix HAVE_REALLOC_POSIX misnomer.
48107         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
48108         !HAVE_REALLOC_POSIX.
48109         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
48110         HAVE_REALLOC_POSIX.
48111         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
48112         instead of HAVE_REALLOC_POSIX.
48113         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
48114         HAVE_REALLOC_POSIX.
48116         Use modern idiom for realloc() replacement.
48117         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
48118         AC_FUNC_REALLOC.
48119         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
48120         Autoconf's AC_FUNC_REALLOC.
48121         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
48122         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
48123         (gl_REPLACE_REALLOC): New macro.
48124         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
48126 2010-06-21  Bruno Haible  <bruno@clisp.org>
48128         Fix HAVE_MALLOC_POSIX misnomer.
48129         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
48130         !HAVE_MALLOC_POSIX.
48131         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
48132         HAVE_MALLOC_POSIX.
48133         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
48134         instead of HAVE_MALLOC_POSIX.
48135         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
48136         HAVE_MALLOC_POSIX.
48138         Use modern idiom for malloc() replacement.
48139         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
48140         AC_FUNC_MALLOC.
48141         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
48142         Autoconf's AC_FUNC_MALLOC.
48143         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
48144         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
48145         (gl_REPLACE_MALLOC): New macro.
48146         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
48148 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
48150         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
48151         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
48152         This macro takes 3 arguments, not 4.
48154 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
48156         ipv6: fix detection under mingw
48157         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
48158         in6_addr.
48160 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
48162         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
48163         that strtod() works when cross-compiling to a glibc version known
48164         to work.
48166 2010-06-15  Bruno Haible  <bruno@clisp.org>
48168         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
48170 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
48172         select: Correct timeout.
48173         * lib/select.c (rpl_select): Compute wait_timeout correctly.
48175 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
48177         git-version-gen: init shell var to avoid env var influence
48178         * build-aux/git-version-gen (v): Init shell var to empty.
48180 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
48182         priv-set: Don't assume that priv.h exists merely because getppriv does.
48183         See Jan Andersen's bug report about AIX 5L in
48184         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
48185         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
48186         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
48187         * lib/priv-set.h: Likewise.
48188         * tests/test-priv-set.c: Likewise.
48190 2010-06-13  Bruno Haible  <bruno@clisp.org>
48192         relocatable: Make it easier to test whether to install wrappers.
48193         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
48194         RELOCATABLE_VIA_WRAPPER.
48196 2010-06-13  Bruno Haible  <bruno@clisp.org>
48198         gnulib-tool: Display specified modules and dependencies differently.
48199         * gnulib-tool (func_show_module_list): New function.
48200         (func_import, func_create_testdir): Invoke it.
48201         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48203 2010-06-13  Bruno Haible  <bruno@clisp.org>
48205         gnulib-tool: Align code of func_import and func_create_testdir.
48206         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
48207         specified_modules.
48209 2010-06-12  Jim Meyering  <meyering@redhat.com>
48211         test-inttostr: avoid spurious failure on Solaris 9
48212         * tests/test-inttostr.c (main): Skip the test when snprintf fails
48213         to accept "%ju".  Reported by Bruno Haible.
48215 2010-06-11  Jim Meyering  <meyering@redhat.com>
48217         test-sys_socket: mark variables as used more readably
48218         * tests/test-sys_socket.c (main): Mark otherwise unused variables
48219         as "used" explicitly via (void) statement casts.  This is more
48220         readable than using them in an artificial return expression.
48221         Suggestion from Bruno Haible.
48223 2010-06-11  Bruno Haible  <bruno@clisp.org>
48225         Avoid some more warnings from "gcc -Wwrite-strings".
48226         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
48227         to 'const char *'.
48228         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
48229         * tests/test-c-strcasestr.c (main): Likewise.
48230         * tests/test-mbscasestr1.c (main): Likewise.
48231         * tests/test-mbscasestr2.c (main): Likewise.
48232         * tests/test-memmem.c (main): Likewise.
48233         * tests/test-strstr.c (main): Likewise.
48234         * tests/test-strcasestr.c (main): Likewise.
48236 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48238         init.sh: change framework_failure_ to fail with status 99, not 1
48239         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
48240         automake's parallel-tests rule that this is an unexpected failure,
48241         even if the test is listed in XFAIL_TESTS.
48243 2010-06-11  Jim Meyering  <meyering@redhat.com>
48245         test-inttostr: avoid warnings about 4-6KB literal strings
48246         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
48247         Include "macros.h", for its definition of ASSERT.
48248         (CK): s/assert/ASSERT/
48249         * modules/inttostr-tests (Files): Add macros.h.
48251         init.sh: don't use $ME_ or skip_ before they are defined
48252         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
48253         their first uses.  Also hoist their companions: warn_, fail_,
48254         framework_failure_, $stderr_fileno.  Prompted by a patch from
48255         Stefano Lattarini.
48257         test-sys_socket: avoid set-but-not-used warnings from gcc
48258         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
48259         avoid warning about set-but-not-used variables.
48261         test-xvasprintf: avoid 'const' discard warnings
48262         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
48263         "const" when assigning from literal strings.
48264         (test_xasprintf): Add "void" in function argument list to placate
48265         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
48267         tests: avoid compilation warnings in argmatch and exclude tests...
48268         in packages that define ARGMATCH_DIE_DECL, like coreutils.
48269         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
48270         Since it always exits, declare with the "noreturn" attribute.
48271         * tests/test-argmatch.c: Likewise.
48273         tests: avoid 'const' discard warnings in mbsstr tests
48274         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
48275         * tests/test-mbsstr2.c (main): Likewise.
48277         test-verify: avoid warning from gcc's -Wmissing-declarations
48278         * tests/test-verify.c (function): Declare to be static.
48280         test-inttostr.c: include <string.h> for use of strcmp
48281         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
48283         test-linkat: avoid failed assertion on "other" architectures
48284         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
48285         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
48286         sparc: https://bugs.launchpad.net/bugs/591968
48288 2010-06-11  Jim Meyering  <meyering@redhat.com>
48290         printf.m4: avoid autoconf's "Expanded Before Required" warning
48291         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
48292         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
48293         autoconf warning.
48295 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
48297         Replacement header templates are now named with ".in", not "_".
48298         * doc/gnulib-intro.texi: Correct.
48300 2010-06-10  Jim Meyering  <meyering@redhat.com>
48302         inttostr-tests: depend on snprintf, not snprintf-posix
48303         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
48304         snprintf-posix, to avoid this aclocal failure:
48305           missing file gnulib-tests/vasnprintf.c
48306           configure.ac:45: error: expected source file, required through \
48307           AC_LIBSOURCES, not found
48309 2010-06-10  Jim Meyering  <meyering@redhat.com>
48311         inttostr: add a new function, inttostr, and tests
48312         The namesake function was not available.  The existence of the
48313         template file, inttostr.c makes its addition nontrivial.
48314         * lib/anytostr.c: Rename from inttostr.c.
48315         (anytostr): Rename from inttostr.
48316         * lib/inttostr.c: New file.
48317         * modules/inttostr (Files): Add anytostr.c.
48318         (Makefile.am): Set lib_SOURCES instead of ...
48319         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
48320         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
48321         * lib/offtostr.c: Likewise.
48322         * lib/uinttostr.c: Likewise.
48323         * lib/umaxtostr.c: Likewise.
48324         * modules/inttostr-tests: New file.
48325         * tests/test-inttostr.c: New file.  Test these functions.
48327 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
48328             Bruno Haible  <bruno@clisp.org>
48330         Add "Extending Gnulib" chapter to manual.
48331         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
48332         chapter.
48333         (Extending Gnulib): New chapter.
48334         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
48335         chapter.
48337 2010-06-09  Bruno Haible  <bruno@clisp.org>
48339         Avoid relocwrapper link errors due to gnulib replacement functions.
48340         * lib/areadlink.c: Use the system's malloc, realloc functions.
48341         (areadlink): Set errno to ENOMEM explicitly.
48342         * modules/areadlink (Depends-on): Remove malloc-posix.
48343         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48345 2010-06-09  Bruno Haible  <bruno@clisp.org>
48347         Avoid relocwrapper link errors due to gnulib replacement functions.
48348         * lib/canonicalize-lgpl.c: Use the system's malloc function.
48349         * lib/malloca.c: Likewise.
48350         * lib/relocatable.c: Likewise.
48351         * lib/progreloc.c: Use the system's malloc, sprintf functions.
48352         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
48353         * lib/setenv.c: Use the system's malloc, realloc functions.
48354         * lib/strerror.c: Use the system's sprintf function.
48355         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48357 2010-06-04  Bruno Haible  <bruno@clisp.org>
48359         Prefer documented low-level autoconf macro names.
48360         * m4/lib-link.m4: Use m4_translit instead of translit.
48361         * m4/environ.m4: Likewise.
48362         * m4/mathfunc.m4: Likewise.
48363         * m4/onceonly.m4: Likewise.
48364         * m4/stdint.m4: Likewise.
48365         Suggested by Eric Blake.
48367 2010-06-04  Martin Lambers  <marlam@marlam.de>
48368             Bruno Haible  <bruno@clisp.org>
48370         havelib: Allow library names with '+' characters.
48371         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
48372         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
48374 2010-06-09  Bruno Haible  <bruno@clisp.org>
48376         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
48377         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
48378         realloc failed.
48380 2010-06-08  Peter Simons  <simons@cryp.to>
48382         maint.mk: make the news-check rule more configurable
48383         * top/maint.mk (news-check-lines-spec): New variable.
48384         (news-check): Use "sed -n 1,10p" in place of "head".
48386 2010-06-07  Jim Meyering  <meyering@redhat.com>
48388         do-release-commit-and-tag: fix typo in --help
48389         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
48391         regex: avoid new dead-code warning with gcc-4.6.0
48392         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
48393         if-block containing a while-loop.  It's been unused for at least
48394         5 years.
48396 2010-06-05  Bruno Haible  <bruno@clisp.org>
48398         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
48399         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
48401 2010-06-04  Bruno Haible  <bruno@clisp.org>
48403         Update to GNU gettext 0.18.1.
48404         * modules/gettext (configure.ac): Require gettext infrastructure from
48405         version 0.18.1.
48407 2010-06-03  Bruno Haible  <bruno@clisp.org>
48409         Don't use AC_LIBOBJ with file names in subdirectories.
48410         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
48411         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
48412         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
48413         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
48414         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
48415         gl_LIBUNISTRING_LIBSOURCE.
48416         (Makefile.am): Augment lib_SOURCES here, conditionally.
48417         * NEWS: Drop requirement for Automake option 'subdir-objects'.
48419 2010-06-03  Bruno Haible  <bruno@clisp.org>
48421         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
48422         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
48423         expansion does not end with a newline.
48424         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
48425         unnecessary newline.
48427 2010-06-03  Bruno Haible  <bruno@clisp.org>
48429         Reduce dependencies.
48430         * tests/test-quotearg.h: New file, extracted from
48431         tests/test-quotearg.c.
48432         * tests/test-quotearg-simple.c: New file, extracted from
48433         tests/test-quotearg.c.
48434         * tests/test-quotearg.c: Don't include <ctype.h>.
48435         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
48436         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
48437         use_quote_double_quotes, use_quotearg_colon): Moved to
48438         tests/test-quotearg.h.
48439         (results_g, flag_results, custom_quotes, custom_results): Moved
48440         to tests/test-quotearg-simple.c.
48441         (main): Moved the part that does not depend on gettext to
48442         tests/test-quotearg-simple.c. Return 77 if the test cannot be
48443         performed.
48444         * modules/quotearg-simple: New file.
48445         * modules/quotearg-simple-tests: New file.
48446         * modules/quotearg (Depends-on): Add quotearg-simple.
48447         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
48448         (Files): Add tests/test-quotearg.h.
48449         Reported by Paolo Bonzini.
48451 2010-06-03  Bruno Haible  <bruno@clisp.org>
48453         Reduce dependencies.
48454         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
48456 2010-06-03  Bruno Haible  <bruno@clisp.org>
48458         time: Undefine more broken macros.
48459         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
48460         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
48461         Reported by Eric Blake.
48463 2010-06-03  Bruno Haible  <bruno@clisp.org>
48465         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
48466         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
48467         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
48468         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
48469         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
48470         Reported by Ludovic Courtès <ludo@gnu.org>.
48472 2010-06-02  Eric Blake  <eblake@redhat.com>
48474         time: work with mingw + pthreads-win32 library
48475         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
48476         if timespec is defined only in pthread.h.
48477         * modules/time (Makefile.am): Substitute it.
48478         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
48479         <pthread.h>, when needed.
48480         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
48481         from the library.
48483 2010-05-31  Bruno Haible  <bruno@clisp.org>
48485         Avoid expanding two macros in the wrong order.
48486         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
48487         gl_LIBUNISTRING if it is defined.
48488         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
48489         autoconf >= 2.64.
48490         Reported by Ludovic Courtès <ludo@gnu.org>.
48492 2010-05-27  Jim Meyering  <meyering@redhat.com>
48494         maint.mk: also prohibit "#undef" of always-defined symbols
48495         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
48496         Allow more than one space before the symbol name.
48497         (sc_prohibit_always-defined_macros): Use grep's -E, now that
48498         the regexp uses alternation.
48500 2010-05-26  Eric Blake  <eblake@redhat.com>
48502         maint.mk: avoid echo -e
48503         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
48504         Convert all uses of echo -* to printf.
48505         Reported by Matthias Bolte.
48507 2010-05-25  Bruno Haible  <bruno@clisp.org>
48509         Update to GNU gettext 0.18, part 2.
48510         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
48511         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
48513 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48515         Add missing include in test-pwrite.c.
48516         * tests/test-pwrite.c: Include string.h, for strcmp.
48518 2010-05-24  Bruno Haible  <bruno@clisp.org>
48520         * NEWS: Mention requirement for Automake option 'subdir-objects'.
48522 2010-05-24  Bruno Haible  <bruno@clisp.org>
48524         Don't use conversion with transliteration in u{8,16,32}_strcoll.
48525         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
48526         iconveh_error argument.
48527         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
48528         U_STRCONV_TO_LOCALE.
48529         * lib/unistr/u16-strcoll.c: Likewise.
48530         * lib/unistr/u32-strcoll.c: Likewise.
48531         * modules/unistr/u8-strcoll (Depends-on): Add
48532         uniconv/u8-strconv-to-enc, localcharset. Remove
48533         uniconv/u8-strconv-to-locale.
48534         (configure.ac): Bump version number.
48535         * modules/unistr/u16-strcoll (Depends-on): Add
48536         uniconv/u16-strconv-to-enc, localcharset. Remove
48537         uniconv/u16-strconv-to-locale.
48538         (configure.ac): Bump version number.
48539         * modules/unistr/u32-strcoll (Depends-on): Add
48540         uniconv/u32-strconv-to-enc, localcharset. Remove
48541         uniconv/u32-strconv-to-locale.
48542         (configure.ac): Bump version number.
48544 2010-05-24  Bruno Haible  <bruno@clisp.org>
48546         Avoid a test failure on NetBSD 5.0.
48547         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
48548         an iconv() bug.
48550 2010-05-24  Bruno Haible  <bruno@clisp.org>
48552         Adjust #include directive style.
48553         * modules/regex (Includes): Recommend to write <regex.h>.
48555 2010-05-24  Bruno Haible  <bruno@clisp.org>
48557         regex: Don't require alloca.
48558         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
48559         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
48560         only inside if (0).
48562 2010-05-23  Jim Meyering  <meyering@redhat.com>
48564         test-renameat.c: include <sys/stat.h>
48565         * tests/test-renameat.c: Include <sys/stat.h>; required for
48566         definition of S_IS* macros.
48568 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
48570         Update maintainer documentation for 'relocatable-prog' module.
48571         * doc/relocatable-maint.texi: Update.
48572         Comments by Bruno Haible.
48574 2010-05-23  Bruno Haible  <bruno@clisp.org>
48576         git-merge-changelog: Enable --split-merged-entry by default.
48577         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
48578         (usage): Don't mention this option any more.
48579         Reported by Ralf Wildenhues.
48581 2010-05-23  Jim Meyering  <meyering@redhat.com>
48583         test-pwrite: do not leave behind a test file named "out"
48584         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
48585         The trivial-looking use of init.sh is really necessary.
48586         It ensures that the temporary file, "out", is created in
48587         a temporary directory, and removed upon termination.
48588         * tests/test-pwrite.sh: Re-add file.
48589         * modules/pwrite-tests: Reference it.
48591 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48593         Fix output redirection buglet in init.sh.
48594         * tests/init.sh: Fix redirection of stderr.
48596 2010-05-20  Simon Josefsson  <simon@josefsson.org>
48598         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
48600 2010-05-17  Simon Josefsson  <simon@josefsson.org>
48602         * modules/valgrind-tests: New file.
48603         * m4/valgrind-tests.m4: New file.
48604         * doc/valgrind-tests.texi: New file.
48605         * doc/gnulib.texi (Running self-tests under valgrind): New
48606         section.
48608 2010-05-19  Bruno Haible  <bruno@clisp.org>
48610         Clean up dead code in recent commit.
48611         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
48612         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
48613         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
48614         Suggested by Paolo Bonzini.
48616 2010-05-19  Bruno Haible  <bruno@clisp.org>
48618         Avoid valgrind error reports from libunistring.
48619         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
48620         * modules/libunistring (Files): Add it.
48621         * modules/libunistring-optional (Files): Likewise.
48623 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
48624             Bruno Haible  <bruno@clisp.org>
48626         New module 'libunistring-optional'.
48627         * modules/libunistring-optional: New file.
48628         * m4/libunistring-base.m4: New file.
48629         * m4/libunistring-optional.m4: New file.
48630         * lib/unicase.in.h: Renamed from lib/unicase.h.
48631         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
48632         * lib/unictype.in.h: Renamed from lib/unictype.h.
48633         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
48634         * lib/uniname.in.h: Renamed from lib/uniname.h.
48635         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
48636         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
48637         * lib/unistr.in.h: Renamed from lib/unistr.h.
48638         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
48639         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
48640         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
48641         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
48642         gl_LIBUNISTRING. If the library was found, determine the installed
48643         version and set LIBUNISTRING_VERSION.
48644         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
48645         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
48646         handle a configuration option --with-included-libunistring.
48647         * modules/libunistring (Files): Add m4/absolute-header.m4.
48648         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
48649         Add m4/libunistring-base.m4.
48650         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
48651         (Makefile.am): Build unicase.h from unicase.in.h.
48652         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
48653         Add m4/libunistring-base.m4.
48654         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
48655         (Makefile.am): Build uniconv.h from uniconv.in.h.
48656         * modules/unictype/base (Files): Use unictype.in.h instead of
48657         unictype.h. Add m4/libunistring-base.m4.
48658         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
48659         (Makefile.am): Build unictype.h from unictype.in.h.
48660         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
48661         Add m4/libunistring-base.m4.
48662         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
48663         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
48664         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
48665         Add m4/libunistring-base.m4.
48666         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
48667         (Makefile.am): Build uniname.h from uniname.in.h.
48668         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
48669         Add m4/libunistring-base.m4.
48670         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
48671         (Makefile.am): Build uninorm.h from uninorm.in.h.
48672         * modules/unistdio/base (Files): Use unistdio.in.h instead of
48673         unistdio.h. Add m4/libunistring-base.m4.
48674         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
48675         (Makefile.am): Build unistdio.h from unistdio.in.h.
48676         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
48677         Add m4/libunistring-base.m4.
48678         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
48679         (Makefile.am): Build unistr.h from unistr.in.h.
48680         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
48681         Add m4/libunistring-base.m4.
48682         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
48683         (Makefile.am): Build unitypes.h from unitypes.in.h.
48684         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
48685         Add m4/libunistring-base.m4.
48686         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
48687         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
48688         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
48689         uniwidth.h. Add m4/libunistring-base.m4.
48690         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
48691         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
48692         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
48693         instead of augmenting lib_SOURCES.
48694         * modules/unicase/empty-suffix-context: Likewise.
48695         * modules/unicase/locale-language: Likewise.
48696         * modules/unicase/tolower: Likewise.
48697         * modules/unicase/totitle: Likewise.
48698         * modules/unicase/toupper: Likewise.
48699         * modules/unicase/u8-casecmp: Likewise.
48700         * modules/unicase/u8-casecoll: Likewise.
48701         * modules/unicase/u8-casefold: Likewise.
48702         * modules/unicase/u8-casexfrm: Likewise.
48703         * modules/unicase/u8-ct-casefold: Likewise.
48704         * modules/unicase/u8-ct-tolower: Likewise.
48705         * modules/unicase/u8-ct-totitle: Likewise.
48706         * modules/unicase/u8-ct-toupper: Likewise.
48707         * modules/unicase/u8-is-cased: Likewise.
48708         * modules/unicase/u8-is-casefolded: Likewise.
48709         * modules/unicase/u8-is-lowercase: Likewise.
48710         * modules/unicase/u8-is-titlecase: Likewise.
48711         * modules/unicase/u8-is-uppercase: Likewise.
48712         * modules/unicase/u8-prefix-context: Likewise.
48713         * modules/unicase/u8-suffix-context: Likewise.
48714         * modules/unicase/u8-tolower: Likewise.
48715         * modules/unicase/u8-totitle: Likewise.
48716         * modules/unicase/u8-toupper: Likewise.
48717         * modules/unicase/u16-casecmp: Likewise.
48718         * modules/unicase/u16-casecoll: Likewise.
48719         * modules/unicase/u16-casefold: Likewise.
48720         * modules/unicase/u16-casexfrm: Likewise.
48721         * modules/unicase/u16-ct-casefold: Likewise.
48722         * modules/unicase/u16-ct-tolower: Likewise.
48723         * modules/unicase/u16-ct-totitle: Likewise.
48724         * modules/unicase/u16-ct-toupper: Likewise.
48725         * modules/unicase/u16-is-cased: Likewise.
48726         * modules/unicase/u16-is-casefolded: Likewise.
48727         * modules/unicase/u16-is-lowercase: Likewise.
48728         * modules/unicase/u16-is-titlecase: Likewise.
48729         * modules/unicase/u16-is-uppercase: Likewise.
48730         * modules/unicase/u16-prefix-context: Likewise.
48731         * modules/unicase/u16-suffix-context: Likewise.
48732         * modules/unicase/u16-tolower: Likewise.
48733         * modules/unicase/u16-totitle: Likewise.
48734         * modules/unicase/u16-toupper: Likewise.
48735         * modules/unicase/u32-casecmp: Likewise.
48736         * modules/unicase/u32-casecoll: Likewise.
48737         * modules/unicase/u32-casefold: Likewise.
48738         * modules/unicase/u32-casexfrm: Likewise.
48739         * modules/unicase/u32-ct-casefold: Likewise.
48740         * modules/unicase/u32-ct-tolower: Likewise.
48741         * modules/unicase/u32-ct-totitle: Likewise.
48742         * modules/unicase/u32-ct-toupper: Likewise.
48743         * modules/unicase/u32-is-cased: Likewise.
48744         * modules/unicase/u32-is-casefolded: Likewise.
48745         * modules/unicase/u32-is-lowercase: Likewise.
48746         * modules/unicase/u32-is-titlecase: Likewise.
48747         * modules/unicase/u32-is-uppercase: Likewise.
48748         * modules/unicase/u32-prefix-context: Likewise.
48749         * modules/unicase/u32-suffix-context: Likewise.
48750         * modules/unicase/u32-tolower: Likewise.
48751         * modules/unicase/u32-totitle: Likewise.
48752         * modules/unicase/u32-toupper: Likewise.
48753         * modules/unicase/ulc-casecmp: Likewise.
48754         * modules/unicase/ulc-casecoll: Likewise.
48755         * modules/unicase/ulc-casexfrm: Likewise.
48756         * modules/uniconv/u8-conv-from-enc: Likewise.
48757         * modules/uniconv/u8-conv-to-enc: Likewise.
48758         * modules/uniconv/u8-strconv-from-enc: Likewise.
48759         * modules/uniconv/u8-strconv-from-locale: Likewise.
48760         * modules/uniconv/u8-strconv-to-enc: Likewise.
48761         * modules/uniconv/u8-strconv-to-locale: Likewise.
48762         * modules/uniconv/u16-conv-from-enc: Likewise.
48763         * modules/uniconv/u16-conv-to-enc: Likewise.
48764         * modules/uniconv/u16-strconv-from-enc: Likewise.
48765         * modules/uniconv/u16-strconv-from-locale: Likewise.
48766         * modules/uniconv/u16-strconv-to-enc: Likewise.
48767         * modules/uniconv/u16-strconv-to-locale: Likewise.
48768         * modules/uniconv/u32-conv-from-enc: Likewise.
48769         * modules/uniconv/u32-conv-to-enc: Likewise.
48770         * modules/uniconv/u32-strconv-from-enc: Likewise.
48771         * modules/uniconv/u32-strconv-from-locale: Likewise.
48772         * modules/uniconv/u32-strconv-to-enc: Likewise.
48773         * modules/uniconv/u32-strconv-to-locale: Likewise.
48774         * modules/unictype/bidicategory-byname: Likewise.
48775         * modules/unictype/bidicategory-name: Likewise.
48776         * modules/unictype/bidicategory-of: Likewise.
48777         * modules/unictype/bidicategory-test: Likewise.
48778         * modules/unictype/block-list: Likewise.
48779         * modules/unictype/block-test: Likewise.
48780         * modules/unictype/category-C: Likewise.
48781         * modules/unictype/category-Cc: Likewise.
48782         * modules/unictype/category-Cf: Likewise.
48783         * modules/unictype/category-Cn: Likewise.
48784         * modules/unictype/category-Co: Likewise.
48785         * modules/unictype/category-Cs: Likewise.
48786         * modules/unictype/category-L: Likewise.
48787         * modules/unictype/category-Ll: Likewise.
48788         * modules/unictype/category-Lm: Likewise.
48789         * modules/unictype/category-Lo: Likewise.
48790         * modules/unictype/category-Lt: Likewise.
48791         * modules/unictype/category-Lu: Likewise.
48792         * modules/unictype/category-M: Likewise.
48793         * modules/unictype/category-Mc: Likewise.
48794         * modules/unictype/category-Me: Likewise.
48795         * modules/unictype/category-Mn: Likewise.
48796         * modules/unictype/category-N: Likewise.
48797         * modules/unictype/category-Nd: Likewise.
48798         * modules/unictype/category-Nl: Likewise.
48799         * modules/unictype/category-No: Likewise.
48800         * modules/unictype/category-P: Likewise.
48801         * modules/unictype/category-Pc: Likewise.
48802         * modules/unictype/category-Pd: Likewise.
48803         * modules/unictype/category-Pe: Likewise.
48804         * modules/unictype/category-Pf: Likewise.
48805         * modules/unictype/category-Pi: Likewise.
48806         * modules/unictype/category-Po: Likewise.
48807         * modules/unictype/category-Ps: Likewise.
48808         * modules/unictype/category-S: Likewise.
48809         * modules/unictype/category-Sc: Likewise.
48810         * modules/unictype/category-Sk: Likewise.
48811         * modules/unictype/category-Sm: Likewise.
48812         * modules/unictype/category-So: Likewise.
48813         * modules/unictype/category-Z: Likewise.
48814         * modules/unictype/category-Zl: Likewise.
48815         * modules/unictype/category-Zp: Likewise.
48816         * modules/unictype/category-Zs: Likewise.
48817         * modules/unictype/category-and: Likewise.
48818         * modules/unictype/category-and-not: Likewise.
48819         * modules/unictype/category-byname: Likewise.
48820         * modules/unictype/category-name: Likewise.
48821         * modules/unictype/category-none: Likewise.
48822         * modules/unictype/category-of: Likewise.
48823         * modules/unictype/category-or: Likewise.
48824         * modules/unictype/category-test: Likewise.
48825         * modules/unictype/combining-class: Likewise.
48826         * modules/unictype/ctype-alnum: Likewise.
48827         * modules/unictype/ctype-alpha: Likewise.
48828         * modules/unictype/ctype-blank: Likewise.
48829         * modules/unictype/ctype-cntrl: Likewise.
48830         * modules/unictype/ctype-digit: Likewise.
48831         * modules/unictype/ctype-graph: Likewise.
48832         * modules/unictype/ctype-lower: Likewise.
48833         * modules/unictype/ctype-print: Likewise.
48834         * modules/unictype/ctype-punct: Likewise.
48835         * modules/unictype/ctype-space: Likewise.
48836         * modules/unictype/ctype-upper: Likewise.
48837         * modules/unictype/ctype-xdigit: Likewise.
48838         * modules/unictype/decimal-digit: Likewise.
48839         * modules/unictype/digit: Likewise.
48840         * modules/unictype/mirror: Likewise.
48841         * modules/unictype/numeric: Likewise.
48842         * modules/unictype/property-alphabetic: Likewise.
48843         * modules/unictype/property-ascii-hex-digit: Likewise.
48844         * modules/unictype/property-bidi-arabic-digit: Likewise.
48845         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
48846         * modules/unictype/property-bidi-block-separator: Likewise.
48847         * modules/unictype/property-bidi-boundary-neutral: Likewise.
48848         * modules/unictype/property-bidi-common-separator: Likewise.
48849         * modules/unictype/property-bidi-control: Likewise.
48850         * modules/unictype/property-bidi-embedding-or-override: Likewise.
48851         * modules/unictype/property-bidi-eur-num-separator: Likewise.
48852         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
48853         * modules/unictype/property-bidi-european-digit: Likewise.
48854         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
48855         * modules/unictype/property-bidi-left-to-right: Likewise.
48856         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
48857         * modules/unictype/property-bidi-other-neutral: Likewise.
48858         * modules/unictype/property-bidi-pdf: Likewise.
48859         * modules/unictype/property-bidi-segment-separator: Likewise.
48860         * modules/unictype/property-bidi-whitespace: Likewise.
48861         * modules/unictype/property-byname: Likewise.
48862         * modules/unictype/property-combining: Likewise.
48863         * modules/unictype/property-composite: Likewise.
48864         * modules/unictype/property-currency-symbol: Likewise.
48865         * modules/unictype/property-dash: Likewise.
48866         * modules/unictype/property-decimal-digit: Likewise.
48867         * modules/unictype/property-default-ignorable-code-point: Likewise.
48868         * modules/unictype/property-deprecated: Likewise.
48869         * modules/unictype/property-diacritic: Likewise.
48870         * modules/unictype/property-extender: Likewise.
48871         * modules/unictype/property-format-control: Likewise.
48872         * modules/unictype/property-grapheme-base: Likewise.
48873         * modules/unictype/property-grapheme-extend: Likewise.
48874         * modules/unictype/property-grapheme-link: Likewise.
48875         * modules/unictype/property-hex-digit: Likewise.
48876         * modules/unictype/property-hyphen: Likewise.
48877         * modules/unictype/property-id-continue: Likewise.
48878         * modules/unictype/property-id-start: Likewise.
48879         * modules/unictype/property-ideographic: Likewise.
48880         * modules/unictype/property-ids-binary-operator: Likewise.
48881         * modules/unictype/property-ids-trinary-operator: Likewise.
48882         * modules/unictype/property-ignorable-control: Likewise.
48883         * modules/unictype/property-iso-control: Likewise.
48884         * modules/unictype/property-join-control: Likewise.
48885         * modules/unictype/property-left-of-pair: Likewise.
48886         * modules/unictype/property-line-separator: Likewise.
48887         * modules/unictype/property-logical-order-exception: Likewise.
48888         * modules/unictype/property-lowercase: Likewise.
48889         * modules/unictype/property-math: Likewise.
48890         * modules/unictype/property-non-break: Likewise.
48891         * modules/unictype/property-not-a-character: Likewise.
48892         * modules/unictype/property-numeric: Likewise.
48893         * modules/unictype/property-other-alphabetic: Likewise.
48894         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
48895         * modules/unictype/property-other-grapheme-extend: Likewise.
48896         * modules/unictype/property-other-id-continue: Likewise.
48897         * modules/unictype/property-other-id-start: Likewise.
48898         * modules/unictype/property-other-lowercase: Likewise.
48899         * modules/unictype/property-other-math: Likewise.
48900         * modules/unictype/property-other-uppercase: Likewise.
48901         * modules/unictype/property-paired-punctuation: Likewise.
48902         * modules/unictype/property-paragraph-separator: Likewise.
48903         * modules/unictype/property-pattern-syntax: Likewise.
48904         * modules/unictype/property-pattern-white-space: Likewise.
48905         * modules/unictype/property-private-use: Likewise.
48906         * modules/unictype/property-punctuation: Likewise.
48907         * modules/unictype/property-quotation-mark: Likewise.
48908         * modules/unictype/property-radical: Likewise.
48909         * modules/unictype/property-sentence-terminal: Likewise.
48910         * modules/unictype/property-soft-dotted: Likewise.
48911         * modules/unictype/property-space: Likewise.
48912         * modules/unictype/property-terminal-punctuation: Likewise.
48913         * modules/unictype/property-test: Likewise.
48914         * modules/unictype/property-titlecase: Likewise.
48915         * modules/unictype/property-unassigned-code-value: Likewise.
48916         * modules/unictype/property-unified-ideograph: Likewise.
48917         * modules/unictype/property-uppercase: Likewise.
48918         * modules/unictype/property-variation-selector: Likewise.
48919         * modules/unictype/property-white-space: Likewise.
48920         * modules/unictype/property-xid-continue: Likewise.
48921         * modules/unictype/property-xid-start: Likewise.
48922         * modules/unictype/property-zero-width: Likewise.
48923         * modules/unictype/scripts: Likewise.
48924         * modules/unictype/syntax-c-ident: Likewise.
48925         * modules/unictype/syntax-c-whitespace: Likewise.
48926         * modules/unictype/syntax-java-ident: Likewise.
48927         * modules/unictype/syntax-java-whitespace: Likewise.
48928         * modules/unilbrk/u8-possible-linebreaks: Likewise.
48929         * modules/unilbrk/u8-width-linebreaks: Likewise.
48930         * modules/unilbrk/u16-possible-linebreaks: Likewise.
48931         * modules/unilbrk/u16-width-linebreaks: Likewise.
48932         * modules/unilbrk/u32-possible-linebreaks: Likewise.
48933         * modules/unilbrk/u32-width-linebreaks: Likewise.
48934         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
48935         * modules/unilbrk/ulc-width-linebreaks: Likewise.
48936         * modules/uniname/uniname: Likewise.
48937         * modules/uninorm/canonical-decomposition: Likewise.
48938         * modules/uninorm/composition: Likewise.
48939         * modules/uninorm/decomposing-form: Likewise.
48940         * modules/uninorm/decomposition: Likewise.
48941         * modules/uninorm/filter: Likewise.
48942         * modules/uninorm/nfc: Likewise.
48943         * modules/uninorm/nfd: Likewise.
48944         * modules/uninorm/nfkc: Likewise.
48945         * modules/uninorm/nfkd: Likewise.
48946         * modules/uninorm/u8-normalize: Likewise.
48947         * modules/uninorm/u8-normcmp: Likewise.
48948         * modules/uninorm/u8-normcoll: Likewise.
48949         * modules/uninorm/u8-normxfrm: Likewise.
48950         * modules/uninorm/u16-normalize: Likewise.
48951         * modules/uninorm/u16-normcmp: Likewise.
48952         * modules/uninorm/u16-normcoll: Likewise.
48953         * modules/uninorm/u16-normxfrm: Likewise.
48954         * modules/uninorm/u32-normalize: Likewise.
48955         * modules/uninorm/u32-normcmp: Likewise.
48956         * modules/uninorm/u32-normcoll: Likewise.
48957         * modules/uninorm/u32-normxfrm: Likewise.
48958         * modules/unistdio/u8-asnprintf: Likewise.
48959         * modules/unistdio/u8-asprintf: Likewise.
48960         * modules/unistdio/u8-snprintf: Likewise.
48961         * modules/unistdio/u8-sprintf: Likewise.
48962         * modules/unistdio/u8-u8-asnprintf: Likewise.
48963         * modules/unistdio/u8-u8-asprintf: Likewise.
48964         * modules/unistdio/u8-u8-snprintf: Likewise.
48965         * modules/unistdio/u8-u8-sprintf: Likewise.
48966         * modules/unistdio/u8-u8-vasnprintf: Likewise.
48967         * modules/unistdio/u8-u8-vasprintf: Likewise.
48968         * modules/unistdio/u8-u8-vsnprintf: Likewise.
48969         * modules/unistdio/u8-u8-vsprintf: Likewise.
48970         * modules/unistdio/u8-vasnprintf: Likewise.
48971         * modules/unistdio/u8-vasprintf: Likewise.
48972         * modules/unistdio/u8-vsnprintf: Likewise.
48973         * modules/unistdio/u8-vsprintf: Likewise.
48974         * modules/unistdio/u16-asnprintf: Likewise.
48975         * modules/unistdio/u16-asprintf: Likewise.
48976         * modules/unistdio/u16-snprintf: Likewise.
48977         * modules/unistdio/u16-sprintf: Likewise.
48978         * modules/unistdio/u16-u16-asnprintf: Likewise.
48979         * modules/unistdio/u16-u16-asprintf: Likewise.
48980         * modules/unistdio/u16-u16-snprintf: Likewise.
48981         * modules/unistdio/u16-u16-sprintf: Likewise.
48982         * modules/unistdio/u16-u16-vasnprintf: Likewise.
48983         * modules/unistdio/u16-u16-vasprintf: Likewise.
48984         * modules/unistdio/u16-u16-vsnprintf: Likewise.
48985         * modules/unistdio/u16-u16-vsprintf: Likewise.
48986         * modules/unistdio/u16-vasnprintf: Likewise.
48987         * modules/unistdio/u16-vasprintf: Likewise.
48988         * modules/unistdio/u16-vsnprintf: Likewise.
48989         * modules/unistdio/u16-vsprintf: Likewise.
48990         * modules/unistdio/u32-asnprintf: Likewise.
48991         * modules/unistdio/u32-asprintf: Likewise.
48992         * modules/unistdio/u32-snprintf: Likewise.
48993         * modules/unistdio/u32-sprintf: Likewise.
48994         * modules/unistdio/u32-u32-asnprintf: Likewise.
48995         * modules/unistdio/u32-u32-asprintf: Likewise.
48996         * modules/unistdio/u32-u32-snprintf: Likewise.
48997         * modules/unistdio/u32-u32-sprintf: Likewise.
48998         * modules/unistdio/u32-u32-vasnprintf: Likewise.
48999         * modules/unistdio/u32-u32-vasprintf: Likewise.
49000         * modules/unistdio/u32-u32-vsnprintf: Likewise.
49001         * modules/unistdio/u32-u32-vsprintf: Likewise.
49002         * modules/unistdio/u32-vasnprintf: Likewise.
49003         * modules/unistdio/u32-vasprintf: Likewise.
49004         * modules/unistdio/u32-vsnprintf: Likewise.
49005         * modules/unistdio/u32-vsprintf: Likewise.
49006         * modules/unistdio/ulc-asnprintf: Likewise.
49007         * modules/unistdio/ulc-asprintf: Likewise.
49008         * modules/unistdio/ulc-fprintf: Likewise.
49009         * modules/unistdio/ulc-snprintf: Likewise.
49010         * modules/unistdio/ulc-sprintf: Likewise.
49011         * modules/unistdio/ulc-vasnprintf: Likewise.
49012         * modules/unistdio/ulc-vasprintf: Likewise.
49013         * modules/unistdio/ulc-vfprintf: Likewise.
49014         * modules/unistdio/ulc-vsnprintf: Likewise.
49015         * modules/unistdio/ulc-vsprintf: Likewise.
49016         * modules/unistr/u8-check: Likewise.
49017         * modules/unistr/u8-chr: Likewise.
49018         * modules/unistr/u8-cmp: Likewise.
49019         * modules/unistr/u8-cmp2: Likewise.
49020         * modules/unistr/u8-cpy: Likewise.
49021         * modules/unistr/u8-cpy-alloc: Likewise.
49022         * modules/unistr/u8-endswith: Likewise.
49023         * modules/unistr/u8-mblen: Likewise.
49024         * modules/unistr/u8-mbsnlen: Likewise.
49025         * modules/unistr/u8-mbtouc: Likewise.
49026         * modules/unistr/u8-mbtouc-unsafe: Likewise.
49027         * modules/unistr/u8-mbtoucr: Likewise.
49028         * modules/unistr/u8-move: Likewise.
49029         * modules/unistr/u8-next: Likewise.
49030         * modules/unistr/u8-prev: Likewise.
49031         * modules/unistr/u8-set: Likewise.
49032         * modules/unistr/u8-startswith: Likewise.
49033         * modules/unistr/u8-stpcpy: Likewise.
49034         * modules/unistr/u8-stpncpy: Likewise.
49035         * modules/unistr/u8-strcat: Likewise.
49036         * modules/unistr/u8-strchr: Likewise.
49037         * modules/unistr/u8-strcmp: Likewise.
49038         * modules/unistr/u8-strcoll: Likewise.
49039         * modules/unistr/u8-strcpy: Likewise.
49040         * modules/unistr/u8-strcspn: Likewise.
49041         * modules/unistr/u8-strdup: Likewise.
49042         * modules/unistr/u8-strlen: Likewise.
49043         * modules/unistr/u8-strmblen: Likewise.
49044         * modules/unistr/u8-strmbtouc: Likewise.
49045         * modules/unistr/u8-strncat: Likewise.
49046         * modules/unistr/u8-strncmp: Likewise.
49047         * modules/unistr/u8-strncpy: Likewise.
49048         * modules/unistr/u8-strnlen: Likewise.
49049         * modules/unistr/u8-strpbrk: Likewise.
49050         * modules/unistr/u8-strrchr: Likewise.
49051         * modules/unistr/u8-strspn: Likewise.
49052         * modules/unistr/u8-strstr: Likewise.
49053         * modules/unistr/u8-strtok: Likewise.
49054         * modules/unistr/u8-to-u16: Likewise.
49055         * modules/unistr/u8-to-u32: Likewise.
49056         * modules/unistr/u8-uctomb: Likewise.
49057         * modules/unistr/u16-check: Likewise.
49058         * modules/unistr/u16-chr: Likewise.
49059         * modules/unistr/u16-cmp: Likewise.
49060         * modules/unistr/u16-cmp2: Likewise.
49061         * modules/unistr/u16-cpy: Likewise.
49062         * modules/unistr/u16-cpy-alloc: Likewise.
49063         * modules/unistr/u16-endswith: Likewise.
49064         * modules/unistr/u16-mblen: Likewise.
49065         * modules/unistr/u16-mbsnlen: Likewise.
49066         * modules/unistr/u16-mbtouc: Likewise.
49067         * modules/unistr/u16-mbtouc-unsafe: Likewise.
49068         * modules/unistr/u16-mbtoucr: Likewise.
49069         * modules/unistr/u16-move: Likewise.
49070         * modules/unistr/u16-next: Likewise.
49071         * modules/unistr/u16-prev: Likewise.
49072         * modules/unistr/u16-set: Likewise.
49073         * modules/unistr/u16-startswith: Likewise.
49074         * modules/unistr/u16-stpcpy: Likewise.
49075         * modules/unistr/u16-stpncpy: Likewise.
49076         * modules/unistr/u16-strcat: Likewise.
49077         * modules/unistr/u16-strchr: Likewise.
49078         * modules/unistr/u16-strcmp: Likewise.
49079         * modules/unistr/u16-strcoll: Likewise.
49080         * modules/unistr/u16-strcpy: Likewise.
49081         * modules/unistr/u16-strcspn: Likewise.
49082         * modules/unistr/u16-strdup: Likewise.
49083         * modules/unistr/u16-strlen: Likewise.
49084         * modules/unistr/u16-strmblen: Likewise.
49085         * modules/unistr/u16-strmbtouc: Likewise.
49086         * modules/unistr/u16-strncat: Likewise.
49087         * modules/unistr/u16-strncmp: Likewise.
49088         * modules/unistr/u16-strncpy: Likewise.
49089         * modules/unistr/u16-strnlen: Likewise.
49090         * modules/unistr/u16-strpbrk: Likewise.
49091         * modules/unistr/u16-strrchr: Likewise.
49092         * modules/unistr/u16-strspn: Likewise.
49093         * modules/unistr/u16-strstr: Likewise.
49094         * modules/unistr/u16-strtok: Likewise.
49095         * modules/unistr/u16-to-u32: Likewise.
49096         * modules/unistr/u16-to-u8: Likewise.
49097         * modules/unistr/u16-uctomb: Likewise.
49098         * modules/unistr/u32-check: Likewise.
49099         * modules/unistr/u32-chr: Likewise.
49100         * modules/unistr/u32-cmp: Likewise.
49101         * modules/unistr/u32-cmp2: Likewise.
49102         * modules/unistr/u32-cpy: Likewise.
49103         * modules/unistr/u32-cpy-alloc: Likewise.
49104         * modules/unistr/u32-endswith: Likewise.
49105         * modules/unistr/u32-mblen: Likewise.
49106         * modules/unistr/u32-mbsnlen: Likewise.
49107         * modules/unistr/u32-mbtouc: Likewise.
49108         * modules/unistr/u32-mbtouc-unsafe: Likewise.
49109         * modules/unistr/u32-mbtoucr: Likewise.
49110         * modules/unistr/u32-move: Likewise.
49111         * modules/unistr/u32-next: Likewise.
49112         * modules/unistr/u32-prev: Likewise.
49113         * modules/unistr/u32-set: Likewise.
49114         * modules/unistr/u32-startswith: Likewise.
49115         * modules/unistr/u32-stpcpy: Likewise.
49116         * modules/unistr/u32-stpncpy: Likewise.
49117         * modules/unistr/u32-strcat: Likewise.
49118         * modules/unistr/u32-strchr: Likewise.
49119         * modules/unistr/u32-strcmp: Likewise.
49120         * modules/unistr/u32-strcoll: Likewise.
49121         * modules/unistr/u32-strcpy: Likewise.
49122         * modules/unistr/u32-strcspn: Likewise.
49123         * modules/unistr/u32-strdup: Likewise.
49124         * modules/unistr/u32-strlen: Likewise.
49125         * modules/unistr/u32-strmblen: Likewise.
49126         * modules/unistr/u32-strmbtouc: Likewise.
49127         * modules/unistr/u32-strncat: Likewise.
49128         * modules/unistr/u32-strncmp: Likewise.
49129         * modules/unistr/u32-strncpy: Likewise.
49130         * modules/unistr/u32-strnlen: Likewise.
49131         * modules/unistr/u32-strpbrk: Likewise.
49132         * modules/unistr/u32-strrchr: Likewise.
49133         * modules/unistr/u32-strspn: Likewise.
49134         * modules/unistr/u32-strstr: Likewise.
49135         * modules/unistr/u32-strtok: Likewise.
49136         * modules/unistr/u32-to-u16: Likewise.
49137         * modules/unistr/u32-to-u8: Likewise.
49138         * modules/unistr/u32-uctomb: Likewise.
49139         * modules/uniwbrk/u8-wordbreaks: Likewise.
49140         * modules/uniwbrk/u16-wordbreaks: Likewise.
49141         * modules/uniwbrk/u32-wordbreaks: Likewise.
49142         * modules/uniwbrk/ulc-wordbreaks: Likewise.
49143         * modules/uniwbrk/wordbreak-property: Likewise.
49144         * modules/uniwidth/u8-strwidth: Likewise.
49145         * modules/uniwidth/u8-width: Likewise.
49146         * modules/uniwidth/u16-strwidth: Likewise.
49147         * modules/uniwidth/u16-width: Likewise.
49148         * modules/uniwidth/u32-strwidth: Likewise.
49149         * modules/uniwidth/u32-width: Likewise.
49150         * modules/uniwidth/width: Likewise.
49151         * modules/unicase/cased-tests (Makefile.am): Link all test programs
49152         with $(LIBUNISTRING).
49153         * modules/unicase/ignorable-tests: Likewise.
49154         * modules/unicase/locale-language-tests: Likewise.
49155         * modules/unicase/tolower-tests: Likewise.
49156         * modules/unicase/totitle-tests: Likewise.
49157         * modules/unicase/toupper-tests: Likewise.
49158         * modules/unicase/u8-casecmp-tests: Likewise.
49159         * modules/unicase/u8-casecoll-tests: Likewise.
49160         * modules/unicase/u8-casefold-tests: Likewise.
49161         * modules/unicase/u8-is-cased-tests: Likewise.
49162         * modules/unicase/u8-is-casefolded-tests: Likewise.
49163         * modules/unicase/u8-is-lowercase-tests: Likewise.
49164         * modules/unicase/u8-is-titlecase-tests: Likewise.
49165         * modules/unicase/u8-is-uppercase-tests: Likewise.
49166         * modules/unicase/u8-tolower-tests: Likewise.
49167         * modules/unicase/u8-totitle-tests: Likewise.
49168         * modules/unicase/u8-toupper-tests: Likewise.
49169         * modules/unicase/u16-casecmp-tests: Likewise.
49170         * modules/unicase/u16-casecoll-tests: Likewise.
49171         * modules/unicase/u16-casefold-tests: Likewise.
49172         * modules/unicase/u16-is-cased-tests: Likewise.
49173         * modules/unicase/u16-is-casefolded-tests: Likewise.
49174         * modules/unicase/u16-is-lowercase-tests: Likewise.
49175         * modules/unicase/u16-is-titlecase-tests: Likewise.
49176         * modules/unicase/u16-is-uppercase-tests: Likewise.
49177         * modules/unicase/u16-tolower-tests: Likewise.
49178         * modules/unicase/u16-totitle-tests: Likewise.
49179         * modules/unicase/u16-toupper-tests: Likewise.
49180         * modules/unicase/u32-casecmp-tests: Likewise.
49181         * modules/unicase/u32-casecoll-tests: Likewise.
49182         * modules/unicase/u32-casefold-tests: Likewise.
49183         * modules/unicase/u32-is-cased-tests: Likewise.
49184         * modules/unicase/u32-is-casefolded-tests: Likewise.
49185         * modules/unicase/u32-is-lowercase-tests: Likewise.
49186         * modules/unicase/u32-is-titlecase-tests: Likewise.
49187         * modules/unicase/u32-is-uppercase-tests: Likewise.
49188         * modules/unicase/u32-tolower-tests: Likewise.
49189         * modules/unicase/u32-totitle-tests: Likewise.
49190         * modules/unicase/u32-toupper-tests: Likewise.
49191         * modules/unicase/ulc-casecmp-tests: Likewise.
49192         * modules/unicase/ulc-casecoll-tests: Likewise.
49193         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
49194         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
49195         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
49196         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
49197         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
49198         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
49199         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
49200         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
49201         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
49202         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
49203         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
49204         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
49205         * modules/unictype/bidicategory-byname-tests: Likewise.
49206         * modules/unictype/bidicategory-name-tests: Likewise.
49207         * modules/unictype/bidicategory-of-tests: Likewise.
49208         * modules/unictype/bidicategory-test-tests: Likewise.
49209         * modules/unictype/block-list-tests: Likewise.
49210         * modules/unictype/block-of-tests: Likewise.
49211         * modules/unictype/block-test-tests: Likewise.
49212         * modules/unictype/category-C-tests: Likewise.
49213         * modules/unictype/category-Cc-tests: Likewise.
49214         * modules/unictype/category-Cf-tests: Likewise.
49215         * modules/unictype/category-Cn-tests: Likewise.
49216         * modules/unictype/category-Co-tests: Likewise.
49217         * modules/unictype/category-Cs-tests: Likewise.
49218         * modules/unictype/category-L-tests: Likewise.
49219         * modules/unictype/category-Ll-tests: Likewise.
49220         * modules/unictype/category-Lm-tests: Likewise.
49221         * modules/unictype/category-Lo-tests: Likewise.
49222         * modules/unictype/category-Lt-tests: Likewise.
49223         * modules/unictype/category-Lu-tests: Likewise.
49224         * modules/unictype/category-M-tests: Likewise.
49225         * modules/unictype/category-Mc-tests: Likewise.
49226         * modules/unictype/category-Me-tests: Likewise.
49227         * modules/unictype/category-Mn-tests: Likewise.
49228         * modules/unictype/category-N-tests: Likewise.
49229         * modules/unictype/category-Nd-tests: Likewise.
49230         * modules/unictype/category-Nl-tests: Likewise.
49231         * modules/unictype/category-No-tests: Likewise.
49232         * modules/unictype/category-P-tests: Likewise.
49233         * modules/unictype/category-Pc-tests: Likewise.
49234         * modules/unictype/category-Pd-tests: Likewise.
49235         * modules/unictype/category-Pe-tests: Likewise.
49236         * modules/unictype/category-Pf-tests: Likewise.
49237         * modules/unictype/category-Pi-tests: Likewise.
49238         * modules/unictype/category-Po-tests: Likewise.
49239         * modules/unictype/category-Ps-tests: Likewise.
49240         * modules/unictype/category-S-tests: Likewise.
49241         * modules/unictype/category-Sc-tests: Likewise.
49242         * modules/unictype/category-Sk-tests: Likewise.
49243         * modules/unictype/category-Sm-tests: Likewise.
49244         * modules/unictype/category-So-tests: Likewise.
49245         * modules/unictype/category-Z-tests: Likewise.
49246         * modules/unictype/category-Zl-tests: Likewise.
49247         * modules/unictype/category-Zp-tests: Likewise.
49248         * modules/unictype/category-Zs-tests: Likewise.
49249         * modules/unictype/category-and-not-tests: Likewise.
49250         * modules/unictype/category-and-tests: Likewise.
49251         * modules/unictype/category-byname-tests: Likewise.
49252         * modules/unictype/category-name-tests: Likewise.
49253         * modules/unictype/category-none-tests: Likewise.
49254         * modules/unictype/category-of-tests: Likewise.
49255         * modules/unictype/category-or-tests: Likewise.
49256         * modules/unictype/category-test-withtable-tests: Likewise.
49257         * modules/unictype/combining-class-tests: Likewise.
49258         * modules/unictype/ctype-alnum-tests: Likewise.
49259         * modules/unictype/ctype-alpha-tests: Likewise.
49260         * modules/unictype/ctype-blank-tests: Likewise.
49261         * modules/unictype/ctype-cntrl-tests: Likewise.
49262         * modules/unictype/ctype-digit-tests: Likewise.
49263         * modules/unictype/ctype-graph-tests: Likewise.
49264         * modules/unictype/ctype-lower-tests: Likewise.
49265         * modules/unictype/ctype-print-tests: Likewise.
49266         * modules/unictype/ctype-punct-tests: Likewise.
49267         * modules/unictype/ctype-space-tests: Likewise.
49268         * modules/unictype/ctype-upper-tests: Likewise.
49269         * modules/unictype/ctype-xdigit-tests: Likewise.
49270         * modules/unictype/decimal-digit-tests: Likewise.
49271         * modules/unictype/digit-tests: Likewise.
49272         * modules/unictype/mirror-tests: Likewise.
49273         * modules/unictype/numeric-tests: Likewise.
49274         * modules/unictype/property-alphabetic-tests: Likewise.
49275         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
49276         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
49277         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
49278         * modules/unictype/property-bidi-block-separator-tests: Likewise.
49279         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
49280         * modules/unictype/property-bidi-common-separator-tests: Likewise.
49281         * modules/unictype/property-bidi-control-tests: Likewise.
49282         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
49283         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
49284         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
49285         * modules/unictype/property-bidi-european-digit-tests: Likewise.
49286         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
49287         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
49288         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
49289         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
49290         * modules/unictype/property-bidi-pdf-tests: Likewise.
49291         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
49292         * modules/unictype/property-bidi-whitespace-tests: Likewise.
49293         * modules/unictype/property-byname-tests: Likewise.
49294         * modules/unictype/property-combining-tests: Likewise.
49295         * modules/unictype/property-composite-tests: Likewise.
49296         * modules/unictype/property-currency-symbol-tests: Likewise.
49297         * modules/unictype/property-dash-tests: Likewise.
49298         * modules/unictype/property-decimal-digit-tests: Likewise.
49299         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
49300         * modules/unictype/property-deprecated-tests: Likewise.
49301         * modules/unictype/property-diacritic-tests: Likewise.
49302         * modules/unictype/property-extender-tests: Likewise.
49303         * modules/unictype/property-format-control-tests: Likewise.
49304         * modules/unictype/property-grapheme-base-tests: Likewise.
49305         * modules/unictype/property-grapheme-extend-tests: Likewise.
49306         * modules/unictype/property-grapheme-link-tests: Likewise.
49307         * modules/unictype/property-hex-digit-tests: Likewise.
49308         * modules/unictype/property-hyphen-tests: Likewise.
49309         * modules/unictype/property-id-continue-tests: Likewise.
49310         * modules/unictype/property-id-start-tests: Likewise.
49311         * modules/unictype/property-ideographic-tests: Likewise.
49312         * modules/unictype/property-ids-binary-operator-tests: Likewise.
49313         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
49314         * modules/unictype/property-ignorable-control-tests: Likewise.
49315         * modules/unictype/property-iso-control-tests: Likewise.
49316         * modules/unictype/property-join-control-tests: Likewise.
49317         * modules/unictype/property-left-of-pair-tests: Likewise.
49318         * modules/unictype/property-line-separator-tests: Likewise.
49319         * modules/unictype/property-logical-order-exception-tests: Likewise.
49320         * modules/unictype/property-lowercase-tests: Likewise.
49321         * modules/unictype/property-math-tests: Likewise.
49322         * modules/unictype/property-non-break-tests: Likewise.
49323         * modules/unictype/property-not-a-character-tests: Likewise.
49324         * modules/unictype/property-numeric-tests: Likewise.
49325         * modules/unictype/property-other-alphabetic-tests: Likewise.
49326         * modules/unictype/property-other-default-ignorable-code-point-tests:
49327         Likewise.
49328         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
49329         * modules/unictype/property-other-id-continue-tests: Likewise.
49330         * modules/unictype/property-other-id-start-tests: Likewise.
49331         * modules/unictype/property-other-lowercase-tests: Likewise.
49332         * modules/unictype/property-other-math-tests: Likewise.
49333         * modules/unictype/property-other-uppercase-tests: Likewise.
49334         * modules/unictype/property-paired-punctuation-tests: Likewise.
49335         * modules/unictype/property-paragraph-separator-tests: Likewise.
49336         * modules/unictype/property-pattern-syntax-tests: Likewise.
49337         * modules/unictype/property-pattern-white-space-tests: Likewise.
49338         * modules/unictype/property-private-use-tests: Likewise.
49339         * modules/unictype/property-punctuation-tests: Likewise.
49340         * modules/unictype/property-quotation-mark-tests: Likewise.
49341         * modules/unictype/property-radical-tests: Likewise.
49342         * modules/unictype/property-sentence-terminal-tests: Likewise.
49343         * modules/unictype/property-soft-dotted-tests: Likewise.
49344         * modules/unictype/property-space-tests: Likewise.
49345         * modules/unictype/property-terminal-punctuation-tests: Likewise.
49346         * modules/unictype/property-test-tests: Likewise.
49347         * modules/unictype/property-titlecase-tests: Likewise.
49348         * modules/unictype/property-unassigned-code-value-tests: Likewise.
49349         * modules/unictype/property-unified-ideograph-tests: Likewise.
49350         * modules/unictype/property-uppercase-tests: Likewise.
49351         * modules/unictype/property-variation-selector-tests: Likewise.
49352         * modules/unictype/property-white-space-tests: Likewise.
49353         * modules/unictype/property-xid-continue-tests: Likewise.
49354         * modules/unictype/property-xid-start-tests: Likewise.
49355         * modules/unictype/property-zero-width-tests: Likewise.
49356         * modules/unictype/scripts-tests: Likewise.
49357         * modules/unictype/syntax-c-ident-tests: Likewise.
49358         * modules/unictype/syntax-c-whitespace-tests: Likewise.
49359         * modules/unictype/syntax-java-ident-tests: Likewise.
49360         * modules/unictype/syntax-java-whitespace-tests: Likewise.
49361         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
49362         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
49363         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
49364         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
49365         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
49366         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
49367         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
49368         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
49369         * modules/uniname/uniname-tests: Likewise.
49370         * modules/uninorm/canonical-decomposition-tests: Likewise.
49371         * modules/uninorm/compat-decomposition-tests: Likewise.
49372         * modules/uninorm/composition-tests: Likewise.
49373         * modules/uninorm/decomposing-form-tests: Likewise.
49374         * modules/uninorm/decomposition-tests: Likewise.
49375         * modules/uninorm/filter-tests: Likewise.
49376         * modules/uninorm/nfc-tests: Likewise.
49377         * modules/uninorm/nfd-tests: Likewise.
49378         * modules/uninorm/nfkc-tests: Likewise.
49379         * modules/uninorm/nfkd-tests: Likewise.
49380         * modules/uninorm/u8-normcmp-tests: Likewise.
49381         * modules/uninorm/u8-normcoll-tests: Likewise.
49382         * modules/uninorm/u16-normcmp-tests: Likewise.
49383         * modules/uninorm/u16-normcoll-tests: Likewise.
49384         * modules/uninorm/u32-normcmp-tests: Likewise.
49385         * modules/uninorm/u32-normcoll-tests: Likewise.
49386         * modules/unistdio/u8-asnprintf-tests: Likewise.
49387         * modules/unistdio/u8-vasnprintf-tests: Likewise.
49388         * modules/unistdio/u8-vasprintf-tests: Likewise.
49389         * modules/unistdio/u8-vsnprintf-tests: Likewise.
49390         * modules/unistdio/u8-vsprintf-tests: Likewise.
49391         * modules/unistdio/u16-asnprintf-tests: Likewise.
49392         * modules/unistdio/u16-vasnprintf-tests: Likewise.
49393         * modules/unistdio/u16-vasprintf-tests: Likewise.
49394         * modules/unistdio/u16-vsnprintf-tests: Likewise.
49395         * modules/unistdio/u16-vsprintf-tests: Likewise.
49396         * modules/unistdio/u32-asnprintf-tests: Likewise.
49397         * modules/unistdio/u32-vasnprintf-tests: Likewise.
49398         * modules/unistdio/u32-vasprintf-tests: Likewise.
49399         * modules/unistdio/u32-vsnprintf-tests: Likewise.
49400         * modules/unistdio/u32-vsprintf-tests: Likewise.
49401         * modules/unistdio/ulc-asnprintf-tests: Likewise.
49402         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
49403         * modules/unistdio/ulc-vasprintf-tests: Likewise.
49404         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
49405         * modules/unistdio/ulc-vsprintf-tests: Likewise.
49406         * modules/unistr/u8-check-tests: Likewise.
49407         * modules/unistr/u8-chr-tests: Likewise.
49408         * modules/unistr/u8-cmp-tests: Likewise.
49409         * modules/unistr/u8-cmp2-tests: Likewise.
49410         * modules/unistr/u8-cpy-alloc-tests: Likewise.
49411         * modules/unistr/u8-cpy-tests: Likewise.
49412         * modules/unistr/u8-mblen-tests: Likewise.
49413         * modules/unistr/u8-mbsnlen-tests: Likewise.
49414         * modules/unistr/u8-mbtouc-tests: Likewise.
49415         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
49416         * modules/unistr/u8-mbtoucr-tests: Likewise.
49417         * modules/unistr/u8-move-tests: Likewise.
49418         * modules/unistr/u8-next-tests: Likewise.
49419         * modules/unistr/u8-prev-tests: Likewise.
49420         * modules/unistr/u8-set-tests: Likewise.
49421         * modules/unistr/u8-stpcpy-tests: Likewise.
49422         * modules/unistr/u8-stpncpy-tests: Likewise.
49423         * modules/unistr/u8-strcat-tests: Likewise.
49424         * modules/unistr/u8-strcmp-tests: Likewise.
49425         * modules/unistr/u8-strcoll-tests: Likewise.
49426         * modules/unistr/u8-strcpy-tests: Likewise.
49427         * modules/unistr/u8-strdup-tests: Likewise.
49428         * modules/unistr/u8-strlen-tests: Likewise.
49429         * modules/unistr/u8-strmblen-tests: Likewise.
49430         * modules/unistr/u8-strmbtouc-tests: Likewise.
49431         * modules/unistr/u8-strncat-tests: Likewise.
49432         * modules/unistr/u8-strncmp-tests: Likewise.
49433         * modules/unistr/u8-strncpy-tests: Likewise.
49434         * modules/unistr/u8-strnlen-tests: Likewise.
49435         * modules/unistr/u8-to-u16-tests: Likewise.
49436         * modules/unistr/u8-to-u32-tests: Likewise.
49437         * modules/unistr/u8-uctomb-tests: Likewise.
49438         * modules/unistr/u16-check-tests: Likewise.
49439         * modules/unistr/u16-chr-tests: Likewise.
49440         * modules/unistr/u16-cmp-tests: Likewise.
49441         * modules/unistr/u16-cmp2-tests: Likewise.
49442         * modules/unistr/u16-cpy-alloc-tests: Likewise.
49443         * modules/unistr/u16-cpy-tests: Likewise.
49444         * modules/unistr/u16-mblen-tests: Likewise.
49445         * modules/unistr/u16-mbsnlen-tests: Likewise.
49446         * modules/unistr/u16-mbtouc-tests: Likewise.
49447         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
49448         * modules/unistr/u16-mbtoucr-tests: Likewise.
49449         * modules/unistr/u16-move-tests: Likewise.
49450         * modules/unistr/u16-next-tests: Likewise.
49451         * modules/unistr/u16-prev-tests: Likewise.
49452         * modules/unistr/u16-set-tests: Likewise.
49453         * modules/unistr/u16-stpcpy-tests: Likewise.
49454         * modules/unistr/u16-stpncpy-tests: Likewise.
49455         * modules/unistr/u16-strcat-tests: Likewise.
49456         * modules/unistr/u16-strcmp-tests: Likewise.
49457         * modules/unistr/u16-strcoll-tests: Likewise.
49458         * modules/unistr/u16-strcpy-tests: Likewise.
49459         * modules/unistr/u16-strdup-tests: Likewise.
49460         * modules/unistr/u16-strlen-tests: Likewise.
49461         * modules/unistr/u16-strmblen-tests: Likewise.
49462         * modules/unistr/u16-strmbtouc-tests: Likewise.
49463         * modules/unistr/u16-strncat-tests: Likewise.
49464         * modules/unistr/u16-strncmp-tests: Likewise.
49465         * modules/unistr/u16-strncpy-tests: Likewise.
49466         * modules/unistr/u16-strnlen-tests: Likewise.
49467         * modules/unistr/u16-to-u32-tests: Likewise.
49468         * modules/unistr/u16-to-u8-tests: Likewise.
49469         * modules/unistr/u16-uctomb-tests: Likewise.
49470         * modules/unistr/u32-check-tests: Likewise.
49471         * modules/unistr/u32-chr-tests: Likewise.
49472         * modules/unistr/u32-cmp-tests: Likewise.
49473         * modules/unistr/u32-cmp2-tests: Likewise.
49474         * modules/unistr/u32-cpy-alloc-tests: Likewise.
49475         * modules/unistr/u32-cpy-tests: Likewise.
49476         * modules/unistr/u32-mblen-tests: Likewise.
49477         * modules/unistr/u32-mbsnlen-tests: Likewise.
49478         * modules/unistr/u32-mbtouc-tests: Likewise.
49479         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
49480         * modules/unistr/u32-mbtoucr-tests: Likewise.
49481         * modules/unistr/u32-move-tests: Likewise.
49482         * modules/unistr/u32-next-tests: Likewise.
49483         * modules/unistr/u32-prev-tests: Likewise.
49484         * modules/unistr/u32-set-tests: Likewise.
49485         * modules/unistr/u32-stpcpy-tests: Likewise.
49486         * modules/unistr/u32-stpncpy-tests: Likewise.
49487         * modules/unistr/u32-strcat-tests: Likewise.
49488         * modules/unistr/u32-strcmp-tests: Likewise.
49489         * modules/unistr/u32-strcoll-tests: Likewise.
49490         * modules/unistr/u32-strcpy-tests: Likewise.
49491         * modules/unistr/u32-strdup-tests: Likewise.
49492         * modules/unistr/u32-strlen-tests: Likewise.
49493         * modules/unistr/u32-strmblen-tests: Likewise.
49494         * modules/unistr/u32-strmbtouc-tests: Likewise.
49495         * modules/unistr/u32-strncat-tests: Likewise.
49496         * modules/unistr/u32-strncmp-tests: Likewise.
49497         * modules/unistr/u32-strncpy-tests: Likewise.
49498         * modules/unistr/u32-strnlen-tests: Likewise.
49499         * modules/unistr/u32-to-u16-tests: Likewise.
49500         * modules/unistr/u32-to-u8-tests: Likewise.
49501         * modules/unistr/u32-uctomb-tests: Likewise.
49502         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
49503         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
49504         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
49505         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
49506         * modules/uniwidth/u8-strwidth-tests: Likewise.
49507         * modules/uniwidth/u8-width-tests: Likewise.
49508         * modules/uniwidth/u16-strwidth-tests: Likewise.
49509         * modules/uniwidth/u16-width-tests: Likewise.
49510         * modules/uniwidth/u32-strwidth-tests: Likewise.
49511         * modules/uniwidth/u32-width-tests: Likewise.
49512         * modules/uniwidth/width-tests: Likewise.
49514 2010-05-18  Richard Jones  <rjones@redhat.com>
49516         doc: users.txt: list hivex
49517         * users.txt: Add hivex.
49519 2010-05-18  Richard Jones  <rjones@redhat.com>
49521         doc: users.txt: list febootstrap
49522         * users.txt: Add febootstrap.
49524 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
49526         bootstrap: fix an error when gnulib is not used as a git submodule
49527         * build-aux/bootstrap (gnulib_path): If its length is zero then
49528         assign "gnulib" to it.
49529         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
49531 2010-05-16  Bruno Haible  <bruno@clisp.org>
49533         Avoid autoconf warnings about AM_ICONV.
49534         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
49535         2.64.
49537 2010-05-16  Bruno Haible  <bruno@clisp.org>
49539         absolute-header: Make the macro usable in more situations.
49540         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
49541         from gl_ABSOLUTE_HEADER.
49542         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
49544 2010-05-16  James Youngman  <jay@gnu.org>
49546         doc: update users.txt
49547         * users.txt: Add CSSC.
49549 2010-05-16  Jim Meyering  <meyering@redhat.com>
49551         init.sh: fix an error in the previous change; add more comments
49552         * tests/init.sh: Compare exit code in loop against 9, not 2.
49553         Patch by Bruno Haible.
49554         Make the two tests more similar by adding an empty "then" clause.
49555         Add comments.
49557         init.sh: avoid unnecessary shell re-exec
49558         * tests/init.sh: Improve the re-exec-required check to first test the
49559         current shell.  If it passes the test, do not search for a shell that
49560         does pass, and do not re-exec.  This test is particularly contorted to
49561         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
49562         of $(...) evokes a syntax error and causes immediate shell exit with
49563         status 2.  Bruno Haible reported that the re-exec made it impossible
49564         to single-step through any init.sh-using script.
49566 2010-05-16  Bruno Haible  <bruno@clisp.org>
49568         Fix collision between gnulib's and libintl's printf replacements.
49569         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
49570         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
49571         (printf): When using GNU C, map the __printf__ function to rpl_printf
49572         via __asm__. When not using GNU C, define rpl_printf instead of
49573         __printf__.
49574         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
49575         commit.
49576         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
49577         commit.
49578         * m4/asm-underscore.m4: New file.
49579         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
49580         * modules/stdio (Files): Add m4/asm-underscore.m4.
49581         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
49582         Reported by Ben Pfaff.
49584 2010-05-16  Bruno Haible  <bruno@clisp.org>
49586         verify: Avoid skipping the test on openSUSE 11.0.
49587         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
49589 2010-05-13  Bruno Haible  <bruno@clisp.org>
49591         Avoid useless warnings from G++.
49592         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
49593         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
49594         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
49596 2010-05-11  Jim Meyering  <meyering@redhat.com>
49598         maint.mk: tweak preceding change
49599         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
49600         regexps tighter by anchoring at EOL, and make the new group "shy"
49601         for slightly decreased overhead.
49603 2010-05-11  Eric Blake  <eblake@redhat.com>
49605         maint.mk: gnulib doesn't guarantee NSIG
49606         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
49608 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
49610         test-pwrite.c: Remove unused variable declaration.
49611         * tests/test-pwrite.c (main): Remove read_buf declaration.
49613         Remove useless test-pwrite.sh file.
49614         * tests/test-pwrite.sh: Delete file.
49615         * modules/pwrite-tests: Remove references.
49616         Reported by Bruno Haible.
49618 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
49620         init.sh: fix a typo
49621         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
49623 2010-05-10  Jim Meyering  <meyering@redhat.com>
49625         maint.mk: avoid using a temporary file in the always-defined-macros check
49626         * top/maint.mk (.re-defmac): Remove rule.
49627         (gl_trap_): Remove definition.
49628         (sc_prohibit_always-defined_macros): Rewrite not to create and
49629         depend on a temporary file.  Instead, depend on GNU grep's ability
49630         to read a list of regular expressions from stdin when given "-f -".
49632 2010-05-09  Bruno Haible  <bruno@clisp.org>
49634         Update to GNU gettext 0.18, part 1.
49635         * m4/gettext.m4: Update to GNU gettext 0.18.
49636         * m4/intl.m4: Likewise.
49637         * m4/po.m4: Likewise.
49638         * modules/gettext (Files): Add m4/fcntl-o.m4.
49639         (configure.ac): Require gettext infrastructure from version 0.18.
49641 2010-05-09  Jim Meyering  <meyering@redhat.com>
49643         init.sh: enable MALLOC_PERTURB_
49644         * tests/init.sh: Enable glibc's malloc-perturbing option.
49646         maint.mk: improve sc_cross_check_PATH_usage_in_tests
49647         With my recent change in init.sh from the two-line form:
49648             -#   : ${srcdir=.}
49649             -#   . "$srcdir/init.sh"; path_prepend_ .
49650             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
49651         I noticed that using the one-line form would cause this test
49652         to fail with a false-positive, or to stop working altogether,
49653         depending on whether help-version changed or all the tests did.
49654         * top/maint.mk (_hv_regex): Remove this definition.
49655         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
49656         (_hv_regex_strong): Use a stronger regex to check for conformance.
49657         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
49658         Give a separate diagnostic for lack of conforming use.
49660         maint.mk: prohibit definition of symbols defined by gnulib
49661         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
49662         definition of symbols defined by gnulib.
49664 2010-05-09  Bruno Haible  <bruno@clisp.org>
49666         acl: Avoid test failure on Cygwin-hosted mingw.
49667         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
49669 2010-05-09  Bruno Haible  <bruno@clisp.org>
49671         error: Use system's fcntl function.
49672         * lib/error.c (fcntl): Undefine.
49674 2010-05-09  Jim Meyering  <meyering@redhat.com>
49676         verify: adjust formatting to be more consistent
49677         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
49678         argument-list '('s, and after one comma.
49680 2010-05-09  Bruno Haible  <bruno@clisp.org>
49682         error: More reliable output on mingw.
49683         * lib/error.c: Include <windows.h>.
49684         (is_open): New function.
49685         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
49686         defined.
49688 2010-05-09  Bruno Haible  <bruno@clisp.org>
49690         vasnprintf: Fix syntax errors in libintl build on mingw.
49691         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
49692         pad_ourselves and prec_ourselves after use.
49694 2010-05-08  Bruno Haible  <bruno@clisp.org>
49696         * lib/config.charset: Update comments for Cygwin 1.7.
49697         * lib/localcharset.c: Likewise.
49699 2010-05-07  Jim Meyering  <meyering@redhat.com>
49701         init.sh: improve comments
49702         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
49703         . "${srcdir=.}/init.sh"; path_prepend_ .
49704         Add a note about path_prepend_ and the alternative of using
49705         TESTS_ENVIRONMENT.
49707 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
49709         exclude: Unescape hashed patterns in wildcard mode.
49710         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
49711         to the hash list.
49712         * tests/test-exclude8.sh: New test case.
49713         * modules/exclude-tests: Add new test.
49715 2010-05-05  Eric Blake  <eblake@redhat.com>
49717         verify: automate tests
49718         * modules/verify-tests: New module.
49719         * tests/test-verify.sh: New file.
49720         * tests/test-verify.c: Guard each negative test with a unique id.
49721         Also avoid warning about unused left hand of comma expressions.
49723 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
49725         Further improvements to verify.h, suggested by Eric Blake.
49726         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
49727         the GL_* versions, to avoid collision with OpenGL.
49728         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
49729         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
49730         than testing merely whether it's defined.
49732         Modify verify.h to pacify gcc -Wredundant_decls.
49733         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
49734         These use the prefix "GL_" since they're likely to be useful elsewhere.
49735         We may need to break them out into a different .h file.
49736         (__COUNTER__): Define to 0 if the compiler doesn't support it.
49737         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
49738         of verify_function__.
49740 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
49742         Tests for module pwrite.
49743         * modules/pwrite-tests: New file.
49744         * tests/test-pwrite.sh: New file.
49745         * tests/test-pwrite.c: New file.
49747         New module pwrite.
49748         * lib/unistd.in.h (pwrite): New declaration.
49749         * lib/pwrite.c: New file, from glibc with modifications.
49750         * m4/pwrite.m4: New file.
49751         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
49752         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
49753         REPLACE_PWRITE.
49754         * modules/pwrite: New file.
49755         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
49756         REPLACE_PWRITE.
49757         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
49758         * doc/posix-functions/pwrite.texi: Mention the new module.
49760 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
49762         pread: Update documentation.
49763         * doc/posix-functions/pread.texi: Mention the 'pread' module.
49765 2010-05-04  Eric Blake  <eblake@redhat.com>
49767         docs: update cygwin progress
49768         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
49769         this bug.
49770         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
49771         Added in cygwin 1.7.2.
49772         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
49773         Likewise.
49774         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
49775         Likewise.
49776         * doc/glibc-functions/dup3.texi (dup3): Likewise.
49777         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
49778         * doc/glibc-functions/accept4.texi (accept4): Likewise.
49779         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
49780         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
49781         Mention nproc module.
49782         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
49783         bug in cygwin 1.7.5 addition.
49784         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
49785         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
49786         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
49787         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
49788         1.7.5.
49789         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
49790         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
49791         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
49792         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
49793         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
49794         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
49795         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
49796         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
49797         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
49798         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
49799         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
49800         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
49801         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
49802         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
49803         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
49804         Likewise.
49805         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
49806         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
49807         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
49808         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
49809         Likewise.
49810         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
49811         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
49812         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
49813         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
49814         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
49815         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
49816         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
49817         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
49818         Likewise.
49819         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
49820         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
49821         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
49822         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
49823         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
49824         Likewise.
49825         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
49826         Likewise.
49827         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
49828         Likewise.
49829         * doc/glibc-functions/xdrrec_endofrecord.texi
49830         (xdrrec_endofrecord): Likewise.
49831         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
49832         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
49833         Likewise.
49834         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
49835         Likewise.
49837 2010-05-04  Jim Meyering  <meyering@redhat.com>
49839         gendocs.sh: make its "-s FILE" option more useful
49840         * build-aux/gendocs.sh: When honoring the -s FILE option, update
49841         $PACKAGE to reflect the probably-different basename of "FILE".
49843 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
49845         bootstrap: don't ignore download_po_files failure
49846         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
49847         failure.
49849 2010-05-03  Jim Meyering  <meyering@redhat.com>
49851         maint.mk: allow to pass options to gendocs.sh
49852         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
49853         (gendocs_options_): New overridable variable.
49855         gnu-web-doc-update: don't ignore configure or build failure
49856         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
49858         announce-gen: backslash-escape '@'s in --help output
49859         * build-aux/announce-gen: Fix syntax errors.
49861         maint.mk, announce-gen: allow project-specific announcement mail headers
49862         * top/maint.mk (translation_project_): Define default.
49863         (announcement_Cc_, announcement_mail_headers_): Likewise.
49864         (announcement): Invoke announce-gen with new --mail-headers option.
49865         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
49867         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
49868         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
49869         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
49870         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
49871         line in the "err2" output file when running "make check" in verbose
49872         mode (i.e., with set -x enabled).
49874 2010-05-03  Bruno Haible  <bruno@clisp.org>
49876         wctob: Fix for weird platforms.
49877         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
49878         argument value.
49880 2010-05-03  Jim Meyering  <meyering@redhat.com>
49882         maint.mk: prohibit unwarranted use of <strings.h>
49883         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
49884         strings.h in a file that does not also use strcasecmp, strncasecmp,
49885         ffs or ffsll.
49887         maint.mk: remove obsolete comments
49888         * top/maint.mk: Remove stale, commented-out rules.
49890 2010-05-02  Bruno Haible  <bruno@clisp.org>
49892         wcwidth: Declare also when it's aliased.
49893         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
49894         macro.
49896 2010-05-02  Bruno Haible  <bruno@clisp.org>
49898         Fix regression from 2010-04-25.
49899         * gnulib-tool (func_modules_transitive_closure): Check the status of
49900         all modules, not only of the tests that are of the form foo-tests where
49901         foo is a module.
49903 2010-05-02  Bruno Haible  <bruno@clisp.org>
49905         wctob: Work around nasty Cygwin 1.7.2 bug.
49906         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
49907         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
49909 2010-05-01  Bruno Haible  <bruno@clisp.org>
49911         fpurge: Sharper test.
49912         * tests/test-fpurge.c (main): Add one more ftell check.
49913         * modules/fpurge-tests (Depends-on): Add ftell.
49914         Suggested by Eric Blake.
49916 2010-05-01  Bruno Haible  <bruno@clisp.org>
49918         ftello: Another test.
49919         * tests/test-ftello3.c: New file.
49920         * modules/ftello-tests (Files): Add it.
49921         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
49922         MOSTLYCLEANFILES.
49924         ftell: Another test.
49925         * tests/test-ftell3.c: New file.
49926         * modules/ftell-tests (Files): Add it.
49927         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
49928         MOSTLYCLEANFILES.
49930 2010-05-01  Bruno Haible  <bruno@clisp.org>
49932         ftell, ftello: Work around Solaris bug.
49933         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
49934         * lib/ftello.c: Include stdio-impl.h.
49935         (ftello): On Solaris, when _IOWRT is set, compute the result without
49936         looking at _IOREAD.
49937         * modules/ftello (Files): Add lib/stdio-impl.h.
49938         * doc/posix-functions/ftell.texi: Mention Solaris bug.
49939         * doc/posix-functions/ftello.texi: Likewise.
49940         Reported by Eric Blake.
49942 2010-05-01  Bruno Haible  <bruno@clisp.org>
49944         freading: Adapt to special meaning of _IOREAD flag on Solaris.
49945         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
49946         the _IOWRT flag is also set.
49948 2010-05-01  Bruno Haible  <bruno@clisp.org>
49950         Fix doc about a HP-UX stdio bug.
49951         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
49952         * doc/posix-functions/ftello.texi: Likewise.
49954 2010-05-01  Bruno Haible  <bruno@clisp.org>
49956         lseek test: Fix failure on Solaris.
49957         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
49958         output.
49960 2010-04-30  Jim Meyering  <meyering@redhat.com>
49962         bootstrap: don't ignore failure to generate po*/Makevars
49963         * build-aux/bootstrap (with_gettext): Don't ignore failure
49964         to create po/Makevars or runtime-po/Makevars.
49966 2010-04-29  Eric Blake  <eblake@redhat.com>
49968         headers: relax license to LGPLv2+
49969         * modules/fcntl-h (License): Relax license.
49970         * modules/getopt-posix (License): Likewise.
49971         * modules/locale (License): Likewise.
49972         * modules/math (License): Likewise.
49973         * modules/pty (License): Likewise.
49974         * modules/sched (License): Likewise.
49975         * modules/search (License): Likewise.
49976         * modules/spawn (License): Likewise.
49977         * modules/stdarg (License): Likewise.
49978         * modules/sysexits (License): Likewise.
49980 2010-04-29  Jim Meyering  <meyering@redhat.com>
49982         inttypes: relax license to LGPLv2+
49983         * modules/inttypes (License): Relax license.
49985 2010-04-29  Simon Josefsson  <simon@josefsson.org>
49987         * top/maint.mk (indent): Run twice to produce idempotent results.
49989 2010-04-28  Bruno Haible  <bruno@clisp.org>
49991         getdate: Generate getdate.c in the source directory.
49992         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
49993         MOSTLYCLEANFILES.
49994         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
49996 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
49998         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
49999         is not declared as a const *; avoid warnings in that case.
50001 2010-04-28  Eric Blake  <eblake@redhat.com>
50003         canonicalize-lgpl: avoid compiler warning
50004         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
50005         declaration' / 'extraneous semicolon' warning with some compilers.
50006         Reported by Andreas Gruenbacher.
50008 2010-04-28  Jim Meyering  <meyering@redhat.com>
50010         init.sh: ensure a more reliable exit status when exiting via trap
50011         * tests/init.sh (setup_): Don't rely on $? in signal handler.
50012         Inspired by patches from Dmitry V. Levin.
50013         Also trap on signal 3 (SIGQUIT).
50015 2010-04-27  Bruno Haible  <bruno@clisp.org>
50017         Update doc about utimes().
50018         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
50019         'utimens' module.
50020         Reported by Andreas Gruenbacher <agruen@suse.de>.
50022 2010-04-27  Eric Blake  <eblake@redhat.com>
50024         full-read, full-write: relax license
50025         * modules/full-read (License): Drop to LGPLv2+.
50026         * modules/full-write (License): Likewise.
50027         * modules/safe-read (License): Likewise.
50028         * modules/safe-write (License): Likewise.
50030         pthread: mention library for linking
50031         * modules/pthread (Link): Mention $(LIB_PTHREAD).
50033 2010-04-27  Jim Meyering  <meyering@redhat.com>
50035         maint.mk: fix a bug introduced in last change
50036         * top/maint.mk (gl_assured_headers_): Now that all names are on
50037         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
50038         is not anchored to end of word, it should be adequate.
50040         maint.mk: avoid side-effect in latest syntax-check
50041         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
50042         to run commands via $(shell...), and hence to incur cost only when
50043         the new rule is actually run.
50045         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
50046         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
50047         and use that to create a regexp used to detect all #if HAVE_..._H uses.
50048         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
50049         (gl_assured_headers_, az_, AZ_): Define.
50050         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
50052 2010-04-26  Jim Meyering  <jim@meyering.net>
50053             Bruno Haible  <bruno@clisp.org>
50055         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
50056         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
50057         Prompted by an exchange with Gilles Espinasse.
50059 2010-04-26  Jim Meyering  <meyering@redhat.com>
50061         git-version-gen: aesthetic tweak
50062         * build-aux/git-version-gen: Use "$nl" rather than a literal,
50063         so that the command remains on a single line.
50065 2010-04-26  Eric Blake  <eblake@redhat.com>
50067         git-version-gen: allow use on EBCDIC hosts
50068         * build-aux/git-version-gen (dirty): Use literal rather than tying
50069         ourselves to ascii.
50070         Reported by Steve Goetze.
50072 2010-04-25  Bruno Haible  <bruno@clisp.org>
50074         netdb: Add support for GNULIB_POSIXCHECK.
50075         * lib/netdb.in.h: Include warn-on-use.h.
50076         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
50077         functions are used when GNULIB_POSIXCHECK is defined and the
50078         getaddrinfo module is not in use.
50079         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
50080         freeaddrinfo, gai_strerror, getnameinfo are declared.
50081         * modules/netdb (Depends-on): Add warn-on-use.
50082         (Makefile.am): Include warn-on-use.h in netdb.h.
50084 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
50086         build: avoid "make check" failure without .git/ directory
50087         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
50088         there is no .git/ directory.
50090 2010-04-25  Bruno Haible  <bruno@clisp.org>
50092         ptsname: Fix misuse of ttyname_r.
50093         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
50094         of errno.
50096 2010-04-25  Bruno Haible  <bruno@clisp.org>
50098         ttyname_r: Make it work on Solaris 10.
50099         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
50100         if the system function has the POSIX declaration. Test whether the
50101         function fails if the buffer is less than 128 bytes large.
50102         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
50103         system's ttyname_r function. Provide a reasonably large buffer.
50104         * modules/ttyname_r (Depends-on): Add extensions.
50105         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
50107 2010-04-25  Bruno Haible  <bruno@clisp.org>
50109         Use the 'extensions' module for some more functions on Solaris.
50110         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
50111         module.
50112         * doc/posix-functions/ctime_r.texi: Likewise.
50113         * doc/posix-functions/getgrgid_r.texi: Likewise.
50114         * doc/posix-functions/getgrnam_r.texi: Likewise.
50115         * doc/posix-functions/getpwnam_r.texi: Likewise.
50116         * doc/posix-functions/getpwuid_r.texi: Likewise.
50117         * doc/posix-functions/readdir_r.texi: Likewise.
50118         * doc/posix-functions/sigwait.texi: Likewise.
50119         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
50120         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
50122 2010-04-25  Bruno Haible  <bruno@clisp.org>
50124         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
50125         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
50126         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
50127         * lib/ttyname_r.c: Include <limits.h>.
50128         (ttyname_r): Define using the system's ttyname_r function, if it exists
50129         and not on Solaris.
50130         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
50131         set.
50132         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
50133         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
50134         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
50135         Reported by Simon Josefsson.
50137 2010-04-25  Bruno Haible  <bruno@clisp.org>
50139         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
50140         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
50141         * doc/posix-functions/ctime_r.texi: Likewise.
50142         * doc/posix-functions/getgrgid_r.texi: Likewise.
50143         * doc/posix-functions/getgrnam_r.texi: Likewise.
50144         * doc/posix-functions/getlogin_r.texi: Likewise.
50145         * doc/posix-functions/getpwnam_r.texi: Likewise.
50146         * doc/posix-functions/getpwuid_r.texi: Likewise.
50147         * doc/posix-functions/readdir_r.texi: Likewise.
50148         * doc/posix-functions/sigwait.texi: Likewise.
50149         * doc/posix-functions/ttyname_r.texi: Likewise.
50150         Reported by Simon Josefsson.
50152 2010-04-25  Bruno Haible  <bruno@clisp.org>
50154         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
50155         * gnulib-tool (func_usage): Document that --with-*-tests options apply
50156         also to --create-testdir.
50157         (func_acceptable): Don't consider the status of *-tests modules here.
50158         (func_modules_transitive_closure): Consider it here, before including a
50159         test module.
50160         (func_import, func_create_testdir): Set inc_all_direct_tests,
50161         inc_all_indirect_tests.
50162         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
50163         --create-testdir and --create-megatestdir.
50165 2010-04-25  Bruno Haible  <bruno@clisp.org>
50167         gnulib-tool: Add --without-*-tests options.
50168         * gnulib-tool (func_usage): Document the --without-*-tests options.
50169         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
50170         excl_unportable_tests): New variables.
50171         Fail if they are specified with --import or --update.
50172         (func_acceptable): Respect the excl_*_tests variables.
50173         (func_import): Set the excl_*_tests variables to empty.
50175 2010-04-25  Simon Josefsson  <simon@josefsson.org>
50176             Bruno Haible  <bruno@clisp.org>
50178         Work around a MacOS X 10.4 bug with openpty.
50179         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
50180         * tests/test-openpty.c (main): Close the master side explicitly.
50182 2010-04-25  Bruno Haible  <bruno@clisp.org>
50184         strnlen: Fix a C++ test error on MacOS X and Solaris.
50185         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
50186         the function is not declared.
50187         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
50188         Simon Josefsson.
50190 2010-04-24  Bruno Haible  <bruno@clisp.org>
50192         Avoid a gcc warning.
50193         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
50194         of correct type for %08lx directive.
50195         Reported by Eric Blake.
50197 2010-04-24  Bruno Haible  <bruno@clisp.org>
50199         vasnprintf: Correct errno value in case of out-of-memory.
50200         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
50201         or sprintf. Use the errno value from SNPRINTF or sprintf.
50202         Reported by Ian Beckwith <ianb@erislabs.net>.
50204 2010-04-24  Bruno Haible  <bruno@clisp.org>
50206         ansi-c++-opt: Find correct compiler when cross-compiling.
50207         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
50208         AC_CHECK_PROGS.
50209         Reported by Simon Josefsson.
50211 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
50213         vc-list-files: Add support for subversion
50214         * build-aux/vc-list-files: Use "svn list" to generate the list of
50215         files controlled by subversion.
50217 2010-04-23  Jim Meyering  <meyering@redhat.com>
50219         vc-list-files tests: convert to use init.sh
50220         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
50221         path_prepend_.
50222         Use Exit, not exit.
50223         Use skip_ rather than open coding it.
50224         Remove trap set-up and compare definitions.
50225         * tests/test-vc-list-files-git.sh: Likewise.
50226         * modules/vc-list-files-tests (Files): Add tests/init.sh.
50228 2010-04-22  Simon Josefsson  <simon@josefsson.org>
50230         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
50231         backup files.
50233 2010-04-21  Simon Josefsson  <simon@josefsson.org>
50235         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
50237 2010-04-20  Eric Blake  <eblake@redhat.com>
50239         tests: be robust to ignored SIGPIPE
50240         * tests/test-select-in.sh: Consume all output.
50241         * tests/test-lseek.sh: Check correct exit status, while avoiding
50242         EPIPE.
50244 2010-04-20  Simon Josefsson  <simon@josefsson.org>
50245             Bruno Haible  <bruno@clisp.org>
50247         visibility: Don't use -fvisibility if it leads to a warning.
50248         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
50249         yes, don't pretend that visibility works if it leads to a warning.
50250         Reported by Mike Gran <spk121@yahoo.com>.
50252 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
50254         * build-aux/bootstrap: Use "git -h" for testing for supported options
50255         instead of "git --help".  The short-form option only shows a summary,
50256         and doesn't layout the full man page.  Grep for the full option name
50257         in the summary, too.
50259 2010-04-19  Bruno Haible  <bruno@clisp.org>
50261         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
50262         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
50263         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
50264         mention of RELOCATABLE_STRIP.
50265         Reported by Sylvain Beucler <beuc@beuc.net>.
50267 2010-04-19  Bruno Haible  <bruno@clisp.org>
50269         * lib/diffseq.h: Fix typo in comment.
50270         Reported by Eric Blake.
50272 2010-04-19  Bruno Haible  <bruno@clisp.org>
50274         ioctl: Move autoconf macro to a .m4 file.
50275         * m4/ioctl.m4: New file, extracted from modules/ioctl.
50276         * modules/ioctl (Files): Add it.
50277         (configure.ac): Simply invoke gl_FUNC_IOCTL.
50278         Reported by Ian Beckwith <ianb@erislabs.net>.
50280 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
50281             Bruno Haible  <bruno@clisp.org>
50283         diffseq: Accommodate use-case with abstract arrays.
50284         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
50285         is not defined.
50286         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
50287         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
50289 2010-04-18  Bruno Haible  <bruno@clisp.org>
50291         * doc/posix-headers/stdbool.texi: More precise wording.
50293 2010-04-17  Jim Meyering  <meyering@redhat.com>
50295         maint.mk: use gnu-style indentation in an embedded perl script
50296         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
50297         Rename variable: s/two/last_two_bytes/
50299 2010-04-16  Eric Blake  <eblake@redhat.com>
50301         test-stdbool: skip test that fails with Solaris CC
50302         * tests/test-stdbool.c (f): Skip test that causes compilation
50303         error under buggy C++ compiler.
50304         * lib/stdbool.in.h: Document the limitation.
50305         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
50307         setenv: allow compilation with C++
50308         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
50309         register keyword.
50311         stdint: allow test to pass with C++
50312         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
50314         getopt: allow compilation with C++
50315         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
50316         struct.
50317         * lib/getopt.c (_getopt_internal_r): Use correct type.
50318         Reported by Dagobert Michelson, via Joel E. Denny.
50320 2010-04-16  Bruno Haible  <bruno@clisp.org>
50322         Override netdb.h always.
50323         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
50324         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
50325         Reported by Ludovic Courtès <ludo@gnu.org>.
50327 2010-04-15  Bruno Haible  <bruno@clisp.org>
50329         openpty: Fix mistake from 2010-03-21.
50330         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
50331         Reported by Simon Josefsson.
50333 2010-04-15  Eric Blake  <eblake@redhat.com>
50335         test-forkpty: fix expected signature
50336         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
50337         Reported by Simon Josefsson.
50339 2010-04-15  Jim Meyering  <meyering@redhat.com>
50341         maint.mk: texinfo_suffix_re_: correct the default regexp
50342         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
50344         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
50345         make it configurable via texinfo_suffix_re_.
50347 2010-04-14  Eric Blake  <eblake@redhat.com>
50349         strtok_r: relax license to LGPLv2+
50350         * modules/strtok_r (License): Relax license.
50351         Reported by Matthias Bolte.
50353 2010-04-14  Simon Josefsson  <simon@josefsson.org>
50355         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
50356         version 1.4.4 by default instead of requiring the libgcrypt
50357         version used during build.  This makes it possible to use the
50358         application with older but still binary compatible libgcrypt
50359         versions.
50361 2010-04-13  Eric Blake  <eblake@redhat.com>
50363         getopt-gnu: match recent glibc fixes and posix ruling
50364         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
50365         '+' handling, when requesting extensions.
50366         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
50367         'W;' handling.
50368         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
50369         * doc/posix-functions/getopt.texi (getopt): Document this.
50370         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
50371         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
50372         Likewise.
50374         getopt: merge bug fixes from glibc
50375         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
50376         diagnostics.  Honor '+:' correctly.  Reject ';'.
50378         getopt-posix: detect MacOS bug
50379         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
50380         optind when missing a required argument.
50381         * doc/posix-functions/getopt.texi (getopt): Document the bug.
50382         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
50383         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
50384         Likewise.
50386         getopt-posix: avoid spurious failure on Solaris
50387         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
50388         an indicator that setting optind=1 is sufficient for reset.
50390         getopt-posix: avoid spurious failure on FreeBSD
50391         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
50392         in POSIX mode, since the m4 test uses it.
50394         gnulib-tool: silence warning on BSD sh
50395         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
50397 2010-04-13  Jim Meyering  <meyering@redhat.com>
50399         doc: users.txt: GNU patch now uses gnulib
50400         * users.txt: Add patch.
50402 2010-04-12  Jim Meyering  <meyering@redhat.com>
50404         maint.mk: generate more concise timing data for syntax-check rules
50405         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
50406         " done" from each line that reports a syntax-check test duration.
50408 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
50410         git-version-gen: use "git update-index..." rather than "git status"
50411         * build-aux/git-version-gen: Use git update-index --refresh, not
50412         "git status".  With some versions of git, "git status" would fail
50413         to update the index and result in an unwarranted "-dirty" suffix.
50415 2010-04-11  Jim Meyering  <meyering@redhat.com>
50417         openat: correct formatting (no semantic change)
50418         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
50419         Suggested by Bruno Haible.
50421 2010-04-11  Bruno Haible  <bruno@clisp.org>
50423         Stricter declaration checking in testdirs.
50424         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50425         If for_tests is true, augment AM_CPPFLAGS to define
50426         GNULIB_STRICT_CHECKING.
50427         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
50428         GNULIB_STRICT_CHECKING is defined, verify that the function is
50429         declared.
50431 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
50432             Bruno Haible  <bruno@clisp.org>
50434         libunistring: Improve configure output.
50435         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
50436         Don't say "consider installing GNU libunistring" when checking again
50437         with libiconv.
50439 2010-04-11  Bruno Haible  <bruno@clisp.org>
50441         libunistring: Correct value of $LTLIBUNISTRING.
50442         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
50443         correct the value of $LTLIBUNISTRING.
50445 2010-04-11  Bruno Haible  <bruno@clisp.org>
50447         havelib: Add static libraries to LIBS in the right order.
50448         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
50449         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
50451 2010-04-11  Bruno Haible  <bruno@clisp.org>
50453         libunistring: Detect libunistring also when it depends on libiconv.
50454         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
50455         the second AC_LIB_HAVE_LINKFLAGS invocation.
50457 2010-04-11  James Youngman  <jay@gnu.org>
50459         close-stream: declare local scalars to be "const"
50460         * lib/close-stream.c (close_stream): Make boolean variables const
50461         to document the fact that we set but do not change them.
50463 2010-04-11  Bruno Haible  <bruno@clisp.org>
50465         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
50467 2010-04-11  Jim Meyering  <meyering@redhat.com>
50469         maint.mk: don't include dist-check.mk
50470         * top/maint.mk: Remove bogus include directive.
50472         maint.mk: improve empty-line-at-EOF check
50473         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
50474         solution, rather than tail+Perl-based one.  The latter would read
50475         a few kilobytes from the end of each file, and did not handle empty
50476         files properly.
50478         maint.mk: print the elapsed time for each syntax-check rule
50479         * top/maint.mk (sc_m_rules_): Save start time in a file.
50480         (sc_z_rules_): New rules: remove temp file and print elapsed time.
50481         (local-check): Interpose the .z rules
50483 2010-04-11  Jim Meyering  <meyering@redhat.com>
50485         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
50486         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
50487         empty file with one that ends in an empty line.
50489 2010-04-10  Bruno Haible  <bruno@clisp.org>
50491         mkdir: Make it work on mingw64.
50492         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
50493         * lib/mkdir.c: Update comment.
50494         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
50496 2010-04-10  Bruno Haible  <bruno@clisp.org>
50498         Don't override improved macro from newer autoconf.
50499         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
50500         autoconf >= 2.62.
50501         Reported by Joel E. Denny <jdenny@clemson.edu>.
50503 2010-04-10  Jim Meyering  <meyering@redhat.com>
50505         maint.mk: new syntax-check rule: prohibit empty lines at end of file
50506         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
50508         maint.mk: correct a diagnostic
50509         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
50510         in diagnostic; now use $prohibit.
50512 2010-04-10  Bruno Haible  <address@hidden>
50514         fchownat: Fix a C++ test error on Solaris 8.
50515         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
50516         the function does not exist.
50518 2010-04-10  Bruno Haible  <bruno@clisp.org>
50520         vasnprintf: Add more tests.
50521         * tests/test-vasnprintf-posix.c: Include <errno.h>.
50522         (test_function): Test converting an invalid wide string.
50524         vasnprintf: Correct handling of unconvertible wide string arguments.
50525         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
50526         VASNPRINTF.
50527         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
50528         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
50529         smaller than the expected maximum need for the directive. Set errno to
50530         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
50531         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
50532         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
50533         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
50534         * modules/vasnprintf (Files): Add m4/printf.m4.
50535         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
50537 2010-04-10  Bruno Haible  <bruno@clisp.org>
50539         vasnprintf: Fix crash in %ls directive.
50540         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
50541         string is passed as argument to %ls, with no precision and no width.
50542         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
50544 2010-04-10  Bruno Haible  <bruno@clisp.org>
50546         vasnprintf: Fix multiple test failures on mingw.
50547         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
50548         _snprintf, or snwprintf, not _snwprintf.
50550 2010-04-10  Bruno Haible  <bruno@clisp.org>
50552         write: Fix a C++ test error on mingw.
50553         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
50555 2010-04-10  Bruno Haible  <bruno@clisp.org>
50557         vasnprintf test: Reduce code duplication.
50558         * tests/test-vasnprintf.c (test_function): New function, extracted from
50559         test_vasnprintf.
50560         (test_vasnprintf, test_asnprintf): Invoke it.
50562 2010-04-10  Bruno Haible  <bruno@clisp.org>
50564         strnlen: Fix warning in C++ mode on MacOS X.
50565         * lib/string.in.h (strnlen): Use the modern idiom.
50566         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
50567         defining strnlen as a macro already in <config.h>.
50568         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
50569         REPLACE_STRNLEN.
50570         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
50571         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
50573 2010-04-08  James Youngman  <jay@gnu.org>
50575         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
50576         the example.
50578 2010-04-09  Jim Meyering  <meyering@redhat.com>
50580         maint.mk: print better diagnostic when there is no $(_hv_file)
50581         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
50582         announce that when $(_hv_file) (aka help-version) does not exist.
50584         init.sh: run tr in the "C" locale to avoid multibyte interpretation
50585         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
50586         not try to interpret its random input bytes.  Jarno Rajahalme reported
50587         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
50588         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
50589         (mktempd_): Likewise, just in case.
50591         ftruncate: add two years to projected module removal date: 2012
50592         * m4/ftruncate.m4: Adjust comments.
50594         ftruncate: mark module as obsolete; even MinGW provides it, now
50595         * modules/ftruncate (Status): Obsolete.
50596         (Notice): Say that.
50597         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
50598         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
50600 2010-04-08  Bruno Haible  <bruno@clisp.org>
50602         Fix side effects from tests-related modules.
50603         * modules/dprintf-posix (Comment): New section.
50604         * modules/fprintf-posix (Comment): Likewise.
50605         * modules/obstack-printf-posix (Comment): Likewise.
50606         * modules/printf-posix (Comment): Likewise.
50607         * modules/snprintf-posix (Comment): Likewise.
50608         * modules/sprintf-posix (Comment): Likewise.
50609         * modules/vasnprintf-posix (Comment): Likewise.
50610         * modules/vasprintf-posix (Comment): Likewise.
50611         * modules/vdprintf-posix (Comment): Likewise.
50612         * modules/vfprintf-posix (Comment): Likewise.
50613         * modules/vprintf-posix (Comment): Likewise.
50614         * modules/vsnprintf-posix (Comment): Likewise.
50615         * modules/vsprintf-posix (Comment): Likewise.
50616         * modules/xprintf-posix (Comment): Likewise.
50617         * modules/xvasprintf-posix (Comment): Likewise.
50618         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
50619         * modules/floorf-tests (Depends-on): Likewise.
50620         * modules/round-tests (Depends-on): Likewise.
50621         * modules/roundf-tests (Depends-on): Likewise.
50622         * modules/trunc-tests (Depends-on): Likewise.
50623         * modules/truncf-tests (Depends-on): Likewise.
50624         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
50625         'fprintf-posix' module is not present.
50626         * tests/test-floorf2.c (check): Likewise.
50627         * tests/test-trunc2.c (check): Likewise.
50628         * tests/test-truncf2.c (check): Likewise.
50629         * tests/test-round2.c (equal): Likewise.
50630         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
50632 2010-04-07  Karl Berry  <karl@gnu.org>
50634         * config/srclist.txt,
50635         * config/srclistvars.sh,
50636         * config/srclist-update: doc fixes.
50638 2010-04-07  Jim Meyering  <meyering@redhat.com>
50640         maint.mk: add a PATH crosschecking syntax-check rule
50641         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
50642         Useful if you use a test like the one in help-version (coreutils,
50643         diffutils, grep, gzip) that ensures $(VERSION) matches what is
50644         printed by prog --version.
50646 2010-04-06  Bruno Haible  <bruno@clisp.org>
50648         Fix link error on mingw.
50649         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
50650         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
50652 2010-04-06  Bruno Haible  <bruno@clisp.org>
50654         Assume rmdir exists.
50655         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
50657 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
50659         doc: update users.txt
50660         * users.txt: Add gcal.
50662 2010-04-06  Jim Meyering  <meyering@redhat.com>
50664         init.sh: simply unset TMPDIR rather than risking env -i
50665         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
50666         although it probably works fine on all Unix-based systems, some
50667         systems (Cygwin?) cannot tolerate a totally cleared environment.
50668         Suggestion from Eric Blake.
50670 2010-04-06  Jim Meyering  <meyering@redhat.com>
50672         init.sh: portability fix: use env's POSIX-specified -i option not -u
50673         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
50674         than unportable env -u.  Solaris 5.11's env lacks support for -u.
50676 2010-04-05  Bruno Haible  <bruno@clisp.org>
50678         btowc: Work around Cygwin 1.7.2 bug.
50679         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
50680         does not map NUL to 0.
50681         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
50683 2010-04-05  Bruno Haible  <bruno@clisp.org>
50685         Make the multithread modules work on Cygwin 1.7.2.
50686         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
50687         imported symbols can be declared weak, so that it returns "no" on
50688         Cygwin 1.7.2.
50690 2010-04-05  Bruno Haible  <bruno@clisp.org>
50692         Use the module 'strncat'.
50693         * modules/unistr/u8-strncat (Depends-on): Add strncat.
50695         Tests for module 'strncat'.
50696         * modules/strncat-tests: New file.
50697         * tests/test-strncat.c: New file.
50699         New module 'strncat'.
50700         * lib/string.in.h (strncat): New declaration.
50701         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
50702         * m4/strncat.m4: New file, based on m4/memchr.m4.
50703         * modules/strncat: New file.
50704         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
50705         is declared.
50706         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
50707         REPLACE_STRNCAT.
50708         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
50709         REPLACE_STRNCAT.
50710         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
50711         module.
50712         * tests/test-string-c++.cc: Check signature of strncat.
50714 2010-04-05  Jim Meyering  <meyering@redhat.com>
50716         xstrtoumax-tests: convert to use init.sh
50717         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
50718         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
50719         Use Exit, not exit.
50720         Remove uses of $EXEEXT and "./" to run a program in the current dir.
50722         xstrtoimax-tests: convert to use init.sh
50723         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
50724         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
50725         Use Exit, not exit.
50726         Remove uses of $EXEEXT and "./" to run a program in the current dir.
50728 2010-04-05  Bruno Haible  <bruno@clisp.org>
50730         sys_socket: Avoid #define replacements in C++ mode.
50731         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
50732         warning to the function if possible, rather than #defining the symbol
50733         to a dysfunctional alias.
50735 2010-04-05  Bruno Haible  <bruno@clisp.org>
50737         fseeko: Fix C++ test error on mingw.
50738         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
50739         gl_FUNC_FSEEKO.
50740         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
50741         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
50742         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
50743         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
50745 2010-04-05  Bruno Haible  <bruno@clisp.org>
50747         duplocale: Improve test output.
50748         * tests/test-duplocale.c (main): Print reason for skipped test.
50750 2010-04-05  Bruno Haible  <bruno@clisp.org>
50752         Assume rmdir exists.
50753         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
50754         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
50756 2010-04-05  Bruno Haible  <bruno@clisp.org>
50758         Fix link error on Solaris 8 with cc.
50759         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
50761 2010-04-05  Bruno Haible  <bruno@clisp.org>
50763         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
50764         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
50766 2010-04-05  Bruno Haible  <bruno@clisp.org>
50768         vasprintf: Update documentation.
50769         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
50771 2010-04-05  Bruno Haible  <bruno@clisp.org>
50773         ptsname: Improve test.
50774         * tests/test-ptsname.c (main): Also try the various master names of BSD
50775         systems.
50777 2010-04-05  Bruno Haible  <bruno@clisp.org>
50779         memchr: Avoid a possible C++ test error.
50780         * lib/string.in.h (memchr): Provide declaration if function is missing.
50781         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
50782         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
50783         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
50784         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
50786 2010-04-05  Bruno Haible  <bruno@clisp.org>
50788         strtok_r: Improve idiom.
50789         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
50790         AC_LIBOBJ is used.
50792 2010-04-05  Bruno Haible  <bruno@clisp.org>
50794         strdup: Improve idiom.
50795         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
50796         AC_LIBOBJ is used.
50797         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
50798         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
50799         when AC_LIBOBJ is used.
50801 2010-04-05  Bruno Haible  <bruno@clisp.org>
50803         mbsinit, mbrtowc, wcrtomb: Improve idioms.
50804         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
50805         don't set REPLACE_MBSINIT to 1.
50806         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
50807         don't set REPLACE_MBRTOWC to 1.
50808         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
50809         exist, don't set REPLACE_MBSRTOWCS to 1.
50810         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
50811         exist, don't set REPLACE_MBSNRTOWCS to 1.
50812         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
50813         don't set REPLACE_WCRTOMB to 1.
50814         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
50815         exist, don't set REPLACE_WCSRTOMBS to 1.
50816         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
50817         exist, don't set REPLACE_WCSNRTOMBS to 1.
50819 2010-04-05  Bruno Haible  <bruno@clisp.org>
50821         ldexpl: Improve idiom.
50822         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
50823         make sure to set HAVE_DECL_LDEXPL to 0.
50825 2010-04-05  Jim Meyering  <meyering@redhat.com>
50827         xstrtol-tests: convert to use init.sh
50828         * modules/xstrtol-tests (Files): Add tests/init.sh.
50829         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
50830         Use Exit, not exit.
50831         Remove uses of $EXEEXT and "./" to run a program in the current dir.
50833         atexit-tests: convert to use init.sh
50834         * modules/atexit-tests (Files): Add tests/init.sh.
50835         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
50836         Use Exit, not exit.
50837         Remove uses of $EXEEXT and "./" to run a program in the current dir.
50839         init.sh: fix typo
50840         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
50842         init.sh: make it easier for a test script to write to the tty, ...
50843         when using automake's parallel-tests mode.
50844         * tests/init.sh (stderr_fileno_): Define overridable variable.
50845         (warn_): New function, to use it.
50846         (fail_, skip_, framework_failure_): Use warn_.
50848 2010-04-04  Bruno Haible  <bruno@clisp.org>
50850         btowc: Avoid warning.
50851         * lib/btowc.c: Include <stdlib.h>.
50852         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
50854 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
50855             Bruno Haible  <bruno@clisp.org>
50857         wchar: Port to NetBSD 1.5.
50858         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
50859         * lib/wctype.in.h (WEOF): Likewise.
50861 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
50862             Bruno Haible  <bruno@clisp.org>
50864         Port extended stdio to NetBSD 1.5.
50865         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
50866         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
50867         older.
50869 2010-04-04  Bruno Haible  <bruno@clisp.org>
50871         string: Remove unused substitution.
50872         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
50873         HAVE_DECL_STRERROR.
50874         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
50876 2010-04-04  Bruno Haible  <bruno@clisp.org>
50878         strtod: Avoid a possible C++ test error.
50879         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
50880         set REPLACE_STRTOD.
50882 2010-04-04  Bruno Haible  <bruno@clisp.org>
50884         strerror: Update documentation.
50885         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
50887 2010-04-04  Bruno Haible  <bruno@clisp.org>
50889         stdio: Fix some C++ test errors on Solaris 8 with GCC.
50890         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
50891         _GL_CXXALIAS_SYS_CAST.
50893 2010-04-04  Bruno Haible  <bruno@clisp.org>
50895         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
50896         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
50897         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
50898         REPLACE_FREXPL to 1.
50899         * doc/posix-functions/frexpl.texi: Update documentation.
50901 2010-04-04  Bruno Haible  <bruno@clisp.org>
50903         math: Fix some C++ test errors on Solaris 8 and Cygwin.
50904         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
50906 2010-04-04  Bruno Haible  <bruno@clisp.org>
50908         Implement nanosleep for native Windows.
50909         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
50911 2010-04-04  Bruno Haible  <bruno@clisp.org>
50913         math: Fix some C++ test errors on Solaris 8.
50914         * lib/math.in.h (truncf, trunc): Use simpler idiom.
50916 2010-04-04  Bruno Haible  <bruno@clisp.org>
50918         math: Fix some C++ test errors on Cygwin.
50919         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
50920         truncl): Provide declaration if the system does not have it.
50921         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
50922         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
50923         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
50924         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
50925         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
50926         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
50927         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
50928         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
50929         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
50930         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
50931         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
50932         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
50933         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
50934         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
50935         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
50936         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
50937         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
50938         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
50939         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
50940         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
50941         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
50942         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
50944 2010-04-04  Bruno Haible  <bruno@clisp.org>
50946         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
50947         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
50948         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
50949         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
50950         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
50951         * m4/isinf.m4 (gl_ISINF): Likewise.
50952         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
50954 2010-04-04  Bruno Haible  <bruno@clisp.org>
50956         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
50957         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
50959 2010-04-04  Bruno Haible  <bruno@clisp.org>
50961         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
50962         * modules/tmpfile (configure.ac): Update.
50964         tmpfile: Fix C++ test error on mingw.
50965         * lib/stdio.in.h (tmpfile): New declaration.
50966         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
50967         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
50968         * modules/tmpfile (Depends-on): Add stdio.
50969         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
50970         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
50971         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
50972         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
50973         REPLACE_TMPFILE.
50974         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
50976 2010-04-04  Bruno Haible  <bruno@clisp.org>
50978         ioctl: Fix C++ test error on mingw.
50979         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
50980         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
50981         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
50983 2010-04-03  Bruno Haible  <bruno@clisp.org>
50985         wcwidth: Fix C++ test error on mingw.
50986         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
50987         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
50988         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
50990 2010-04-03  Bruno Haible  <bruno@clisp.org>
50992         nanosleep: Fix C++ test error on mingw.
50993         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
50994         * lib/time.in.h (nanosleep): Use modern idiom.
50995         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
50996         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
50997         REPLACE_NANOSLEEP to 1.
50998         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
50999         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
51001 2010-04-03  Bruno Haible  <bruno@clisp.org>
51003         strptime: Fix C++ test error on mingw.
51004         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
51005         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
51006         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
51007         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
51008         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
51009         not REPLACE_STRPTIME.
51010         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
51011         REPLACE_STRPTIME.
51013 2010-04-03  Bruno Haible  <bruno@clisp.org>
51015         timegm: Fix C++ test error on mingw.
51016         * lib/time.in.h (timegm): Use modern idiom.
51017         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
51018         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
51019         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
51020         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
51022 2010-04-03  Bruno Haible  <bruno@clisp.org>
51024         timegm: Assume declaration if function exists.
51025         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
51026         if it exists. Don't clobber ac_cv_func_timegm.
51028 2010-04-03  Bruno Haible  <bruno@clisp.org>
51030         time_r: Fix C++ test error on mingw.
51031         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
51032         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
51033         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
51034         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
51035         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
51037 2010-04-03  Bruno Haible  <bruno@clisp.org>
51039         time_r: Minor updates.
51040         * modules/time_r (Description): Mention the provided functions.
51041         * lib/time_r.c: Don't include <string.h>.
51042         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
51043         * doc/posix-functions/localtime_r.texi: Likewise.
51045 2010-04-03  Bruno Haible  <bruno@clisp.org>
51047         time: Fix regression introduced on 2010-03-08.
51048         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
51049         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
51051 2010-04-03  Jim Meyering  <meyering@redhat.com>
51053         maint.mk: don't silently disable project-specific syntax-check rules
51054         * top/maint.mk (_prohibit_regexp): Define, to help people realize
51055         that they need to convert their project-specific syntax-check rules
51056         to use the new _sc_search_regexp.
51058 2010-04-03  Bruno Haible  <bruno@clisp.org>
51060         fchdir: Fix regression introduced on 2010-03-08.
51061         * lib/unistd.in.h (fchdir): Fix declaration.
51062         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
51063         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
51064         REPLACE_FCHDIR.
51065         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
51066         REPLACE_FCHDIR.
51068 2010-04-03  Bruno Haible  <bruno@clisp.org>
51070         getpagesize: Fix C++ test error on mingw.
51071         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
51072         system does not declare the function.
51073         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
51074         declared.
51075         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51076         HAVE_DECL_GETPAGESIZE.
51077         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
51079 2010-04-03  Bruno Haible  <bruno@clisp.org>
51081         stdio: Make C++ tests work on mingw.
51082         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
51083         does not declare the function.
51085 2010-04-03  Bruno Haible  <bruno@clisp.org>
51087         ftello: Fix C++ test error on mingw.
51088         * lib/stdio.in.h (ftello): Use modern idiom.
51089         * lib/ftello.c (ftello): Renamed from rpl_ftello.
51090         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
51091         is missing and that it needs to be replaced.
51092         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
51093         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
51094         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
51096 2010-04-03  Bruno Haible  <bruno@clisp.org>
51098         fseeko: Fix C++ test error on mingw.
51099         * lib/stdio.in.h (fseeko): Use modern idiom.
51100         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
51101         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
51102         is missing and that it needs to be replaced.
51103         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
51104         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
51105         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
51107 2010-04-03  Bruno Haible  <bruno@clisp.org>
51109         mkstemp: Fix C++ test error on mingw.
51110         * lib/stdlib.in.h (mkstemp): Use modern idiom.
51111         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
51112         function is missing and that it needs to be replaced.
51113         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
51114         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
51116 2010-04-03  Bruno Haible  <bruno@clisp.org>
51118         stpncpy: Fix C++ test error on mingw.
51119         * lib/string.in.h (stpncpy): Use modern idiom.
51120         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
51121         function is missing and that it needs to be replaced.
51122         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51123         REPLACE_STPNCPY.
51124         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
51126 2010-04-03  Bruno Haible  <bruno@clisp.org>
51128         sys_stat: Fix C++ test error on mingw.
51129         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
51130         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
51132 2010-04-03  Bruno Haible  <bruno@clisp.org>
51134         pty: Update doc.
51135         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
51137 2010-04-03  Bruno Haible  <bruno@clisp.org>
51139         unistd: Fix C++ test error on mingw.
51140         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
51142 2010-04-03  Bruno Haible  <bruno@clisp.org>
51144         Update doc regarding mingw.
51145         * doc/glibc-functions/openpty.texi: Update regarding mingw.
51146         * doc/glibc-functions/login_tty.texi: Likewise.
51147         * doc/glibc-functions/forkpty.texi: Likewise.
51149 2010-04-03  Bruno Haible  <bruno@clisp.org>
51151         stdlib: Avoid compilation failure of c-strtold on mingw.
51152         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
51154 2010-04-03  Bruno Haible  <bruno@clisp.org>
51156         locale: Make C++ tests work on Cygwin and mingw.
51157         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
51158         cannot provide the function.
51159         Reported by Simon Josefsson.
51161 2010-04-03  Bruno Haible  <bruno@clisp.org>
51163         localename: Port to MacOS X 10.6.
51164         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
51165         memory layout of the locales in MacOS X 10.6 as well.
51166         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
51168 2010-04-02  Bruno Haible  <bruno@clisp.org>
51170         gnulib-tool: Ensure that long-running tests are executed last.
51171         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
51172         running tests after the one for the other tests.
51174 2010-04-02  Bruno Haible  <bruno@clisp.org>
51176         gnulib-tool: Ensure the tests in the main directory are executed first.
51177         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
51178         start with the current directory.
51180 2010-04-02  Bruno Haible  <bruno@clisp.org>
51182         Tests for module 'havelib', moved here from GNU gettext.
51183         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
51184         modifications.
51185         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
51186         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
51187         with modifications.
51188         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
51189         modifications.
51190         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
51191         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
51192         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
51193         with modifications.
51194         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
51195         with modifications.
51196         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
51197         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
51198         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
51199         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
51200         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
51201         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
51202         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
51203         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
51204         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
51205         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
51206         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
51207         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
51208         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
51209         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
51210         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
51211         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
51212         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
51213         with modifications.
51214         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
51215         with modifications.
51216         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
51217         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
51218         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
51219         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
51220         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
51221         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
51222         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
51223         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
51224         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
51225         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
51226         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
51227         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
51228         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
51229         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
51230         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
51231         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
51232         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
51233         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
51234         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
51235         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
51236         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
51237         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
51238         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
51239         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
51240         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
51241         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
51242         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
51243         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
51244         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
51245         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
51246         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
51247         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
51248         * tests/havelib/rpathx/rpathx.c: New file, from
51249         gettext/autoconf-lib-link.
51250         * tests/havelib/rpathx/Makefile.am: New file, from
51251         gettext/autoconf-lib-link.
51252         * tests/havelib/rpathx/configure.ac: New file, from
51253         gettext/autoconf-lib-link with modifications.
51254         * tests/havelib/rpathy/rpathy.c: New file, from
51255         gettext/autoconf-lib-link.
51256         * tests/havelib/rpathy/Makefile.am: New file, from
51257         gettext/autoconf-lib-link.
51258         * tests/havelib/rpathy/configure.ac: New file, from
51259         gettext/autoconf-lib-link with modifications.
51260         * tests/havelib/rpathz/rpathz.c: New file, from
51261         gettext/autoconf-lib-link.
51262         * tests/havelib/rpathz/Makefile.am: New file, from
51263         gettext/autoconf-lib-link.
51264         * tests/havelib/rpathz/configure.ac: New file, from
51265         gettext/autoconf-lib-link with modifications.
51266         * tests/havelib/rpathlx/usex.c: New file, from
51267         gettext/autoconf-lib-link.
51268         * tests/havelib/rpathlx/Makefile.am: New file, from
51269         gettext/autoconf-lib-link.
51270         * tests/havelib/rpathlx/configure.ac: New file, from
51271         gettext/autoconf-lib-link with modifications.
51272         * tests/havelib/rpathly/usey.c: New file, from
51273         gettext/autoconf-lib-link.
51274         * tests/havelib/rpathly/Makefile.am: New file, from
51275         gettext/autoconf-lib-link.
51276         * tests/havelib/rpathly/configure.ac: New file, from
51277         gettext/autoconf-lib-link with modifications.
51278         * tests/havelib/rpathlz/usez.c: New file, from
51279         gettext/autoconf-lib-link.
51280         * tests/havelib/rpathlz/Makefile.am: New file, from
51281         gettext/autoconf-lib-link.
51282         * tests/havelib/rpathlz/configure.ac: New file, from
51283         gettext/autoconf-lib-link with modifications.
51284         * tests/havelib/rpathlyx/usey.c: New file, from
51285         gettext/autoconf-lib-link.
51286         * tests/havelib/rpathlyx/Makefile.am: New file, from
51287         gettext/autoconf-lib-link.
51288         * tests/havelib/rpathlyx/configure.ac: New file, from
51289         gettext/autoconf-lib-link with modifications.
51290         * tests/havelib/rpathlzyx/usez.c: New file, from
51291         gettext/autoconf-lib-link.
51292         * tests/havelib/rpathlzyx/Makefile.am: New file, from
51293         gettext/autoconf-lib-link.
51294         * tests/havelib/rpathlzyx/configure.ac: New file, from
51295         gettext/autoconf-lib-link with modifications.
51296         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
51297         with modifications.
51299 2010-04-02  Bruno Haible  <bruno@clisp.org>
51301         gnulib-tool: Create distributed built sources also for the tests.
51302         * gnulib-tool (func_create_testdir): Also generate distributed built
51303         sources in the tests directory.
51305 2010-04-02  Bruno Haible  <bruno@clisp.org>
51307         gnulib-tool: Obey user's environment variables.
51308         * gnulib-tool (func_create_testdir): When creating built sources,
51309         respect the environment variables for autoconf, automake, etc. given by
51310         the user.
51312 2010-04-02  Bruno Haible  <bruno@clisp.org>
51314         gnulib-tool: Provide the value of --m4-base to modules.
51315         * gnulib-tool (func_import, func_create_testdir): Emit a definition
51316         of gl_m4_base.
51318 2010-04-02  Eric Blake  <eblake@redhat.com>
51320         maint.mk: fix some fallout
51321         * NEWS: Document the incompatible change, and its effect on cfg.mk.
51322         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
51324 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
51326         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
51327         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
51328         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
51329         (sc_cast_of_x_alloc_return_value): Likewise.
51330         (sc_cast_of_alloca_return_value): Likewise.
51331         (sc_space_tab): Likewise.
51332         (sc_prohibit_atoi_atof): Likewise.
51333         (sc_prohibit_magic_number_exit): Likewise.
51334         (sc_error_exit_success): Likewise.
51335         (sc_file_system): Likewise.
51336         (sc_prohibit_have_config_h): Likewise.
51337         (sc_require_config_h): Likewise.
51338         (sc_prohibit_HAVE_MBRTOWC): Likewise.
51339         (sc_obsolete_symbols): Likewise.
51340         (sc_changelog): Likewise.
51341         (sc_program_name): Likewise.
51342         (sc_the_the): Likewise.
51343         (sc_trailing_blank): Likewise.
51344         (sc_two_space_separator_in_usage): Likewise.
51345         (sc_useless_cpp_parens): Likewise.
51346         (sc_GPL_version): Likewise.
51347         (sc_GFDL_version): Likewise.
51348         (sc_texinfo_acronym): Likewise.
51349         (sc_prohibit_cvs_keyword): Likewise.
51350         (sc_prohibit_stat_st_blocks): Likewise.
51351         (sc_prohibit_S_IS_definition): Likewise.
51352         (sc_redundant_const): Likewise.
51353         (sc_makefile_TAB_only_indentation): Likewise.
51354         (sc_m4_quote_check): Likewise.
51355         (sc_makefile_path_separator_check): Likewise.
51356         (sc_copyright_check): Likewise.
51357         (sc_Wundef_boolean): Likewise.
51358         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
51360         maint.mk: match 0 or more whitespace-before-function-call '('
51361         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
51362         that have zero or two-and-more spaces between the function name
51363         and the open parenthesis.
51364         (sc_error_message_warn_fatal): Likewise.
51365         (sc_error_message_uppercase): Likewise.
51366         (sc_error_message_period): Likewise.
51368 2010-03-31  Eric Blake  <eblake@redhat.com>
51370         maint.mk: check for [ as well as test
51371         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
51372         Based on a libvirt report by Matthias Bolte.
51374         gnumakefile: don't squelch _version output
51375         * top/GNUmakefile (_version): Create one-shot dependency rather
51376         than using $(shell) when version must be regenerated.
51377         (_autoreconf): Run verbosely, by default.
51379         sys_time: avoid compiler warnings
51380         * lib/sys_time.in.h (includes): Ensure gcc pragma is
51381         unconditional, fixing regression from 2010-03-29.
51382         Reported by Simon Josefsson.
51384 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
51386         maint.mk: s/_header_without_use/_sc_header_without_use/
51387         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
51388         (sc_prohibit_assert_without_use): Use the new name.
51389         (sc_prohibit_close_stream_without_use): Likewise.
51390         (sc_prohibit_getopt_without_use): Likewise.
51391         (sc_prohibit_quotearg_without_use): Likewise.
51392         (sc_prohibit_quote_without_use): Likewise.
51393         (sc_prohibit_long_options_without_use): Likewise.
51394         (sc_prohibit_inttostr_without_use): Likewise.
51395         (sc_prohibit_ignore_value_without_use): Likewise.
51396         (sc_prohibit_error_without_use): Likewise.
51397         (sc_prohibit_xalloc_without_use): Likewise.
51398         (sc_prohibit_hash_without_use): Likewise.
51399         (sc_prohibit_hash_pjw_without_use): Likewise.
51400         (sc_prohibit_safe_read_without_use): Likewise.
51401         (sc_prohibit_argmatch_without_use): Likewise.
51402         (sc_prohibit_canonicalize_without_use): Likewise.
51403         (sc_prohibit_root_dev_ino_without_use): Likewise.
51404         (sc_prohibit_openat_without_use): Likewise.
51405         (sc_prohibit_c_ctype_without_use): Likewise.
51406         (sc_prohibit_signal_without_use): Likewise.
51407         (sc_prohibit_intprops_without_use): Likewise.
51409 2010-03-30  Eric Blake  <eblake@redhat.com>
51411         maint: improve module indicators
51412         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
51413         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
51414         columns, and avoid extra macro expansion.
51416         fdopendir: work around FreeBSD bug
51417         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
51418         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
51419         * modules/dirent (Makefile.am): Substitute it.
51420         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
51421         declaration.
51422         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
51423         fix.
51424         Reported by Christian Weisgerber <naddy@mips.inka.de>.
51426 2010-03-29  Bruno Haible  <bruno@clisp.org>
51428         Emit #pragma system_header after the inclusion guard, not before.
51429         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
51430         guard that spans the entire file, not before. This enables an
51431         optimization in GCC's preprocessor.
51432         * lib/ctype.in.h: Likewise.
51433         * lib/dirent.in.h: Likewise.
51434         * lib/errno.in.h: Likewise.
51435         * lib/float.in.h: Likewise.
51436         * lib/getopt.in.h: Likewise.
51437         * lib/iconv.in.h: Likewise.
51438         * lib/langinfo.in.h: Likewise.
51439         * lib/locale.in.h: Likewise.
51440         * lib/math.in.h: Likewise.
51441         * lib/netdb.in.h: Likewise.
51442         * lib/netinet_in.in.h: Likewise.
51443         * lib/pty.in.h: Likewise.
51444         * lib/sched.in.h: Likewise.
51445         * lib/se-selinux.in.h: Likewise.
51446         * lib/search.in.h: Likewise.
51447         * lib/spawn.in.h: Likewise.
51448         * lib/stdarg.in.h: Likewise.
51449         * lib/stdint.in.h: Likewise.
51450         * lib/string.in.h: Likewise.
51451         * lib/strings.in.h: Likewise.
51452         * lib/sys_file.in.h: Likewise.
51453         * lib/sys_ioctl.in.h: Likewise.
51454         * lib/sys_time.in.h: Likewise.
51455         * lib/sys_times.in.h: Likewise.
51456         * lib/sys_utsname.in.h: Likewise.
51457         * lib/sys_wait.in.h: Likewise.
51458         * lib/sysexits.in.h: Likewise.
51459         * lib/wctype.in.h: Likewise.
51461 2010-03-28  James Youngman  <jay@gnu.org>
51463         save-cwd: don't leak a file descriptor when the caller execs.
51464         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
51465         saved file descriptor.
51466         * modules/save-cwd (Depends-on): Depend on cloexec.
51468 2010-03-29  Bruno Haible  <bruno@clisp.org>
51470         Remove vestiges of fts-lgpl module.
51471         * lib/fts_.h: Assume GNULIB_FTS is 1.
51472         * lib/fts.c: Likewise.
51473         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
51475 2010-03-28  Bruno Haible  <bruno@clisp.org>
51477         Fix definition of tests witness macro.
51478         * gnulib-tool (func_import): Fix definition of witness macro.
51480 2010-03-28  Bruno Haible  <bruno@clisp.org>
51482         Fix ioctl's protoype on glibc systems.
51483         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
51484         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
51485         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
51486         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
51487         signature. If not, arrange to replace the ioctl function.
51488         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
51489         REPLACE_IOCTL.
51490         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
51491         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
51492         Reported by Ludovic Courtès <ludo@gnu.org>.
51494 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
51496         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
51497         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
51498         made it so grep -r --include=GLOB* ... did not work.
51500 2010-03-26  Jim Meyering  <meyering@redhat.com>
51501             Eric Blake  <eblake@redhat.com>
51503         maint.mk: prohibit use of test's -o and -a operators
51504         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
51506 2010-03-28  Bruno Haible  <bruno@clisp.org>
51508         Remove unused GNULIB_XYZ macro definitions.
51509         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
51510         invocation.
51512 2010-03-28  Bruno Haible  <bruno@clisp.org>
51514         Mark privileged tests modules.
51515         * modules/idpriv-drop-tests (Status): New section.
51516         * modules/idpriv-droptemp-tests (Status): New section.
51518 2010-03-28  Bruno Haible  <bruno@clisp.org>
51520         Split C++ tests into separate tests modules.
51521         * modules/dirent-c++-tests: New file, extracted from
51522         modules/dirent-tests.
51523         * modules/dirent-tests: Depend on it.
51524         * modules/fcntl-h-c++-tests: New file, extracted from
51525         modules/fcntl-h-tests.
51526         * modules/fcntl-h-tests: Depend on it.
51527         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
51528         * modules/glob-tests: Depend on it.
51529         * modules/iconv-h-c++-tests: New file, extracted from
51530         modules/iconv-h-tests.
51531         * modules/iconv-h-tests: Depend on it.
51532         * modules/langinfo-c++-tests: New file, extracted from
51533         modules/langinfo-tests.
51534         * modules/langinfo-tests: Depend on it.
51535         * modules/locale-c++-tests: New file, extracted from
51536         modules/locale-tests.
51537         * modules/locale-tests: Depend on it.
51538         * modules/math-c++-tests: New file, extracted from modules/math-tests.
51539         * modules/math-tests: Depend on it.
51540         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
51541         * modules/pty-tests: Depend on it.
51542         * modules/search-c++-tests: New file, extracted from
51543         modules/search-tests.
51544         * modules/search-tests: Depend on it.
51545         * modules/signal-c++-tests: New file, extracted from
51546         modules/signal-tests.
51547         * modules/signal-tests: Depend on it.
51548         * modules/spawn-c++-tests: New file, extracted from
51549         modules/spawn-tests.
51550         * modules/spawn-tests: Depend on it.
51551         * modules/stdio-c++-tests: New file, extracted from
51552         modules/stdio-tests.
51553         * modules/stdio-tests: Depend on it.
51554         * modules/stdlib-c++-tests: New file, extracted from
51555         modules/stdlib-tests.
51556         * modules/stdlib-tests: Depend on it.
51557         * modules/string-c++-tests: New file, extracted from
51558         modules/string-tests.
51559         * modules/string-tests: Depend on it.
51560         * modules/sys_ioctl-c++-tests: New file, extracted from
51561         modules/sys_ioctl-tests.
51562         * modules/sys_ioctl-tests: Depend on it.
51563         * modules/sys_select-c++-tests: New file, extracted from
51564         modules/sys_select-tests.
51565         * modules/sys_select-tests: Depend on it.
51566         * modules/sys_socket-c++-tests: New file, extracted from
51567         modules/sys_socket-tests.
51568         * modules/sys_socket-tests: Depend on it.
51569         * modules/sys_stat-c++-tests: New file, extracted from
51570         modules/sys_stat-tests.
51571         * modules/sys_stat-tests: Depend on it.
51572         * modules/sys_time-c++-tests: New file, extracted from
51573         modules/sys_time-tests.
51574         * modules/sys_time-tests: Depend on it.
51575         * modules/time-c++-tests: New file, extracted from modules/time-tests.
51576         * modules/time-tests: Depend on it.
51577         * modules/unistd-c++-tests: New file, extracted from
51578         modules/unistd-tests.
51579         * modules/unistd-tests: Depend on it.
51580         * modules/wchar-c++-tests: New file, extracted from
51581         modules/wchar-tests.
51582         * modules/wchar-tests: Depend on it.
51583         * modules/wctype-c++-tests: New file, extracted from
51584         modules/wctype-tests.
51585         * modules/wctype-tests: Depend on it.
51586         Reported by Simon Josefsson.
51588 2010-03-28  Bruno Haible  <bruno@clisp.org>
51590         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
51591         * gnulib-tool (func_exists_module): New function, extracted from
51592         func_verify_module.
51593         (func_verify_module): Use it.
51594         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
51595         'foo' only if 'foo' exists.
51596         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
51597         module.
51599 2010-03-28  Bruno Haible  <bruno@clisp.org>
51601         gnulib-tool: Add support for special categories of tests.
51602         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
51603         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
51604         (func_usage): Document them.
51605         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
51606         inc_unportable_tests, inc_all_tests): New variables.
51607         (func_acceptable): Consider these variables.
51608         (func_modules_transitive_closure): Make it work when the 'Status' field
51609         consists of multiple words.
51610         (func_import): Store and restore the values of inc_cxx_tests,
51611         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
51612         inc_all_tests in gnulib-comp.m4.
51613         (func_create_testdir): Set inc_all_tests to true.
51614         * doc/gnulib.texi (Extra tests modules): New section.
51615         Suggested by Jim Meyering.
51617 2010-03-28  Bruno Haible  <bruno@clisp.org>
51619         ansi-c++-opt: Allow turning off the C++ build by default.
51620         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
51621         gl_CXX_CHOICE_DEFAULT_NO is defined.
51622         Requested by Eric Blake.
51624 2010-03-28  Bruno Haible  <bruno@clisp.org>
51626         unistd: Avoid #define replacements in C++ mode.
51627         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
51628         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
51629         setsockopt, shutdown, select): In C++, attach a warning to the function
51630         if possible, rather than #defining the symbol to a dysfunctional alias.
51631         Reported by John W. Eaton <jwe@gnu.org>.
51633 2010-03-28  Bruno Haible  <bruno@clisp.org>
51635         Fix link errors on mingw.
51636         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
51637         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
51638         $(LIBSOCKET).
51639         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
51640         $(LIBSOCKET).
51642 2010-03-28  Bruno Haible  <bruno@clisp.org>
51643             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51645         lib-ignore: Determine different options for different compilers.
51646         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
51647         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
51648         Add comments.
51649         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
51650         * NEWS: Mention the change.
51652 2010-03-27  Bruno Haible  <bruno@clisp.org>
51654         Remove unused GNULIB_XYZ macro definitions.
51655         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
51656         * modules/fseek (configure.ac): Likewise.
51657         * modules/ioctl (configure.ac): Likewise.
51658         * modules/open (configure.ac): Likewise.
51659         * modules/stdlib-safer (configure.ac): Likewise.
51661 2010-03-27  Bruno Haible  <bruno@clisp.org>
51663         Add a remark about certain modules.
51664         * modules/malloc (Comment): New section.
51665         * modules/realloc (Comment): Likewise.
51666         * modules/sigpipe (Comment): Likewise.
51668 2010-03-27  Bruno Haible  <bruno@clisp.org>
51670         Resolve conflict between the two kinds of module indicators.
51671         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
51672         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
51673         * modules/canonicalize (configure.ac): Invoke
51674         gl_MODULE_INDICATOR_FOR_TESTS.
51675         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
51676         GNULIB_XYZ.
51677         * tests/test-dirent-c++.cc: Likewise.
51678         * tests/test-dirent-safer.c: Likewise.
51679         * tests/test-dup2.c: Likewise.
51680         * tests/test-fchdir.c: Likewise.
51681         * tests/test-fcntl-h-c++.cc: Likewise.
51682         * tests/test-getopt.c: Likewise.
51683         * tests/test-getopt.h: Likewise.
51684         * tests/test-langinfo-c++.cc: Likewise.
51685         * tests/test-locale-c++.cc: Likewise.
51686         * tests/test-math-c++.cc: Likewise.
51687         * tests/test-pty-c++.cc: Likewise.
51688         * tests/test-search-c++.cc: Likewise.
51689         * tests/test-signal-c++.cc: Likewise.
51690         * tests/test-spawn-c++.cc: Likewise.
51691         * tests/test-stdio-c++.cc: Likewise.
51692         * tests/test-stdlib-c++.cc: Likewise.
51693         * tests/test-string-c++.cc: Likewise.
51694         * tests/test-sys_ioctl-c++.cc: Likewise.
51695         * tests/test-sys_select-c++.cc: Likewise.
51696         * tests/test-sys_socket-c++.cc: Likewise.
51697         * tests/test-sys_stat-c++.cc: Likewise.
51698         * tests/test-sys_time-c++.cc: Likewise.
51699         * tests/test-time-c++.cc: Likewise.
51700         * tests/test-unistd-c++.cc: Likewise.
51701         * tests/test-wchar-c++.cc: Likewise.
51702         * tests/uninorm/test-u8-nfc.c: Likewise.
51703         * tests/uninorm/test-u8-nfd.c: Likewise.
51704         * tests/uninorm/test-u8-nfkc.c: Likewise.
51705         * tests/uninorm/test-u8-nfkd.c: Likewise.
51706         * tests/uninorm/test-u16-nfc.c: Likewise.
51707         * tests/uninorm/test-u16-nfd.c: Likewise.
51708         * tests/uninorm/test-u16-nfkc.c: Likewise.
51709         * tests/uninorm/test-u16-nfkd.c: Likewise.
51710         * tests/uninorm/test-u32-nfc.c: Likewise.
51711         * tests/uninorm/test-u32-nfc-big.c: Likewise.
51712         * tests/uninorm/test-u32-nfd.c: Likewise.
51713         * tests/uninorm/test-u32-nfd-big.c: Likewise.
51714         * tests/uninorm/test-u32-nfkc.c: Likewise.
51715         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
51716         * tests/uninorm/test-u32-nfkd.c: Likewise.
51717         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
51718         * tests/uninorm/test-u32-normalize-big.c: Likewise.
51720 2010-03-27  Bruno Haible  <bruno@clisp.org>
51722         Distinguish two kinds of module indicators.
51723         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
51724         gl_MODULE_INDICATOR.
51725         (gl_MODULE_INDICATOR): New macro.
51726         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
51727         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
51728         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
51729         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
51730         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
51731         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
51732         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
51733         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
51734         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
51735         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
51736         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
51737         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
51738         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
51739         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
51740         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
51741         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
51742         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
51743         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
51744         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
51745         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
51746         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
51747         * modules/cloexec (configure.ac): Likewise.
51748         * modules/getopt-gnu (configure.ac): Likewise.
51749         * modules/uninorm/u8-normalize (configure.ac): Likewise.
51750         * modules/uninorm/u16-normalize (configure.ac): Likewise.
51751         * modules/uninorm/u32-normalize (configure.ac): Likewise.
51752         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
51754 2010-03-27  Bruno Haible  <bruno@clisp.org>
51756         New module description field 'Comment'.
51757         * gnulib-tool: New option --extract-comment.
51758         (func_usage): Document it.
51759         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
51760         (func_get_comment): New function.
51761         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
51763 2010-03-27  Bruno Haible  <bruno@clisp.org>
51765         Addendum to 2010-02-07 commit.
51766         * gnulib-tool (func_usage): Document --extract-applicability option.
51768 2010-03-27  Bruno Haible  <bruno@clisp.org>
51770         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
51771         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
51772         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
51773         rather than link errors.
51775 2010-03-27  Bruno Haible  <bruno@clisp.org>
51777         Avoid side effects from tests-related modules on the compilation of lib.
51778         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
51779         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
51780         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
51781         parameter. Emit into AM_CPPFLAGS a definition of the designated C
51782         macro.
51783         (func_import): Define a witness macro. Assign it a value that depends
51784         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
51785         tests-related modules.
51786         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
51787         Reported by Jim Meyering.
51789 2010-03-27  Bruno Haible  <bruno@clisp.org>
51791         Factorize common .m4 code.
51792         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
51793         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
51794         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
51795         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
51796         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
51797         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
51798         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
51799         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
51800         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
51801         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
51802         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
51803         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
51804         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
51805         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
51806         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
51807         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
51808         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
51809         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
51810         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
51811         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
51812         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
51813         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
51814         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
51815         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
51816         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
51817         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
51818         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
51819         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
51820         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
51821         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
51822         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
51823         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
51825 2010-03-27  Bruno Haible  <bruno@clisp.org>
51827         Fix a compilation error on Cygwin with g++ >= 4.3.
51828         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
51829         if it is undefined or if we alias it to chmod.
51830         (lstat): Don't warn about the use of this function if it is undefined
51831         or if we alias it to stat.
51832         Reported by Simon Josefsson.
51834 2010-03-27  Bruno Haible  <bruno@clisp.org>
51836         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
51837         * modules/getlogin (configure.ac): Update.
51839         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
51840         * modules/getlogin_r (configure.ac): Update.
51842         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
51843         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
51844         * modules/inet_ntop (configure.ac): Update.
51846         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
51847         * modules/inet_pton (configure.ac): Update.
51849         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
51850         * modules/mbslen (configure.ac): Update.
51852         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
51853         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
51854         * modules/forkpty (configure.ac): Update.
51855         * modules/openpty (configure.ac): Update.
51857 2010-03-26  Simon Josefsson  <simon@josefsson.org>
51859         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
51860         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
51862 2010-03-25  Eric Blake  <eblake@redhat.com>
51864         maint: use pragma consistently across replacement headers
51865         * lib/ctype.in.h (system_header): Hoist for consistent placement.
51866         * lib/dirent.in.h (system_header): Likewise.
51867         * lib/errno.in.h (system_header): Likewise.
51868         * lib/float.in.h (system_header): Likewise.
51869         * lib/getopt.in.h (system_header): Likewise.
51870         * lib/iconv.in.h (system_header): Likewise.
51871         * lib/inttypes.in.h (system_header): Likewise.
51872         * lib/langinfo.in.h (system_header): Likewise.
51873         * lib/locale.in.h (system_header): Likewise.
51874         * lib/math.in.h (system_header): Likewise.
51875         * lib/netdb.in.h (system_header): Likewise.
51876         * lib/netinet_in.in.h (system_header): Likewise.
51877         * lib/pty.in.h (system_header): Likewise.
51878         * lib/sched.in.h (system_header): Likewise.
51879         * lib/se-selinux.in.h (system_header): Likewise.
51880         * lib/search.in.h (system_header): Likewise.
51881         * lib/spawn.in.h (system_header): Likewise.
51882         * lib/stdarg.in.h (system_header): Likewise.
51883         * lib/stdint.in.h (system_header): Likewise.
51884         * lib/string.in.h (system_header): Likewise.
51885         * lib/strings.in.h (system_header): Likewise.
51886         * lib/sys_file.in.h (system_header): Likewise.
51887         * lib/sys_ioctl.in.h (system_header): Likewise.
51888         * lib/sys_socket.in.h (system_header): Likewise.
51889         * lib/sys_times.in.h (system_header): Likewise.
51890         * lib/sys_utsname.in.h (system_header): Likewise.
51891         * lib/sys_wait.in.h (system_header): Likewise.
51892         * lib/sysexits.in.h (system_header): Likewise.
51893         * lib/unistd.in.h (system_header): Likewise.
51894         * lib/wctype.in.h (system_header): Likewise.
51896         arpa/inet: fix mingw compilation warning
51897         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
51898         Reported by Matthew Bolte.
51900 2010-03-25  Bruno Haible  <bruno@clisp.org>
51902         Avoid collision between gnulib wrapper and libintl wrapper.
51903         * lib/printf.c (printf): Don't define if a printf wrapper is already
51904         defined in intl/printf.c.
51905         Reported by Michel Boaventura <michel@michelboaventura.com>.
51907 2010-03-25  Bruno Haible  <bruno@clisp.org>
51909         Use ANSI C.
51910         * lib/readutmp.h (getutent): Provide ANSI C prototype.
51912 2010-03-25  Bruno Haible  <bruno@clisp.org>
51914         Minor formatting changes.
51915         * lib/acosl.c: Insert space before function argument list.
51916         * lib/argz.c: Likewise.
51917         * lib/asinl.c: Likewise.
51918         * lib/expl.c: Likewise.
51919         * lib/gen-uni-tables.c: Likewise.
51920         * lib/gettext.h: Likewise.
51921         * lib/glthread/lock.h: Likewise.
51922         * lib/tanl.c: Likewise.
51923         * lib/uniname/uniname.c: Likewise.
51924         * tests/test-idpriv-drop.c: Likewise.
51925         * tests/test-idpriv-droptemp.c: Likewise.
51926         * tests/test-lock.c: Likewise.
51927         * tests/test-tls.c: Likewise.
51928         * lib/argp-help.c: Insert space before function-like macro argument
51929         list.
51930         * lib/memcmp.c: Likewise.
51931         * tests/test-base64.c: Likewise.
51932         * lib/localename.c: Insert space before sizeof's argument list.
51933         * lib/safe-alloc.h: Likewise.
51934         * lib/file-set.h: Insert space before macro argument list.
51935         * tests/test-argp.c: Likewise.
51936         * lib/argp-namefrob.h: Insert space before function parameter list.
51937         * lib/getaddrinfo.c: Likewise.
51938         * lib/netdb.in.h: Likewise.
51939         * lib/parse-duration.h: Likewise.
51940         * lib/parse-duration.c: Likewise.
51941         * lib/poll.c: Likewise.
51942         * lib/select.c: Likewise.
51943         * lib/trim.h: Likewise.
51944         * tests/test-usleep.c: Likewise.
51945         * lib/ldexpl.c: Insert space before function parameter list and before
51946         function argument list.
51947         * lib/logl.c: Likewise.
51948         * lib/sqrtl.c: Likewise.
51949         * lib/trim.c: Likewise.
51950         * lib/cosl.c: Use GNU style indentation. Insert space before function
51951         argument list.
51952         * lib/sinl.c: Likewise.
51953         * lib/tsearch.c: Insert space after 'for'.
51954         Reported by Jim Meyering.
51956 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
51958         * maint.mk (sc_Wundef_boolean): Check for the presence of the
51959         config header before grepping, as it's not present before
51960         autoreconf/configure are run.  Reported by Simon Josefsson.
51962 2010-03-23  Bruno Haible  <bruno@clisp.org>
51964         pt_chown: Make it work with automake < 1.11.
51965         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
51966         Reported by Simon Josefsson.
51968 2010-03-23  Bruno Haible  <bruno@clisp.org>
51970         pt_chown: Don't depend on GPLed modules.
51971         * lib/pt_chown.c: Don't include idpriv.h.
51972         (main): Don't drop privileges.
51973         * modules/pt_chown (Depends-on): Remove idpriv-drop.
51974         Reported by Simon Josefsson.
51976 2010-03-24  Simon Josefsson  <simon@josefsson.org>
51978         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
51979         suggestions from karl@freefriends.org (Karl Berry).
51981 2010-03-22  Eric Blake  <eblake@redhat.com>
51983         gethostname: further tweaks
51984         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
51985         are overriding gethostname.
51986         Suggested by Bruno Haible.
51988 2010-03-21  Bruno Haible  <bruno@clisp.org>
51990         Fix comments.
51991         * lib/forkpty.c (rpl_forkpty): Fix comment.
51992         * lib/openpty.c (rpl_openpty): Likewise.
51993         Reported by Eric Blake.
51995 2010-03-22  Eric Blake  <eblake@redhat.com>
51997         gethostname: fix build on mingw
51998         * lib/unistd.in.h (includes): Work around fact that mingw
51999         <winsock2.h> re-includes <unistd.h>, by avoiding any
52000         redeclarations if we are being included by <winsock2.h>.
52001         Reported by Matthias Bolte.
52003 2010-03-21  Bruno Haible  <bruno@clisp.org>
52005         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
52006         * lib/forkpty.c (forkpty): New replacement function, from glibc with
52007         modifications.
52008         * lib/pty.in.h (forkpty): Update declaration. Add comments.
52009         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
52010         provide the replacement.
52011         * modules/forkpty (Depends-on): Add openpty, login_tty.
52012         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
52013         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
52014         * doc/glibc-functions/forkpty.texi: More supported platforms.
52015         * config/srclist.txt: Add forkpty.c (commented).
52017 2010-03-21  Bruno Haible  <bruno@clisp.org>
52019         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
52020         (Makefile.am): Verify that PTY_LIB is defined.
52022         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
52024 2010-03-21  Bruno Haible  <bruno@clisp.org>
52026         Tests for module 'login_tty'.
52027         * modules/login_tty-tests: New file.
52028         * tests/test-login_tty.c: New file.
52030         New module 'login_tty'.
52031         * lib/login_tty.c: New file.
52032         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
52033         * modules/login_tty: New file.
52034         * doc/glibc-functions/login_tty.texi: Mention the new module.
52036 2010-03-21  Bruno Haible  <bruno@clisp.org>
52038         login_tty: Documentation.
52039         * doc/glibc-functions/login_tty.texi: New file.
52040         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
52042 2010-03-21  Bruno Haible  <bruno@clisp.org>
52044         pty: Consistent macro naming.
52045         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
52046         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
52047         * modules/pty (configure.ac): Update.
52049 2010-03-21  Bruno Haible  <bruno@clisp.org>
52051         Tests for openpty: Make stricter.
52052         * tests/test-openpty.c (main): Add test of canonical processing and
52053         erase.
52054         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
52056         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
52057         * lib/openpty.c (openpty): New replacement function.
52058         * lib/pty.in.h: Include <termios.h>.
52059         (openpty): Update declaration. Add comments.
52060         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
52061         is not declared, arrange to provide the replacement. Check for _getpty
52062         and posix_openpt.
52063         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
52064         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
52065         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
52066         * modules/pty-tests (test_pty_c___LDADD): New variable.
52067         * doc/glibc-functions/openpty.texi: More supported platforms.
52069 2010-03-21  Bruno Haible  <bruno@clisp.org>
52071         setenv: Tweaks.
52072         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
52073         the test program.
52074         * doc/posix-functions/setenv.texi: Update platforms list.
52076 2010-03-21  Bruno Haible  <bruno@clisp.org>
52078         New module 'unlockpt'.
52079         * lib/unlockpt.c: New file, from glibc with modifications.
52080         * m4/unlockpt.m4: New file.
52081         * modules/unlockpt: New file.
52082         * lib/stdlib.in.h (unlockpt): New declaration.
52083         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
52084         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
52085         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
52086         HAVE_UNLOCKPT.
52087         * doc/posix-functions/unlockpt.texi: Mention the new module.
52088         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
52089         * config/srclist.txt: Add unlockpt.c (commented).
52091 2010-03-21  Jim Meyering  <meyering@redhat.com>
52093         maint.mk: prohibit inclusion of "intprops.h" without use
52094         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
52096 2010-03-21  Bruno Haible  <bruno@clisp.org>
52098         New module 'grantpt'.
52099         * lib/grantpt.c: New file, from glibc with modifications.
52100         * m4/grantpt.m4: New file.
52101         * modules/grantpt: New file.
52102         * lib/stdlib.in.h (grantpt): New declaration.
52103         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
52104         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
52105         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
52106         HAVE_GRANTPT.
52107         * doc/posix-functions/grantpt.texi: Mention the new module.
52108         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
52109         * config/srclist.txt: Add grantpt.c (commented).
52111 2010-03-21  Bruno Haible  <bruno@clisp.org>
52113         New module 'pt_chown'.
52114         * lib/pt_chown.c: New file, from glibc with modifications.
52115         * lib/pty-private.h: New file, from glibc with modifications.
52116         * modules/pt_chown: New file.
52117         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
52119 2010-03-21  Bruno Haible  <bruno@clisp.org>
52121         Tests for module 'ptsname'.
52122         * modules/ptsname-tests: New file.
52123         * tests/test-ptsname.c: New file.
52125         New module 'ptsname'.
52126         * lib/ptsname.c: New file, from glibc with modifications.
52127         * m4/ptsname.m4: New file.
52128         * modules/ptsname: New file.
52129         * lib/stdlib.in.h (ptsname): New declaration.
52130         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
52131         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
52132         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
52133         HAVE_PTSNAME.
52134         * doc/posix-functions/ptsname.texi: Mention the new module.
52135         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
52136         * config/srclist.txt: Add ptsname.c (commented).
52138 2010-03-21  Bruno Haible  <bruno@clisp.org>
52140         Tests for module 'ttyname_r'.
52141         * modules/ttyname_r-tests: New file.
52142         * tests/test-ttyname_r.c: New file.
52144         New module 'ttyname_r'.
52145         * lib/ttyname_r.c: New file.
52146         * m4/ttyname_r.m4: New file.
52147         * modules/ttyname_r: New file.
52148         * lib/unistd.in.h (ttyname_r): New declaration.
52149         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
52150         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
52151         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
52152         HAVE_TTYNAME_R.
52153         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
52154         * doc/posix-functions/ttyname_r.texi: Mention the new module.
52156 2010-03-20  Bruno Haible  <bruno@clisp.org>
52158         signal: Undefine macro definitions in C++ mode.
52159         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
52160         sigfillset): Undefine macro definitions from the system header in C++
52161         mode.
52162         Reported by John W. Eaton <jwe@gnu.org>.
52164 2010-03-20  Bruno Haible  <bruno@clisp.org>
52166         Ensure no #include statements inside extern "C" { ... }.
52167         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
52168         contain #include statements.
52169         * lib/time.in.h: Likewise.
52171 2010-03-20  Bruno Haible  <bruno@clisp.org>
52173         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
52174         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
52175         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
52176         Reported by John W. Eaton <jwe@gnu.org>.
52178 2010-03-20  Bruno Haible  <bruno@clisp.org>
52180         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
52181         Reported by Jim Meyering.
52183 2010-03-20  Bruno Haible  <bruno@clisp.org>
52185         pipe: Set errno upon failure.
52186         * lib/pipe.h: Specify that when -1 is returned, errno is set.
52187         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
52188         errno value in error message.
52190 2010-03-20  Bruno Haible  <bruno@clisp.org>
52191             Jim Meyering  <meyering@redhat.com>
52193         lchown: Avoid "unused variable" warning.
52194         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
52196 2010-03-20  Bruno Haible  <bruno@clisp.org>
52198         Work around unlink() bug on MacOS X 10.5.6.
52199         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
52200         attempting to unlink a parent directory.
52201         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
52202         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
52203         activate for the replacement function.
52204         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
52206 2010-03-20  Bruno Haible  <bruno@clisp.org>
52208         Fix link errors on Solaris 8.
52209         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
52210         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
52212 2010-03-19  Jim Meyering  <meyering@redhat.com>
52214         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
52215         The _LIBC implementation of build_range_exp correctly honors the
52216         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
52217         However, the non-_LIBC implementation would ignore that syntax-bit
52218         flag and return REG_ERANGE unconditionally.
52219         This change makes it honor that flag.
52220         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
52221         Make two pointer parameters "const".
52222         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
52223         (parse_bracket_exp): Update caller.
52225         regex.m4: correct the reversed range endpoint ([b-a]) test
52226         * m4/regex.m4: When requiring that [b-a] evoke failure,
52227         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
52228         test pass once again for x86-based systems.
52230 2010-03-19  Bruno Haible  <bruno@clisp.org>
52232         scandir: Fix link error on Solaris 8.
52233         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
52234         macros.
52236 2010-03-19  Bruno Haible  <bruno@clisp.org>
52238         getusershell: Fix documentation.
52239         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
52240         module.
52241         * doc/glibc-functions/setusershell.texi: Likewise.
52243         getusershell: Provide declaration, missing on Solaris 9.
52244         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
52245         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
52246         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
52247         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
52248         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52249         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
52250         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
52251         HAVE_GETUSERSHELL.
52252         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
52254 2010-03-19  Bruno Haible  <bruno@clisp.org>
52256         wctype: Provide iswblank function.
52257         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
52258         exists and is fine.
52259         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
52260         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
52261         * tests/test-wctype.c (main): Re-enable the iswblank tests.
52262         * doc/posix-functions/iswblank.texi: Update.
52264 2010-03-19  Bruno Haible  <bruno@clisp.org>
52266         Tests of module 'pty' in C++ mode.
52267         * modules/pty-tests: New file.
52268         * tests/test-pty-c++.cc: New file.
52269         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
52271 2010-03-19  Eric Blake  <eblake@redhat.com>
52273         logb: fix documentation
52274         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
52275         1.5 declaration bug.
52277         forkpty, openpty: prefer glibc's const-safe prototype
52278         * lib/forkpty.c (rpl_forkpty): New file.
52279         * lib/openpty.c (rpl_openpty): Likewise.
52280         * modules/forkpty (Files): Distribute it.
52281         * modules/openpty (Files): Likewise.
52282         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
52283         check...
52284         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
52285         replacement for non-const BSD signature.
52286         * modules/pty (Makefile.am): Substitute witnesses.
52287         * lib/pty.in.h (forkpty, openpty): Declare replacements.
52288         * tests/test-forkpty.c: Update signature check.
52289         * tests/test-openpty.c: Likewise.
52290         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
52291         * doc/glibc-functions/openpty.texi (openpty): Likewise.
52293         forkpty, openpty: split functions into new modules
52294         * modules/pty (Makefile.am): Substitute new witnesses.
52295         (Libraries): Move library detection...
52296         * modules/forkpty: ...into new module.
52297         * modules/openpty: Another new module.
52298         * modules/pty-tests: Rename and split...
52299         * modules/forkpty-tests: ...to this...
52300         * modules/openpty-tests: ...and this.
52301         * tests/test-pty.c: Rename and split...
52302         * tests/test-forkpty.c: ...to this...
52303         * tests/test-openpty.c: ...and this.
52304         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
52305         (gl_PTY): Split library searching...
52306         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
52307         (gl_FORKPTY, gl_OPENPTY): New macros.
52308         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
52309         * NEWS: Mention the split.
52310         * MODULES.html.sh (Misc): Document the modules.
52311         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
52312         * doc/glibc-functions/openpty.texi (openpty): Likewise.
52314         pty: improve replacement header
52315         * lib/pty.in.h: New file.
52316         * modules/pty (Files): Ship it.
52317         (Makefile.am): Always build replacement.
52318         * m4/pty.m4: Rename...
52319         * m4/pty_h.m4: ...to this.
52320         (gl_PTY): Modernize setting of witness macros; update check of
52321         forkpty to take proper advantage of cache.
52322         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
52324         getopt: avoid compiler warning
52325         * lib/getopt.c (attribute_hidden): Remove unused macro.
52327 2010-03-18  Bruno Haible  <bruno@clisp.org>
52329         Fix link errors on Solaris 8.
52330         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
52331         * modules/search-tests (test_search_c___LDADD): Likewise.
52332         * modules/signal-tests (test_signal_c___LDADD): Likewise.
52333         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
52334         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
52335         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
52336         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
52337         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
52338         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
52340 2010-03-18  Bruno Haible  <bruno@clisp.org>
52342         Fix bug introduced on 2010-03-14.
52343         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
52344         (gl_SPAWN_H): Require it.
52345         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
52346         Reported by Simon Josefsson.
52348 2010-03-18  Bruno Haible  <bruno@clisp.org>
52350         Fix typo introduced on 2009-12-31.
52351         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
52352         posix_spawn_file_actions_adddup2.
52354 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
52355         and Eric Blake  <eblake@redhat.com>
52357         test-vc-list-files-git: make more robust
52358         * tests/test-vc-list-files-git.sh: Unset problematic environment
52359         variables.  Chain commands together.
52361 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
52363         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
52364         `AC_CHECK_DECL' invocation.
52366 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
52368         * lib/inttostr.c (inttostr): Make sure the invocation of verify
52369         appears before executable statements. Suggested by Petr Sumbera
52370         <Petr.Sumbera@Sun.COM>.
52372 2010-03-14  Bruno Haible  <bruno@clisp.org>
52374         * tests/test-flock.c (test_exclusive): Comment out a test that causes
52375         portability problems. Instead use a simpler test.
52376         (main): Check that invalid arguments are rejected only on Linux.
52378 2010-03-14  Bruno Haible  <bruno@clisp.org>
52380         Fix bug introduced on 2009-12-31.
52381         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
52382         gl_PREREQ_SYS_H_WINSOCK2 always.
52383         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
52384         SYS_SOCKET_H variable.
52385         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
52386         Update comments.
52387         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
52388         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
52389         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
52390         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
52391         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
52393 2010-03-14  Bruno Haible  <bruno@clisp.org>
52395         Fix values returned by sinl, cosl.
52396         * lib/trigl.h: Add specification comments.
52397         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
52398         that combines the values from the precomputed table with the values of
52399         the Chebyshev polynomials.
52401 2010-03-14  Bruno Haible  <bruno@clisp.org>
52403         Fix compilation error when modules 'posix_spawn[p]' are not used.
52404         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
52405         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
52407 2010-03-14  Bruno Haible  <bruno@clisp.org>
52409         Fix compilation error on mingw when module 'time_r' is not used.
52410         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
52411         is 1.
52412         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
52413         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
52414         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
52415         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
52417 2010-03-14  Bruno Haible  <bruno@clisp.org>
52419         Fix compilation error with Sun C.
52420         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
52421         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
52422         instead of GCC specific ULONG_LONG_MAX.
52423         * lib/xstrtoll.c: Likewise.
52424         * lib/xstrtoull.c: Likewise.
52426 2010-03-13  Bruno Haible  <bruno@clisp.org>
52428         Allow the user to disable C++ code and tests.
52429         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
52430         (gl_PROG_ANSI_CXX): Require it.
52432 2010-03-13  Bruno Haible  <bruno@clisp.org>
52434         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
52435         cases.
52437 2010-03-13  Bruno Haible  <bruno@clisp.org>
52439         Test that gnulib does not break the standard C++ headers.
52440         * tests/test-locale-c++2.cc: New file.
52441         * modules/locale-tests (Files): Add it.
52442         (Makefile.am): Compile it for test-locale-c++.
52443         * tests/test-math-c++2.cc: New file.
52444         * modules/math-tests (Files): Add it.
52445         (Makefile.am): Compile it for test-math-c++.
52446         * tests/test-signal-c++2.cc: New file.
52447         * modules/signal-tests (Files): Add it.
52448         (Makefile.am): Compile it for test-signal-c++.
52449         * tests/test-stdio-c++2.cc: New file.
52450         * modules/stdio-tests (Files): Add it.
52451         (Makefile.am): Compile it for test-stdio-c++.
52452         * tests/test-stdlib-c++2.cc: New file.
52453         * modules/stdlib-tests (Files): Add it.
52454         (Makefile.am): Compile it for test-stdlib-c++.
52455         * tests/test-string-c++2.cc: New file.
52456         * modules/string-tests (Files): Add it.
52457         (Makefile.am): Compile it for test-string-c++.
52458         * tests/test-time-c++2.cc: New file.
52459         * modules/time-tests (Files): Add it.
52460         (Makefile.am): Compile it for test-time-c++.
52461         Reported by John W. Eaton <jwe@gnu.org>.
52463 2010-03-13  Bruno Haible  <bruno@clisp.org>
52465         * gnulib-tool (func_usage): Clarify which options are available for
52466         --create-testdir and --create-megatestdir.
52468 2010-03-13  Bruno Haible  <bruno@clisp.org>
52470         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
52471         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
52472         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
52473         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
52474         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
52475         when appropriate.
52476         Reported by Jim Meyering.
52478 2010-03-12  Simon Josefsson  <simon@josefsson.org>
52480         * gnulib-tool (func_import): Explain origin of code.
52482 2010-03-12  Bruno Haible  <bruno@clisp.org>
52484         Fix problem with automake's definition of CXXLINK.
52485         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
52486         Reported by Simon Josefsson and Ludovic Courtès.
52488 2010-03-12  Bruno Haible  <bruno@clisp.org>
52490         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
52491         stable releases.
52493 2010-03-11  Bruno Haible  <bruno@clisp.org>
52495         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
52496         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
52497         whether the system provides one variant or multiple variants of the
52498         function.
52499         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
52500         C++ compilers.
52501         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
52502         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
52503         Reported by Jim Meyering.
52505 2010-03-09  Simon Josefsson  <simon@josefsson.org>
52507         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
52509 2010-03-08  Bruno Haible  <bruno@clisp.org>
52511         gnulib-tool: Add support for --libtool in --create-testdir.
52512         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
52513         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
52515 2010-03-08  Eric Blake  <eblake@redhat.com>
52517         gnulib-tool.texi: mention possibility of git submodule
52518         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
52519         submodules.
52520         * doc/.gitignore: Ignore another generated file.
52522 2010-03-08  Karl Berry  <karl@gnu.org>
52524         * doc/gnulib-tool.texi (VCS Issues): Mention third option
52525         of committing gnulib files while skipping others.
52527 2010-03-07  Bruno Haible  <bruno@clisp.org>
52529         Tests of module 'wctype' in C++ mode.
52530         * tests/test-wctype-c++.cc: New file.
52531         * modules/wctype-tests (Files): Add it and tests/signature.h.
52532         (Depends-on): Add ansi-c++-opt.
52533         (Makefile.am): Arrange to compile and run test-wctype-c++.
52535         Tests of module 'wchar' in C++ mode.
52536         * tests/test-wchar-c++.cc: New file.
52537         * modules/wchar-tests (Files): Add it and tests/signature.h.
52538         (Depends-on): Add ansi-c++-opt.
52539         (Makefile.am): Arrange to compile and run test-wchar-c++.
52540         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
52541         gl_MODULE_INDICATOR.
52543         Tests of module 'unistd' in C++ mode.
52544         * tests/test-unistd-c++.cc: New file.
52545         * modules/unistd-tests (Files): Add it and tests/signature.h.
52546         (Depends-on): Add ansi-c++-opt.
52547         (Makefile.am): Arrange to compile and run test-unistd-c++.
52548         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
52549         gl_MODULE_INDICATOR.
52551         Tests of module 'time' in C++ mode.
52552         * tests/test-time-c++.cc: New file.
52553         * modules/time-tests (Files): Add it and tests/signature.h.
52554         (Depends-on): Add ansi-c++-opt.
52555         (Makefile.am): Arrange to compile and run test-time-c++.
52556         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
52558         Tests of module 'sys_time' in C++ mode.
52559         * tests/test-sys_time-c++.cc: New file.
52560         * modules/sys_time-tests (Files): Add it and tests/signature.h.
52561         (Depends-on): Add ansi-c++-opt.
52562         (Makefile.am): Arrange to compile and run test-sys_time-c++.
52563         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
52564         gl_MODULE_INDICATOR.
52566         Tests of module 'sys_stat' in C++ mode.
52567         * tests/test-sys_stat-c++.cc: New file.
52568         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
52569         (Depends-on): Add ansi-c++-opt.
52570         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
52571         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
52572         gl_MODULE_INDICATOR.
52574         Tests of module 'sys_socket' in C++ mode.
52575         * tests/test-sys_socket-c++.cc: New file.
52576         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
52577         (Depends-on): Add ansi-c++-opt.
52578         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
52579         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
52580         gl_MODULE_INDICATOR.
52582         Tests of module 'sys_select' in C++ mode.
52583         * tests/test-sys_select-c++.cc: New file.
52584         * modules/sys_select-tests (Files): Add it and tests/signature.h.
52585         (Depends-on): Add ansi-c++-opt.
52586         (Makefile.am): Arrange to compile and run test-sys_select-c++.
52587         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
52588         gl_MODULE_INDICATOR.
52590         Tests of module 'sys_ioctl' in C++ mode.
52591         * tests/test-sys_ioctl-c++.cc: New file.
52592         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
52593         (Depends-on): Add ansi-c++-opt.
52594         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
52595         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
52596         gl_MODULE_INDICATOR.
52598         Tests of module 'string' in C++ mode.
52599         * tests/test-string-c++.cc: New file.
52600         * modules/string-tests (Files): Add it and tests/signature.h.
52601         (Depends-on): Add ansi-c++-opt.
52602         (Makefile.am): Arrange to compile and run test-string-c++.
52603         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
52604         gl_MODULE_INDICATOR.
52606         Tests of module 'stdlib' in C++ mode.
52607         * tests/test-stdlib-c++.cc: New file.
52608         * modules/stdlib-tests (Files): Add it and tests/signature.h.
52609         (Depends-on): Add ansi-c++-opt.
52610         (Makefile.am): Arrange to compile and run test-stdlib-c++.
52611         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
52612         gl_MODULE_INDICATOR.
52614         Tests of module 'stdio' in C++ mode.
52615         * tests/test-stdio-c++.cc: New file.
52616         * modules/stdio-tests (Files): Add it and tests/signature.h.
52617         (Depends-on): Add ansi-c++-opt.
52618         (Makefile.am): Arrange to compile and run test-stdio-c++.
52619         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
52620         gl_MODULE_INDICATOR.
52622         Tests of module 'spawn' in C++ mode.
52623         * tests/test-spawn-c++.cc: New file.
52624         * modules/spawn-tests (Files): Add it and tests/signature.h.
52625         (Depends-on): Add ansi-c++-opt.
52626         (Makefile.am): Arrange to compile and run test-spawn-c++.
52627         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
52628         gl_MODULE_INDICATOR.
52630         Tests of module 'signal' in C++ mode.
52631         * tests/test-signal-c++.cc: New file.
52632         * modules/signal-tests (Files): Add it and tests/signature.h.
52633         (Depends-on): Add ansi-c++-opt.
52634         (Makefile.am): Arrange to compile and run test-signal-c++.
52635         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
52636         gl_MODULE_INDICATOR.
52638         Tests of module 'search' in C++ mode.
52639         * tests/test-search-c++.cc: New file.
52640         * modules/search-tests (Files): Add it and tests/signature.h.
52641         (Depends-on): Add ansi-c++-opt.
52642         (Makefile.am): Arrange to compile and run test-search-c++.
52643         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
52644         gl_MODULE_INDICATOR.
52646         Tests of module 'math' in C++ mode.
52647         * tests/test-math-c++.cc: New file.
52648         * modules/math-tests (Files): Add it and tests/signature.h.
52649         (Depends-on): Add ansi-c++-opt.
52650         (Makefile.am): Arrange to compile and run test-math-c++.
52651         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
52653         Tests of module 'locale' in C++ mode.
52654         * tests/test-locale-c++.cc: New file.
52655         * modules/locale-tests (Files): Add it and tests/signature.h.
52656         (Depends-on): Add ansi-c++-opt.
52657         (Makefile.am): Arrange to compile and run test-locale-c++.
52658         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
52659         gl_MODULE_INDICATOR.
52661         Tests of module 'langinfo' in C++ mode.
52662         * tests/test-langinfo-c++.cc: New file.
52663         * modules/langinfo-tests (Files): Add it and tests/signature.h.
52664         (Depends-on): Add ansi-c++-opt.
52665         (Makefile.am): Arrange to compile and run test-langinfo-c++.
52666         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
52667         gl_MODULE_INDICATOR.
52669         Tests of module 'iconv-h' in C++ mode.
52670         * tests/test-iconv-h-c++.cc: New file.
52671         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
52672         (Depends-on): Add ansi-c++-opt.
52673         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
52675         Tests of module 'glob' in C++ mode.
52676         * tests/test-glob-c++.cc: New file.
52677         * modules/glob-tests (Files): Add it.
52678         (Depends-on): Add ansi-c++-opt.
52679         (Makefile.am): Arrange to compile and run test-glob-c++.
52681         Tests of module 'fcntl-h' in C++ mode.
52682         * tests/test-fcntl-h-c++.cc: New file.
52683         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
52684         (Depends-on): Add ansi-c++-opt.
52685         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
52686         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
52687         gl_MODULE_INDICATOR.
52689         Tests of module 'dirent' in C++ mode.
52690         * tests/test-dirent-c++.cc: New file.
52691         * modules/dirent-tests (Files): Add it and tests/signature.h.
52692         (Depends-on): Add ansi-c++-opt.
52693         (Makefile.am): Arrange to compile and run test-dirent-c++.
52694         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
52695         gl_MODULE_INDICATOR.
52697         New module 'ansi-c++-opt'.
52698         * modules/ansi-c++-opt: New file.
52699         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
52701         Document C++ namespace mode.
52702         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
52704         wctype: Avoid #define replacements in C++ mode.
52705         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
52706         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
52707         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
52708         In C++, define a namespaced alias symbol.
52709         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
52710         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
52711         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
52712         rule.
52714         wchar: Avoid #define replacements in C++ mode.
52715         * lib/wchar.in.h: Include c++defs.h.
52716         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
52717         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
52718         symbol.
52719         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
52720         * modules/wchar (Depends-on): Add c++defs.
52721         (Makefile.am): Update wchar.h rule.
52723         unistd: Avoid #define replacements in C++ mode.
52724         * lib/unistd.in.h: Include c++defs.h.
52725         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
52726         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
52727         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
52728         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
52729         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
52730         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
52731         symbol.
52732         (environ): Update.
52733         * modules/unistd (Depends-on): Add c++defs.
52734         (Makefile.am): Update unistd.h rule.
52736         time: Avoid #define replacements in C++ mode.
52737         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
52738         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
52739         define a namespaced alias symbol.
52740         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
52741         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
52742         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
52743         * modules/time (Depends-on): Add c++defs, warn-on-use.
52744         (Makefile.am): Update time.h rule.
52745         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
52746         * modules/nanosleep (configure.ac): Likewise.
52747         * modules/strptime (configure.ac): Likewise.
52748         * modules/timegm (configure.ac): Likewise.
52750         sys_time: Avoid #define replacements in C++ mode.
52751         * lib/sys_time.in.h: Include c++defs.h.
52752         (gettimeofday): In C++, define a namespaced alias symbol.
52753         * modules/sys_time (Depends-on): Add c++defs.
52754         (Makefile.am): Update sys/time.h rule.
52756         sys_stat: Avoid #define replacements in C++ mode.
52757         * lib/sys_stat.in.h: Include c++defs.h.
52758         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
52759         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
52760         namespaced alias symbol.
52761         In C++, define a namespaced alias symbol.
52762         * modules/sys_stat (Depends-on): Add c++defs.
52763         (Makefile.am): Update sys/stat.h rule.
52765         sys_socket: Avoid #define replacements in C++ mode.
52766         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
52767         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
52768         definitions also when the system has a <sys/socket.h>.
52769         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
52770         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
52771         In C++, define a namespaced alias symbol.
52772         * modules/sys_socket (Depends-on): Add c++defs.
52773         (Makefile.am): Update sys/socket.h rule.
52775         sys_select: Avoid #define replacements in C++ mode.
52776         * lib/sys_select.in.h: Include c++defs.h. Enable the function
52777         definitions also when the system has a <sys/select.h>.
52778         (select): In C++, define a namespaced alias symbol.
52779         * modules/sys_select (Depends-on): Add c++defs.
52780         (Makefile.am): Update sys/select.h rule.
52782         sys_ioctl: Avoid #define replacements in C++ mode.
52783         * lib/sys_ioctl.in.h: Include c++defs.h.
52784         (ioctl): In C++, define a namespaced alias symbol.
52785         * modules/sys_ioctl (Depends-on): Add c++defs.
52786         (Makefile.am): Update sys/ioctl.h rule.
52788         string: Avoid #define replacements in C++ mode.
52789         * lib/string.in.h: Include c++defs.h.
52790         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
52791         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
52792         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
52793         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
52794         strsignal, strverscmp): In C++, define a namespaced alias symbol.
52795         * modules/string (Depends-on): Add c++defs.
52796         (Makefile.am): Update string.h rule.
52798         stdlib: Avoid #define replacements in C++ mode.
52799         * lib/stdlib.in.h: Include c++defs.h.
52800         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
52801         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
52802         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
52803         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
52804         symbol.
52805         * modules/stdlib (Depends-on): Add c++defs.
52806         (Makefile.am): Update stdlib.h rule.
52808         stdio: Avoid #define replacements in C++ mode.
52809         * lib/stdio.in.h: Include c++defs.h.
52810         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
52811         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
52812         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
52813         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
52814         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
52815         namespaced alias symbol.
52816         * modules/stdio (Depends-on): Add c++defs.
52817         (Makefile.am): Update stdio.h rule.
52819         spawn: Avoid #define replacements in C++ mode.
52820         * lib/spawn.in.h: Include c++defs.h.
52821         (posix_spawn, posix_spawnp, posix_spawnattr_init,
52822         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
52823         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
52824         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
52825         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
52826         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
52827         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
52828         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
52829         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
52830         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
52831         In C++, define a namespaced alias symbol.
52832         * modules/spawn (Depends-on): Add c++defs.
52833         (Makefile.am): Update spawn.h rule.
52835         signal: Avoid #define replacements in C++ mode.
52836         * lib/signal.in.h: Include c++defs.h.
52837         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
52838         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
52839         namespaced alias symbol.
52840         * modules/signal (Depends-on): Add c++defs.
52841         (Makefile.am): Update signal.h rule.
52843         search: Avoid #define replacements in C++ mode.
52844         * lib/search.in.h: Include c++defs.h.
52845         (_gl_search_compar_fn, _gl_search_action_fn): New types.
52846         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
52847         symbol.
52848         * modules/search (Depends-on): Add c++defs.
52849         (Makefile.am): Update search.h rule.
52851         math: Avoid #define replacements in C++ mode.
52852         * lib/math.in.h: Include c++defs.h.
52853         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
52854         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
52855         trunc, truncl): In C++, define a namespaced alias symbol.
52856         * modules/math (Depends-on): Add c++defs.
52857         (Makefile.am): Update math.h rule.
52859         locale: Avoid #define replacements in C++ mode.
52860         * lib/locale.in.h: Include c++defs.h.
52861         (duplocale): In C++, define a namespaced alias symbol.
52862         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
52863         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
52864         * modules/locale (Depends-on): Add c++defs.
52865         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
52867         langinfo: Avoid #define replacements in C++ mode.
52868         * lib/langinfo.in.h: Include c++defs.h.
52869         (nl_langinfo): In C++, define a namespaced alias symbol.
52870         * modules/langinfo (Depends-on): Add c++defs.
52871         (Makefile.am): Update langinfo.h rule.
52873         iconv-h: Avoid #define replacements in C++ mode.
52874         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
52875         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
52876         symbol.
52877         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
52878         whenever iconv is present.
52879         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
52880         (Makefile.am): Update iconv.h rule.
52882         glob: Avoid #define replacements in C++ mode.
52883         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
52884         (_gl_glob_errfunc_fn): New type.
52885         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
52886         symbol.
52887         * modules/glob (Depends-on): Add c++defs, warn-on-use.
52888         (Makefile.am): Update glob.h rule.
52890         fcntl-h: Avoid #define replacements in C++ mode.
52891         * lib/fcntl.in.h: Include c++defs.h.
52892         (fcntl, open, openat): In C++, define a namespaced alias symbol.
52893         * modules/fcntl-h (Depends-on): Add c++defs.
52894         (Makefile.am): Update fcntl.h rule.
52896         dirent: Avoid #define replacements in C++ mode.
52897         * lib/dirent.in.h: Include c++defs.h.
52898         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
52899         namespaced alias symbol.
52900         (dirfd): Update declaration.
52901         * modules/dirent (Depends-on): Add c++defs.
52902         (Makefile.am): Update dirent.h rule.
52904         ctype: Make it usable in C++ code.
52905         * lib/ctype.in.h: Include c++defs.h.
52906         (isblank): Declare as extern "C".
52907         * modules/ctype (Depends-on): Add c++defs.
52908         (Makefile.am): Update ctype.h rule.
52910         New module 'c++defs'.
52911         * modules/c++defs: New file.
52912         * build-aux/c++defs.h: New file.
52913         Reported by John W. Eaton <jwe@gnu.org>.
52915 2010-03-07  Bruno Haible  <bruno@clisp.org>
52917         logb: Provide missing declaration for Cygwin.
52918         * lib/math.in.h (logb): New declaration.
52919         * m4/logb.m4: New file.
52920         * modules/logb (Files): Add m4/logb.m4.
52921         (Depends-on): Add math.
52922         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
52923         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
52924         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
52925         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
52926         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
52928 2010-03-07  Bruno Haible  <bruno@clisp.org>
52930         Fix test-cond link error.
52931         * tests/test-cond.c: Include <stdio.h>.
52933 2010-03-07  Bruno Haible  <bruno@clisp.org>
52935         Fix test-dirent-safer link error.
52936         * modules/dirent-safer-tests (Makefile.am): Define
52937         test_dirent_safer_LDADD.
52939 2010-03-07  Bruno Haible  <bruno@clisp.org>
52941         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
52942         among default module list.
52944 2010-03-07  Bruno Haible  <bruno@clisp.org>
52946         Fix link error on platforms with GNU libiconv.
52947         * modules/unistr/u8-strcoll-tests (Makefile): Define
52948         test_u8_strcoll_LDADD.
52949         * modules/unistr/u16-strcoll-tests (Makefile): Define
52950         test_u16_strcoll_LDADD.
52951         * modules/unistr/u32-strcoll-tests (Makefile): Define
52952         test_u32_strcoll_LDADD.
52954 2010-03-07  Bruno Haible  <bruno@clisp.org>
52956         Use POSIX declarations for socket functions.
52957         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
52958         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
52959         rpl_sendto): Change declaration to match POSIX.
52960         * lib/connect.c (rpl_connect): Likewise.
52961         * lib/accept.c (rpl_accept): Likewise.
52962         * lib/bind.c (rpl_bind): Likewise.
52963         * lib/getpeername.c (rpl_getpeername): Likewise.
52964         * lib/getsockname.c (rpl_getsockname): Likewise.
52965         * lib/recv.c (rpl_recv): Likewise.
52966         * lib/send.c (rpl_send): Likewise.
52967         * lib/recvfrom.c (rpl_recvfrom): Likewise.
52968         * lib/sendto.c (rpl_sendto): Likewise.
52970 2010-03-06  Bruno Haible  <bruno@clisp.org>
52972         Clarify access, euidaccess, faccessat.
52973         * doc/posix-functions/faccessat.texi: Mention security problem under
52974         "Other problems", not "Portability problems".
52975         * doc/posix-functions/access.texi: Likewise. Mention a related security
52976         problem.
52977         * doc/glibc-functions/euidaccess.texi: Mention security problems.
52978         * lib/euidaccess.c: Add comments about platforms.
52979         * lib/unistd.in.h (access, euidaccess): Add warnings.
52981 2010-03-07  Bruno Haible  <bruno@clisp.org>
52983         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
52984         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
52985         (POSIX_SPAWN_SETSCHEDULER): Likewise.
52986         (POSIX_SPAWN_USEVFORK): Define in a way that works when
52987         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
52988         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
52989         declare when POSIX_SPAWN_SETSCHEDULER is zero.
52990         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
52991         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
52992         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
52993         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
52994         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
52995         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
52996         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
52997         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
52998         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
52999         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
53000         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
53001         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
53002         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
53003         Likewise.
53004         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
53005         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
53006         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
53007         Likewise.
53008         * tests/test-spawn.c (main): Make it work when
53009         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
53011 2010-03-07  Bruno Haible  <bruno@clisp.org>
53013         Fix incorrect Makefile.am generation in German locale.
53014         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53015         Execute sed command with character range in C locale.
53017 2010-03-06  Bruno Haible  <bruno@clisp.org>
53019         Tests for module 'iconv-h'.
53020         * modules/iconv-h-tests: New file.
53021         * tests/test-iconv-h.c: New file.
53023         New module 'iconv-h'.
53024         * modules/iconv-h: New file.
53025         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
53026         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
53027         (configure.ac): Remove gl_ICONV_H.
53028         (Makefile.am): Remove rule for iconv.h.
53030 2010-03-06  Bruno Haible  <bruno@clisp.org>
53032         More consistent naming of *.m4 files.
53033         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
53034         * modules/wctype (Files): Update.
53036         More consistent naming of *.m4 files.
53037         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
53038         * modules/wchar (Files): Update.
53040 2010-03-06  Jim Meyering  <meyering@redhat.com>
53042         euidaccess: relax license to LGPLv2+
53043         * modules/euidaccess (License): Relax to LGPLv2+.
53045 2010-03-06  Bruno Haible  <bruno@clisp.org>
53047         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
53048         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
53049         (Makefile.am): Augment lib_SOURCES instead.
53051 2010-03-04  Jim Meyering  <meyering@redhat.com>
53053         utime: remove obsolete module
53054         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
53055         unnecessary for years, and has been marked as obsolete for 10 months.
53056         * modules/utime: Remove file.
53057         * lib/utime.c: Remove file.
53058         * m4/utime.m4: Remove file.
53059         * m4/utimes-null.m4: Remove file.
53060         * doc/posix-functions/utime.texi (utime): Remove reference to
53061         the module.  Move the sole "fixed by gnulib" item into the
53062         "problems not fixed by Gnulib" list.
53063         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
53065 2010-03-05  Simon Josefsson  <simon@josefsson.org>
53067         * modules/exit (License): Relax license to LGPLv2+.
53068         (Status): Mark as obsolete.
53069         * NEWS: Mention deprecated 'exit' module.
53070         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
53071         of now obsolete 'exit'.
53073 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53075         fts-lgpl: remove unused module
53076         * modules/fts-lgpl: Remove.
53077         * MODULES.html.sh (func_all_modules): Adjust.
53078         * check-module (find_included_lib_files): Adjust.
53079         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
53081 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
53083         copy-acl: enhance Solaris ACL error handling
53084         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
53085         * lib/set-mode-acl.c (qset_acl): Likewise.
53087 2010-03-02  Bruno Haible  <bruno@clisp.org>
53089         spawn: Don't override the system defined values on FreeBSD 8.
53090         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
53091         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
53092         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
53093         if HAVE_POSIX_SPAWN is 1.
53094         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
53096 2010-03-01  Bruno Haible  <bruno@clisp.org>
53098         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
53099         regarding Automake.
53101 2010-02-25  Bruno Haible  <bruno@clisp.org>
53103         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
53104         * gnulib-tool: Define 'echo' as a function only before the ksh alias
53105         setting, not afterwards.
53106         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
53108 2010-02-24  Eric Blake  <eblake@redhat.com>
53110         bootstrap, git-version-gen: use timestamp
53111         * build-aux/git-version-gen (scriptversion): Force UTC.
53112         * build-aux/bootstrap (scriptversion): New variable.
53114         bootstrap: allow older git
53115         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
53116         older than 1.6.4.  Requested by the libvirt project.
53118 2010-02-23  Eric Blake  <eblake@redhat.com>
53120         warn-on-use: work with old autoconf
53121         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
53122         AS_VAR semantics of autoconf 2.60.
53123         Reported by Bruno Haible.
53125         bootstrap: improve some comments
53126         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
53127         clarification comments.
53129         gettimeofday: provide correct function
53130         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
53131         when replacement is declared, otherwise provide gettimeofday.
53132         Reported by Michael Goffioul.
53134 2010-02-23  Jim Meyering  <meyering@redhat.com>
53136         lib-ignore: relax license to "unlimited", not LGPLv2+
53137         * modules/lib-ignore (License): Relax to "unlimited".
53139 2010-02-23  Jim Meyering  <meyering@redhat.com>
53141         lib-ignore: relax license to LGPLv2+
53142         * modules/lib-ignore (License): Relax to LGPLv2+.
53144 2010-02-22  Eric Blake  <eblake@redhat.com>
53146         lseek: avoid bash 3.2 broken pipe bug
53147         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
53148         warning from bash 3.2.
53149         Reported by Ben Pfaff, with analysis from Bruno Haible.
53151         bootstrap: support non-FSF copyright holder
53152         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
53153         bootstrap.conf override of COPYRIGHT_HOLDER.
53154         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
53156         bootstrap: interoperate with gettext 0.14.1
53157         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
53159         bootstrap: allow for alternate submodule location
53160         * build-aux/bootstrap (gnulib_path): New variable; use instead of
53161         hardcoding submodule location.
53162         (gnulib_mk): Allow direct use of Makefile.am.
53164         bootstrap: use GNULIB_SRCDIR to reduce disk usage
53165         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
53166         rather than reconfiguring where the submodule points.
53168         gettimeofday: restore support for platforms that lack function
53169         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
53170         replacement if function is missing.
53171         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
53172         * modules/sys_time (Makefile.am): Substitute it.
53173         * lib/sys_time.in.h (gettimeofday): Check it.
53174         Reported by Michael Goffioul.
53176 2010-02-21  Bruno Haible  <bruno@clisp.org>
53178         * lib/stdio.in.h (obstack_printf): Fix typo.
53180 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
53182         vc-list-files: use bzr ls's -R option
53183         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
53184         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
53186 2010-02-21  Jim Meyering  <meyering@redhat.com>
53188         init.sh: fix EXEEXT shims to work also for names like test-prog
53189         * tests/init.sh: Re-exec a better shell, when needed.
53190         If the current shell lacks support for posix $(...), an init.sh-using
53191         test will now try to find a shell that supports that.  If EXEEXT is
53192         nonempty, we also require support for hyphen-in-alias-name and shell
53193         substitutions like ${var#glob}.  Failure to find such a shell results
53194         in a skipped test.
53196 2010-02-21  Bruno Haible  <bruno@clisp.org>
53198         Really work around "broken pipe" error message from bash 3.2.
53199         * gnulib-tool (func_reset_sigpipe): Remove function.
53200         (echo): In bash 3.2, define to a function that uses printf.
53201         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
53203 2010-02-20  Bruno Haible  <bruno@clisp.org>
53205         Restore support for automake 1.9.6 with autoconf 2.61.
53206         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
53207         Reported by James Youngman <jay@gnu.org>.
53209 2010-02-20  Bruno Haible  <bruno@clisp.org>
53211         Improve *printf warning condition.
53212         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
53213         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
53214         and the function is overridden due to SIGPIPE emulation.
53216 2010-02-20  Bruno Haible  <bruno@clisp.org>
53218         * lib/stdio.in.h: Tweak comments.
53220 2010-02-19  Bruno Haible  <bruno@clisp.org>
53222         Make it easier to find modules. New gnulib-tool option '--find'.
53223         * gnulib-tool: New option --find.
53224         (func_usage): Document it.
53225         (func_sanitize_modulelist): New function, extracted from
53226         func_all_modules.
53227         (func_all_modules): Invoke it.
53228         * doc/gnulib-tool.texi (Which modules?): New node.
53230 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
53232         * lib/sys_select.in.h: Provide select replacement even if
53233         sys/select.h exists on a system, for Interix.
53235 2010-02-18  Jim Meyering  <meyering@redhat.com>
53237         init.sh: don't use $(...) just yet
53238         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
53239         to accommodate e.g., Solaris' /bin/sh.
53241 2010-02-17  Bruno Haible  <bruno@clisp.org>
53243         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
53244         Reported by Ludovic Courtès <ludo@gnu.org>.
53246 2010-02-16  Simon Josefsson  <simon@josefsson.org>
53248         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
53249         linking with -lintl.
53251 2010-02-17  Simon Josefsson  <simon@josefsson.org>
53253         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
53254         if not provided by the system's netdb.h.  Reported by
53255         ludo@gnu.org (Ludovic Courtès).
53257 2010-02-15  Jim Meyering  <meyering@redhat.com>
53259         init.sh: improve portability and efficiency
53260         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
53261         "dummy" in a for loop.
53262         Use '!', not '^' to select the complement of a character set used
53263         in a "case" statement.
53264         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
53265         Suggestions from Eric Blake.
53267         init.sh: automatically accommodate programs with the .exe suffix
53268         Automatically arrange for an invocation of "prog" to execute the
53269         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
53270         may use the simpler "prog", yet still work when built on a system
53271         that requires specifying the added suffix.
53272         Do this by constructing a function named "prog" that invokes
53273         "prog.exe" for each .exe file in selected directories.
53274         * tests/init.sh (find_exe_basenames_): New function.
53275         (create_exe_shim_functions_): New function.
53276         (path_prepend_): Use it.
53278         maint.mk: mark syntax-check sc_*.m rules as .PHONY
53279         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
53280         "make -t syntax-check" doesn't create a ton of sc_*.m files.
53282 2010-02-14  Jim Meyering  <meyering@redhat.com>
53284         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
53285         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
53286         (sc_prohibit_hash_pjw_without_use): New rule.
53288         maint.mk: allow the default upload destination dir to be overridden
53289         * top/maint.mk (upload_dest_dir_): Define with a default that
53290         preserves the status quo.
53291         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
53292         Reported by Peter Simons.
53294         maint.mk: prohibit inclusion of "hash.h" without_use
53295         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
53297 2010-02-10  Jim Meyering  <meyering@redhat.com>
53299         maint.mk: prohibit inclusion of "ignore-value.h" without_use
53300         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
53302 2010-02-09  Eric Blake  <ebb9@byu.net>
53303         and Bruno Haible  <bruno@clisp.org>
53305         obstack-printf-posix: ensure declaration
53306         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
53307         extracted from gl_FUNC_OBSTACK_PRINTF.
53308         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
53309         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
53310         Likewise.
53311         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
53312         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
53313         0.
53315 2010-02-08  Bruno Haible  <bruno@clisp.org>
53317         gnulib-tool: Fix typo in 2010-02-07 commit.
53318         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
53319         Reported by Eric Blake.
53321 2010-02-07  Bruno Haible  <bruno@clisp.org>
53323         gnulib-tool: Fix up caching patches.
53324         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
53325         option --no-cache. Use associative arrays when supported by the shell.
53326         (sed_comments): New variable.
53327         (modcache): Renamed from do_cache.
53328         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
53329         abbreviate unnecessarily.
53330         (have_associative): New variable.
53331         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
53332         way also for ksh and zsh.
53333         (func_init_sed_convert_to_cache_statements): New function, extracted
53334         from func_cache_lookup_module. Add support for associative arrays.
53335         Don't set the c_MODULE_cached variable here. Ignore all lines before
53336         the first field header. Remove only the final newline, not all trailing
53337         newlines. Support empty fields correctly. Limit the use of 'eval' to
53338         assignments.
53339         (func_get_description, func_get_status, func_get_notice,
53340         func_get_applicability, func_get_filelist, func_get_dependencies,
53341         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
53342         func_get_automake_snippet, func_get_include_directive,
53343         func_get_link_directive, func_get_license, func_get_maintainer):
53344         Update documentation. List the unoptimized code first. Add support for
53345         associative arrays. Limit the use of 'eval' to assignments.
53346         (func_get_applicability): Undo stylistic pessimisations.
53347         (func_get_automake_snippet, func_get_include_directive): Reduce code
53348         duplication.
53349         (func_modules_transitive_closure, func_modules_add_dummy,
53350         func_modules_notice, func_modules_to_filelist, func_add_file,
53351         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
53352         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
53353         func_create_testdir, func_create_megatestdir): Update documentation.
53355 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53357         * gnulib-tool (func_cache_lookup_module): Store the module name
53358         belonging to the cache variable; error out if two different
53359         module names map to the same cache variable name.
53361 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53363         gnulib-tool: Make caching optional.
53364         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
53365         Update matching short versions of --no-changelog.
53366         (func_usage): Update.
53367         (sed_extract_cache_prog): Renamed from ...
53368         (sed_extract_prog): ... this; revert to old extraction script.
53369         (func_get_description, func_get_status)
53370         (func_get_notice, func_get_applicability, func_get_filelist)
53371         (func_get_dependencies, func_get_autoconf_early_snippet)
53372         (func_get_autoconf_snippet, func_get_automake_snippet)
53373         (func_get_include_directive, func_get_link_directive)
53374         (func_get_license, func_get_maintainer): If $do_cache is false,
53375         use old, non-caching extraction scripts.
53376         Suggestion by Bruno Haible.
53378 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53380         gnulib-tool: cache module metainformation.
53381         * gnulib-tool (sed_extract_prog): Match newline before each
53382         header, and rewrite header to a shell variable suffix.
53383         (func_cache_var, func_cache_lookup_module): New functions,
53384         to turn a module name into a cache variable prefix, and to
53385         look up and cache module metainformation.
53386         (func_get_description, func_get_status)
53387         (func_get_notice, func_get_applicability, func_get_filelist)
53388         (func_get_dependencies, func_get_autoconf_early_snippet)
53389         (func_get_autoconf_snippet, func_get_automake_snippet)
53390         (func_get_include_directive, func_get_link_directive)
53391         (func_get_license, func_get_maintainer): Use
53392         func_cache_lookup_module.
53394 2010-02-07  Bruno Haible  <bruno@clisp.org>
53396         fnctl: Fix missing dependency.
53397         * modules/fcntl (Depends-on): Add getdtablesize.
53398         Reported by John W. Eaton <jwe@gnu.org>.
53400 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
53402         Argp: fix recognition of short alias options.
53404         * lib/argp-parse.c (convert_options): Fix improper use of
53405         `|' between character values.
53406         * tests/test-argp.c (group1_option): New alias option
53407         --read (-r).
53408         (group1_parser): Special handling for 'r'.
53409         (test15): New test case.
53410         (test_fun): Add test15.
53411         * tests/test-argp-2.sh: Update expected --help and --usage
53412         outputs.
53414 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
53416         * tests/test-argp.c: Fix indentation.
53418 2010-02-04  Eric Blake  <ebb9@byu.net>
53420         gettimeofday: expose type of second argument
53421         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
53422         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
53423         * tests/test-gettimeofday.c: Use it to silence warning.
53424         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
53425         the issue.
53427 2010-02-03  Jim Meyering  <meyering@redhat.com>
53429         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
53430         * lib/regcomp.c (TYPE_SIGNED): Define.
53431         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
53433         regcomp.c: avoid a new -Wshadow warning
53434         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
53436 2010-02-01  Jim Meyering  <meyering@redhat.com>
53438         removing useless parentheses in cpp #define directives
53439         For motivation, see commit c0221df4, "define STREQ(a,b)
53440         consistently, removing useless parentheses"
53441         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
53442         * lib/mountlist.c (MNT_IGNORE): Likewise.
53443         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
53445 2010-02-01  Eric Blake  <ebb9@byu.net>
53447         sys_time: use link-warning
53448         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
53449         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
53450         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
53451         * modules/sys_time (Depends-on): Add warn-on-use.
53452         (Makefile.am): Always build replacement.
53453         (configure.ac): Update substitutions.
53454         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
53455         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
53456         bother with SYS_TIME_H.
53457         * modules/gettimeofday (configure.ac): Declare indicator.
53458         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
53459         in use.
53461         closein-tests: silence compiler warning
53462         * tests/test-closein.c (main): Ignore fread result.
53463         * modules/closein-tests (Depends-on): Add ignore-value.
53465         tests: silence warning about system return
53466         * tests/test-areadlink-with-size.c (main): Ignore system result.
53467         * tests/test-areadlink.c (main): Likewise.
53468         * tests/test-areadlinkat-with-size.c (main): Likewise.
53469         * tests/test-areadlinkat.c (main): Likewise.
53470         * tests/test-canonicalize-lgpl.c (main): Likewise.
53471         * tests/test-canonicalize.c (main): Likewise.
53472         * tests/test-chown.c (main): Likewise.
53473         * tests/test-fchownat.c (main): Likewise.
53474         * tests/test-fdutimensat.c (main): Likewise.
53475         * tests/test-fstatat.c (main): Likewise.
53476         * tests/test-futimens.c (main): Likewise.
53477         * tests/test-lchown.c (main): Likewise.
53478         * tests/test-link.c (main): Likewise.
53479         * tests/test-linkat.c (main): Likewise.
53480         * tests/test-lstat.c (main): Likewise.
53481         * tests/test-mkdir.c (main): Likewise.
53482         * tests/test-mkdirat.c (main): Likewise.
53483         * tests/test-mkfifo.c (main): Likewise.
53484         * tests/test-mkfifoat.c (main): Likewise.
53485         * tests/test-mknod.c (main): Likewise.
53486         * tests/test-readlink.c (main): Likewise.
53487         * tests/test-remove.c (main): Likewise.
53488         * tests/test-rename.c (main): Likewise.
53489         * tests/test-renameat.c (main): Likewise.
53490         * tests/test-rmdir.c (main): Likewise.
53491         * tests/test-symlink.c (main): Likewise.
53492         * tests/test-symlinkat.c (main): Likewise.
53493         * tests/test-unlink.c (main): Likewise.
53494         * tests/test-unlinkat.c (main): Likewise.
53495         * tests/test-utimens.c (main): Likewise.
53496         * tests/test-utimensat.c (main): Likewise.
53497         * modules/areadlink-tests (Depends-on): Add ignore-value.
53498         * modules/areadlink-with-size-tests (Depends-on): Likewise.
53499         * modules/areadlinkat-tests (Depends-on): Likewise.
53500         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
53501         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
53502         * modules/canonicalize-tests (Depends-on): Likewise.
53503         * modules/chown-tests (Depends-on): Likewise.
53504         * modules/fdutimensat-tests (Depends-on): Likewise.
53505         * modules/futimens-tests (Depends-on): Likewise.
53506         * modules/lchown-tests (Depends-on): Likewise.
53507         * modules/link-tests (Depends-on): Likewise.
53508         * modules/linkat-tests (Depends-on): Likewise.
53509         * modules/lstat-tests (Depends-on): Likewise.
53510         * modules/mkdir-tests (Depends-on): Likewise.
53511         * modules/mkfifo-tests (Depends-on): Likewise.
53512         * modules/mkfifoat-tests (Depends-on): Likewise.
53513         * modules/mknod-tests (Depends-on): Likewise.
53514         * modules/openat-tests (Depends-on): Likewise.
53515         * modules/readlink-tests (Depends-on): Likewise.
53516         * modules/remove-tests (Depends-on): Likewise.
53517         * modules/rename-tests (Depends-on): Likewise.
53518         * modules/renameat-tests (Depends-on): Likewise.
53519         * modules/rmdir-tests (Depends-on): Likewise.
53520         * modules/symlink-tests (Depends-on): Likewise.
53521         * modules/symlinkat-tests (Depends-on): Likewise.
53522         * modules/unlink-tests (Depends-on): Likewise.
53523         * modules/utimens-tests (Depends-on): Likewise.
53524         * modules/utimensat-tests (Depends-on): Likewise.
53526 2010-01-31  Bruno Haible  <bruno@clisp.org>
53528         Perform the same test for many <math.h> functions.
53529         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
53530         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
53531         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
53532         of gl_MATHFUNC.
53533         * modules/acos (configure.ac): Likewise.
53534         * modules/asin (configure.ac): Likewise.
53535         * modules/atan (configure.ac): Likewise.
53536         * modules/atan2 (configure.ac): Likewise.
53537         * modules/cbrt (configure.ac): Likewise.
53538         * modules/copysign (configure.ac): Likewise.
53539         * modules/cos (configure.ac): Likewise.
53540         * modules/cosh (configure.ac): Likewise.
53541         * modules/erf (configure.ac): Likewise.
53542         * modules/erfc (configure.ac): Likewise.
53543         * modules/exp (configure.ac): Likewise.
53544         * modules/fmod (configure.ac): Likewise.
53545         * modules/hypot (configure.ac): Likewise.
53546         * modules/j0 (configure.ac): Likewise.
53547         * modules/j1 (configure.ac): Likewise.
53548         * modules/jn (configure.ac): Likewise.
53549         * modules/lgamma (configure.ac): Likewise.
53550         * modules/log (configure.ac): Likewise.
53551         * modules/log10 (configure.ac): Likewise.
53552         * modules/log1p (configure.ac): Likewise.
53553         * modules/pow (configure.ac): Likewise.
53554         * modules/remainder (configure.ac): Likewise.
53555         * modules/sin (configure.ac): Likewise.
53556         * modules/sinh (configure.ac): Likewise.
53557         * modules/tan (configure.ac): Likewise.
53558         * modules/tanh (configure.ac): Likewise.
53559         * modules/y0 (configure.ac): Likewise.
53560         * modules/y1 (configure.ac): Likewise.
53561         * modules/yn (configure.ac): Likewise.
53562         Suggested by Paolo Bonzini.
53564 2010-01-31  Bruno Haible  <bruno@clisp.org>
53566         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
53568 2010-01-31  Bruno Haible  <bruno@clisp.org>
53570         Work around getdelim() bug on FreeBSD 8.0.
53571         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
53572         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
53573         not work.
53574         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
53575         is 1.
53576         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
53577         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
53578         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
53579         a non-zero size.
53580         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
53582 2010-01-31  Bruno Haible  <bruno@clisp.org>
53584         Work around getline() bug on FreeBSD 8.0.
53585         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
53586         and a non-zero size.
53587         * tests/test-getline.c (main): Likewise.
53588         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
53589         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
53591 2010-01-28  Eric Blake  <ebb9@byu.net>
53593         regex: fix build failure
53594         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
53595         platforms.
53597 2010-01-28  Jim Meyering  <meyering@redhat.com>
53599         regex: do not ignore memory allocation failure
53600         * lib/regex_internal.c (create_cd_newstate): Detect
53601         re_node_set_init_copy failure.   Extracted from glibc commit
53602         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
53604         regex: sync more white-space changes from libc
53605         * lib/regex_internal.c: White-space only changes.
53606         * lib/regexec.c: Likewise.
53608         regex: add many uses of __attribute_warn_unused_result__
53609         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
53610         * lib/regexec.c: Likewise.
53611         Extracted from a messy glibc commit.
53613         regcomp.c: spelling and merge-artifact from glibc
53614         * lib/regcomp.c: Merge remainder of glibc's
53615         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
53617         regcomp.c: sync white-space changes from glibc
53618         * lib/regcomp.c: Merge to accommodate white space
53619         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
53621         regcomp.c: do not ignore internal return values
53622         * lib/regcomp.c: Do not ignore internal return values.
53623         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
53624         but without its white-space changes and spelling fixes.
53626         regex_internal.h: define __attribute_warn_unused_result__
53627         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
53629         maint: add a syntax-check rule to check for vulnerable Makefile.in
53630         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
53632 2010-01-27  Jim Meyering  <meyering@redhat.com>
53634         ncftpput-ftp: clean up spaces
53635         * build-aux/ncftpput-ftp: Make Copyright line consistent.
53636         Remove trailing blanks.
53638 2010-01-27  Simon Josefsson  <simon@josefsson.org>
53640         * build-aux/git-version-gen: Fix copyright statement.
53641         * build-aux/gnupload: Likewise.
53642         * tests/test-arcfour.c: Likewise.
53643         * tests/test-arctwo.c: Likewise.
53644         * tests/test-count-one-bits.c: Likewise.
53645         * tests/test-crc.c: Likewise.
53646         * tests/test-des.c: Likewise.
53647         * tests/test-gc-arcfour.c: Likewise.
53648         * tests/test-gc-arctwo.c: Likewise.
53649         * tests/test-gc-des.c: Likewise.
53650         * tests/test-gc-hmac-md5.c: Likewise.
53651         * tests/test-gc-hmac-sha1.c: Likewise.
53652         * tests/test-gc-md2.c: Likewise.
53653         * tests/test-gc-md4.c: Likewise.
53654         * tests/test-gc-md5.c: Likewise.
53655         * tests/test-gc-pbkdf2-sha1.c: Likewise.
53656         * tests/test-gc-rijndael.c: Likewise.
53657         * tests/test-gc-sha1.c: Likewise.
53658         * tests/test-gc.c: Likewise.
53659         * tests/test-gethostname.c: Likewise.
53660         * tests/test-gettimeofday.c: Likewise.
53661         * tests/test-hash.c: Likewise.
53662         * tests/test-hmac-md5.c: Likewise.
53663         * tests/test-hmac-sha1.c: Likewise.
53664         * tests/test-md2.c: Likewise.
53665         * tests/test-md4.c: Likewise.
53666         * tests/test-md5.c: Likewise.
53667         * tests/test-memchr.c: Likewise.
53668         * tests/test-memchr2.c: Likewise.
53669         * tests/test-memcmp.c: Likewise.
53670         * tests/test-memmem.c: Likewise.
53671         * tests/test-memrchr.c: Likewise.
53672         * tests/test-rawmemchr.c: Likewise.
53673         * tests/test-read-file.c: Likewise.
53674         * tests/test-rijndael.c: Likewise.
53675         * tests/test-sockets.c: Likewise.
53676         * tests/test-strchrnul.c: Likewise.
53677         * tests/test-strstr.c: Likewise.
53678         * tests/test-strtod.c: Likewise.
53679         * build-aux/ncftpput-ftp: Likewise.
53681 2010-01-26  Eric Blake  <ebb9@byu.net>
53683         ignore-value: update recommended header name
53684         * modules/ignore-value (Include): Only use <> for headers that
53685         exist in glibc.
53687 2010-01-26  Jim Meyering  <meyering@redhat.com>
53689         test-userspec.c: avoid compiler warnings
53690         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
53691         and "initialization discards qualifiers..." warnings.
53692         Put the first "uid" in its own scope, and make char* members "const".
53694 2010-01-25  Bruno Haible  <bruno@clisp.org>
53696         gnulib-tool: Make warning diagnostics consistent.
53697         * gnulib-tool (func_warning): New function.
53698         Use it everywhere where gnulib-tool produces output to stderr and it is
53699         not a fatal error.
53701 2010-01-25  Bruno Haible  <bruno@clisp.org>
53703         Fix test dependencies.
53704         * modules/xstrtol-tests (Depends-on): Add inttypes.
53705         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
53707 2010-01-25  Pádraig Brady  <P@draigBrady.com>
53709         syntax-check: detect incorrect boolean macro values in config.h
53710         * modules/maintainer-makefile (configure.ac): Parameterize the location
53711         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
53712         The logic is from Eric Blake and the location indicated by Jim Meyering.
53713         Note the more natural CONFIG_HEADER name is prohibited by automake
53714         for backwards compatibility reasons.
53715         * top/maint.mk (sc_Wundef_boolean): New rule.
53717 2010-01-25  Jim Meyering  <meyering@redhat.com>
53719         bootstrap: detect MacOS 10.6's shasum, too
53720         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
53721         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
53723 2010-01-23  Jim Meyering  <meyering@redhat.com>
53725         xstrtoll: new module
53726         * modules/xstrtoll: New file.
53727         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
53728         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
53729         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
53730         ./configure fails if you use this module and lack "long long".
53731         * modules/xstrtoll-tests: New module.
53732         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
53733         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
53734         new init.sh-based test framework.
53736 2010-01-24  Bruno Haible  <bruno@clisp.org>
53738         Tests for module 'yn'.
53739         * modules/yn-tests: New file.
53740         * tests/test-yn.c: New file.
53742         Tests for module 'y1'.
53743         * modules/y1-tests: New file.
53744         * tests/test-y1.c: New file.
53746         Tests for module 'y0'.
53747         * modules/y0-tests: New file.
53748         * tests/test-y0.c: New file.
53750         Tests for module 'tanh'.
53751         * modules/tanh-tests: New file.
53752         * tests/test-tanh.c: New file.
53754         Tests for module 'tan'.
53755         * modules/tan-tests: New file.
53756         * tests/test-tan.c: New file.
53758         Tests for module 'sqrt'.
53759         * modules/sqrt-tests: New file.
53760         * tests/test-sqrt.c: New file.
53762         Tests for module 'sinh'.
53763         * modules/sinh-tests: New file.
53764         * tests/test-sinh.c: New file.
53766         Tests for module 'sin'.
53767         * modules/sin-tests: New file.
53768         * tests/test-sin.c: New file.
53770         Tests for module 'rint'.
53771         * modules/rint-tests: New file.
53772         * tests/test-rint.c: New file.
53774         Tests for module 'remainder'.
53775         * modules/remainder-tests: New file.
53776         * tests/test-remainder.c: New file.
53778         Tests for module 'pow'.
53779         * modules/pow-tests: New file.
53780         * tests/test-pow.c: New file.
53782         Tests for module 'nextafter'.
53783         * modules/nextafter-tests: New file.
53784         * tests/test-nextafter.c: New file.
53786         Tests for module 'modf'.
53787         * modules/modf-tests: New file.
53788         * tests/test-modf.c: New file.
53790         Tests for module 'logb'.
53791         * modules/logb-tests: New file.
53792         * tests/test-logb.c: New file.
53794         Tests for module 'log1p'.
53795         * modules/log1p-tests: New file.
53796         * tests/test-log1p.c: New file.
53798         Tests for module 'log10'.
53799         * modules/log10-tests: New file.
53800         * tests/test-log10.c: New file.
53802         Tests for module 'log'.
53803         * modules/log-tests: New file.
53804         * tests/test-log.c: New file.
53806         Tests for module 'lgamma'.
53807         * modules/lgamma-tests: New file.
53808         * tests/test-lgamma.c: New file.
53810         Tests for module 'ldexp'.
53811         * modules/ldexp-tests: New file.
53812         * tests/test-ldexp.c: New file.
53814         Tests for module 'jn'.
53815         * modules/jn-tests: New file.
53816         * tests/test-jn.c: New file.
53818         Tests for module 'j1'.
53819         * modules/j1-tests: New file.
53820         * tests/test-j1.c: New file.
53822         Tests for module 'j0'.
53823         * modules/j0-tests: New file.
53824         * tests/test-j0.c: New file.
53826         Tests for module 'hypot'.
53827         * modules/hypot-tests: New file.
53828         * tests/test-hypot.c: New file.
53830         Tests for module 'fmod'.
53831         * modules/fmod-tests: New file.
53832         * tests/test-fmod.c: New file.
53834         Tests for module 'fabs'.
53835         * modules/fabs-tests: New file.
53836         * tests/test-fabs.c: New file.
53838         Tests for module 'exp'.
53839         * modules/exp-tests: New file.
53840         * tests/test-exp.c: New file.
53842         Tests for module 'erfc'.
53843         * modules/erfc-tests: New file.
53844         * tests/test-erfc.c: New file.
53846         Tests for module 'erf'.
53847         * modules/erf-tests: New file.
53848         * tests/test-erf.c: New file.
53850         Tests for module 'cosh'.
53851         * modules/cosh-tests: New file.
53852         * tests/test-cosh.c: New file.
53854         Tests for module 'cos'.
53855         * modules/cos-tests: New file.
53856         * tests/test-cos.c: New file.
53858         Tests for module 'copysign'.
53859         * modules/copysign-tests: New file.
53860         * tests/test-copysign.c: New file.
53862         Tests for module 'cbrt'.
53863         * modules/cbrt-tests: New file.
53864         * tests/test-cbrt.c: New file.
53866         Tests for module 'atan2'.
53867         * modules/atan2-tests: New file.
53868         * tests/test-atan2.c: New file.
53870         Tests for module 'atan'.
53871         * modules/atan-tests: New file.
53872         * tests/test-atan.c: New file.
53874         Tests for module 'asin'.
53875         * modules/asin-tests: New file.
53876         * tests/test-asin.c: New file.
53878         Tests for module 'acos'.
53879         * modules/acos-tests: New file.
53880         * tests/test-acos.c: New file.
53882 2010-01-24  Bruno Haible  <bruno@clisp.org>
53884         Fix tests for common <math.h> functions.
53885         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
53886         code snippet that references the function pointer, rather than merely
53887         calling the function. Substitute the FUNC_LIBM variable.
53888         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
53889         * modules/acos (configure.ac): Likewise.
53890         * modules/asin (configure.ac): Likewise.
53891         * modules/atan (configure.ac): Likewise.
53892         * modules/atan2 (configure.ac): Likewise.
53893         * modules/cbrt (configure.ac): Likewise.
53894         * modules/copysign (configure.ac): Likewise.
53895         * modules/cos (configure.ac): Likewise.
53896         * modules/cosh (configure.ac): Likewise.
53897         * modules/erf (configure.ac): Likewise.
53898         * modules/erfc (configure.ac): Likewise.
53899         * modules/exp (configure.ac): Likewise.
53900         * modules/fabs (configure.ac): Likewise.
53901         * modules/fmod (configure.ac): Likewise.
53902         * modules/hypot (configure.ac): Likewise.
53903         * modules/j0 (configure.ac): Likewise.
53904         * modules/j1 (configure.ac): Likewise.
53905         * modules/jn (configure.ac): Likewise.
53906         * modules/ldexp (configure.ac): Likewise.
53907         * modules/lgamma (configure.ac): Likewise.
53908         * modules/log (configure.ac): Likewise.
53909         * modules/log10 (configure.ac): Likewise.
53910         * modules/log1p (configure.ac): Likewise.
53911         * modules/logb (configure.ac): Likewise.
53912         * modules/modf (configure.ac): Likewise.
53913         * modules/nextafter (configure.ac): Likewise.
53914         * modules/pow (configure.ac): Likewise.
53915         * modules/remainder (configure.ac): Likewise.
53916         * modules/rint (configure.ac): Likewise.
53917         * modules/sin (configure.ac): Likewise.
53918         * modules/sinh (configure.ac): Likewise.
53919         * modules/tan (configure.ac): Likewise.
53920         * modules/tanh (configure.ac): Likewise.
53921         * modules/y0 (configure.ac): Likewise.
53922         * modules/y1 (configure.ac): Likewise.
53923         * modules/yn (configure.ac): Likewise.
53925 2010-01-24  Bruno Haible  <bruno@clisp.org>
53927         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
53928         * tests/test-acosl.c (x): New variable.
53929         (main): Store argument in x and fetch it from x.
53930         * tests/test-asinl.c (x): New variable.
53931         (main): Store argument in x and fetch it from x.
53932         * tests/test-atanl.c (x): New variable.
53933         (main): Store argument in x and fetch it from x.
53934         * tests/test-cosl.c (x): New variable.
53935         (main): Store argument in x and fetch it from x.
53936         * tests/test-expl.c (x): New variable.
53937         (main): Store argument in x and fetch it from x.
53938         * tests/test-logl.c (x): New variable.
53939         (main): Store argument in x and fetch it from x.
53940         * tests/test-sinl.c (x): New variable.
53941         (main): Store argument in x and fetch it from x.
53942         * tests/test-sqrtl.c (x): New variable.
53943         (main): Store argument in x and fetch it from x.
53944         * tests/test-tanl.c (x): New variable.
53945         (main): Store argument in x and fetch it from x.
53947 2010-01-24  Bruno Haible  <bruno@clisp.org>
53949         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
53950         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
53951         assignments to the initial TESTS_ENVIRONMENT.
53952         * doc/gnulib.texi (Unit test modules): Document it.
53953         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
53954         TESTS_ENVIRONMENT.
53955         * modules/btowc-tests (Makefile.am): Likewise.
53956         * modules/c-stack-tests (Makefile.am): Likewise.
53957         * modules/c-strcase-tests (Makefile.am): Likewise.
53958         * modules/copy-file-tests (Makefile.am): Likewise.
53959         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
53960         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
53961         * modules/mbrtowc-tests (Makefile.am): Likewise.
53962         * modules/mbscasecmp-tests (Makefile.am): Likewise.
53963         * modules/mbscasestr-tests (Makefile.am): Likewise.
53964         * modules/mbschr-tests (Makefile.am): Likewise.
53965         * modules/mbscspn-tests (Makefile.am): Likewise.
53966         * modules/mbsinit-tests (Makefile.am): Likewise.
53967         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
53968         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
53969         * modules/mbspbrk-tests (Makefile.am): Likewise.
53970         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
53971         * modules/mbsrchr-tests (Makefile.am): Likewise.
53972         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
53973         * modules/mbsspn-tests (Makefile.am): Likewise.
53974         * modules/mbsstr-tests (Makefile.am): Likewise.
53975         * modules/nl_langinfo-tests (Makefile.am): Likewise.
53976         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
53977         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
53978         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
53979         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
53980         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
53981         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
53982         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
53983         * modules/wcrtomb-tests (Makefile.am): Likewise.
53984         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
53985         * modules/wcsrtombs-tests (Makefile.am): Likewise.
53986         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
53987         assignments from TESTS_ENVIRONMENT.
53988         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
53989         augmentation.
53990         * modules/argp-version-etc-tests (Makefile.am): Likewise.
53991         * modules/atexit-tests (Makefile.am): Likewise.
53992         * modules/binary-io-tests (Makefile.am): Likewise.
53993         * modules/closein-tests (Makefile.am): Likewise.
53994         * modules/dprintf-posix-tests (Makefile.am): Likewise.
53995         * modules/exclude-tests (Makefile.am): Likewise.
53996         * modules/fflush-tests (Makefile.am): Likewise.
53997         * modules/fpending-tests (Makefile.am): Likewise.
53998         * modules/fprintf-posix-tests (Makefile.am): Likewise.
53999         * modules/freadahead-tests (Makefile.am): Likewise.
54000         * modules/freadptr-tests (Makefile.am): Likewise.
54001         * modules/freadseek-tests (Makefile.am): Likewise.
54002         * modules/fseek-tests (Makefile.am): Likewise.
54003         * modules/fseeko-tests (Makefile.am): Likewise.
54004         * modules/ftell-tests (Makefile.am): Likewise.
54005         * modules/ftello-tests (Makefile.am): Likewise.
54006         * modules/idpriv-drop-tests (Makefile.am): Likewise.
54007         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
54008         * modules/lseek-tests (Makefile.am): Likewise.
54009         * modules/parse-duration-tests (Makefile.am): Likewise.
54010         * modules/perror-tests (Makefile.am): Likewise.
54011         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
54012         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
54013         * modules/pipe-tests (Makefile.am): Likewise.
54014         * modules/pread-tests (Makefile.am): Likewise.
54015         * modules/printf-posix-tests (Makefile.am): Likewise.
54016         * modules/select-tests (Makefile.am): Likewise.
54017         * modules/sigpipe-tests (Makefile.am): Likewise.
54018         * modules/tsearch-tests (Makefile.am): Likewise.
54019         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
54020         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
54021         * modules/uniname/uniname-tests (Makefile.am): Likewise.
54022         * modules/uniwidth/width-tests (Makefile.am): Likewise.
54023         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
54024         * modules/version-etc-tests (Makefile.am): Likewise.
54025         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
54026         * modules/vprintf-posix-tests (Makefile.am): Likewise.
54027         * modules/xalloc-die-tests (Makefile.am): Likewise.
54028         * modules/xprintf-posix-tests (Makefile.am): Likewise.
54029         * modules/xstrtoimax-tests (Makefile.am): Likewise.
54030         * modules/xstrtol-tests (Makefile.am): Likewise.
54031         * modules/xstrtoumax-tests (Makefile.am): Likewise.
54032         * modules/yesno-tests (Makefile.am): Likewise.
54033         Suggested by Jim Meyering.
54035 2010-01-24  Bruno Haible  <bruno@clisp.org>
54037         More documentation.
54038         * doc/gnulib.texi (Writing modules): New chapter.
54039         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
54040         the new chapter.
54042 2010-01-24  Jim Meyering  <meyering@redhat.com>
54044         maint.mk: do not prepend "./" after filtering
54045         * top/maint.mk (_prepend_srcdir_prefix): New variable
54046         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
54047         "./" when $(srcdir) is ".".
54049         define STREQ(a,b) consistently, removing useless parentheses
54050         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
54051         since the only risk is that "a" or "b" contains an unparenthesized
54052         comma, but if either did that, STREQ would have 3 or more arguments.
54053         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
54054         * lib/fts.c (STREQ): Remove unnecessary parentheses.
54055         * lib/hash-triple.c (STREQ): Likewise.
54056         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
54057         * lib/getugroups.c (STREQ): Likewise.
54059 2010-01-23  Jim Meyering  <meyering@redhat.com>
54061         maint.mk: fix syntax-check in a non-srcdir build directory
54062         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
54063         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
54065 2010-01-22  Jim Meyering  <meyering@redhat.com>
54067         userspec: add unit tests
54068         * tests/test-userspec.c: New file.
54069         * modules/userspec-tests: Likewise.
54071 2010-01-21  Jim Meyering  <meyering@redhat.com>
54073         maint.mk: handle source file names containing "." robustly
54074         * top/maint.mk (_dot_escaped_srcdir): Define.
54075         (VC_LIST): Use it in LHS of sed substitution.
54077 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
54079         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
54080         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
54081         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
54082         from a non-srcdir build.
54084 2010-01-20  Eric Blake  <ebb9@byu.net>
54086         warn-on-use: use instead of link-warning
54087         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
54088         * modules/unistd (Depends-on, Makefile.am): Likewise.
54089         * modules/arpa_inet (Depends-on): Replace link-warning with
54090         warn-on-use.
54091         (Makefile.am): Update rules accordingly.
54092         * modules/ctype (Depends-on, Makefile.am): Likewise.
54093         * modules/dirent (Depends-on, Makefile.am): Likewise.
54094         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
54095         * modules/inttypes (Depends-on, Makefile.am): Likewise.
54096         * modules/langinfo (Depends-on, Makefile.am): Likewise.
54097         * modules/locale (Depends-on, Makefile.am): Likewise.
54098         * modules/math (Depends-on, Makefile.am): Likewise.
54099         * modules/search (Depends-on, Makefile.am): Likewise.
54100         * modules/signal (Depends-on, Makefile.am): Likewise.
54101         * modules/spawn (Depends-on, Makefile.am): Likewise.
54102         * modules/stdlib (Depends-on, Makefile.am): Likewise.
54103         * modules/string (Depends-on, Makefile.am): Likewise.
54104         * modules/strings (Depends-on, Makefile.am): Likewise.
54105         * modules/sys_file (Depends-on, Makefile.am): Likewise.
54106         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
54107         * modules/sys_select (Depends-on, Makefile.am): Likewise.
54108         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
54109         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
54110         * modules/sys_times (Depends-on, Makefile.am): Likewise.
54111         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
54112         * modules/wchar (Depends-on, Makefile.am): Likewise.
54113         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
54114         should be poisoned.
54115         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
54116         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
54117         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
54118         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
54119         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
54120         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
54121         * m4/math_h.m4 (gl_MATH_H): Likewise.
54122         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
54123         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
54124         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
54125         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
54126         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
54127         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
54128         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
54129         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
54130         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
54131         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54132         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
54133         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
54134         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
54135         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
54136         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
54137         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
54138         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
54139         GL_LINK_WARNING.
54140         * lib/ctype.in.h: Likewise.
54141         * lib/dirent.in.h: Likewise.
54142         * lib/fcntl.in.h: Likewise.
54143         * lib/inttypes.in.h: Likewise.
54144         * lib/langinfo.in.h: Likewise.
54145         * lib/locale.in.h: Likewise.
54146         * lib/math.in.h: Likewise.
54147         * lib/search.in.h: Likewise.
54148         * lib/signal.in.h: Likewise.
54149         * lib/spawn.in.h: Likewise.
54150         * lib/stdio.in.h: Likewise.
54151         * lib/stdlib.in.h: Likewise.
54152         * lib/string.in.h: Likewise.
54153         * lib/strings.in.h: Likewise.
54154         * lib/sys_file.in.h: Likewise.
54155         * lib/sys_ioctl.in.h: Likewise.
54156         * lib/sys_select.in.h: Likewise.
54157         * lib/sys_socket.in.h: Likewise.
54158         * lib/sys_stat.in.h: Likewise.
54159         * lib/sys_times.in.h: Likewise.
54160         * lib/sys_utsname.in.h: Likewise.
54161         * lib/unistd.in.h: Likewise.
54162         * lib/wchar.in.h: Likewise.
54164 2010-01-20  Bruno Haible  <bruno@clisp.org>
54166         Avoid duplicate -lm.
54167         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
54168         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
54169         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
54170         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
54171         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
54172         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
54173         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
54174         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
54175         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
54176         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
54177         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
54178         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
54179         Reported by Paolo Bonzini.
54181 2010-01-19  Bruno Haible  <bruno@clisp.org>
54183         langinfo, nl_langinfo: Relicense under LGPLv2+.
54184         * modules/langinfo (License): Change to LGPLv2+.
54185         * modules/nl_langinfo (License): Likewise.
54186         Patch by David Lutterkort <lutter@redhat.com>.
54188 2010-01-19  Bruno Haible  <bruno@clisp.org>
54190         Avoid compilation error with cc on OSF/1 5.1.
54191         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
54192         statement, not before.
54193         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54195 2010-01-18  Bruno Haible  <bruno@clisp.org>
54197         Avoid a link error due to the __printf__ symbol.
54198         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
54199         and 2.6.x.
54200         (__format__, __printf__): Remove definitions.
54201         * lib/argp-fmtstream.h: Likewise.
54202         * lib/argp.h: Likewise.
54203         * lib/error.h: Likewise.
54204         * lib/vasnprintf.h: Likewise.
54205         * lib/xprintf.h: Likewise.
54206         * lib/xvasprintf.h: Likewise.
54207         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54209 2010-01-18  Bruno Haible  <bruno@clisp.org>
54211         Tests for module 'tanl'.
54212         * modules/tanl-tests: New file.
54213         * tests/test-tanl.c: New file.
54215         Tests for module 'sqrtl'.
54216         * modules/sqrtl-tests: New file.
54217         * tests/test-sqrtl.c: New file.
54219         Tests for module 'sinl'.
54220         * modules/sinl-tests: New file.
54221         * tests/test-sinl.c: New file.
54223         Tests for module 'logl'.
54224         * modules/logl-tests: New file.
54225         * tests/test-logl.c: New file.
54227         Tests for module 'expl'.
54228         * modules/expl-tests: New file.
54229         * tests/test-expl.c: New file.
54231         Tests for module 'cosl'.
54232         * modules/cosl-tests: New file.
54233         * tests/test-cosl.c: New file.
54235         Tests for module 'atanl'.
54236         * modules/atanl-tests: New file.
54237         * tests/test-atanl.c: New file.
54239         Tests for module 'asinl'.
54240         * modules/asinl-tests: New file.
54241         * tests/test-asinl.c: New file.
54243         Tests for module 'acosl'.
54244         * modules/acosl-tests: New file.
54245         * tests/test-acosl.c: New file.
54247         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
54248         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
54249         tanl): Use the standard gnulib idiom.
54250         * lib/cosl.c: Don't include trigl.c and sincosl.c.
54251         * lib/sinl.c: Likewise.
54252         * lib/tanl.c: Don't include trigl.c.
54253         (kernel_tanl): Make static.
54254         * lib/sincosl.c: Include trigl.h first.
54255         * lib/trigl.c: Likewise.
54256         * m4/acosl.m4: New file.
54257         * m4/asinl.m4: New file.
54258         * m4/atanl.m4: New file.
54259         * m4/cosl.m4: New file.
54260         * m4/expl.m4: New file.
54261         * m4/logl.m4: New file.
54262         * m4/sinl.m4: New file.
54263         * m4/sqrtl.m4: New file.
54264         * m4/tanl.m4: New file.
54265         * m4/mathl.m4: Remove file.
54266         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
54267         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
54268         Don't initialize GNULIB_MATHL.
54269         * modules/acosl: New file.
54270         * modules/asinl: New file.
54271         * modules/atanl: New file.
54272         * modules/cosl: New file.
54273         * modules/expl: New file.
54274         * modules/logl: New file.
54275         * modules/sinl: New file.
54276         * modules/sqrtl: New file.
54277         * modules/tanl: New file.
54278         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
54279         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
54280         substitute GNULIB_MATHL.
54281         * modules/mathl: Rewritten.
54282         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
54283         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
54284         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
54285         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
54286         * doc/posix-functions/expl.texi: Mention the 'expl' module.
54287         * doc/posix-functions/logl.texi: Mention the 'logl' module.
54288         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
54289         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
54290         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
54292 2010-01-18  Bruno Haible  <bruno@clisp.org>
54294         sqrt: Make gl_FUNC_SQRT requirable.
54295         * m4/sqrt.m4: New file.
54296         * modules/sqrt (Files): Add it.
54297         (configure.ac): Invoke gl_FUNC_SQRT.
54299 2010-01-18  Bruno Haible  <bruno@clisp.org>
54301         New modules for common <math.h> functions.
54302         * m4/mathfunc.m4: New file.
54303         * modules/acos: New file.
54304         * modules/asin: New file.
54305         * modules/atan: New file.
54306         * modules/atan2: New file.
54307         * modules/cbrt: New file.
54308         * modules/copysign: New file.
54309         * modules/cos: New file.
54310         * modules/cosh: New file.
54311         * modules/erf: New file.
54312         * modules/erfc: New file.
54313         * modules/exp: New file.
54314         * modules/fabs: New file.
54315         * modules/fmod: New file.
54316         * modules/hypot: New file.
54317         * modules/j0: New file.
54318         * modules/j1: New file.
54319         * modules/jn: New file.
54320         * modules/ldexp: New file.
54321         * modules/lgamma: New file.
54322         * modules/log: New file.
54323         * modules/log10: New file.
54324         * modules/log1p: New file.
54325         * modules/logb: New file.
54326         * modules/modf: New file.
54327         * modules/nextafter: New file.
54328         * modules/pow: New file.
54329         * modules/remainder: New file.
54330         * modules/rint: New file.
54331         * modules/sin: New file.
54332         * modules/sinh: New file.
54333         * modules/sqrt: New file.
54334         * modules/tan: New file.
54335         * modules/tanh: New file.
54336         * modules/y0: New file.
54337         * modules/y1: New file.
54338         * modules/yn: New file.
54339         * doc/posix-functions/acos.texi: Mention the 'acos' module.
54340         * doc/posix-functions/asin.texi: Mention the 'asin' module.
54341         * doc/posix-functions/atan.texi: Mention the 'atan' module.
54342         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
54343         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
54344         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
54345         * doc/posix-functions/cos.texi: Mention the 'cos' module.
54346         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
54347         * doc/posix-functions/erf.texi: Mention the 'erf' module.
54348         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
54349         * doc/posix-functions/exp.texi: Mention the 'exp' module.
54350         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
54351         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
54352         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
54353         * doc/posix-functions/j0.texi: Mention the 'j0' module.
54354         * doc/posix-functions/j1.texi: Mention the 'j1' module.
54355         * doc/posix-functions/jn.texi: Mention the 'jn' module.
54356         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
54357         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
54358         * doc/posix-functions/log.texi: Mention the 'log' module.
54359         * doc/posix-functions/log10.texi: Mention the 'log10' module.
54360         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
54361         * doc/posix-functions/logb.texi: Mention the 'logb' module.
54362         * doc/posix-functions/modf.texi: Mention the 'modf' module.
54363         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
54364         * doc/posix-functions/pow.texi: Mention the 'pow' module.
54365         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
54366         * doc/posix-functions/rint.texi: Mention the 'rint' module.
54367         * doc/posix-functions/sin.texi: Mention the 'sin' module.
54368         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
54369         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
54370         * doc/posix-functions/tan.texi: Mention the 'tan' module.
54371         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
54372         * doc/posix-functions/y0.texi: Mention the 'y0' module.
54373         * doc/posix-functions/y1.texi: Mention the 'y1' module.
54374         * doc/posix-functions/yn.texi: Mention the 'yn' module.
54376 2010-01-18  Jim Meyering  <meyering@redhat.com>
54378         ignore-value: relax license to LGPLv2+
54379         * modules/ignore-value (License): Relax to LGPLv2+.
54381         getdate: don't leak when TZ contains two or more '"'s
54382         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
54383         double quote in TZ after the first one.
54385         readtokens: do not leak internal token_lengths buffer
54386         * lib/readtokens.c (readtokens): Free the local, lengths,
54387         when the supplied "token_lengths" parameter is NULL.
54389 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54391         Fix a couple of missing LIBTHREAD link failures on AIX.
54392         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
54393         $(LIBTHREAD).
54394         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
54396         Link test-poll against INET_PTON_LIB.
54397         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
54398         for inet_pton on Solaris 10.
54400 2010-01-17  Bruno Haible  <bruno@clisp.org>
54402         unistdio/*-sprintf: Fix typo in module description.
54403         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
54404         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
54405         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
54406         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
54407         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
54408         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
54409         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
54410         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54412 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54414         gnulib-tool: fix filelist for AIX, HP-UX ksh.
54415         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
54416         variables in shell case patterns, for AIX and HP-UX ksh.
54418         Split large sed scripts, for HP-UX sed.
54419         * modules/stdio: Split sed scripts around 50 sed commands,
54420         to avoid HP-UX limit of 99 commands, in the near future.
54421         * modules/string: Likewise.
54422         * modules/unistd: Likewise.
54424         gnulib-tool: avoid writing in the current directory.
54425         * gnulib-tool (func_emit_lib_Makefile_am)
54426         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
54427         not in the current directory, so concurrent gnulib-tool
54428         instances do not interfere.
54430 2010-01-16  Jim Meyering  <meyering@redhat.com>
54432         doc: update users.txt
54433         * users.txt: Add grep.
54434         (diffutils, gzip): Update URLs.
54436 2010-01-12  Bruno Haible  <bruno@clisp.org>
54438         posix_spawn: Avoid test failure on Cygwin.
54439         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
54440         characters.
54441         Reported by Simon Josefsson.
54443 2010-01-12  Bruno Haible  <bruno@clisp.org>
54445         * tests/test-cond.c (main): When skipping the test, show the reason.
54447 2010-01-12  Simon Josefsson  <simon@josefsson.org>
54449         * lib/striconv.c (str_cd_iconv): Avoid if before free.
54451 2010-01-12  Simon Josefsson  <simon@josefsson.org>
54453         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
54454         VC_LIST_ALWAYS_EXCLUDE_REGEX.
54456 2010-01-12  Eric Blake  <ebb9@byu.net>
54458         build: guarantee AS_VAR_IF
54459         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
54460         (gl_AS_VAR_IF): Move...
54461         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
54462         Reported by Simon Josefsson.
54464 2010-01-12  Simon Josefsson  <simon@josefsson.org>
54466         * lib/stdio.in.h: Fix typo.
54468 2010-01-12  Simon Josefsson  <simon@josefsson.org>
54470         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
54471         libgpg-error.
54473 2010-01-12  Simon Josefsson  <simon@josefsson.org>
54475         * tests/test-xalloc-die.sh: Use $EXEEXT.
54477 2010-01-12  Simon Josefsson  <simon@josefsson.org>
54478             Bruno Haible  <bruno@clisp.org>
54480         getlogin, getlogin_r: Avoid test failure.
54481         * tests/test-getlogin.c: Include <stdio.h>.
54482         (main): Skip the test when the function fails because stdin is not a
54483         tty.
54484         * tests/test-getlogin_r.c: Include <stdio.h>.
54485         (main): Skip the test when the function fails because stdin is not a
54486         tty.
54488 2010-01-11  Eric Blake  <ebb9@byu.net>
54490         tests: avoid more large file warnings
54491         * tests/test-fflush.c: Avoid warning about ftell use.
54492         * tests/test-fseek.c: Avoid warning about fseek use.
54494 2010-01-10  Bruno Haible  <bruno@clisp.org>
54496         nproc: Work better on Linux when /proc and /sys are not mounted.
54497         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
54498         as lower bound when, on glibc/Linux systems,
54499         sysconf (_SC_NPROCESSORS_CONF) returns 1.
54500         Suggested by Pádraig Brady <P@draigbrady.com>.
54501         Reported by Dmitry V. Levin <ldv@altlinux.org>.
54503         nproc: Refactor.
54504         * lib/nproc.c (num_processors_via_affinity_mask): New function,
54505         extracted from num_processors.
54506         (num_processors): Call it.
54508 2010-01-11  Jim Meyering  <meyering@redhat.com>
54510         utimecmp: avoid new warning from upcoming gcc-4.5.0
54511         * lib/utimecmp.c (BILLION): Define using #define rather than an
54512         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
54514 2010-01-11  Eric Blake  <ebb9@byu.net>
54516         math: add portability warnings for classification macros
54517         * modules/math (Depends-on): Add warn-on-use.
54518         (Makefile.am): Provide new substitutions.
54519         * m4/math_h.m4 (gl_MATH_H): Require inline.
54520         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
54521         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
54522         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
54523         implement warnings.
54525         unistd: warn on use of environ without module
54526         * modules/unistd (Depends-on): Add warn-on-use.
54527         (Makefile.am): Provide new substitutions.
54528         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
54529         * lib/unistd.in.h (environ): Wrap with a warning helper function.
54531         stdio: warn on suspicious uses
54532         * modules/stdio (Depends-on): Add warn-on-use.
54533         (Makefile.am): Provide new substitutions.
54534         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
54535         fseeko.
54536         * lib/stdio.in.h (gets): Always warn on use.
54537         (fseek, ftell): Adjust when warnings are issued, and honor
54538         _GL_NO_LARGE_FILES as a way to silence the warning.
54539         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
54540         any warning about large file offsets.
54541         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
54542         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
54543         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
54544         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
54545         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
54546         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
54547         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
54548         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
54550         warn-on-use: new module
54551         * modules/warn-on-use: New file.
54552         * build-aux/warn-on-use.h: Likewise.
54553         * m4/warn-on-use.m4: Likewise.
54554         * MODULES.html.sh (Support for building): Mention it.
54556 2010-01-10  Bruno Haible  <bruno@clisp.org>
54558         Tests for module 'unistr/u32-strdup'.
54559         * modules/unistr/u32-strdup-tests: New file.
54560         * tests/unistr/test-u32-strdup.c: New file.
54562         Tests for module 'unistr/u16-strdup'.
54563         * modules/unistr/u16-strdup-tests: New file.
54564         * tests/unistr/test-u16-strdup.c: New file.
54566         Tests for module 'unistr/u8-strdup'.
54567         * modules/unistr/u8-strdup-tests: New file.
54568         * tests/unistr/test-u8-strdup.c: New file.
54569         * tests/unistr/test-strdup.h: New file.
54571         Tests for module 'unistr/u32-strncmp'.
54572         * modules/unistr/u32-strncmp-tests: New file.
54573         * tests/unistr/test-u32-strncmp.c: New file.
54575         Tests for module 'unistr/u16-strncmp'.
54576         * modules/unistr/u16-strncmp-tests: New file.
54577         * tests/unistr/test-u16-strncmp.c: New file.
54579         Tests for module 'unistr/u8-strncmp'.
54580         * modules/unistr/u8-strncmp-tests: New file.
54581         * tests/unistr/test-u8-strncmp.c: New file.
54582         * tests/unistr/test-strncmp.h: New file.
54584         Tests for module 'unistr/u32-strcoll'.
54585         * modules/unistr/u32-strcoll-tests: New file.
54586         * tests/unistr/test-u32-strcoll.c: New file.
54588         Tests for module 'unistr/u16-strcoll'.
54589         * modules/unistr/u16-strcoll-tests: New file.
54590         * tests/unistr/test-u16-strcoll.c: New file.
54592         Tests for module 'unistr/u8-strcoll'.
54593         * modules/unistr/u8-strcoll-tests: New file.
54594         * tests/unistr/test-u8-strcoll.c: New file.
54596         Tests for module 'unistr/u32-strcmp'.
54597         * modules/unistr/u32-strcmp-tests: New file.
54598         * tests/unistr/test-u32-strcmp.c: New file.
54599         * tests/unistr/test-u32-strcmp.h: New file.
54601         Tests for module 'unistr/u16-strcmp'.
54602         * modules/unistr/u16-strcmp-tests: New file.
54603         * tests/unistr/test-u16-strcmp.c: New file.
54604         * tests/unistr/test-u16-strcmp.h: New file.
54606         Tests for module 'unistr/u8-strcmp'.
54607         * modules/unistr/u8-strcmp-tests: New file.
54608         * tests/unistr/test-u8-strcmp.c: New file.
54609         * tests/unistr/test-u8-strcmp.h: New file.
54610         * tests/unistr/test-strcmp.h: New file.
54612         Tests for module 'unistr/u32-strncat'.
54613         * modules/unistr/u32-strncat-tests: New file.
54614         * tests/unistr/test-u32-strncat.c: New file.
54616         Tests for module 'unistr/u16-strncat'.
54617         * modules/unistr/u16-strncat-tests: New file.
54618         * tests/unistr/test-u16-strncat.c: New file.
54620         Tests for module 'unistr/u8-strncat'.
54621         * modules/unistr/u8-strncat-tests: New file.
54622         * tests/unistr/test-u8-strncat.c: New file.
54623         * tests/unistr/test-strncat.h: New file.
54625         Tests for module 'unistr/u32-strcat'.
54626         * modules/unistr/u32-strcat-tests: New file.
54627         * tests/unistr/test-u32-strcat.c: New file.
54629         Tests for module 'unistr/u16-strcat'.
54630         * modules/unistr/u16-strcat-tests: New file.
54631         * tests/unistr/test-u16-strcat.c: New file.
54633         Tests for module 'unistr/u8-strcat'.
54634         * modules/unistr/u8-strcat-tests: New file.
54635         * tests/unistr/test-u8-strcat.c: New file.
54636         * tests/unistr/test-strcat.h: New file.
54638         Tests for module 'unistr/u32-stpncpy'.
54639         * modules/unistr/u32-stpncpy-tests: New file.
54640         * tests/unistr/test-u32-stpncpy.c: New file.
54642         Tests for module 'unistr/u16-stpncpy'.
54643         * modules/unistr/u16-stpncpy-tests: New file.
54644         * tests/unistr/test-u16-stpncpy.c: New file.
54646         Tests for module 'unistr/u8-stpncpy'.
54647         * modules/unistr/u8-stpncpy-tests: New file.
54648         * tests/unistr/test-u8-stpncpy.c: New file.
54649         * tests/unistr/test-stpncpy.h: New file.
54651         Tests for module 'unistr/u32-strncpy'.
54652         * modules/unistr/u32-strncpy-tests: New file.
54653         * tests/unistr/test-u32-strncpy.c: New file.
54655         Tests for module 'unistr/u16-strncpy'.
54656         * modules/unistr/u16-strncpy-tests: New file.
54657         * tests/unistr/test-u16-strncpy.c: New file.
54659         Tests for module 'unistr/u8-strncpy'.
54660         * modules/unistr/u8-strncpy-tests: New file.
54661         * tests/unistr/test-u8-strncpy.c: New file.
54662         * tests/unistr/test-strncpy.h: New file.
54664         Tests for module 'unistr/u32-stpcpy'.
54665         * modules/unistr/u32-stpcpy-tests: New file.
54666         * tests/unistr/test-u32-stpcpy.c: New file.
54668         Tests for module 'unistr/u16-stpcpy'.
54669         * modules/unistr/u16-stpcpy-tests: New file.
54670         * tests/unistr/test-u16-stpcpy.c: New file.
54672         Tests for module 'unistr/u8-stpcpy'.
54673         * modules/unistr/u8-stpcpy-tests: New file.
54674         * tests/unistr/test-u8-stpcpy.c: New file.
54675         * tests/unistr/test-stpcpy.h: New file.
54677         Tests for module 'unistr/u32-strcpy'.
54678         * modules/unistr/u32-strcpy-tests: New file.
54679         * tests/unistr/test-u32-strcpy.c: New file.
54681         Tests for module 'unistr/u16-strcpy'.
54682         * modules/unistr/u16-strcpy-tests: New file.
54683         * tests/unistr/test-u16-strcpy.c: New file.
54685         Tests for module 'unistr/u8-strcpy'.
54686         * modules/unistr/u8-strcpy-tests: New file.
54687         * tests/unistr/test-u8-strcpy.c: New file.
54688         * tests/unistr/test-strcpy.h: New file.
54690         Tests for module 'unistr/u32-strnlen'.
54691         * modules/unistr/u32-strnlen-tests: New file.
54692         * tests/unistr/test-u32-strnlen.c: New file.
54694         Tests for module 'unistr/u16-strnlen'.
54695         * modules/unistr/u16-strnlen-tests: New file.
54696         * tests/unistr/test-u16-strnlen.c: New file.
54698         Tests for module 'unistr/u8-strnlen'.
54699         * modules/unistr/u8-strnlen-tests: New file.
54700         * tests/unistr/test-u8-strnlen.c: New file.
54701         * tests/unistr/test-strnlen.h: New file.
54703         Tests for module 'unistr/u32-strlen'.
54704         * modules/unistr/u32-strlen-tests: New file.
54705         * tests/unistr/test-u32-strlen.c: New file.
54707         Tests for module 'unistr/u16-strlen'.
54708         * modules/unistr/u16-strlen-tests: New file.
54709         * tests/unistr/test-u16-strlen.c: New file.
54711         Tests for module 'unistr/u8-strlen'.
54712         * modules/unistr/u8-strlen-tests: New file.
54713         * tests/unistr/test-u8-strlen.c: New file.
54715         Tests for module 'unistr/u32-prev'.
54716         * modules/unistr/u32-prev-tests: New file.
54717         * tests/unistr/test-u32-prev.c: New file.
54719         Tests for module 'unistr/u16-prev'.
54720         * modules/unistr/u16-prev-tests: New file.
54721         * tests/unistr/test-u16-prev.c: New file.
54723         Tests for module 'unistr/u8-prev'.
54724         * modules/unistr/u8-prev-tests: New file.
54725         * tests/unistr/test-u8-prev.c: New file.
54727         Tests for module 'unistr/u32-next'.
54728         * modules/unistr/u32-next-tests: New file.
54729         * tests/unistr/test-u32-next.c: New file.
54731         Tests for module 'unistr/u16-next'.
54732         * modules/unistr/u16-next-tests: New file.
54733         * tests/unistr/test-u16-next.c: New file.
54735         Tests for module 'unistr/u8-next'.
54736         * modules/unistr/u8-next-tests: New file.
54737         * tests/unistr/test-u8-next.c: New file.
54739         Tests for module 'unistr/u32-strmbtouc'.
54740         * modules/unistr/u32-strmbtouc-tests: New file.
54741         * tests/unistr/test-u32-strmbtouc.c: New file.
54743         Tests for module 'unistr/u16-strmbtouc'.
54744         * modules/unistr/u16-strmbtouc-tests: New file.
54745         * tests/unistr/test-u16-strmbtouc.c: New file.
54747         Tests for module 'unistr/u8-strmbtouc'.
54748         * modules/unistr/u8-strmbtouc-tests: New file.
54749         * tests/unistr/test-u8-strmbtouc.c: New file.
54751         Tests for module 'unistr/u32-strmblen'.
54752         * modules/unistr/u32-strmblen-tests: New file.
54753         * tests/unistr/test-u32-strmblen.c: New file.
54755         Tests for module 'unistr/u16-strmblen'.
54756         * modules/unistr/u16-strmblen-tests: New file.
54757         * tests/unistr/test-u16-strmblen.c: New file.
54759         Tests for module 'unistr/u8-strmblen'.
54760         * modules/unistr/u8-strmblen-tests: New file.
54761         * tests/unistr/test-u8-strmblen.c: New file.
54763         Tests for module 'unistr/u32-cpy-alloc'.
54764         * modules/unistr/u32-cpy-alloc-tests: New file.
54765         * tests/unistr/test-u32-cpy-alloc.c: New file.
54767         Tests for module 'unistr/u16-cpy-alloc'.
54768         * modules/unistr/u16-cpy-alloc-tests: New file.
54769         * tests/unistr/test-u16-cpy-alloc.c: New file.
54771         Tests for module 'unistr/u8-cpy-alloc'.
54772         * modules/unistr/u8-cpy-alloc-tests: New file.
54773         * tests/unistr/test-u8-cpy-alloc.c: New file.
54774         * tests/unistr/test-cpy-alloc.h: New file.
54776         Tests for module 'unistr/u32-mbsnlen'.
54777         * modules/unistr/u32-mbsnlen-tests: New file.
54778         * tests/unistr/test-u32-mbsnlen.c: New file.
54780         Tests for module 'unistr/u16-mbsnlen'.
54781         * modules/unistr/u16-mbsnlen-tests: New file.
54782         * tests/unistr/test-u16-mbsnlen.c: New file.
54784         Tests for module 'unistr/u8-mbsnlen'.
54785         * modules/unistr/u8-mbsnlen-tests: New file.
54786         * tests/unistr/test-u8-mbsnlen.c: New file.
54788         Tests for module 'unistr/u32-chr'.
54789         * modules/unistr/u32-chr-tests: New file.
54790         * tests/unistr/test-u32-chr.c: New file.
54792         Tests for module 'unistr/u16-chr'.
54793         * modules/unistr/u16-chr-tests: New file.
54794         * tests/unistr/test-u16-chr.c: New file.
54796         Tests for module 'unistr/u8-chr'.
54797         * modules/unistr/u8-chr-tests: New file.
54798         * tests/unistr/test-u8-chr.c: New file.
54799         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
54801         Tests for module 'unistr/u32-cmp2'.
54802         * modules/unistr/u32-cmp2-tests: New file.
54803         * tests/unistr/test-u32-cmp2.c: New file.
54805         Tests for module 'unistr/u16-cmp2'.
54806         * modules/unistr/u16-cmp2-tests: New file.
54807         * tests/unistr/test-u16-cmp2.c: New file.
54809         Tests for module 'unistr/u8-cmp2'.
54810         * modules/unistr/u8-cmp2-tests: New file.
54811         * tests/unistr/test-u8-cmp2.c: New file.
54812         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
54814         Tests for module 'unistr/u32-cmp'.
54815         * modules/unistr/u32-cmp-tests: New file.
54816         * tests/unistr/test-u32-cmp.c: New file.
54818         Tests for module 'unistr/u16-cmp'.
54819         * modules/unistr/u16-cmp-tests: New file.
54820         * tests/unistr/test-u16-cmp.c: New file.
54822         Tests for module 'unistr/u8-cmp'.
54823         * modules/unistr/u8-cmp-tests: New file.
54824         * tests/unistr/test-u8-cmp.c: New file.
54825         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
54827         Tests for module 'unistr/u32-set'.
54828         * modules/unistr/u32-set-tests: New file.
54829         * tests/unistr/test-u32-set.c: New file.
54831         Tests for module 'unistr/u16-set'.
54832         * modules/unistr/u16-set-tests: New file.
54833         * tests/unistr/test-u16-set.c: New file.
54835         Tests for module 'unistr/u8-set'.
54836         * modules/unistr/u8-set-tests: New file.
54837         * tests/unistr/test-u8-set.c: New file.
54838         * tests/unistr/test-set.h: New file.
54840         Tests for module 'unistr/u32-move'.
54841         * modules/unistr/u32-move-tests: New file.
54842         * tests/unistr/test-u32-move.c: New file.
54844         Tests for module 'unistr/u16-move'.
54845         * modules/unistr/u16-move-tests: New file.
54846         * tests/unistr/test-u16-move.c: New file.
54848         Tests for module 'unistr/u8-move'.
54849         * modules/unistr/u8-move-tests: New file.
54850         * tests/unistr/test-u8-move.c: New file.
54851         * tests/unistr/test-move.h: New file.
54853         Tests for module 'unistr/u32-cpy'.
54854         * modules/unistr/u32-cpy-tests: New file.
54855         * tests/unistr/test-u32-cpy.c: New file.
54857         Tests for module 'unistr/u16-cpy'.
54858         * modules/unistr/u16-cpy-tests: New file.
54859         * tests/unistr/test-u16-cpy.c: New file.
54861         Tests for module 'unistr/u8-cpy'.
54862         * modules/unistr/u8-cpy-tests: New file.
54863         * tests/unistr/test-u8-cpy.c: New file.
54864         * tests/unistr/test-cpy.h: New file.
54866 2010-01-09  Bruno Haible  <bruno@clisp.org>
54868         Tests for module 'unistr/u32-uctomb'.
54869         * modules/unistr/u32-uctomb-tests: New file.
54870         * tests/unistr/test-u32-uctomb.c: New file.
54872         Tests for module 'unistr/u16-uctomb'.
54873         * modules/unistr/u16-uctomb-tests: New file.
54874         * tests/unistr/test-u16-uctomb.c: New file.
54876         Tests for module 'unistr/u8-uctomb'.
54877         * modules/unistr/u8-uctomb-tests: New file.
54878         * tests/unistr/test-u8-uctomb.c: New file.
54880         Tests for module 'unistr/u32-mbtoucr'.
54881         * modules/unistr/u32-mbtoucr-tests: New file.
54882         * tests/unistr/test-u32-mbtoucr.c: New file.
54884         Tests for module 'unistr/u16-mbtoucr'.
54885         * modules/unistr/u16-mbtoucr-tests: New file.
54886         * tests/unistr/test-u16-mbtoucr.c: New file.
54888         Tests for module 'unistr/u8-mbtoucr'.
54889         * modules/unistr/u8-mbtoucr-tests: New file.
54890         * tests/unistr/test-u8-mbtoucr.c: New file.
54892         Tests for module 'unistr/u32-mbtouc'.
54893         * modules/unistr/u32-mbtouc-tests: New file.
54894         * tests/unistr/test-u32-mbtouc.c: New file.
54896         Tests for module 'unistr/u16-mbtouc'.
54897         * modules/unistr/u16-mbtouc-tests: New file.
54898         * tests/unistr/test-u16-mbtouc.c: New file.
54900         Tests for module 'unistr/u8-mbtouc'.
54901         * modules/unistr/u8-mbtouc-tests: New file.
54902         * tests/unistr/test-u8-mbtouc.c: New file.
54904         Tests for module 'unistr/u32-mbtouc-unsafe'.
54905         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
54906         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
54907         * tests/unistr/test-u32-mbtouc.h: New file.
54909         Tests for module 'unistr/u16-mbtouc-unsafe'.
54910         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
54911         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
54912         * tests/unistr/test-u16-mbtouc.h: New file.
54914         Tests for module 'unistr/u8-mbtouc-unsafe'.
54915         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
54916         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
54917         * tests/unistr/test-u8-mbtouc.h: New file.
54919         Tests for module 'unistr/u32-mblen'.
54920         * modules/unistr/u32-mblen-tests: New file.
54921         * tests/unistr/test-u32-mblen.c: New file.
54923         Tests for module 'unistr/u16-mblen'.
54924         * modules/unistr/u16-mblen-tests: New file.
54925         * tests/unistr/test-u16-mblen.c: New file.
54927         Tests for module 'unistr/u8-mblen'.
54928         * modules/unistr/u8-mblen-tests: New file.
54929         * tests/unistr/test-u8-mblen.c: New file.
54931         Tests for module 'unistr/u32-to-u16'.
54932         * modules/unistr/u32-to-u16-tests: New file.
54933         * tests/unistr/test-u32-to-u16.c: New file.
54935         Tests for module 'unistr/u32-to-u8'.
54936         * modules/unistr/u32-to-u8-tests: New file.
54937         * tests/unistr/test-u32-to-u8.c: New file.
54939         Tests for module 'unistr/u16-to-u32'.
54940         * modules/unistr/u16-to-u32-tests: New file.
54941         * tests/unistr/test-u16-to-u32.c: New file.
54943         Tests for module 'unistr/u16-to-u8'.
54944         * modules/unistr/u16-to-u8-tests: New file.
54945         * tests/unistr/test-u16-to-u8.c: New file.
54947         Tests for module 'unistr/u8-to-u32'.
54948         * modules/unistr/u8-to-u32-tests: New file.
54949         * tests/unistr/test-u8-to-u32.c: New file.
54951         Tests for module 'unistr/u8-to-u16'.
54952         * modules/unistr/u8-to-u16-tests: New file.
54953         * tests/unistr/test-u8-to-u16.c: New file.
54955         Tests for module 'unistr/u32-check'.
54956         * modules/unistr/u32-check-tests: New file.
54957         * tests/unistr/test-u32-check.c: New file.
54959         Tests for module 'unistr/u16-check'.
54960         * modules/unistr/u16-check-tests: New file.
54961         * tests/unistr/test-u16-check.c: New file.
54963         Tests for module 'unistr/u8-check'.
54964         * modules/unistr/u8-check-tests: New file.
54965         * tests/unistr/test-u8-check.c: New file.
54967         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
54968         (category_equals): New function.
54969         (main): Add more tests.
54970         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
54972         * tests/unictype/test-bidi_byname.c (main): Add more tests.
54974 2010-01-10  Bruno Haible  <bruno@clisp.org>
54976         unistr/u*-strcoll: Try harder to distinguish different strings.
54977         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
54978         compare s1 and s2 to see if they are different.
54980 2010-01-10  Bruno Haible  <bruno@clisp.org>
54982         unistr/u*-stpncpy: Fix the return value.
54983         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
54984         description of the return value consistent with stpncpy in glibc.
54985         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
54986         written non-NUL unit.
54988 2010-01-10  Bruno Haible  <bruno@clisp.org>
54990         unistr/u*-next: Add missing dependencies.
54991         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
54992         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
54993         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
54995 2010-01-10  Bruno Haible  <bruno@clisp.org>
54997         unistr/u8-mbsnlen: Fix return value for incomplete character.
54998         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
54999         u8_mblen.
55000         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
55001         Remove unistr/u8-mblen.
55002         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
55003         u16_mblen.
55004         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
55005         Remove unistr/u16-mblen.
55007 2010-01-10  Bruno Haible  <bruno@clisp.org>
55009         wchar: Fix compilation error when <wchar.h> is used from coreutils.
55010         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
55011         Reported by Brian Gough <bjg@gnu.org> and
55012         Chris Clayton <chris2553@googlemail.com> via
55013         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
55015 2010-01-09  Bruno Haible  <bruno@clisp.org>
55017         unistr/u16-to-u32: Reject invalid input.
55018         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
55019         u16_mbtouc.
55020         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
55021         Remove unistr/u16-mbtouc.
55023         unistr/u16-to-u8: Reject invalid input.
55024         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
55025         u16_mbtouc.
55026         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
55027         Remove unistr/u16-mbtouc.
55029         unistr/u8-to-u32: Reject invalid input.
55030         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
55031         u8_mbtouc.
55032         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
55033         Remove unistr/u8-mbtouc.
55035         unistr/u8-to-u16: Reject invalid input.
55036         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
55037         u8_mbtouc.
55038         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
55039         Remove unistr/u8-mbtouc.
55041 2010-01-09  Bruno Haible  <bruno@clisp.org>
55043         Tests for module 'getlogin'.
55044         * modules/getlogin-tests: New file.
55045         * tests/test-getlogin.c: New file.
55047         New module 'getlogin'.
55048         * lib/unistd.in.h (getlogin): New declaration.
55049         * lib/getlogin.c: New file.
55050         * m4/getlogin.m4: New file.
55051         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
55052         HAVE_GETLOGIN.
55053         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
55054         HAVE_GETLOGIN.
55055         * modules/getlogin: New file.
55056         * doc/posix-functions/getlogin.texi: Mention the new module.
55057         Reported by John W. Eaton <jwe@gnu.org>.
55059 2010-01-09  Bruno Haible  <bruno@clisp.org>
55061         getlogin_r: Support for native Windows.
55062         * lib/getlogin_r.c: Include <windows.h>
55063         (getlogin_r): Implement for native Windows.
55064         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
55065         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
55066         via John W. Eaton <jwe@gnu.org>.
55068 2010-01-09  Bruno Haible  <bruno@clisp.org>
55070         getlogin_r: Small fixes.
55071         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
55072         succeeds.
55073         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
55074         before testing whether getlogin_r is declared. No need to set
55075         HAVE_DECL_GETLOGIN_R to 1.
55076         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
55078 2010-01-09  Bruno Haible  <bruno@clisp.org>
55080         * lib/unistd.in.h (getlogin_r): Add comment.
55082 2010-01-09  Bruno Haible  <bruno@clisp.org>
55084         Tests for module 'getlogin_r'.
55085         * modules/getlogin_r-tests: New file.
55086         * tests/test-getlogin_r.c: New file.
55088 2010-01-09  Jim Meyering  <meyering@redhat.com>
55090         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
55091         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
55092         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
55094 2010-01-08  Simon Josefsson  <simon@josefsson.org>
55096         * lib/dup2.c (rpl_dup2): Improve comment.
55098 2010-01-08  Eric Blake  <ebb9@byu.net>
55100         maint.mk: allow packages to add makefile @@ exceptions
55101         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
55102         (sc_makefile_check): Rename...
55103         (sc_makefile_at_at_check): ...to this, and use hook.
55105         dup2: work around mingw bug
55106         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
55107         Reported by Simon Josefsson.
55109 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
55111         glob: Fix C++ compilation.
55112         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
55113         C++.
55115 2010-01-07  Bruno Haible  <bruno@clisp.org>
55117         Fix indentation of wctype.in.h, broken since 2007-01-06.
55118         * lib/wctype.in.h: Fix indentation of preprocessor directives.
55120 2010-01-07  Bruno Haible  <bruno@clisp.org>
55122         mbslen: Avoid collision with system function.
55123         * lib/string.in.h [MirBSD]: Include <wchar.h>.
55124         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
55125         * m4/mbslen.m4: New file.
55126         * modules/mbslen (Files): Add it.
55127         (configure.ac): Invoke gl_MBSLEN.
55128         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
55129         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
55130         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
55131         via Ian Beckwith <ianb@erislabs.net>.
55133 2010-01-07  Bruno Haible  <bruno@clisp.org>
55135         dirent: Document the last fix.
55136         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
55138 2010-01-07  Bruno Haible  <bruno@clisp.org>
55140         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
55141         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
55142         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
55143         va_list are defined.
55144         * doc/posix-headers/stdio.texi: Document the bug of missing types.
55145         Reported by Eric Blake.
55147 2010-01-07  Bruno Haible  <bruno@clisp.org>
55149         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
55150         * modules/xlist (Depends-on): Add 'list',
55151         * modules/xoset (Depends-on): Add 'oset'.
55152         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55154 2010-01-07  Bruno Haible  <bruno@clisp.org>
55156         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
55157         * doc/posix-functions/strncasecmp.texi: Likewise.
55159 2010-01-07  Bruno Haible  <bruno@clisp.org>
55161         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
55163 2010-01-07  John W. Eaton  <jwe@octave.org>
55165         wctype: allow C++ use
55166         * lib/wctype.in.h: Add extern "C" block for C++.
55168 2010-01-06  Eric Blake  <ebb9@byu.net>
55170         maint.mk: detect incorrect GFDL usage
55171         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
55173 2010-01-06  Jim Meyering  <meyering@redhat.com>
55174         and Eric Blake  <ebb9@byu.net>
55176         maint.mk: ignore multi-line copyright in NEWS
55177         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
55179 2010-01-06  Eric Blake  <ebb9@byu.net>
55181         select: add missing dependency
55182         * modules/select-tests (Depends-on): Move sockets dependency...
55183         * modules/select (Depends-on): ...here.
55184         Reported by Ian Beckwith.
55186         doc: regenerate INSTALL
55187         * doc/INSTALL: Reflect recent autoconf update.
55188         * doc/INSTALL.ISO: Likewise.
55189         * doc/INSTALL.UTF-8: Likewise.
55191         pread: fix compilation on glibc
55192         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
55193         Reported by Ralf Wildenhues.
55195         dirent: fix test failure
55196         * lib/dirent.in.h (includes): Guarantee ino_t.
55197         Reported by Ralf Wildenhues.
55199 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
55201         linkat, renameat: avoid bad free
55202         * lib/at-func2.c (at_func2): Fix typo.
55203         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
55205 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55207         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
55208         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
55209         to avoid failure of symlink test later.
55211 2010-01-06  Eric Blake  <ebb9@byu.net>
55213         stdio, unistd: guarantee ssize_t
55214         * lib/unistd.in.h (includes): Ensure that types required by POSIX
55215         2008 are exposed when needed.
55216         * lib/stdio.in.h (includes): Likewise.
55217         Reported by Ralf Wildenhues.
55219 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
55221         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
55222         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
55223         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
55225 2010-01-06  Jim Meyering  <meyering@redhat.com>
55227         readtokens: this module *does* require xalloc.h
55228         It uses only functions that were omitted by the old syntax-check rule.
55229         * lib/readtokens.c: Include "xalloc.h" once again.
55230         * modules/readtokens (Depends-on): Add xalloc.
55231         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
55233 2010-01-05  Eric Blake  <ebb9@byu.net>
55235         maint: support 'make announcement' from a VPATH build
55236         * top/maint.mk (announcement): Look for correct NEWS file.
55238 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
55240         utimens (fdutimens): ignore a negative FD, per contract
55241         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
55242         when we have a valid file descriptor.  Otherwise, using a brand
55243         new glibc (with just-patched futimens that now fails with EBADF)
55244         would cause this function to fail with ENOSYS.
55245         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
55246         See also http://bugzilla.redhat.com/552320.
55248 2010-01-05  Eric Blake  <ebb9@byu.net>
55250         strcase: document what it provides
55251         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
55252         gnulib module.
55253         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
55254         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
55256 2010-01-05  Jim Meyering  <meyering@redhat.com>
55258         maint: remove useless inclusions of "xalloc.h"
55259         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
55260         * lib/readtokens.c: Likewise.
55261         * lib/same.c: Likewise.
55262         * modules/getloadavg (Depends-on): Remove xalloc.
55263         * modules/readtokens: Likewise.
55264         * modules/same: Likewise.
55266         maint.mk: include 4 more function names in alloca.h-checking regexp
55267         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
55268         regexp.  Before, we would give a false-positive (saying alloca.h
55269         is included unnecessarily) when the only uses involved omitted symbols.
55271         xalloc.h: use consistent formatting
55272         * lib/xalloc.h: Move declarations to start in the first column.
55274 2010-01-05  Eric Blake  <ebb9@byu.net>
55276         mkdir: avoid xalloc
55277         * lib/mkdir.c (includes): Drop unused header.
55278         Reported by John W. Eaton.
55280 2010-01-04  Jim Meyering  <meyering@redhat.com>
55282         nl_langinfo: avoid configure-time syntax error
55283         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
55284         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
55285         the empty string.  Don't let that provoke a shell syntax error.
55287         regcomp, regexec, fnmatch: avoid array bounds read error
55288         * lib/regcomp.c (build_equiv_class): From glibc:
55289         Use only the low 24 bits of a findidx return value as an index
55290         into the weights array.  Patch by Ulrich Drepper:
55291         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
55292         * lib/regexec.c (check_node_accept_bytes): Likewise.
55293         * lib/fnmatch_loop.c (FCT): Likewise.
55295         regcomp: skip collseq lookup when there are no rules
55296         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
55297         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
55299         regcomp: recognize ill-formed { } expressions
55300         * lib/regcomp.c (parse_dup_op): From glibc:
55301         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
55303         regcomp: fix typo in comment
55304         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
55305         s/satisfy/satisfies/.
55307         regcomp: sync from glibc: remove dead store
55308         * lib/regcomp.c (duplicate_node_closure): Remove useless
55309         search_duplicated_node call and dead store.
55311         regcomp: sync from glibc; always use nl_langinfo
55312         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
55313         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
55314         * modules/regex (Depends-on): Add nl_langinfo.
55316 2010-01-04  Eric Blake  <ebb9@byu.net>
55318         fdopendir: fix configure test
55319         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
55321 2010-01-01  Bruno Haible  <bruno@clisp.org>
55323         wchar: Remove unused configure check.
55324         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
55326 2010-01-01  Eric Blake  <ebb9@byu.net>
55328         headers: make check of system header explicit
55329         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
55330         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
55331         ourselves.
55332         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
55333         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55334         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
55335         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
55336         internals.
55337         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
55338         missing.
55339         Suggested by Bruno Haible.
55341 2010-01-01  Jim Meyering  <meyering@redhat.com>
55343         ChangeLog: tweak to eliminate unnecessary copyright line
55344         * ChangeLog: Remove a copyright line that was mistakenly updated
55345         by today's update-copyright run.  Reported by Eric Blake.
55347         test-update-copyright: don't let envvar setting cause test failure
55348         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
55350 2010-01-01  Bruno Haible  <bruno@clisp.org>
55352         localename: Avoid gcc warning.
55353         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
55354         function if it is not used.
55356 2010-01-01  Jim Meyering  <meyering@redhat.com>
55358         update nearly all FSF copyright year lists to include 2010
55359         Use the same procedure as for 2009, outlined in
55360         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
55362         version-etc: set COPYRIGHT_YEAR to 2010
55363         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
55365 2009-12-31  Eric Blake  <ebb9@byu.net>
55367         doc: correct availability of cygwin 1.5.x getopt
55368         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
55369         variables.
55370         * doc/posix-functions/opterr.texi (opterr): Likewise.
55371         * doc/posix-functions/optind.texi (optind): Likewise.
55372         * doc/posix-functions/optopt.texi (optopt): Likewise.
55373         * doc/posix-functions/tzname.texi (tzname): Likewise.
55375         openat: update maintainer
55376         * modules/openat (Maintainer): Add myself.
55378         utimens: avoid shadowing warning
55379         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
55380         buffers into one, to avoid shadowing, as well as avoiding a
55381         redundant stat.
55382         Reported by Jim Meyering.
55384         test-dup2: avoid compiler warning
55385         * tests/test-dup2.c (is_inheritable): Only define if used.
55387 2010-01-01  Bruno Haible  <bruno@clisp.org>
55389         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
55390         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
55391         defined, use wctomb instead of wcrtomb.
55393 2010-01-01  Bruno Haible  <bruno@clisp.org>
55395         iconv: Reject native Solaris iconv.
55396         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
55397         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
55399 2009-12-31  Bruno Haible  <bruno@clisp.org>
55401         * tests/test-signal.c (main): Remove test of 'SIG'.
55403 2009-12-31  Bruno Haible  <bruno@clisp.org>
55405         spawn: Fix incomplete fix.
55406         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
55407         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
55408         warnings for GNULIB_POSIXCHECK again.
55409         Reported by Eric Blake.
55411 2009-12-31  Bruno Haible  <bruno@clisp.org>
55413         Avoid namespace pollution on glibc systems.
55414         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
55415         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
55416         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
55417         glibc systems.
55419 2009-12-31  Bruno Haible  <bruno@clisp.org>
55421         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
55422         (gl_REPLACE_WCHAR_H): Turn into a no-op.
55423         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
55424         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
55425         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
55426         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
55427         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
55429 2009-12-31  Bruno Haible  <bruno@clisp.org>
55431         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
55432         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
55433         afterwards.
55435 2009-12-31  Bruno Haible  <bruno@clisp.org>
55437         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
55438         SYS_UTSNAME_H.
55440 2009-12-31  Bruno Haible  <bruno@clisp.org>
55442         spawn: Fix misapplied patch.
55443         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
55444         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
55445         warnings for GNULIB_POSIXCHECK.
55447 2009-12-31  Bruno Haible  <bruno@clisp.org>
55449         times: Update after sys_times changed.
55450         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
55451         * modules/times (Files): Add it.
55452         (configure.ac): Invoke gl_FUNC_TIMES.
55454 2009-12-31  Bruno Haible  <bruno@clisp.org>
55456         Use AC_C_INLINE where necessary.
55457         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
55458         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
55459         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
55460         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
55461         * m4/mbfile.m4 (gl_MBFILE): Likewise.
55462         * m4/mbiter.m4 (gl_MBITER): Likewise.
55463         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
55464         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
55465         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
55466         * modules/u64 (configure.ac): Likewise.
55468 2009-12-31  Bruno Haible  <bruno@clisp.org>
55470         Use AC_C_INLINE instead of module 'inline' where possible.
55471         * modules/inline (Description): Clarify purpose.
55472         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
55473         * modules/count-one-bits (Depends-on): Remove inline.
55474         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
55475         * modules/openat (Depends-on): Remove inline.
55476         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
55477         instead of depending on module 'inline'.
55478         * modules/filevercmp (Depends-on, configure.ac): Likewise.
55479         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
55480         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
55481         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
55482         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
55483         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
55484         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
55485         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
55486         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
55487         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
55488         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
55489         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
55490         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
55491         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
55492         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
55493         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
55494         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
55495         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
55496         Likewise.
55497         * modules/unictype/property-ascii-hex-digit (Depends-on,
55498         configure.ac): Likewise.
55499         * modules/unictype/property-bidi-arabic-digit (Depends-on,
55500         configure.ac): Likewise.
55501         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
55502         configure.ac): Likewise.
55503         * modules/unictype/property-bidi-block-separator (Depends-on,
55504         configure.ac): Likewise.
55505         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
55506         configure.ac): Likewise.
55507         * modules/unictype/property-bidi-common-separator (Depends-on,
55508         configure.ac): Likewise.
55509         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
55510         Likewise.
55511         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
55512         configure.ac): Likewise.
55513         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
55514         configure.ac): Likewise.
55515         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
55516         configure.ac): Likewise.
55517         * modules/unictype/property-bidi-european-digit (Depends-on,
55518         configure.ac): Likewise.
55519         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
55520         configure.ac): Likewise.
55521         * modules/unictype/property-bidi-left-to-right (Depends-on,
55522         configure.ac): Likewise.
55523         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
55524         configure.ac): Likewise.
55525         * modules/unictype/property-bidi-other-neutral (Depends-on,
55526         configure.ac): Likewise.
55527         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
55528         Likewise.
55529         * modules/unictype/property-bidi-segment-separator (Depends-on,
55530         configure.ac): Likewise.
55531         * modules/unictype/property-bidi-whitespace (Depends-on,
55532         configure.ac): Likewise.
55533         * modules/unictype/property-combining (Depends-on, configure.ac):
55534         Likewise.
55535         * modules/unictype/property-composite (Depends-on, configure.ac):
55536         Likewise.
55537         * modules/unictype/property-currency-symbol (Depends-on,
55538         configure.ac): Likewise.
55539         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
55540         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
55541         Likewise.
55542         * modules/unictype/property-default-ignorable-code-point (Depends-on,
55543         configure.ac): Likewise.
55544         * modules/unictype/property-deprecated (Depends-on, configure.ac):
55545         Likewise.
55546         * modules/unictype/property-diacritic (Depends-on, configure.ac):
55547         Likewise.
55548         * modules/unictype/property-extender (Depends-on, configure.ac):
55549         Likewise.
55550         * modules/unictype/property-format-control (Depends-on, configure.ac):
55551         Likewise.
55552         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
55553         Likewise.
55554         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
55555         Likewise.
55556         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
55557         Likewise.
55558         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
55559         Likewise.
55560         * modules/unictype/property-hyphen (Depends-on, configure.ac):
55561         Likewise.
55562         * modules/unictype/property-id-continue (Depends-on, configure.ac):
55563         Likewise.
55564         * modules/unictype/property-id-start (Depends-on, configure.ac):
55565         Likewise.
55566         * modules/unictype/property-ideographic (Depends-on, configure.ac):
55567         Likewise.
55568         * modules/unictype/property-ids-binary-operator (Depends-on,
55569         configure.ac): Likewise.
55570         * modules/unictype/property-ids-trinary-operator (Depends-on,
55571         configure.ac): Likewise.
55572         * modules/unictype/property-ignorable-control (Depends-on,
55573         configure.ac): Likewise.
55574         * modules/unictype/property-iso-control (Depends-on, configure.ac):
55575         Likewise.
55576         * modules/unictype/property-join-control (Depends-on, configure.ac):
55577         Likewise.
55578         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
55579         Likewise.
55580         * modules/unictype/property-line-separator (Depends-on, configure.ac):
55581         Likewise.
55582         * modules/unictype/property-logical-order-exception (Depends-on,
55583         configure.ac): Likewise.
55584         * modules/unictype/property-lowercase (Depends-on, configure.ac):
55585         Likewise.
55586         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
55587         * modules/unictype/property-non-break (Depends-on, configure.ac):
55588         Likewise.
55589         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
55590         Likewise.
55591         * modules/unictype/property-numeric (Depends-on, configure.ac):
55592         Likewise.
55593         * modules/unictype/property-other-alphabetic (Depends-on,
55594         configure.ac): Likewise.
55595         * modules/unictype/property-other-default-ignorable-code-point
55596         (Depends-on, configure.ac): Likewise.
55597         * modules/unictype/property-other-grapheme-extend (Depends-on,
55598         configure.ac): Likewise.
55599         * modules/unictype/property-other-id-continue (Depends-on,
55600         configure.ac): Likewise.
55601         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
55602         Likewise.
55603         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
55604         Likewise.
55605         * modules/unictype/property-other-math (Depends-on, configure.ac):
55606         Likewise.
55607         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
55608         Likewise.
55609         * modules/unictype/property-paired-punctuation (Depends-on,
55610         configure.ac): Likewise.
55611         * modules/unictype/property-paragraph-separator (Depends-on,
55612         configure.ac): Likewise.
55613         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
55614         Likewise.
55615         * modules/unictype/property-pattern-white-space (Depends-on,
55616         configure.ac): Likewise.
55617         * modules/unictype/property-private-use (Depends-on, configure.ac):
55618         Likewise.
55619         * modules/unictype/property-punctuation (Depends-on, configure.ac):
55620         Likewise.
55621         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
55622         Likewise.
55623         * modules/unictype/property-radical (Depends-on, configure.ac):
55624         Likewise.
55625         * modules/unictype/property-sentence-terminal (Depends-on,
55626         configure.ac): Likewise.
55627         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
55628         Likewise.
55629         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
55630         * modules/unictype/property-terminal-punctuation (Depends-on,
55631         configure.ac): Likewise.
55632         * modules/unictype/property-titlecase (Depends-on, configure.ac):
55633         Likewise.
55634         * modules/unictype/property-unassigned-code-value (Depends-on,
55635         configure.ac): Likewise.
55636         * modules/unictype/property-unified-ideograph (Depends-on,
55637         configure.ac): Likewise.
55638         * modules/unictype/property-uppercase (Depends-on, configure.ac):
55639         Likewise.
55640         * modules/unictype/property-variation-selector (Depends-on,
55641         configure.ac): Likewise.
55642         * modules/unictype/property-white-space (Depends-on, configure.ac):
55643         Likewise.
55644         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
55645         Likewise.
55646         * modules/unictype/property-xid-start (Depends-on, configure.ac):
55647         Likewise.
55648         * modules/unictype/property-zero-width (Depends-on, configure.ac):
55649         Likewise.
55650         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
55651         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
55652         Likewise.
55654 2009-12-31  Bruno Haible  <bruno@clisp.org>
55656         Remove unnecessary AC_C_INLINE invocation.
55657         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
55658         since 2009-08-21.
55660 2009-12-31  Jim Meyering  <meyering@redhat.com>
55662         maint.mk: don't require explicit gpg_key_ID in cfg.mk
55663         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
55664         With this change, we can all remove the gpg_key_ID = ... definition
55665         from our respective cfg.mk files.
55667         maint.mk: create announcement template in ~/, not in /tmp
55668         * top/maint.mk (emit_upload_commands): Adjust.
55669         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
55670         Remove temporary file, .ci-msg.
55672 2009-12-31  Eric Blake  <ebb9@byu.net>
55674         link-warning: always build headers with link warnings
55675         * modules/arpa_inet (Makefile.am): Always build replacement
55676         header.
55677         * modules/ctype (Makefile.am): Likewise.
55678         * modules/dirent (Makefile.am): Likewise.
55679         * modules/inttypes (Makefile.am): Likewise.
55680         * modules/langinfo (Makefile.am): Likewise.
55681         * modules/locale (Makefile.am): Likewise.
55682         * modules/spawn (Makefile.am): Likewise.
55683         * modules/sys_file (Makefile.am): Likewise.
55684         * modules/sys_ioctl (Makefile.am): Likewise.
55685         * modules/sys_select (Makefile.am): Likewise.
55686         * modules/sys_socket (Makefile.am): Likewise.
55687         * modules/sys_times (Makefile.am): Likewise.
55688         * modules/sys_utsname (Makefile.am): Likewise.
55689         * modules/sys_wait (Makefile.am): Likewise.
55690         * modules/wchar (Makefile.am): Likewise.
55691         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
55692         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
55693         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
55694         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
55695         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
55696         Likewise.
55697         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
55698         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
55699         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
55700         Likewise.
55701         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
55702         Likewise.
55703         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
55704         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
55705         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
55706         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55707         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
55708         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
55709         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
55710         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
55711         (gl_WCHAR_H_DEFAULTS): Likewise.
55713 2009-12-31  Eric Blake  <ebb9@byu.net>
55715         signal, spawn: use link warnings
55716         * lib/signal.in.h (sigset_t): Make unconditional.
55717         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
55718         (sigpending, sigprocmask, sigaction): Add link warnings.
55719         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
55720         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
55721         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
55722         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
55723         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
55724         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
55725         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
55726         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
55727         (posix_spawn_file_actions_destroy)
55728         (posix_spawn_file_actions_addopen)
55729         (posix_spawn_file_actions_addclose)
55730         (posix_spawn_file_actions_adddup2): Likewise.
55731         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
55732         * tests/test-signal.c (main): Enhance test.
55734         spawn: improve wrapper support
55735         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
55736         (gl_SPAWN_H_DEFAULTS): New defaults.
55737         * modules/spawn (Makefile.am): Substitute them.
55738         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
55739         Only declare if missing or broken.
55741         sys_times, sys_utsname: use include_next
55742         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
55743         header.
55744         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
55745         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
55746         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
55747         * modules/sys_times (Depends-on): Add include_next.
55748         (Makefile.am): Substitute additional values.
55749         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
55750         * lib/sys_times.in.h (includes): Include native header, if
55751         available.
55752         * lib/sys_utsname.in.h (includes): Likewise.
55753         * tests/test-sys_times.c (main): Enhance test.
55755         fdutimensat: revert prior patch
55756         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
55757         utimens.h.
55758         Reported by Bruno Haible.
55760 2009-12-30  Eric Blake  <ebb9@byu.net>
55762         sys_wait: drop link-warning dependency
55763         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
55764         link-warning efforts.
55765         * lib/sys_wait.in.h: Likewise.
55767         fdutimensat: remove bogus dependency
55768         * modules/fdutimensat (Depends-on): Drop inline.
55770         unistd: fix typo
55771         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
55773 2009-12-30  Bruno Haible  <bruno@clisp.org>
55775         Fix compilation error with Solaris cc.
55776         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
55777         * lib/unicase/u16-is-invariant.c: Likewise.
55778         * lib/unicase/u32-is-invariant.c: Likewise.
55779         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
55781 2009-12-30  Bruno Haible  <bruno@clisp.org>
55783         Fix test crash.
55784         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
55785         locales.
55786         Reported by Simon Josefsson <simon@josefsson.org>.
55788 2009-12-30  Bruno Haible  <bruno@clisp.org>
55790         Fix compilation error on most platforms.
55791         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
55792         Reported by Simon Josefsson <simon@josefsson.org>
55793         and Nelson H. F. Beebe <beebe@math.utah.edu>.
55795 2009-12-30  Eric Blake  <ebb9@byu.net>
55797         futimens, utimensat: work around ntfs-3g bug
55798         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
55799         a ctime bug is present, and expand workaround to cover ntfs-3g.
55800         * lib/utimens.c (fdutimens, lutimens): Likewise.
55801         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
55802         (validate_timespec): Adjust return value.
55803         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
55804         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
55805         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
55807 2009-12-29  Eric Blake  <ebb9@byu.net>
55809         link-warning: make usage consistent
55810         * modules/ctype (Depends-on): Add link-warning.
55811         (Makefile.am): Update rules accordingly.
55812         * modules/langinfo (Depends-on, Makefile.am): Likewise.
55813         * modules/locale (Depends-on, Makefile.am): Likewise.
55814         * modules/sys_file (Makefile.am): Likewise.
55815         * modules/getopt-posix (Makefile.am): Delete unused link warning
55816         efforts.
55817         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
55818         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
55819         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
55820         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
55822         stdio: remove unused variables
55823         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
55824         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
55825         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
55827         tests: test more substitute headers
55828         * modules/ctype-tests: New file.
55829         * modules/dirent-tests: Likewise.
55830         * modules/spawn-tests: Likewise.
55831         * modules/sys_file-tests: Likewise.
55832         * modules/sys_ioctl-tests: Likewise.
55833         * modules/sys_wait-tests: Likewise.
55834         * tests/test-ctype.c: Likewise.
55835         * tests/test-dirent.c: Likewise.
55836         * tests/test-spawn.c: Likewise.
55837         * tests/test-sys_file.c: Likewise.
55838         * tests/test-sys_ioctl.c: Likewise.
55839         * tests/test-sys_wait.c: Likewise.
55840         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
55841         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
55842         whether or not flock is in use.
55844         tests: remove License section from module
55845         * modules/arpa_inet-tests: Remove unneeded section.
55846         * modules/byteswap-tests: Likewise.
55847         * modules/ceilf-tests: Likewise.
55848         * modules/ceill-tests: Likewise.
55849         * modules/crypto/des-tests: Likewise.
55850         * modules/crypto/gc-arcfour-tests: Likewise.
55851         * modules/crypto/gc-arctwo-tests: Likewise.
55852         * modules/crypto/gc-des-tests: Likewise.
55853         * modules/crypto/gc-hmac-md5-tests: Likewise.
55854         * modules/crypto/gc-hmac-sha1-tests: Likewise.
55855         * modules/crypto/gc-md2-tests: Likewise.
55856         * modules/crypto/gc-md4-tests: Likewise.
55857         * modules/crypto/gc-md5-tests: Likewise.
55858         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
55859         * modules/crypto/gc-rijndael-tests: Likewise.
55860         * modules/crypto/gc-sha1-tests: Likewise.
55861         * modules/crypto/gc-tests: Likewise.
55862         * modules/crypto/md2-tests: Likewise.
55863         * modules/crypto/md4-tests: Likewise.
55864         * modules/fcntl-h-tests: Likewise.
55865         * modules/floorf-tests: Likewise.
55866         * modules/floorl-tests: Likewise.
55867         * modules/frexp-nolibm-tests: Likewise.
55868         * modules/frexp-tests: Likewise.
55869         * modules/frexpl-nolibm-tests: Likewise.
55870         * modules/frexpl-tests: Likewise.
55871         * modules/getaddrinfo-tests: Likewise.
55872         * modules/inttypes-tests: Likewise.
55873         * modules/isfinite-tests: Likewise.
55874         * modules/isinf-tests: Likewise.
55875         * modules/ldexpl-tests: Likewise.
55876         * modules/locale-tests: Likewise.
55877         * modules/math-tests: Likewise.
55878         * modules/netdb-tests: Likewise.
55879         * modules/netinet_in-tests: Likewise.
55880         * modules/printf-frexp-tests: Likewise.
55881         * modules/printf-frexpl-tests: Likewise.
55882         * modules/priv-set-tests: Likewise.
55883         * modules/random_r-tests: Likewise.
55884         * modules/round-tests: Likewise.
55885         * modules/roundf-tests: Likewise.
55886         * modules/roundl-tests: Likewise.
55887         * modules/search-tests: Likewise.
55888         * modules/select-tests: Likewise.
55889         * modules/signal-tests: Likewise.
55890         * modules/stdbool-tests: Likewise.
55891         * modules/stddef-tests: Likewise.
55892         * modules/stdint-tests: Likewise.
55893         * modules/stdio-tests: Likewise.
55894         * modules/stdlib-tests: Likewise.
55895         * modules/string-tests: Likewise.
55896         * modules/strings-tests: Likewise.
55897         * modules/sys_select-tests: Likewise.
55898         * modules/sys_socket-tests: Likewise.
55899         * modules/sys_stat-tests: Likewise.
55900         * modules/sys_time-tests: Likewise.
55901         * modules/sys_utsname-tests: Likewise.
55902         * modules/sysexits-tests: Likewise.
55903         * modules/time-tests: Likewise.
55904         * modules/trunc-tests: Likewise.
55905         * modules/truncf-tests: Likewise.
55906         * modules/truncl-tests: Likewise.
55907         * modules/tsearch-tests: Likewise.
55908         * modules/unistd-tests: Likewise.
55909         * modules/wchar-tests: Likewise.
55910         * modules/wctype-tests: Likewise.
55912         tests: fix license on several tests
55913         * tests/test-des.c: Update to GPLv3+.
55914         * tests/test-flock.c: Likewise.
55915         * tests/test-fsync.c: Likewise.
55916         * tests/test-futimens.h: Likewise.
55917         * tests/test-gc-arcfour.c: Likewise.
55918         * tests/test-gc-arctwo.c: Likewise.
55919         * tests/test-gc-des.c: Likewise.
55920         * tests/test-gc-hmac-md5.c: Likewise.
55921         * tests/test-gc-hmac-sha1.c: Likewise.
55922         * tests/test-gc-md2.c: Likewise.
55923         * tests/test-gc-md4.c: Likewise.
55924         * tests/test-gc-md5.c: Likewise.
55925         * tests/test-gc-pbkdf2-sha1.c: Likewise.
55926         * tests/test-gc-rijndael.c: Likewise.
55927         * tests/test-gc-sha1.c: Likewise.
55928         * tests/test-gc.c: Likewise.
55929         * tests/test-getcwd.c: Likewise.
55930         * tests/test-link.c: Likewise.
55931         * tests/test-link.h: Likewise.
55932         * tests/test-lutimens.h: Likewise.
55933         * tests/test-md2.c: Likewise.
55934         * tests/test-md4.c: Likewise.
55935         * tests/test-mkdir.h: Likewise.
55936         * tests/test-rename.c: Likewise.
55937         * tests/test-rename.h: Likewise.
55938         * tests/test-safe-alloc.c: Likewise.
55939         * tests/test-utimens-common.h: Likewise.
55940         * tests/test-utimens.h: Likewise.
55942         maint: sync license texts
55943         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
55944         * doc/gpl-3.0.texi: Revert copyright year update.
55945         * doc/lgpl-3.0.texi: Likewise.
55947 2009-12-29  Jim Meyering  <meyering@redhat.com>
55949         update nearly all FSF copyright year lists to include 2009
55950         The files named by the following are exempted:
55951             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
55952               test -f "$dst" && { echo "$dst"; continue; }
55953               test -d "$dst" || continue
55954               echo "$dst"/$(basename "$src")
55955             done > exempt
55956             git ls-files tests/unictype >> exempt
55957         In the remaining files, convert to all-interval notation if
55958         - there is already at least one year interval like 2000-2003
55959         - the file is maintained by me
55960         - the file is in lib/uni*/, where that style already prevails
55961         Otherwise, use update-copyright's default.
55963 2009-12-29  Simon Josefsson  <simon@josefsson.org>
55964         and Eric Blake  <ebb9@byu.net>
55966         tests: don't require debug system() to pass
55967         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
55968         * tests/test-rmdir.h (test_rmdir_func): Likewise.
55969         * tests/test-unlink.h (test_unlink_func): Likewise.
55970         * tests/test-fstatat.c (main): ...into callers.
55971         * tests/test-lstat.c (main): Likewise.
55972         * tests/test-rmdir.c (main): Likewise.
55973         * tests/test-unlink.c (main): Likewise.
55974         * tests/test-unlinkat.c (main): Likewise.
55975         * tests/test-areadlink-with-size.c (main): Don't require a
55976         debug-only system call to pass, aiding cross-testing to mingw.
55977         * tests/test-areadlink.c (main): Likewise.
55978         * tests/test-areadlinkat-with-size.c (main): Likewise.
55979         * tests/test-areadlinkat.c (main): Likewise.
55980         * tests/test-canonicalize-lgpl.c (main): Likewise.
55981         * tests/test-canonicalize.c (main): Likewise.
55982         * tests/test-chown.c (main): Likewise.
55983         * tests/test-fchownat.c (main): Likewise.
55984         * tests/test-lchown.c (main): Likewise.
55985         * tests/test-fdutimensat.c (main): Likewise.
55986         * tests/test-futimens.c (main): Likewise.
55987         * tests/test-link.c (main): Likewise.
55988         * tests/test-linkat.c (main): Likewise.
55989         * tests/test-mkdir.c (main): Likewise.
55990         * tests/test-mkdirat.c (main): Likewise.
55991         * tests/test-mkfifo.c (main): Likewise.
55992         * tests/test-mkfifoat.c (main): Likewise.
55993         * tests/test-mknod.c (main): Likewise.
55994         * tests/test-readlink.c (main): Likewise.
55995         * tests/test-remove.c (main): Likewise.
55996         * tests/test-rename.c (main): Likewise.
55997         * tests/test-renameat.c (main): Likewise.
55998         * tests/test-symlink.c (main): Likewise.
55999         * tests/test-symlinkat.c (main): Likewise.
56000         * tests/test-utimens.c (main): Likewise.
56001         * tests/test-utimensat.c (main): Likewise.
56003 2009-12-29  Simon Josefsson  <simon@josefsson.org>
56005         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
56006         on $(UNUSED_PARAMETER_H) to avoid build failure.
56008 2009-12-28  Jim Meyering  <meyering@redhat.com>
56010         update-copyright: you may specify a max. line length other than 72
56011         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
56013         maint: use consistent FSF copyright line syntax
56014         * lib/posixtm.c: Add missing comma in FSF copyright line.
56015         * lib/posixtm.h: Likewise.
56016         * lib/getugroups.c: Add missing ", Inc.".
56018         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
56019         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
56020         FSF copyright line.  Remove trailing blanks.
56022 2009-12-28  Eric Blake  <ebb9@byu.net>
56024         test-dup2: reduce dependencies
56025         * modules/cloexec (Configure.ac): Set witness.
56026         * modules/dup2-tests (Depends-on): Drop cloexec.
56027         * tests/test-dup2.c (main): Skip portion of test if cloexec module
56028         not present.
56029         Suggested by Bruno Haible.
56031 2009-12-26  Bruno Haible  <bruno@clisp.org>
56033         Remove an unneeded dependency.
56034         * modules/fseterr (Depends-on): Remove dup2.
56036 2009-12-26  Eric Blake  <ebb9@byu.net>
56038         tests: use macros.h in more places
56039         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
56040         (ASSERT_STREAM): Provide default of stderr.
56041         * tests/test-dirent-safer.c: Include macros.h, using alternate
56042         stream for assertions.
56043         * tests/test-dup-safer.c: Likewise.
56044         * tests/test-freopen-safer.c: Likewise.
56045         * tests/test-getopt.c: Likewise.
56046         * tests/test-openat-safer.c: Likewise.
56047         * tests/test-pipe.c: Likewise.
56048         * tests/test-popen-safer.c: Likewise.
56049         * modules/dirent-safer-tests (Files): Include macros.h.
56050         * modules/unistd-safer-tests (Files): Likewise.
56051         * modules/freopen-safer-tests (Files): Likewise.
56052         * modules/getopt-posix-tests (Files): Likewise.
56053         * modules/openat-safer-tests (Files): Likewise.
56054         * modules/pipe-tests (Files): Likewise.
56056 2009-12-26  Bruno Haible  <bruno@clisp.org>
56058         javacomp-script: Portability fix.
56059         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
56060         that it also works on Solaris.
56062 2009-12-26  Bruno Haible  <bruno@clisp.org>
56064         localename: Fix storage allocation of gl_locale_name_thread's result.
56065         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
56066         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
56067         all platforms that have 'uselocale'.
56068         (gl_locale_name_thread_unsafe): New function, extracted from
56069         gl_locale_name_thread.
56070         (gl_locale_name_thread): Call struniq on all platforms that have
56071         'uselocale'.
56072         * tests/test-localename.c (test_locale_name_thread): Check that the
56073         resulting strings are permanently allocated.
56074         * modules/localename-tests (Depends-on): Add strdup.
56076 2009-12-26  Bruno Haible  <bruno@clisp.org>
56078         * tests/test-localename.c (categories): Fill in the strings.
56080 2009-12-26  Jim Meyering  <meyering@redhat.com>
56082         isdir: complete the removal of m4/isdir.m4
56083         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
56085         isdir: clean up, since at least grep still uses it
56086         * lib/isdir.c: Include "isdir.h".
56087         (S_ISDIR): Remove now-unneeded definition.
56088         * modules/isdir (Files): Add lib/isdir.h.
56089         * lib/isdir.h: New file, with declaration.
56090         * m4/isdir.m4: Remove file -- unneeded.
56092 2009-12-25  Bruno Haible  <bruno@clisp.org>
56094         selinux-h: Make generated .h files standalone.
56095         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
56096         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
56097         * lib/se-selinux.in.h: Likewise.
56098         * modules/selinux-h (Depends-on): Add unused-parameter.
56099         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
56100         selinux/selinux.h and selinux/context.h.
56101         Suggested by Eric Blake.
56103 2009-12-25  Bruno Haible  <bruno@clisp.org>
56105         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
56106         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
56107         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
56108         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
56109         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
56111 2009-12-24  Bruno Haible  <bruno@clisp.org>
56113         openat: Fix warning.
56114         * lib/openat-proc.c: Include <unistd.h>.
56116 2009-12-24  Bruno Haible  <bruno@clisp.org>
56118         New module 'unused-parameter'.
56119         * build-aux/unused-parameter.h: New file, extracted from earlier
56120         gnulib-common.m4.
56121         * modules/unused-parameter: New file.
56122         * lib/unistr.h: Include unused-parameter.h.
56123         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
56124         _GL_UNUSED.
56125         * modules/unistr/base (Depends-on): Add unused-parameter.
56127 2009-12-24  Bruno Haible  <bruno@clisp.org>
56129         Add missing dependencies to 'extensions' module.
56130         * m4/extensions.m4: Add comment.
56131         * modules/accept4 (Depends-on): Add extensions.
56132         * modules/dup3 (Depends-on): Likewise.
56133         * modules/fcntl (Depends-on): Likewise.
56134         * modules/futimens (Depends-on): Likewise.
56135         * modules/mknod (Depends-on): Likewise.
56136         * modules/pipe2 (Depends-on): Likewise.
56137         * modules/stat-time (Depends-on): Likewise.
56138         * modules/strcasestr-simple (Depends-on): Likewise.
56139         * modules/strsignal (Depends-on): Likewise.
56140         * modules/utimensat (Depends-on): Likewise.
56141         * modules/localcharset (Depends-on): Likewise. Needed because of
56142         gl_FCNTL_O_FLAGS.
56143         * modules/wcrtomb (Depends-on): Likewise. Needed because of
56144         AC_TYPE_MBSTATE_T.
56145         * modules/wcsnrtombs (Depends-on): Likewise.
56146         * modules/wcsrtombs (Depends-on): Likewise.
56148 2009-12-24  Bruno Haible  <bruno@clisp.org>
56150         binary-io: Avoid gcc warning due to SET_BINARY.
56151         * lib/binary-io.h (SET_BINARY): Cast the result to void.
56152         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
56154 2009-12-24  Bruno Haible  <bruno@clisp.org>
56156         Avoid future namespace pollution on glibc systems.
56157         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
56158         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
56159         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
56160         glibc systems.
56162 2009-12-24  Bruno Haible  <bruno@clisp.org>
56164         Refactor common macros used in tests.
56165         * tests/macros.h: New file.
56166         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
56167         and/or <stdlib.h>, if appropriate.
56168         (ASSERT, SIZEOF): Remove macros.
56169         * tests/test-areadlink-with-size.c: Likewise.
56170         * tests/test-areadlinkat.c: Likewise.
56171         * tests/test-areadlinkat-with-size.c: Likewise.
56172         * tests/test-argmatch.c: Likewise.
56173         * tests/test-argv-iter.c: Likewise.
56174         * tests/test-array-mergesort.c: Likewise.
56175         * tests/test-array_list.c: Likewise.
56176         * tests/test-array_oset.c: Likewise.
56177         * tests/test-avltree_list.c: Likewise.
56178         * tests/test-avltree_oset.c: Likewise.
56179         * tests/test-avltreehash_list.c: Likewise.
56180         * tests/test-base64.c: Likewise.
56181         * tests/test-binary-io.c: Likewise.
56182         * tests/test-bitrotate.c: Likewise.
56183         * tests/test-btowc.c: Likewise.
56184         * tests/test-byteswap.c: Likewise.
56185         * tests/test-c-ctype.c: Likewise.
56186         * tests/test-c-stack.c: Likewise.
56187         * tests/test-c-strcasecmp.c: Likewise.
56188         * tests/test-c-strcasestr.c: Likewise.
56189         * tests/test-c-strncasecmp.c: Likewise.
56190         * tests/test-c-strstr.c: Likewise.
56191         * tests/test-canonicalize-lgpl.c: Likewise.
56192         * tests/test-canonicalize.c: Likewise.
56193         * tests/test-carray_list.c: Likewise.
56194         * tests/test-ceilf1.c: Likewise.
56195         * tests/test-ceilf2.c: Likewise.
56196         * tests/test-ceill.c: Likewise.
56197         * tests/test-chown.c: Likewise.
56198         * tests/test-cloexec.c: Likewise.
56199         * tests/test-copy-acl.c: Likewise.
56200         * tests/test-copy-file.c: Likewise.
56201         * tests/test-count-one-bits.c: Likewise.
56202         * tests/test-dprintf-posix.c: Likewise.
56203         * tests/test-dup2.c: Likewise.
56204         * tests/test-dup3.c: Likewise.
56205         * tests/test-duplocale.c: Likewise.
56206         * tests/test-fbufmode.c: Likewise.
56207         * tests/test-fchdir.c: Likewise.
56208         * tests/test-fchownat.c: Likewise.
56209         * tests/test-fcntl-safer.c: Likewise.
56210         * tests/test-fcntl.c: Likewise.
56211         * tests/test-fdopendir.c: Likewise.
56212         * tests/test-fdutimensat.c: Likewise.
56213         * tests/test-fflush2.c: Likewise.
56214         * tests/test-file-has-acl.c: Likewise.
56215         * tests/test-filevercmp.c: Likewise.
56216         * tests/test-flock.c: Likewise.
56217         * tests/test-floorf1.c: Likewise.
56218         * tests/test-floorf2.c: Likewise.
56219         * tests/test-floorl.c: Likewise.
56220         * tests/test-fnmatch.c: Likewise.
56221         * tests/test-fopen.h: Likewise.
56222         * tests/test-fpending.c: Likewise.
56223         * tests/test-fprintf-posix.c: Likewise.
56224         * tests/test-fpurge.c: Likewise.
56225         * tests/test-freadable.c: Likewise.
56226         * tests/test-freadahead.c: Likewise.
56227         * tests/test-freading.c: Likewise.
56228         * tests/test-freadptr.c: Likewise.
56229         * tests/test-freadptr2.c: Likewise.
56230         * tests/test-freadseek.c: Likewise.
56231         * tests/test-freopen.c: Likewise.
56232         * tests/test-frexp.c: Likewise.
56233         * tests/test-frexpl.c: Likewise.
56234         * tests/test-fseek.c: Likewise.
56235         * tests/test-fseeko.c: Likewise.
56236         * tests/test-fstatat.c: Likewise.
56237         * tests/test-fstrcmp.c: Likewise.
56238         * tests/test-fsync.c: Likewise.
56239         * tests/test-ftell.c: Likewise.
56240         * tests/test-ftello.c: Likewise.
56241         * tests/test-func.c: Likewise.
56242         * tests/test-futimens.c: Likewise.
56243         * tests/test-fwritable.c: Likewise.
56244         * tests/test-fwriting.c: Likewise.
56245         * tests/test-getcwd.c: Likewise.
56246         * tests/test-getdate.c: Likewise.
56247         * tests/test-getdelim.c: Likewise.
56248         * tests/test-getdtablesize.c: Likewise.
56249         * tests/test-getgroups.c: Likewise.
56250         * tests/test-getline.c: Likewise.
56251         * tests/test-getndelim2.c: Likewise.
56252         * tests/test-glob.c: Likewise.
56253         * tests/test-hash.c: Likewise.
56254         * tests/test-i-ring.c: Likewise.
56255         * tests/test-iconv-utf.c: Likewise.
56256         * tests/test-iconv.c: Likewise.
56257         * tests/test-idpriv-drop.c: Likewise.
56258         * tests/test-idpriv-droptemp.c: Likewise.
56259         * tests/test-inet_ntop.c: Likewise.
56260         * tests/test-inet_pton.c: Likewise.
56261         * tests/test-isblank.c: Likewise.
56262         * tests/test-isfinite.c: Likewise.
56263         * tests/test-isinf.c: Likewise.
56264         * tests/test-isnan.c: Likewise.
56265         * tests/test-isnand.h: Likewise.
56266         * tests/test-isnanf.h: Likewise.
56267         * tests/test-isnanl.h: Likewise.
56268         * tests/test-lchown.c: Likewise.
56269         * tests/test-ldexpl.c: Likewise.
56270         * tests/test-link.c: Likewise.
56271         * tests/test-linkat.c: Likewise.
56272         * tests/test-linked_list.c: Likewise.
56273         * tests/test-linkedhash_list.c: Likewise.
56274         * tests/test-localename.c: Likewise.
56275         * tests/test-lseek.c: Likewise.
56276         * tests/test-lstat.c: Likewise.
56277         * tests/test-mbmemcasecmp.c: Likewise.
56278         * tests/test-mbmemcasecoll.c: Likewise.
56279         * tests/test-mbrtowc.c: Likewise.
56280         * tests/test-mbscasecmp.c: Likewise.
56281         * tests/test-mbscasestr1.c: Likewise.
56282         * tests/test-mbscasestr2.c: Likewise.
56283         * tests/test-mbscasestr3.c: Likewise.
56284         * tests/test-mbscasestr4.c: Likewise.
56285         * tests/test-mbschr.c: Likewise.
56286         * tests/test-mbscspn.c: Likewise.
56287         * tests/test-mbsinit.c: Likewise.
56288         * tests/test-mbsncasecmp.c: Likewise.
56289         * tests/test-mbsnrtowcs.c: Likewise.
56290         * tests/test-mbspbrk.c: Likewise.
56291         * tests/test-mbspcasecmp.c: Likewise.
56292         * tests/test-mbsrchr.c: Likewise.
56293         * tests/test-mbsrtowcs.c: Likewise.
56294         * tests/test-mbsspn.c: Likewise.
56295         * tests/test-mbsstr1.c: Likewise.
56296         * tests/test-mbsstr2.c: Likewise.
56297         * tests/test-mbsstr3.c: Likewise.
56298         * tests/test-memchr.c: Likewise.
56299         * tests/test-memchr2.c: Likewise.
56300         * tests/test-memcmp.c: Likewise.
56301         * tests/test-memmem.c: Likewise.
56302         * tests/test-memrchr.c: Likewise.
56303         * tests/test-mkdir.c: Likewise.
56304         * tests/test-mkdirat.c: Likewise.
56305         * tests/test-mkfifo.c: Likewise.
56306         * tests/test-mkfifoat.c: Likewise.
56307         * tests/test-mknod.c: Likewise.
56308         * tests/test-nanosleep.c: Likewise.
56309         * tests/test-nl_langinfo.c: Likewise.
56310         * tests/test-obstack-printf.c: Likewise.
56311         * tests/test-open.c: Likewise.
56312         * tests/test-openat.c: Likewise.
56313         * tests/test-pipe-filter-gi1.c: Likewise.
56314         * tests/test-pipe-filter-gi2-main.c: Likewise.
56315         * tests/test-pipe-filter-ii1.c: Likewise.
56316         * tests/test-pipe-filter-ii2-main.c: Likewise.
56317         * tests/test-pipe2.c: Likewise.
56318         * tests/test-popen.h: Likewise.
56319         * tests/test-posixtm.c: Likewise.
56320         * tests/test-pread.c: Likewise.
56321         * tests/test-printf-frexp.c: Likewise.
56322         * tests/test-printf-frexpl.c: Likewise.
56323         * tests/test-printf-posix.c: Likewise.
56324         * tests/test-priv-set.c: Likewise.
56325         * tests/test-quotearg.c: Likewise.
56326         * tests/test-random_r.c: Likewise.
56327         * tests/test-rawmemchr.c: Likewise.
56328         * tests/test-rbtree_list.c: Likewise.
56329         * tests/test-rbtree_oset.c: Likewise.
56330         * tests/test-rbtreehash_list.c: Likewise.
56331         * tests/test-readlink.c: Likewise.
56332         * tests/test-remove.c: Likewise.
56333         * tests/test-rename.c: Likewise.
56334         * tests/test-renameat.c: Likewise.
56335         * tests/test-rmdir.c: Likewise.
56336         * tests/test-round1.c: Likewise.
56337         * tests/test-roundf1.c: Likewise.
56338         * tests/test-roundl.c: Likewise.
56339         * tests/test-safe-alloc.c: Likewise.
56340         * tests/test-sameacls.c: Likewise.
56341         * tests/test-set-mode-acl.c: Likewise.
56342         * tests/test-setenv.c: Likewise.
56343         * tests/test-sigaction.c: Likewise.
56344         * tests/test-signbit.c: Likewise.
56345         * tests/test-sleep.c: Likewise.
56346         * tests/test-snprintf-posix.c: Likewise.
56347         * tests/test-snprintf.c: Likewise.
56348         * tests/test-sprintf-posix.c: Likewise.
56349         * tests/test-stat-time.c: Likewise.
56350         * tests/test-stat.c: Likewise.
56351         * tests/test-strcasestr.c: Likewise.
56352         * tests/test-strchrnul.c: Likewise.
56353         * tests/test-strerror.c: Likewise.
56354         * tests/test-striconv.c: Likewise.
56355         * tests/test-striconveh.c: Likewise.
56356         * tests/test-striconveha.c: Likewise.
56357         * tests/test-strsignal.c: Likewise.
56358         * tests/test-strstr.c: Likewise.
56359         * tests/test-strtod.c: Likewise.
56360         * tests/test-strverscmp.c: Likewise.
56361         * tests/test-symlink.c: Likewise.
56362         * tests/test-symlinkat.c: Likewise.
56363         * tests/test-trunc1.c: Likewise.
56364         * tests/test-trunc2.c: Likewise.
56365         * tests/test-truncf1.c: Likewise.
56366         * tests/test-truncf2.c: Likewise.
56367         * tests/test-truncl.c: Likewise.
56368         * tests/test-uname.c: Likewise.
56369         * tests/test-unlink.c: Likewise.
56370         * tests/test-unlinkat.c: Likewise.
56371         * tests/test-unsetenv.c: Likewise.
56372         * tests/test-usleep.c: Likewise.
56373         * tests/test-utimens.c: Likewise.
56374         * tests/test-utimensat.c: Likewise.
56375         * tests/test-vasnprintf-posix.c: Likewise.
56376         * tests/test-vasnprintf-posix2.c: Likewise.
56377         * tests/test-vasnprintf.c: Likewise.
56378         * tests/test-vasprintf-posix.c: Likewise.
56379         * tests/test-vasprintf.c: Likewise.
56380         * tests/test-vdprintf-posix.c: Likewise.
56381         * tests/test-vfprintf-posix.c: Likewise.
56382         * tests/test-vprintf-posix.c: Likewise.
56383         * tests/test-vsnprintf-posix.c: Likewise.
56384         * tests/test-vsnprintf.c: Likewise.
56385         * tests/test-vsprintf-posix.c: Likewise.
56386         * tests/test-wcrtomb.c: Likewise.
56387         * tests/test-wcsnrtombs.c: Likewise.
56388         * tests/test-wcsrtombs.c: Likewise.
56389         * tests/test-wctype.c: Likewise.
56390         * tests/test-wcwidth.c: Likewise.
56391         * tests/test-xfprintf-posix.c: Likewise.
56392         * tests/test-xmemdup0.c: Likewise.
56393         * tests/test-xprintf-posix.c: Likewise.
56394         * tests/test-xvasprintf.c: Likewise.
56395         * tests/unicase/test-locale-language.c: Likewise.
56396         * tests/unicase/test-mapping-part1.h: Likewise.
56397         * tests/unicase/test-predicate-part1.h: Likewise.
56398         * tests/unicase/test-u8-casecmp.c: Likewise.
56399         * tests/unicase/test-u8-casecoll.c: Likewise.
56400         * tests/unicase/test-u8-casefold.c: Likewise.
56401         * tests/unicase/test-u8-is-cased.c: Likewise.
56402         * tests/unicase/test-u8-is-casefolded.c: Likewise.
56403         * tests/unicase/test-u8-is-lowercase.c: Likewise.
56404         * tests/unicase/test-u8-is-titlecase.c: Likewise.
56405         * tests/unicase/test-u8-is-uppercase.c: Likewise.
56406         * tests/unicase/test-u8-tolower.c: Likewise.
56407         * tests/unicase/test-u8-totitle.c: Likewise.
56408         * tests/unicase/test-u8-toupper.c: Likewise.
56409         * tests/unicase/test-u16-casecmp.c: Likewise.
56410         * tests/unicase/test-u16-casecoll.c: Likewise.
56411         * tests/unicase/test-u16-casefold.c: Likewise.
56412         * tests/unicase/test-u16-is-cased.c: Likewise.
56413         * tests/unicase/test-u16-is-casefolded.c: Likewise.
56414         * tests/unicase/test-u16-is-lowercase.c: Likewise.
56415         * tests/unicase/test-u16-is-titlecase.c: Likewise.
56416         * tests/unicase/test-u16-is-uppercase.c: Likewise.
56417         * tests/unicase/test-u16-tolower.c: Likewise.
56418         * tests/unicase/test-u16-totitle.c: Likewise.
56419         * tests/unicase/test-u16-toupper.c: Likewise.
56420         * tests/unicase/test-u32-casecmp.c: Likewise.
56421         * tests/unicase/test-u32-casecoll.c: Likewise.
56422         * tests/unicase/test-u32-casefold.c: Likewise.
56423         * tests/unicase/test-u32-is-cased.c: Likewise.
56424         * tests/unicase/test-u32-is-casefolded.c: Likewise.
56425         * tests/unicase/test-u32-is-lowercase.c: Likewise.
56426         * tests/unicase/test-u32-is-titlecase.c: Likewise.
56427         * tests/unicase/test-u32-is-uppercase.c: Likewise.
56428         * tests/unicase/test-u32-tolower.c: Likewise.
56429         * tests/unicase/test-u32-totitle.c: Likewise.
56430         * tests/unicase/test-u32-toupper.c: Likewise.
56431         * tests/unicase/test-ulc-casecmp.c: Likewise.
56432         * tests/unicase/test-ulc-casecoll.c: Likewise.
56433         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
56434         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
56435         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
56436         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
56437         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
56438         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
56439         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
56440         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
56441         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
56442         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
56443         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
56444         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
56445         * tests/unictype/test-bidi_byname.c: Likewise.
56446         * tests/unictype/test-bidi_name.c: Likewise.
56447         * tests/unictype/test-bidi_of.c: Likewise.
56448         * tests/unictype/test-bidi_test.c: Likewise.
56449         * tests/unictype/test-block_list.c: Likewise.
56450         * tests/unictype/test-block_of.c: Likewise.
56451         * tests/unictype/test-block_test.c: Likewise.
56452         * tests/unictype/test-categ_and.c: Likewise.
56453         * tests/unictype/test-categ_and_not.c: Likewise.
56454         * tests/unictype/test-categ_byname.c: Likewise.
56455         * tests/unictype/test-categ_name.c: Likewise.
56456         * tests/unictype/test-categ_none.c: Likewise.
56457         * tests/unictype/test-categ_of.c: Likewise.
56458         * tests/unictype/test-categ_or.c: Likewise.
56459         * tests/unictype/test-categ_test_withtable.c: Likewise.
56460         * tests/unictype/test-combining.c: Likewise.
56461         * tests/unictype/test-decdigit.c: Likewise.
56462         * tests/unictype/test-digit.c: Likewise.
56463         * tests/unictype/test-mirror.c: Likewise.
56464         * tests/unictype/test-numeric.c: Likewise.
56465         * tests/unictype/test-pr_byname.c: Likewise.
56466         * tests/unictype/test-pr_test.c: Likewise.
56467         * tests/unictype/test-predicate-part1.h: Likewise.
56468         * tests/unictype/test-scripts.c: Likewise.
56469         * tests/unictype/test-sy_c_ident.c: Likewise.
56470         * tests/unictype/test-sy_java_ident.c: Likewise.
56471         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
56472         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
56473         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
56474         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
56475         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
56476         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
56477         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
56478         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
56479         * tests/uninorm/test-canonical-decomposition.c: Likewise.
56480         * tests/uninorm/test-compat-decomposition.c: Likewise.
56481         * tests/uninorm/test-composition.c: Likewise.
56482         * tests/uninorm/test-decomposing-form.c: Likewise.
56483         * tests/uninorm/test-decomposition.c: Likewise.
56484         * tests/uninorm/test-u8-nfc.c: Likewise.
56485         * tests/uninorm/test-u8-nfd.c: Likewise.
56486         * tests/uninorm/test-u8-nfkc.c: Likewise.
56487         * tests/uninorm/test-u8-nfkd.c: Likewise.
56488         * tests/uninorm/test-u8-normcmp.c: Likewise.
56489         * tests/uninorm/test-u8-normcoll.c: Likewise.
56490         * tests/uninorm/test-u16-nfc.c: Likewise.
56491         * tests/uninorm/test-u16-nfd.c: Likewise.
56492         * tests/uninorm/test-u16-nfkc.c: Likewise.
56493         * tests/uninorm/test-u16-nfkd.c: Likewise.
56494         * tests/uninorm/test-u16-normcmp.c: Likewise.
56495         * tests/uninorm/test-u16-normcoll.c: Likewise.
56496         * tests/uninorm/test-u32-nfc.c: Likewise.
56497         * tests/uninorm/test-u32-nfd.c: Likewise.
56498         * tests/uninorm/test-u32-nfkc.c: Likewise.
56499         * tests/uninorm/test-u32-nfkd.c: Likewise.
56500         * tests/uninorm/test-u32-normalize-big.c: Likewise.
56501         * tests/uninorm/test-u32-normcmp.c: Likewise.
56502         * tests/uninorm/test-u32-normcoll.c: Likewise.
56503         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
56504         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
56505         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
56506         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
56507         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
56508         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
56509         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
56510         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
56511         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
56512         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
56513         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
56514         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
56515         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
56516         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
56517         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
56518         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
56519         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
56520         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
56521         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
56522         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
56523         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
56524         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
56525         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
56526         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
56527         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
56528         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
56529         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
56530         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
56531         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
56532         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
56533         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
56534         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
56535         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
56536         * tests/uniwidth/test-u8-strwidth.c: Likewise.
56537         * tests/uniwidth/test-u8-width.c: Likewise.
56538         * tests/uniwidth/test-u16-strwidth.c: Likewise.
56539         * tests/uniwidth/test-u16-width.c: Likewise.
56540         * tests/uniwidth/test-u32-strwidth.c: Likewise.
56541         * tests/uniwidth/test-u32-width.c: Likewise.
56542         * tests/uniwidth/test-uc_width.c: Likewise.
56543         * tests/uniwidth/test-uc_width2.c: Likewise.
56544         * modules/acl-tests (Files): Add tests/macros.h.
56545         * modules/areadlink-tests (Files): Likewise.
56546         * modules/areadlink-with-size-tests (Files): Likewise.
56547         * modules/areadlinkat-tests (Files): Likewise.
56548         * modules/areadlinkat-with-size-tests (Files): Likewise.
56549         * modules/argmatch-tests (Files): Likewise.
56550         * modules/argv-iter-tests (Files): Likewise.
56551         * modules/array-list-tests (Files): Likewise.
56552         * modules/array-mergesort-tests (Files): Likewise.
56553         * modules/array-oset-tests (Files): Likewise.
56554         * modules/avltree-list-tests (Files): Likewise.
56555         * modules/avltree-oset-tests (Files): Likewise.
56556         * modules/avltreehash-list-tests (Files): Likewise.
56557         * modules/base64-tests (Files): Likewise.
56558         * modules/binary-io-tests (Files): Likewise.
56559         * modules/bitrotate-tests (Files): Likewise.
56560         * modules/btowc-tests (Files): Likewise.
56561         * modules/byteswap-tests (Files): Likewise.
56562         * modules/c-ctype-tests (Files): Likewise.
56563         * modules/c-stack-tests (Files): Likewise.
56564         * modules/c-strcase-tests (Files): Likewise.
56565         * modules/c-strcasestr-tests (Files): Likewise.
56566         * modules/c-strstr-tests (Files): Likewise.
56567         * modules/canonicalize-lgpl-tests (Files): Likewise.
56568         * modules/canonicalize-tests (Files): Likewise.
56569         * modules/carray-list-tests (Files): Likewise.
56570         * modules/ceilf-tests (Files): Likewise.
56571         * modules/ceill-tests (Files): Likewise.
56572         * modules/chown-tests (Files): Likewise.
56573         * modules/cloexec-tests (Files): Likewise.
56574         * modules/copy-file-tests (Files): Likewise.
56575         * modules/count-one-bits-tests (Files): Likewise.
56576         * modules/dprintf-posix-tests (Files): Likewise.
56577         * modules/dup2-tests (Files): Likewise.
56578         * modules/dup3-tests (Files): Likewise.
56579         * modules/duplocale-tests (Files): Likewise.
56580         * modules/fbufmode-tests (Files): Likewise.
56581         * modules/fchdir-tests (Files): Likewise.
56582         * modules/fcntl-safer-tests (Files): Likewise.
56583         * modules/fcntl-tests (Files): Likewise.
56584         * modules/fdopendir-tests (Files): Likewise.
56585         * modules/fdutimensat-tests (Files): Likewise.
56586         * modules/fflush-tests (Files): Likewise.
56587         * modules/filevercmp-tests (Files): Likewise.
56588         * modules/flock-tests (Files): Likewise.
56589         * modules/floorf-tests (Files): Likewise.
56590         * modules/floorl-tests (Files): Likewise.
56591         * modules/fnmatch-tests (Files): Likewise.
56592         * modules/fopen-safer-tests (Files): Likewise.
56593         * modules/fopen-tests (Files): Likewise.
56594         * modules/fpending-tests (Files): Likewise.
56595         * modules/fprintf-posix-tests (Files): Likewise.
56596         * modules/fpurge-tests (Files): Likewise.
56597         * modules/freadable-tests (Files): Likewise.
56598         * modules/freadahead-tests (Files): Likewise.
56599         * modules/freading-tests (Files): Likewise.
56600         * modules/freadptr-tests (Files): Likewise.
56601         * modules/freadseek-tests (Files): Likewise.
56602         * modules/freopen-tests (Files): Likewise.
56603         * modules/frexp-nolibm-tests (Files): Likewise.
56604         * modules/frexp-tests (Files): Likewise.
56605         * modules/frexpl-nolibm-tests (Files): Likewise.
56606         * modules/frexpl-tests (Files): Likewise.
56607         * modules/fseek-tests (Files): Likewise.
56608         * modules/fseeko-tests (Files): Likewise.
56609         * modules/fstrcmp-tests (Files): Likewise.
56610         * modules/fsync-tests (Files): Likewise.
56611         * modules/ftell-tests (Files): Likewise.
56612         * modules/ftello-tests (Files): Likewise.
56613         * modules/func-tests (Files): Likewise.
56614         * modules/futimens-tests (Files): Likewise.
56615         * modules/fwritable-tests (Files): Likewise.
56616         * modules/fwriting-tests (Files): Likewise.
56617         * modules/getcwd-tests (Files): Likewise.
56618         * modules/getdate-tests (Files): Likewise.
56619         * modules/getdelim-tests (Files): Likewise.
56620         * modules/getdtablesize-tests (Files): Likewise.
56621         * modules/getgroups-tests (Files): Likewise.
56622         * modules/getline-tests (Files): Likewise.
56623         * modules/getndelim2-tests (Files): Likewise.
56624         * modules/glob-tests (Files): Likewise.
56625         * modules/hash-tests (Files): Likewise.
56626         * modules/i-ring-tests (Files): Likewise.
56627         * modules/iconv-tests (Files): Likewise.
56628         * modules/iconv_open-utf-tests (Files): Likewise.
56629         * modules/idpriv-drop-tests (Files): Likewise.
56630         * modules/idpriv-droptemp-tests (Files): Likewise.
56631         * modules/inet_ntop-tests (Files): Likewise.
56632         * modules/inet_pton-tests (Files): Likewise.
56633         * modules/isblank-tests (Files): Likewise.
56634         * modules/isfinite-tests (Files): Likewise.
56635         * modules/isinf-tests (Files): Likewise.
56636         * modules/isnan-tests (Files): Likewise.
56637         * modules/isnand-nolibm-tests (Files): Likewise.
56638         * modules/isnand-tests (Files): Likewise.
56639         * modules/isnanf-nolibm-tests (Files): Likewise.
56640         * modules/isnanf-tests (Files): Likewise.
56641         * modules/isnanl-nolibm-tests (Files): Likewise.
56642         * modules/isnanl-tests (Files): Likewise.
56643         * modules/lchown-tests (Files): Likewise.
56644         * modules/ldexpl-tests (Files): Likewise.
56645         * modules/link-tests (Files): Likewise.
56646         * modules/linkat-tests (Files): Likewise.
56647         * modules/linked-list-tests (Files): Likewise.
56648         * modules/linkedhash-list-tests (Files): Likewise.
56649         * modules/localename-tests (Files): Likewise.
56650         * modules/lseek-tests (Files): Likewise.
56651         * modules/lstat-tests (Files): Likewise.
56652         * modules/mbmemcasecmp-tests (Files): Likewise.
56653         * modules/mbmemcasecoll-tests (Files): Likewise.
56654         * modules/mbrtowc-tests (Files): Likewise.
56655         * modules/mbscasecmp-tests (Files): Likewise.
56656         * modules/mbscasestr-tests (Files): Likewise.
56657         * modules/mbschr-tests (Files): Likewise.
56658         * modules/mbscspn-tests (Files): Likewise.
56659         * modules/mbsinit-tests (Files): Likewise.
56660         * modules/mbsncasecmp-tests (Files): Likewise.
56661         * modules/mbsnrtowcs-tests (Files): Likewise.
56662         * modules/mbspbrk-tests (Files): Likewise.
56663         * modules/mbspcasecmp-tests (Files): Likewise.
56664         * modules/mbsrchr-tests (Files): Likewise.
56665         * modules/mbsrtowcs-tests (Files): Likewise.
56666         * modules/mbsspn-tests (Files): Likewise.
56667         * modules/mbsstr-tests (Files): Likewise.
56668         * modules/memchr-tests (Files): Likewise.
56669         * modules/memchr2-tests (Files): Likewise.
56670         * modules/memcmp-tests (Files): Likewise.
56671         * modules/memmem-tests (Files): Likewise.
56672         * modules/memrchr-tests (Files): Likewise.
56673         * modules/mkdir-tests (Files): Likewise.
56674         * modules/mkfifo-tests (Files): Likewise.
56675         * modules/mkfifoat-tests (Files): Likewise.
56676         * modules/mknod-tests (Files): Likewise.
56677         * modules/nanosleep-tests (Files): Likewise.
56678         * modules/nl_langinfo-tests (Files): Likewise.
56679         * modules/obstack-printf-tests (Files): Likewise.
56680         * modules/open-tests (Files): Likewise.
56681         * modules/openat-tests (Files): Likewise.
56682         * modules/pipe-filter-gi-tests (Files): Likewise.
56683         * modules/pipe-filter-ii-tests (Files): Likewise.
56684         * modules/pipe2-tests (Files): Likewise.
56685         * modules/popen-safer-tests (Files): Likewise.
56686         * modules/popen-tests (Files): Likewise.
56687         * modules/posixtm-tests (Files): Likewise.
56688         * modules/pread-tests (Files): Likewise.
56689         * modules/printf-frexp-tests (Files): Likewise.
56690         * modules/printf-frexpl-tests (Files): Likewise.
56691         * modules/printf-posix-tests (Files): Likewise.
56692         * modules/priv-set-tests (Files): Likewise.
56693         * modules/quotearg-tests (Files): Likewise.
56694         * modules/random_r-tests (Files): Likewise.
56695         * modules/rawmemchr-tests (Files): Likewise.
56696         * modules/rbtree-list-tests (Files): Likewise.
56697         * modules/rbtree-oset-tests (Files): Likewise.
56698         * modules/rbtreehash-list-tests (Files): Likewise.
56699         * modules/readlink-tests (Files): Likewise.
56700         * modules/remove-tests (Files): Likewise.
56701         * modules/rename-tests (Files): Likewise.
56702         * modules/renameat-tests (Files): Likewise.
56703         * modules/rmdir-tests (Files): Likewise.
56704         * modules/round-tests (Files): Likewise.
56705         * modules/roundf-tests (Files): Likewise.
56706         * modules/roundl-tests (Files): Likewise.
56707         * modules/safe-alloc-tests (Files): Likewise.
56708         * modules/setenv-tests (Files): Likewise.
56709         * modules/sigaction-tests (Files): Likewise.
56710         * modules/signbit-tests (Files): Likewise.
56711         * modules/sleep-tests (Files): Likewise.
56712         * modules/snprintf-posix-tests (Files): Likewise.
56713         * modules/snprintf-tests (Files): Likewise.
56714         * modules/sprintf-posix-tests (Files): Likewise.
56715         * modules/stat-tests (Files): Likewise.
56716         * modules/stat-time-tests (Files): Likewise.
56717         * modules/strcasestr-tests (Files): Likewise.
56718         * modules/strchrnul-tests (Files): Likewise.
56719         * modules/strerror-tests (Files): Likewise.
56720         * modules/striconv-tests (Files): Likewise.
56721         * modules/striconveh-tests (Files): Likewise.
56722         * modules/striconveha-tests (Files): Likewise.
56723         * modules/strsignal-tests (Files): Likewise.
56724         * modules/strstr-tests (Files): Likewise.
56725         * modules/strtod-tests (Files): Likewise.
56726         * modules/strverscmp-tests (Files): Likewise.
56727         * modules/symlink-tests (Files): Likewise.
56728         * modules/symlinkat-tests (Files): Likewise.
56729         * modules/trunc-tests (Files): Likewise.
56730         * modules/truncf-tests (Files): Likewise.
56731         * modules/truncl-tests (Files): Likewise.
56732         * modules/uname-tests (Files): Likewise.
56733         * modules/unicase/cased-tests (Files): Likewise.
56734         * modules/unicase/ignorable-tests (Files): Likewise.
56735         * modules/unicase/locale-language-tests (Files): Likewise.
56736         * modules/unicase/tolower-tests (Files): Likewise.
56737         * modules/unicase/totitle-tests (Files): Likewise.
56738         * modules/unicase/toupper-tests (Files): Likewise.
56739         * modules/unicase/u8-casecmp-tests (Files): Likewise.
56740         * modules/unicase/u8-casecoll-tests (Files): Likewise.
56741         * modules/unicase/u8-casefold-tests (Files): Likewise.
56742         * modules/unicase/u8-is-cased-tests (Files): Likewise.
56743         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
56744         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
56745         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
56746         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
56747         * modules/unicase/u8-tolower-tests (Files): Likewise.
56748         * modules/unicase/u8-totitle-tests (Files): Likewise.
56749         * modules/unicase/u8-toupper-tests (Files): Likewise.
56750         * modules/unicase/u16-casecmp-tests (Files): Likewise.
56751         * modules/unicase/u16-casecoll-tests (Files): Likewise.
56752         * modules/unicase/u16-casefold-tests (Files): Likewise.
56753         * modules/unicase/u16-is-cased-tests (Files): Likewise.
56754         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
56755         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
56756         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
56757         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
56758         * modules/unicase/u16-tolower-tests (Files): Likewise.
56759         * modules/unicase/u16-totitle-tests (Files): Likewise.
56760         * modules/unicase/u16-toupper-tests (Files): Likewise.
56761         * modules/unicase/u32-casecmp-tests (Files): Likewise.
56762         * modules/unicase/u32-casecoll-tests (Files): Likewise.
56763         * modules/unicase/u32-casefold-tests (Files): Likewise.
56764         * modules/unicase/u32-is-cased-tests (Files): Likewise.
56765         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
56766         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
56767         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
56768         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
56769         * modules/unicase/u32-tolower-tests (Files): Likewise.
56770         * modules/unicase/u32-totitle-tests (Files): Likewise.
56771         * modules/unicase/u32-toupper-tests (Files): Likewise.
56772         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
56773         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
56774         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
56775         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
56776         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
56777         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
56778         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
56779         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
56780         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
56781         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
56782         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
56783         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
56784         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
56785         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
56786         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
56787         * modules/unictype/bidicategory-name-tests (Files): Likewise.
56788         * modules/unictype/bidicategory-of-tests (Files): Likewise.
56789         * modules/unictype/bidicategory-test-tests (Files): Likewise.
56790         * modules/unictype/block-list-tests (Files): Likewise.
56791         * modules/unictype/block-of-tests (Files): Likewise.
56792         * modules/unictype/block-test-tests (Files): Likewise.
56793         * modules/unictype/category-C-tests (Files): Likewise.
56794         * modules/unictype/category-Cc-tests (Files): Likewise.
56795         * modules/unictype/category-Cf-tests (Files): Likewise.
56796         * modules/unictype/category-Cn-tests (Files): Likewise.
56797         * modules/unictype/category-Co-tests (Files): Likewise.
56798         * modules/unictype/category-Cs-tests (Files): Likewise.
56799         * modules/unictype/category-L-tests (Files): Likewise.
56800         * modules/unictype/category-Ll-tests (Files): Likewise.
56801         * modules/unictype/category-Lm-tests (Files): Likewise.
56802         * modules/unictype/category-Lo-tests (Files): Likewise.
56803         * modules/unictype/category-Lt-tests (Files): Likewise.
56804         * modules/unictype/category-Lu-tests (Files): Likewise.
56805         * modules/unictype/category-M-tests (Files): Likewise.
56806         * modules/unictype/category-Mc-tests (Files): Likewise.
56807         * modules/unictype/category-Me-tests (Files): Likewise.
56808         * modules/unictype/category-Mn-tests (Files): Likewise.
56809         * modules/unictype/category-N-tests (Files): Likewise.
56810         * modules/unictype/category-Nd-tests (Files): Likewise.
56811         * modules/unictype/category-Nl-tests (Files): Likewise.
56812         * modules/unictype/category-No-tests (Files): Likewise.
56813         * modules/unictype/category-P-tests (Files): Likewise.
56814         * modules/unictype/category-Pc-tests (Files): Likewise.
56815         * modules/unictype/category-Pd-tests (Files): Likewise.
56816         * modules/unictype/category-Pe-tests (Files): Likewise.
56817         * modules/unictype/category-Pf-tests (Files): Likewise.
56818         * modules/unictype/category-Pi-tests (Files): Likewise.
56819         * modules/unictype/category-Po-tests (Files): Likewise.
56820         * modules/unictype/category-Ps-tests (Files): Likewise.
56821         * modules/unictype/category-S-tests (Files): Likewise.
56822         * modules/unictype/category-Sc-tests (Files): Likewise.
56823         * modules/unictype/category-Sk-tests (Files): Likewise.
56824         * modules/unictype/category-Sm-tests (Files): Likewise.
56825         * modules/unictype/category-So-tests (Files): Likewise.
56826         * modules/unictype/category-Z-tests (Files): Likewise.
56827         * modules/unictype/category-Zl-tests (Files): Likewise.
56828         * modules/unictype/category-Zp-tests (Files): Likewise.
56829         * modules/unictype/category-Zs-tests (Files): Likewise.
56830         * modules/unictype/category-and-not-tests (Files): Likewise.
56831         * modules/unictype/category-and-tests (Files): Likewise.
56832         * modules/unictype/category-byname-tests (Files): Likewise.
56833         * modules/unictype/category-name-tests (Files): Likewise.
56834         * modules/unictype/category-none-tests (Files): Likewise.
56835         * modules/unictype/category-of-tests (Files): Likewise.
56836         * modules/unictype/category-or-tests (Files): Likewise.
56837         * modules/unictype/category-test-withtable-tests (Files): Likewise.
56838         * modules/unictype/combining-class-tests (Files): Likewise.
56839         * modules/unictype/ctype-alnum-tests (Files): Likewise.
56840         * modules/unictype/ctype-alpha-tests (Files): Likewise.
56841         * modules/unictype/ctype-blank-tests (Files): Likewise.
56842         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
56843         * modules/unictype/ctype-digit-tests (Files): Likewise.
56844         * modules/unictype/ctype-graph-tests (Files): Likewise.
56845         * modules/unictype/ctype-lower-tests (Files): Likewise.
56846         * modules/unictype/ctype-print-tests (Files): Likewise.
56847         * modules/unictype/ctype-punct-tests (Files): Likewise.
56848         * modules/unictype/ctype-space-tests (Files): Likewise.
56849         * modules/unictype/ctype-upper-tests (Files): Likewise.
56850         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
56851         * modules/unictype/decimal-digit-tests (Files): Likewise.
56852         * modules/unictype/digit-tests (Files): Likewise.
56853         * modules/unictype/mirror-tests (Files): Likewise.
56854         * modules/unictype/numeric-tests (Files): Likewise.
56855         * modules/unictype/property-alphabetic-tests (Files): Likewise.
56856         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
56857         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
56858         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
56859         Likewise.
56860         * modules/unictype/property-bidi-block-separator-tests (Files):
56861         Likewise.
56862         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
56863         Likewise.
56864         * modules/unictype/property-bidi-common-separator-tests (Files):
56865         Likewise.
56866         * modules/unictype/property-bidi-control-tests (Files): Likewise.
56867         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
56868         Likewise.
56869         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
56870         Likewise.
56871         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
56872         Likewise.
56873         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
56874         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
56875         Likewise.
56876         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
56877         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
56878         Likewise.
56879         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
56880         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
56881         * modules/unictype/property-bidi-segment-separator-tests (Files):
56882         Likewise.
56883         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
56884         * modules/unictype/property-byname-tests (Files): Likewise.
56885         * modules/unictype/property-combining-tests (Files): Likewise.
56886         * modules/unictype/property-composite-tests (Files): Likewise.
56887         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
56888         * modules/unictype/property-dash-tests (Files): Likewise.
56889         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
56890         * modules/unictype/property-default-ignorable-code-point-tests (Files):
56891         Likewise.
56892         * modules/unictype/property-deprecated-tests (Files): Likewise.
56893         * modules/unictype/property-diacritic-tests (Files): Likewise.
56894         * modules/unictype/property-extender-tests (Files): Likewise.
56895         * modules/unictype/property-format-control-tests (Files): Likewise.
56896         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
56897         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
56898         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
56899         * modules/unictype/property-hex-digit-tests (Files): Likewise.
56900         * modules/unictype/property-hyphen-tests (Files): Likewise.
56901         * modules/unictype/property-id-continue-tests (Files): Likewise.
56902         * modules/unictype/property-id-start-tests (Files): Likewise.
56903         * modules/unictype/property-ideographic-tests (Files): Likewise.
56904         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
56905         * modules/unictype/property-ids-trinary-operator-tests (Files):
56906         Likewise.
56907         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
56908         * modules/unictype/property-iso-control-tests (Files): Likewise.
56909         * modules/unictype/property-join-control-tests (Files): Likewise.
56910         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
56911         * modules/unictype/property-line-separator-tests (Files): Likewise.
56912         * modules/unictype/property-logical-order-exception-tests (Files):
56913         Likewise.
56914         * modules/unictype/property-lowercase-tests (Files): Likewise.
56915         * modules/unictype/property-math-tests (Files): Likewise.
56916         * modules/unictype/property-non-break-tests (Files): Likewise.
56917         * modules/unictype/property-not-a-character-tests (Files): Likewise.
56918         * modules/unictype/property-numeric-tests (Files): Likewise.
56919         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
56920         * modules/unictype/property-other-default-ignorable-code-point-tests
56921         (Files): Likewise.
56922         * modules/unictype/property-other-grapheme-extend-tests (Files):
56923         Likewise.
56924         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
56925         * modules/unictype/property-other-id-start-tests (Files): Likewise.
56926         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
56927         * modules/unictype/property-other-math-tests (Files): Likewise.
56928         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
56929         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
56930         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
56931         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
56932         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
56933         * modules/unictype/property-private-use-tests (Files): Likewise.
56934         * modules/unictype/property-punctuation-tests (Files): Likewise.
56935         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
56936         * modules/unictype/property-radical-tests (Files): Likewise.
56937         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
56938         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
56939         * modules/unictype/property-space-tests (Files): Likewise.
56940         * modules/unictype/property-terminal-punctuation-tests (Files):
56941         Likewise.
56942         * modules/unictype/property-test-tests (Files): Likewise.
56943         * modules/unictype/property-titlecase-tests (Files): Likewise.
56944         * modules/unictype/property-unassigned-code-value-tests (Files):
56945         Likewise.
56946         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
56947         * modules/unictype/property-uppercase-tests (Files): Likewise.
56948         * modules/unictype/property-variation-selector-tests (Files): Likewise.
56949         * modules/unictype/property-white-space-tests (Files): Likewise.
56950         * modules/unictype/property-xid-continue-tests (Files): Likewise.
56951         * modules/unictype/property-xid-start-tests (Files): Likewise.
56952         * modules/unictype/property-zero-width-tests (Files): Likewise.
56953         * modules/unictype/scripts-tests (Files): Likewise.
56954         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
56955         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
56956         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
56957         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
56958         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
56959         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
56960         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
56961         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
56962         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
56963         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
56964         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
56965         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
56966         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
56967         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
56968         * modules/uninorm/composition-tests (Files): Likewise.
56969         * modules/uninorm/decomposing-form-tests (Files): Likewise.
56970         * modules/uninorm/decomposition-tests (Files): Likewise.
56971         * modules/uninorm/filter-tests (Files): Likewise.
56972         * modules/uninorm/nfc-tests (Files): Likewise.
56973         * modules/uninorm/nfd-tests (Files): Likewise.
56974         * modules/uninorm/nfkc-tests (Files): Likewise.
56975         * modules/uninorm/nfkd-tests (Files): Likewise.
56976         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
56977         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
56978         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
56979         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
56980         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
56981         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
56982         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
56983         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
56984         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
56985         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
56986         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
56987         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
56988         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
56989         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
56990         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
56991         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
56992         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
56993         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
56994         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
56995         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
56996         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
56997         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
56998         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
56999         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
57000         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
57001         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
57002         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
57003         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
57004         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
57005         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
57006         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
57007         * modules/uniwidth/u8-width-tests (Files): Likewise.
57008         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
57009         * modules/uniwidth/u16-width-tests (Files): Likewise.
57010         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
57011         * modules/uniwidth/u32-width-tests (Files): Likewise.
57012         * modules/uniwidth/width-tests (Files): Likewise.
57013         * modules/unlink-tests (Files): Likewise.
57014         * modules/unsetenv-tests (Files): Likewise.
57015         * modules/usleep-tests (Files): Likewise.
57016         * modules/utimens-tests (Files): Likewise.
57017         * modules/utimensat-tests (Files): Likewise.
57018         * modules/vasnprintf-posix-tests (Files): Likewise.
57019         * modules/vasnprintf-tests (Files): Likewise.
57020         * modules/vasprintf-posix-tests (Files): Likewise.
57021         * modules/vasprintf-tests (Files): Likewise.
57022         * modules/vdprintf-posix-tests (Files): Likewise.
57023         * modules/vfprintf-posix-tests (Files): Likewise.
57024         * modules/vprintf-posix-tests (Files): Likewise.
57025         * modules/vsnprintf-posix-tests (Files): Likewise.
57026         * modules/vsnprintf-tests (Files): Likewise.
57027         * modules/vsprintf-posix-tests (Files): Likewise.
57028         * modules/wcrtomb-tests (Files): Likewise.
57029         * modules/wcsnrtombs-tests (Files): Likewise.
57030         * modules/wcsrtombs-tests (Files): Likewise.
57031         * modules/wctype-tests (Files): Likewise.
57032         * modules/wcwidth-tests (Files): Likewise.
57033         * modules/xmemdup0-tests (Files): Likewise.
57034         * modules/xprintf-posix-tests (Files): Likewise.
57035         * modules/xvasprintf-tests (Files): Likewise.
57037 2009-12-24  Eric Blake  <ebb9@byu.net>
57039         test-nanosleep: fix typo
57040         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
57041         patch.
57042         Reported by Bruno Haible.
57044 2009-12-24  Bruno Haible  <bruno@clisp.org>
57046         Reduce namespace pollution on glibc systems.
57047         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
57048         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
57049         systems.
57050         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
57051         <getopt.h> on glibc systems.
57052         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
57053         systems.
57054         * lib/fcntl.c: Include <unistd.h> here instead.
57056 2009-12-24  Bruno Haible  <bruno@clisp.org>
57058         * lib/stdlib.in.h (includes): Fix typo in today's commit.
57060 2009-12-24  Eric Blake  <ebb9@byu.net>
57062         tests: add signature checks
57063         * tests/signature.h (SIGNATURE_CHECK): New file.
57064         * modules/atexit-tests (Files): Use it.
57065         * modules/btowc-tests (Files): Likewise.
57066         * modules/canonicalize-lgpl-tests (Files): Likewise.
57067         * modules/ceilf-tests (Files): Likewise.
57068         * modules/ceill-tests (Files): Likewise.
57069         * modules/chown-tests (Files): Likewise.
57070         * modules/dprintf-posix-tests (Files): Likewise.
57071         * modules/dup2-tests (Files): Likewise.
57072         * modules/dup3-tests (Files): Likewise.
57073         * modules/duplocale-tests (Files): Likewise.
57074         * modules/fchdir-tests (Files): Likewise.
57075         * modules/fcntl-tests (Files): Likewise.
57076         * modules/fdopendir-tests (Files): Likewise.
57077         * modules/fflush-tests (Files): Likewise.
57078         * modules/flock-tests (Files): Likewise.
57079         * modules/floorf-tests (Files): Likewise.
57080         * modules/floorl-tests (Files): Likewise.
57081         * modules/fnmatch-tests (Files): Likewise.
57082         * modules/fopen-tests (Files): Likewise.
57083         * modules/fprintf-posix-tests (Files): Likewise.
57084         * modules/freopen-tests (Files): Likewise.
57085         * modules/frexp-nolibm-tests (Files): Likewise.
57086         * modules/frexp-tests (Files): Likewise.
57087         * modules/frexpl-nolibm-tests (Files): Likewise.
57088         * modules/frexpl-tests (Files): Likewise.
57089         * modules/fseek-tests (Files): Likewise.
57090         * modules/fseeko-tests (Files): Likewise.
57091         * modules/fsync-tests (Files): Likewise.
57092         * modules/ftell-tests (Files): Likewise.
57093         * modules/ftello-tests (Files): Likewise.
57094         * modules/futimens-tests (Files): Likewise.
57095         * modules/getaddrinfo-tests (Files): Likewise.
57096         * modules/getcwd-tests (Files): Likewise.
57097         * modules/getdelim-tests (Files): Likewise.
57098         * modules/getdtablesize-tests (Files): Likewise.
57099         * modules/getgroups-tests (Files): Likewise.
57100         * modules/gethostname-tests (Files): Likewise.
57101         * modules/getline-tests (Files): Likewise.
57102         * modules/getopt-posix-tests (Files): Likewise.
57103         * modules/gettimeofday-tests (Files): Likewise.
57104         * modules/glob-tests (Files): Likewise.
57105         * modules/iconv-tests (Files): Likewise.
57106         * modules/inet_ntop-tests (Files): Likewise.
57107         * modules/inet_pton-tests (Files): Likewise.
57108         * modules/isblank-tests (Files): Likewise.
57109         * modules/lchown-tests (Files): Likewise.
57110         * modules/ldexpl-tests (Files): Likewise.
57111         * modules/link-tests (Files): Likewise.
57112         * modules/linkat-tests (Files): Likewise.
57113         * modules/lseek-tests (Files): Likewise.
57114         * modules/lstat-tests (Files): Likewise.
57115         * modules/mbrtowc-tests (Files): Likewise.
57116         * modules/mbsinit-tests (Files): Likewise.
57117         * modules/mbsnrtowcs-tests (Files): Likewise.
57118         * modules/mbsrtowcs-tests (Files): Likewise.
57119         * modules/memchr-tests (Files): Likewise.
57120         * modules/memcmp-tests (Files): Likewise.
57121         * modules/memmem-tests (Files): Likewise.
57122         * modules/memrchr-tests (Files): Likewise.
57123         * modules/mkdir-tests (Files): Likewise.
57124         * modules/mkfifo-tests (Files): Likewise.
57125         * modules/mkfifoat-tests (Files): Likewise.
57126         * modules/mknod-tests (Files): Likewise.
57127         * modules/nanosleep-tests (Files): Likewise.
57128         * modules/nl_langinfo-tests (Files): Likewise.
57129         * modules/obstack-printf-tests (Files): Likewise.
57130         * modules/open-tests (Files): Likewise.
57131         * modules/openat-tests (Files): Likewise.
57132         * modules/perror-tests (Files): Likewise.
57133         * modules/pipe2-tests (Files): Likewise.
57134         * modules/poll-tests (Files): Likewise.
57135         * modules/popen-tests (Files): Likewise.
57136         * modules/posix_spawn-tests (Files): Likewise.
57137         * modules/posix_spawnp-tests (Files): Likewise.
57138         * modules/pread-tests (Files): Likewise.
57139         * modules/printf-posix-tests (Files): Likewise.
57140         * modules/pty-tests (Files): Likewise.
57141         * modules/random_r-tests (Files): Likewise.
57142         * modules/rawmemchr-tests (Files): Likewise.
57143         * modules/readlink-tests (Files): Likewise.
57144         * modules/remove-tests (Files): Likewise.
57145         * modules/rename-tests (Files): Likewise.
57146         * modules/renameat-tests (Files): Likewise.
57147         * modules/rmdir-tests (Files): Likewise.
57148         * modules/round-tests (Files): Likewise.
57149         * modules/roundf-tests (Files): Likewise.
57150         * modules/roundl-tests (Files): Likewise.
57151         * modules/select-tests (Files): Likewise.
57152         * modules/setenv-tests (Files): Likewise.
57153         * modules/sigaction-tests (Files): Likewise.
57154         * modules/sleep-tests (Files): Likewise.
57155         * modules/snprintf-posix-tests (Files): Likewise.
57156         * modules/snprintf-tests (Files): Likewise.
57157         * modules/sprintf-posix-tests (Files): Likewise.
57158         * modules/stat-tests (Files): Likewise.
57159         * modules/strcasestr-tests (Files): Likewise.
57160         * modules/strchrnul-tests (Files): Likewise.
57161         * modules/strerror-tests (Files): Likewise.
57162         * modules/strsignal-tests (Files): Likewise.
57163         * modules/strstr-tests (Files): Likewise.
57164         * modules/strtod-tests (Files): Likewise.
57165         * modules/strverscmp-tests (Files): Likewise.
57166         * modules/symlink-tests (Files): Likewise.
57167         * modules/symlinkat-tests (Files): Likewise.
57168         * modules/times-tests (Files): Likewise.
57169         * modules/trunc-tests (Files): Likewise.
57170         * modules/truncf-tests (Files): Likewise.
57171         * modules/truncl-tests (Files): Likewise.
57172         * modules/tsearch-tests (Files): Likewise.
57173         * modules/uname-tests (Files): Likewise.
57174         * modules/unlink-tests (Files): Likewise.
57175         * modules/unsetenv-tests (Files): Likewise.
57176         * modules/usleep-tests (Files): Likewise.
57177         * modules/utimensat-tests (Files): Likewise.
57178         * modules/vasprintf-tests (Files): Likewise.
57179         * modules/vdprintf-posix-tests (Files): Likewise.
57180         * modules/vfprintf-posix-tests (Files): Likewise.
57181         * modules/vprintf-posix-tests (Files): Likewise.
57182         * modules/vsnprintf-posix-tests (Files): Likewise.
57183         * modules/vsnprintf-tests (Files): Likewise.
57184         * modules/vsprintf-posix-tests (Files): Likewise.
57185         * modules/wcrtomb-tests (Files): Likewise.
57186         * modules/wcsnrtombs-tests (Files): Likewise.
57187         * modules/wcsrtombs-tests (Files): Likewise.
57188         * modules/wcwidth-tests (Files): Likewise.
57189         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
57190         * tests/test-isinf.c (isinf): Likewise.
57191         * tests/test-isnan.c (isnan): Likewise.
57192         * tests/test-signbit.c (signbit): Likewise.
57193         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
57194         declaration, either as macro or with correct signature.
57195         (select): Ensure function under test is declared with correct
57196         signature in correct header.
57197         * tests/test-atexit.c (atexit): Likewise.
57198         * tests/test-btowc.c (btowc): Likewise.
57199         * tests/test-canonicalize-lgpl.c (realpath)
57200         (canonicalize_file_name): Likewise.
57201         * tests/test-ceilf1.c (ceilf): Likewise.
57202         * tests/test-ceill.c (ceill): Likewise.
57203         * tests/test-chown.c (chown): Likewise.
57204         * tests/test-dprintf-posix.c (dprintf): Likewise.
57205         * tests/test-dup2.c (dup2): Likewise.
57206         * tests/test-dup3.c (dup3): Likewise.
57207         * tests/test-duplocale.c (duplocale): Likewise.
57208         * tests/test-fchdir.c (fchdir): Likewise.
57209         * tests/test-fchownat.c (fchownat): Likewise.
57210         * tests/test-fcntl.c (fcntl): Likewise.
57211         * tests/test-fdopendir.c (fdopendir): Likewise.
57212         * tests/test-fflush.c (fflush): Likewise.
57213         * tests/test-flock.c (flock): Likewise.
57214         * tests/test-floorf1.c (floorf): Likewise.
57215         * tests/test-floorl.c (floorl): Likewise.
57216         * tests/test-fnmatch.c (fnmatch): Likewise.
57217         * tests/test-fopen.c (fopen): Likewise.
57218         * tests/test-fprintf-posix.c (fprintf): Likewise.
57219         * tests/test-freopen.c (freopen): Likewise.
57220         * tests/test-frexp.c (frexp): Likewise.
57221         * tests/test-frexpl.c (frexpl): Likewise.
57222         * tests/test-fseek.c (fseek): Likewise.
57223         * tests/test-fseeko.c (fseeko): Likewise.
57224         * tests/test-fstatat.c (fstatat): Likewise.
57225         * tests/test-fsync.c (fsync): Likewise.
57226         * tests/test-ftell.c (ftell): Likewise.
57227         * tests/test-ftello.c (ftello): Likewise.
57228         * tests/test-futimens.c (futimens): Likewise.
57229         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
57230         (gai_strerror): Likewise.
57231         * tests/test-getcwd.c (getcwd): Likewise.
57232         * tests/test-getdelim.c (getdelim): Likewise.
57233         * tests/test-getdtablesize.c (getdtablesize): Likewise.
57234         * tests/test-getgroups.c (getgroups): Likewise.
57235         * tests/test-gethostname.c (gethostname): Likewise.
57236         * tests/test-getline.c (getline): Likewise.
57237         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
57238         Likewise.
57239         * tests/test-gettimeofday.c (gettimeofday): Likewise.
57240         * tests/test-glob.c (glob, globfree): Likewise.
57241         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
57242         * tests/test-inet_ntop.c (inet_ntop): Likewise.
57243         * tests/test-inet_pton.c (inet_pton): Likewise.
57244         * tests/test-isblank.c (isblank): Likewise.
57245         * tests/test-lchown.c (lchown): Likewise.
57246         * tests/test-ldexpl.c (ldexpl): Likewise.
57247         * tests/test-link.c (link): Likewise.
57248         * tests/test-linkat.c (linkat): Likewise.
57249         * tests/test-lseek.c (lseek): Likewise.
57250         * tests/test-lstat.c (lstat): Likewise.
57251         * tests/test-mbrtowc.c (mbrtowc): Likewise.
57252         * tests/test-mbsinit.c (mbsinit): Likewise.
57253         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
57254         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
57255         * tests/test-memchr.c (memchr): Likewise.
57256         * tests/test-memcmp.c (memcmp): Likewise.
57257         * tests/test-memmem.c (memmem): Likewise.
57258         * tests/test-memrchr.c (memrchr): Likewise.
57259         * tests/test-mkdir.c (mkdir): Likewise.
57260         * tests/test-mkdirat.c (mkdirat): Likewise.
57261         * tests/test-mkfifo.c (mkfifo): Likewise.
57262         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
57263         * tests/test-mknod.c (mknod): Likewise.
57264         * tests/test-nanosleep.c (nanosleep): Likewise.
57265         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
57266         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
57267         Likewise.
57268         * tests/test-open.c (open): Likewise.
57269         * tests/test-openat.c (openat): Likewise.
57270         * tests/test-perror.c (perror): Likewise.
57271         * tests/test-pipe2.c (pipe2): Likewise.
57272         * tests/test-poll.c (poll): Likewise.
57273         * tests/test-popen.c (popen, pclose): Likewise.
57274         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
57275         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
57276         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
57277         (posix_spawn_file_actions_destroy)
57278         (posix_spawn_file_actions_addclose)
57279         (posix_spawn_file_actions_addopen)
57280         (posix_spawn_file_actions_adddup2): Likewise.
57281         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
57282         * tests/test-pread.c (pread): Likewise.
57283         * tests/test-printf-posix.c (printf): Likewise.
57284         * tests/test-pty.c (openpty, forkpty): Likewise.
57285         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
57286         (random_r): Likewise.
57287         * tests/test-rawmemchr.c (rawmemchr): Likewise.
57288         * tests/test-readlink.c (readlink): Likewise.
57289         * tests/test-remove.c (remove): Likewise.
57290         * tests/test-rename.c (rename): Likewise.
57291         * tests/test-renameat.c (renameat): Likewise.
57292         * tests/test-rmdir.c (rmdir): Likewise.
57293         * tests/test-round1.c (round): Likewise.
57294         * tests/test-roundf1.c (roundf): Likewise.
57295         * tests/test-roundl.c (roundl): Likewise.
57296         * tests/test-setenv.c (setenv): Likewise.
57297         * tests/test-sigaction.c (sigaction): Likewise.
57298         * tests/test-sleep.c (sleep): Likewise.
57299         * tests/test-snprintf.c (snprintf): Likewise.
57300         * tests/test-sprintf-posix.c (sprintf): Likewise.
57301         * tests/test-stat.c (stat): Likewise.
57302         * tests/test-stpncpy.c (stpncpy): Likewise.
57303         * tests/test-strcasestr.c (strcasestr): Likewise.
57304         * tests/test-strchrnul.c (strchrnul): Likewise.
57305         * tests/test-strerror.c (strerror): Likewise.
57306         * tests/test-strsignal.c (strsignal): Likewise.
57307         * tests/test-strstr.c (strstr): Likewise.
57308         * tests/test-strtod.c (strtod): Likewise.
57309         * tests/test-strverscmp.c (strverscmp): Likewise.
57310         * tests/test-symlink.c (symlink): Likewise.
57311         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
57312         * tests/test-times.c (times): Likewise.
57313         * tests/test-trunc1.c (trunc): Likewise.
57314         * tests/test-truncf1.c (truncf): Likewise.
57315         * tests/test-truncl.c (truncl): Likewise.
57316         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
57317         Likewise.
57318         * tests/test-uname.c (uname): Likewise.
57319         * tests/test-unlink.c (unlink): Likewise.
57320         * tests/test-unlinkat.c (unlinkat): Likewise.
57321         * tests/test-unsetenv.c (unsetenv): Likewise.
57322         * tests/test-usleep.c (usleep): Likewise.
57323         * tests/test-utimensat.c (utimensat): Likewise.
57324         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
57325         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
57326         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
57327         * tests/test-vprintf-posix.c (vprintf): Likewise.
57328         * tests/test-vsnprintf.c (vsnprintf): Likewise.
57329         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
57330         * tests/test-wcrtomb.c (wcrtomb): Likewise.
57331         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
57332         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
57333         * tests/test-wcwidth.c (wcwidth): Likewise.
57335         build: pull in conditional headers during GNULIB_POSIXCHECK
57336         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
57337         definitions from any conditionally-included headers.
57338         * lib/stdlib.in.h (includes): Likewise.
57339         * lib/unistd.in.h (includes): Likewise.
57341 2009-12-24  Bruno Haible  <bruno@clisp.org>
57343         * tests/test-argv-iter.c: Include header file being tested immediately
57344         after config.h.
57345         * tests/test-base64.c: Likewise.
57346         * tests/test-flock.c: Likewise.
57347         * tests/test-fsync.c: Likewise.
57348         * tests/test-getdate.c: Likewise.
57349         * tests/test-getndelim2.c: Likewise.
57350         * tests/test-isfinite.c: Likewise.
57351         * tests/test-isinf.c: Likewise.
57352         * tests/test-strerror.c: Likewise.
57353         * tests/test-strsignal.c: Likewise.
57355 2009-12-23  Eric Blake  <ebb9@byu.net>
57357         unistd: work around cygwin bug
57358         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
57359         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
57360         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
57362 2009-12-23  Bruno Haible  <bruno@clisp.org>
57364         localename: More tests.
57365         * tests/test-localename.c (SIZEOF): New macro.
57366         (categories): New variable.
57367         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
57368         test_locale_name_default): Add test w.r.t. thread locale.
57369         (test_locale_name_thread): New function.
57370         (main): Invoke it.
57372         localename: Make aware of thread locale.
57373         * lib/localename.h (gl_locale_name_thread): New declaration.
57374         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
57375         behaviour with respect to thread locale.
57376         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
57377         <langinfo.h>, glthread/lock.h.
57378         (SIZE_BITS): New macro.
57379         (string_hash): New function.
57380         (struct hash_node): New type.
57381         (HASH_TABLE_SIZE): New macro.
57382         (struniq_hash_table, struniq_lock): New variables.
57383         (struniq): New function.
57384         (gl_locale_name_thread): New function.
57385         (gl_locale_name): Invoke it.
57386         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
57387         * modules/localename (Depends-on): Add lock.
57388         Reported by Mike Gran <spk121@yahoo.com>.
57390 2009-12-23  Eric Blake  <ebb9@byu.net>
57392         va-args: new module
57393         * modules/va-args: New file.
57394         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
57395         * MODULES.html.sh (Core language properties): Mention it.
57397         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
57398         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
57399         named alias for __attribute__((__unused__)).
57400         * lib/chown.c: Update client.
57401         * lib/fchmodat.c: Likewise.
57402         * lib/fts.c: Likewise.
57403         * lib/getdate.y: Likewise.
57404         * lib/getgroups.c: Likewise.
57405         * lib/getopt.c: Likewise.
57406         * lib/getugroups.c: Likewise.
57407         * lib/mkdir.c: Likewise.
57408         * lib/mkfifo.c: Likewise.
57409         * lib/mkfifoat.c: Likewise.
57410         * lib/mknod.c: Likewise.
57411         * lib/mknodat.c: Likewise.
57412         * lib/readlink.c: Likewise.
57413         * lib/se-context.in.h: Likewise.
57414         * lib/se-selinux.in.h: Likewise.
57415         * lib/sockets.c: Likewise.
57416         * lib/symlink.c: Likewise.
57417         * lib/symlinkat.c: Likewise.
57418         * lib/unicodeio.c: Likewise.
57419         * lib/unistr.h: Likewise.
57420         * tests/test-areadlink.c: Likewise.
57421         * tests/test-areadlinkat.c: Likewise.
57422         * tests/test-filenamecat.c: Likewise.
57423         * tests/test-fseeko.c: Likewise.
57424         * tests/test-ftello.c: Likewise.
57425         * tests/test-getdate.c: Likewise.
57426         * tests/test-getgroups.c: Likewise.
57427         * tests/test-gethostname.c: Likewise.
57428         * tests/test-quotearg.c: Likewise.
57429         * tests/test-version-etc.c: Likewise.
57430         * tests/test-xalloc-die.c: Likewise.
57431         * tests/test-xfprintf-posix.c: Likewise.
57432         * tests/test-xprintf-posix.c: Likewise.
57433         * tests/test-xvasprintf.c: Likewise.
57435         tests: avoid compiler warnings
57436         * tests/test-fcntl.c (main): Delete unused parameters.
57437         * tests/test-freopen-safer.c (main): Likewise.
57438         * tests/test-xalloc-die.c (main): Mark unused parameters.
57439         * tests/test-fseeko.c (main): Likewise.
57440         * tests/test-ftello.c (main): Likewise.
57441         * tests/test-nanosleep.c (main): Avoid declaration warning.
57442         * tests/test-sleep.c (main): Likewise.
57443         * tests/test-unsetenv.c (main): Silence warning about string
57444         literal.
57445         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
57447 2009-12-23  Bruno Haible  <bruno@clisp.org>
57449         * tests/test-localename.c (test_locale_name): New function, extracted
57450         from main. Also test mixed situations.
57451         (test_locale_name_posix, test_locale_name_environ,
57452         test_locale_name_default): New functions.
57453         (main): Invoke them all.
57454         * modules/localename-tests (configure.ac): Test for newlocale.
57456 2009-12-23  Bruno Haible  <bruno@clisp.org>
57458         unistd: Ensure getcwd gets declared before being overridden.
57459         * lib/unistd.in.h: Conditionally include <io.h>.
57461 2009-12-22  Bruno Haible  <bruno@clisp.org>
57463         wchar: Diagnose broken combination of glibc and gcc versions and flags.
57464         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
57465         (gl_WCHAR_H): Invoke it.
57466         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
57467         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
57468         Reported by Karl Berry <karl@freefriends.org>.
57470 2009-12-22  Eric Blake  <ebb9@byu.net>
57472         math, unistd: avoid redundant includes
57473         * lib/math.in.h (isnan): No need to re-include <math.h>.
57474         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
57476         getsubopt: work around cygwin bug
57477         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
57478         avoid conflicting with system getsubopt.
57479         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
57480         bug.
57482         getopt: synchronize from glibc
57483         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
57484         parameter order.  Adjust all callers.
57485         (_getopt_internal_r, main): Adjust quoting in error messages.
57486         Drop considerations for outdated POSIX 1003.2 error message.
57487         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
57488         callers.
57489         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
57491         test-getopt: test stderr behavior
57492         * modules/getopt-posix-tests (Depends-on): Add dup2.
57493         * tests/test-getopt.c (ASSERT): Avoid stderr.
57494         (main): Move stderr to a temporary file.
57495         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
57496         Instead, add parameter to inform caller if output occurred.
57497         (test_getopt): Adjust all existing tests to expect silence, and
57498         add new tests of leading ":".
57499         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
57500         glibc shortcomings with leading "-:" or "+:" in optstring.
57501         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
57502         Likewise.
57503         * doc/posix-functions/getopt.texi (getopt): Likewise.
57505         test-getopt: enhance test
57506         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
57507         supports optind=0.
57508         * tests/test-getopt.c (OPTIND_MIN): Move...
57509         * tests/test-getopt.h (OPTIND_MIN): ...here.
57510         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
57511         Require that optind=0 works, since modern BSD supports it in
57512         addition to optreset, and since coreutils expects it.
57513         (test_getopt_long_only): New test.
57514         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
57515         glibc shortcomings with 'W;', and enforcement of optind=0.
57516         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
57517         Likewise.
57519 2009-12-21  Bruno Haible  <bruno@clisp.org>
57521         localename: Improvements for MacOS X and Cygwin.
57522         * lib/localename.h (gl_locale_name_environ): New declaration.
57523         * lib/localename.c (gl_locale_name_environ): New function, extracted from
57524         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
57525         (gl_locale_name_posix): Invoke it.
57526         (gl_locale_name_default): Add comments. Use Windows native API also on
57527         Cygwin.
57529 2009-12-21  Bruno Haible  <bruno@clisp.org>
57531         Update list of Win32 locale ids.
57532         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
57533         (LANG_SAMI): Renamed from LANG_SAAMI.
57534         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
57535         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
57536         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
57537         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
57538         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
57539         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
57540         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
57541         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
57542         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
57543         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
57544         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
57545         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
57546         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
57547         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
57548         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
57549         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
57550         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
57551         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
57552         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
57553         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
57554         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
57555         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
57556         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
57557         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
57558         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
57559         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
57560         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
57561         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
57562         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
57563         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
57564         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
57565         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
57566         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
57567         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
57568         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
57569         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
57570         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
57571         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
57572         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
57573         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
57574         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
57575         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
57576         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
57577         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
57578         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
57579         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
57580         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
57581         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
57582         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
57583         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
57584         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
57585         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
57586         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
57587         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
57588         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
57589         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
57590         Add more languages and countries for Sami, Sorbian. Add more countries
57591         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
57592         for Pashto. Change country for Syriac, Tswana.
57594 2009-12-21  Eric Blake  <ebb9@byu.net>
57596         test-utimens: avoid spurious failure
57597         * tests/test-chown.h (nap): Factor...
57598         * tests/nap.h: ...into new file.
57599         * tests/test-lchown.h (nap): Avoid duplication.
57600         * tests/test-utimens-common.h (nap): Use shared implementation,
57601         necessary on file systems with 1-second resolution.
57602         * modules/chown-tests (Files): Include new file.
57603         * modules/fdutimensat-tests (Files): Likewise.
57604         * modules/futimens-tests (Files): Likewise.
57605         * modules/lchown-tests (Files): Likewise.
57606         * modules/openat-tests (Files): Likewise.
57607         * modules/utimens-tests (Files): Likewise.
57608         * modules/utimensat-tests (Files): Likewise.
57610 2009-12-19  Eric Blake  <ebb9@byu.net>
57612         futimens, utimensat: work around Linux bug
57613         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
57614         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
57615         * lib/utimensat.c (rpl_utimensat): Work around it.
57616         * lib/futimens.c (rpl_futimens): Adjust comment.
57618         utimens: work around Linux ctime bug
57619         * lib/utimens.c (detect_ctime_bug): New helper function.
57620         (update_timespec): Differentiate between workaround needed for
57621         this bug vs. what is needed for systems that lack utimensat.
57622         (fdutimens, lutimens): Work around bug.
57624         utimens: check for ctime update
57625         * tests/test-utimens-common.h (check_ctime): Define.
57626         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
57627         * tests/test-futimens.h (test_futimens): Likewise.
57628         * tests/test-lutimens.h (test_lutimens): Likewise.
57629         * doc/posix-functions/futimens.texi (futimens): Document the bug.
57630         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
57632 2009-12-19  Bruno Haible  <bruno@clisp.org>
57634         dprintf-posix: Check against memory leak fixed on 2009-12-15.
57635         * tests/test-dprintf-posix2.sh: New file.
57636         * tests/test-dprintf-posix2.c: New file.
57637         * modules/dprintf-posix-tests (Files): Add them.
57638         (configure.ac): Check for getrlimit and setrlimit.
57639         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
57641 2009-12-19  Bruno Haible  <bruno@clisp.org>
57643         fprintf-posix: Check against memory leak fixed on 2009-12-15.
57644         * tests/test-fprintf-posix3.sh: New file.
57645         * tests/test-fprintf-posix3.c: New file.
57646         * modules/fprintf-posix-tests (Files): Add them.
57647         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
57649 2009-12-19  Eric Blake  <ebb9@byu.net>
57651         dirfd: fix prototype
57652         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
57653         * lib/dirfd.c (dirfd): Likewise.
57655         canonicalize: reduce memory usage
57656         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
57657         allocation to size.
57658         Reported by Solar Designer <solar@openwall.com>.
57660 2009-12-19  Bruno Haible  <bruno@clisp.org>
57662         New module attribute 'Applicability'.
57663         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
57664         * gnulib-tool: New option --extract-applicability.
57665         (func_usage): Document it.
57666         (sed_extract_prog): Recognize it.
57667         (func_get_applicability): New function.
57668         (func_import): Generalize handling of 'link-warning' module.
57669         * modules/link-warning (Applicability): New section.
57670         * modules/arg-nonnull (Applicability): New section.
57671         Repoted by Simon Josefsson <simon@josefsson.org>.
57673 2009-12-19  Bruno Haible  <bruno@clisp.org>
57675         fflush: tweak
57676         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
57677         * lib/fseeko.c (rpl_fseeko): Likewise.
57679 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
57681         * lib/gl_list.h: Fix typo in comment.
57683 2009-12-16  Eric Blake  <ebb9@byu.net>
57685         fcntl: use to simplify other modules
57686         * modules/cloexec (Depends-on): Add fcntl.
57687         * modules/fchdir (Depends-on): Likewise.
57688         * modules/fd-safer-flag (Depends-on): Likewise.
57689         * modules/unistd-safer (Depends-on): Likewise.
57690         * modules/dup3 (configure.ac): Set module indicator.
57691         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
57692         missing.
57693         * lib/fchdir.c (_gl_register_dup): Fix comment.
57694         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
57695         * lib/dup-safer.c (dup_safer): Likewise.
57696         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
57697         * lib/dup3.c (dup3): Likewise.
57698         * tests/test-fchdir.c (main): Enhance test.
57699         Fixes a dup_cloexec bug reported by Ondřej Vašík.
57701         fcntl: port portions of fcntl to mingw
57702         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
57703         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
57704         replacement for mingw.
57705         * modules/fcntl (Description): Update.
57706         (Depends-on): Add dup2.
57707         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
57708         * modules/fcntl-h (Makefile.am): Substitute it.
57709         * lib/fcntl.in.h (fcntl): Update declaration.
57710         (F_DUPFD, F_GETFD): New macros, when needed.
57711         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
57712         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
57713         * tests/test-fcntl.c (check_flags, main): Enhance test for items
57714         we now guarantee.
57716         fcntl: work around cygwin bug in F_DUPFD
57717         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
57718         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
57719         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
57720         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
57721         * doc/posix-functions/fcntl.texi (fcntl): Document it.
57723         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
57724         * modules/fcntl (Files): List new files.
57725         (configure.ac): Run a test.
57726         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
57727         * lib/fcntl.c (rpl_fcntl): Likewise.
57728         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
57729         (gl_FCNTL_H): Always replace fcntl.h.
57730         * modules/fcntl-h (Makefile.am): Substitute witnesses.
57731         * lib/fcntl.in.h (fcntl): Declare replacement.
57732         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
57733         needed, plus a witness.
57734         * doc/posix-functions/fcntl.texi (fcntl): Document this.
57735         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
57736         * tests/test-fcntl.c: New file.
57737         * modules/fcntl-tests: Likewise.
57739         binary-io: avoid potential compilation warning
57740         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
57741         directives.
57743         fflush: avoid compilation error on NetBSD
57744         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
57745         between off_t and fpos_t, since the latter is sometimes a struct.
57746         * lib/fseeko.c (rpl_fseeko): Likewise.
57747         Reported by Alexander Nasonov <alnsn@yandex.ru>.
57749 2009-12-15  Eric Blake  <ebb9@byu.net>
57751         fcntl-h, stdio, sys_ioctl: fix declarations
57752         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
57753         function must not take arguments.
57754         * lib/sys_ioctl.in.h (ioctl): Likewise.
57755         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
57756         (open): Add a link warning.
57758 2009-12-15  Jim Meyering  <meyering@redhat.com>
57760         areadlink, areadlink-with-size: relax license to LGPLv2+
57761         * modules/areadlink (License): Relax to LGPLv2+.
57762         * modules/areadlink-with-size (License): Likewise.
57764 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
57765             Bruno Haible  <bruno@clisp.org>
57767         *printf: Fix memory leak.
57768         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
57769         * lib/vfprintf.c (vfprintf): Likewise.
57770         * lib/dprintf.c (dprintf): Likewise.
57771         * lib/vdprintf.c (vdprintf): Likewise.
57773 2009-12-14  Eric Blake  <ebb9@byu.net>
57775         accept4: adjust module dependencies
57776         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
57778         utimens: one more try at avoiding compiler warning
57779         * lib/utimens.c (lutimens): Lower scope of result.
57781 2009-12-13  Bruno Haible  <bruno@clisp.org>
57783         Move the malloc checking from module 'list' to new module 'xlist'.
57784         * modules/xlist: New file.
57785         * lib/gl_xlist.h: New file.
57786         * lib/gl_xlist.c: New file.
57787         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
57788         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
57789         gl_list_add_last, gl_list_add_before, gl_list_add_after,
57790         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
57791         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
57792         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
57793         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
57794         gl_sortedlist_nx_add): New declarations.
57795         (struct gl_list_implementation): Rename and change methods accordingly.
57796         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
57797         (gl_list_nx_create): Renamed from gl_list_create.
57798         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
57799         (gl_list_nx_set_at): Renamed from gl_list_set_at.
57800         (gl_list_nx_add_first): Renamed from gl_list_add_first.
57801         (gl_list_nx_add_last): Renamed from gl_list_add_last.
57802         (gl_list_nx_add_before): Renamed from gl_list_add_before.
57803         (gl_list_nx_add_after): Renamed from gl_list_add_after.
57804         (gl_list_nx_add_at): Renamed from gl_list_add_at.
57805         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
57806         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
57807         gl_list_create_empty.
57808         (gl_list_nx_create): Renamed from gl_list_create.
57809         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
57810         (gl_list_nx_set_at): Renamed from gl_list_set_at.
57811         (gl_list_nx_add_first): Renamed from gl_list_add_first.
57812         (gl_list_nx_add_last): Renamed from gl_list_add_last.
57813         (gl_list_nx_add_before): Renamed from gl_list_add_before.
57814         (gl_list_nx_add_after): Renamed from gl_list_add_after.
57815         (gl_list_nx_add_at): Renamed from gl_list_add_at.
57816         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
57817         * lib/gl_array_list.c: Don't include xalloc.h.
57818         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
57819         NULL upon out-of-memory.
57820         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
57821         out-of-memory.
57822         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
57823         Change return type to 'int'.
57824         (gl_array_nx_set_at): Renamed from gl_array_set_at.
57825         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
57826         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
57827         upon out-of-memory.
57828         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
57829         upon out-of-memory.
57830         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
57831         upon out-of-memory.
57832         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
57833         upon out-of-memory.
57834         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
57835         out-of-memory.
57836         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
57837         Update.
57838         (gl_array_list_implementation): Update.
57839         * lib/gl_carray_list.c: Don't include xalloc.h.
57840         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
57841         Return NULL upon out-of-memory.
57842         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
57843         out-of-memory.
57844         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
57845         Change return type to 'int'.
57846         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
57847         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
57848         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
57849         upon out-of-memory.
57850         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
57851         upon out-of-memory.
57852         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
57853         out-of-memory.
57854         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
57855         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
57856         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
57857         Update.
57858         (gl_carray_list_implementation): Update.
57859         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
57860         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
57861         gl_linked_create_empty. Return NULL upon out-of-memory.
57862         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
57863         out-of-memory.
57864         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
57865         Change return type to 'int'. Return -1 upon out-of-memory.
57866         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
57867         out-of-memory.
57868         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
57869         upon out-of-memory.
57870         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
57871         upon out-of-memory.
57872         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
57873         NULL upon out-of-memory.
57874         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
57875         upon out-of-memory.
57876         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
57877         out-of-memory.
57878         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
57879         Update.
57880         * lib/gl_linked_list.c: Don't include xalloc.h.
57881         (gl_linked_list_implementation): Update.
57882         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
57883         (add_to_bucket): Change return type to 'int'.
57884         (gl_linkedhash_list_implementation): Update.
57885         * lib/gl_anytree_list1.h (free_subtree): New function.
57886         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
57887         gl_tree_create_empty. Return NULL upon out-of-memory.
57888         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
57889         Change return type to 'int'. Return -1 upon out-of-memory.
57890         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
57891         out-of-memory.
57892         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
57893         (gl_tree_remove_node): New function, moved here from
57894         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
57895         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
57896         Update.
57897         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
57898         malloc, not xmalloc. Return NULL upon out-of-memory.
57899         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
57900         out-of-memory.
57901         (gl_tree_remove_node_from_tree): New function, extracted from
57902         gl_tree_remove_node.
57903         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
57904         upon out-of-memory.
57905         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
57906         out-of-memory.
57907         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
57908         upon out-of-memory.
57909         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
57910         upon out-of-memory.
57911         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
57912         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
57913         not xmalloc. Return NULL upon out-of-memory.
57914         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
57915         out-of-memory.
57916         (gl_tree_remove_node_from_tree): New function, extracted from
57917         gl_tree_remove_node.
57918         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
57919         upon out-of-memory.
57920         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
57921         out-of-memory.
57922         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
57923         upon out-of-memory.
57924         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
57925         upon out-of-memory.
57926         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
57927         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
57928         gl_anytree_list1.h before gl_anyavltree_list2.h.
57929         (gl_avltree_list_implementation): Update.
57930         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
57931         gl_anytree_list1.h before gl_anyavltree_list2.h.
57932         (gl_rbtree_list_implementation): Update.
57933         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
57934         Change return type to 'int'. Return -1 upon out-of-memory. Use
57935         __builtin_expect.
57936         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
57937         (gl_avltreehash_list_implementation): Update.
57938         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
57939         (gl_rbtreehash_list_implementation): Update.
57940         * modules/array-list (Depends-on): Remove xalloc.
57941         * modules/carray-list (Depends-on): Likewise.
57942         * modules/linked-list (Depends-on): Likewise.
57943         * modules/linkedhash-list (Depends-on): Likewise.
57944         * modules/avltree-list (Depends-on): Likewise.
57945         * modules/rbtree-list (Depends-on): Likewise.
57946         * modules/avltreehash-list (Depends-on): Likewise.
57947         * modules/rbtreehash-list (Depends-on): Likewise.
57949         * modules/xsublist: New file.
57950         * lib/gl_xsublist.h: New file.
57951         * lib/gl_xsublist.c: New file.
57952         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
57953         (gl_sublist_nx_create): New declaration.
57954         * lib/gl_sublist.c: Don't include xalloc.h.
57955         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
57956         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
57957         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
57958         Change return type to 'int'. Return -1 upon out-of-memory.
57959         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
57960         upon out-of-memory.
57961         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
57962         NULL upon out-of-memory.
57963         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
57964         upon out-of-memory.
57965         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
57966         NULL upon out-of-memory.
57967         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
57968         NULL upon out-of-memory.
57969         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
57970         upon out-of-memory.
57971         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
57972         (gl_sublist_list_implementation): Update.
57973         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
57974         upon out-of-memory.
57975         * modules/sublist (Depends-on): Remove xalloc.
57977         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
57978         * tests/test-carray_list.c: Likewise.
57979         * tests/test-linked_list.c: Likewise.
57980         * tests/test-linkedhash_list.c: Likewise.
57981         * tests/test-avltree_list.c: Likewise.
57982         * tests/test-rbtree_list.c: Likewise.
57983         * tests/test-avltreehash_list.c: Likewise.
57984         * tests/test-rbtreehash_list.c: Likewise.
57985         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
57986         * modules/carray-list-tests (Makefile.am): Likewise.
57987         * modules/linked-list-tests (Makefile.am): Likewise.
57988         * modules/linkedhash-list-tests (Makefile.am): Likewise.
57989         * modules/avltree-list-tests (Makefile.am): Likewise.
57990         * modules/rbtree-list-tests (Makefile.am): Likewise.
57991         * modules/avltreehash-list-tests (Makefile.am): Likewise.
57992         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
57994         * NEWS: Mention the changes.
57996         * lib/clean-temp.c: Include gl_xlist.h.
57997         * modules/clean-temp (Depends-on): Add xlist.
57999         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
58000         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
58002         * tests/test-array_oset.c: Include gl_xlist.h.
58003         * modules/array-oset-tests (Depends-on): Add xlist.
58005         Reported by José E. Marchesi <jemarch@gnu.org>.
58007 2009-12-13  Bruno Haible  <bruno@clisp.org>
58009         Move the malloc checking from module 'oset' to new module 'xoset'.
58010         * modules/xoset: New file.
58011         * lib/gl_xoset.h: New file.
58012         * lib/gl_xoset.c: New file.
58013         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
58014         declarations.
58015         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
58016         (struct gl_oset_implementation): Rename and change methods accordingly.
58017         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
58018         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
58019         'int'. Mark as __warn_unused_result__.
58020         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
58021         gl_oset_create_empty.
58022         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
58023         'int'.
58024         * lib/gl_array_oset.c: Don't include xalloc.h.
58025         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
58026         malloc, not xmalloc.
58027         (grow): Change return type to 'int'. Don't call xalloc_die.
58028         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
58029         to 'int'.
58030         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
58031         'int'.
58032         (gl_array_oset_implementation): Update.
58033         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
58034         gl_tree_create_empty.
58035         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
58036         'int'.
58037         * lib/gl_avltree_oset.c: Don't include xalloc.h.
58038         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
58039         xmalloc.
58040         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
58041         not xmalloc.
58042         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
58043         xmalloc.
58044         (gl_avltree_oset_implementation): Update.
58045         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
58046         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
58047         xmalloc.
58048         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
58049         not xmalloc.
58050         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
58051         xmalloc.
58052         (gl_rbtree_oset_implementation): Update.
58053         * modules/array-oset (Depends-on): Remove xalloc.
58054         * modules/avltree-oset (Depends-on): Likewise.
58055         * modules/rbtree-oset (Depends-on): Likewise.
58056         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
58057         * tests/test-avltree_oset.c: Likewise.
58058         * tests/test-rbtree_oset.c: Likewise.
58059         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
58060         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
58061         * modules/rbtree-oset-tests (Makefile.am): Likewise.
58062         * NEWS: Mention the change.
58064 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
58066         maint.mk: allow a project to override release-prep commands
58067         * top/maint.mk (alpha, beta, stable): Move release-preparatory
58068         commands into a new rule.
58069         (release-prep): New rule.
58070         (release-prep-hook): New overridable variable.
58072 2009-12-13  Bruno Haible  <bruno@clisp.org>
58074         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
58076 2009-12-13  Jim Meyering  <meyering@redhat.com>
58078         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
58079         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
58081 2009-12-12  Bruno Haible  <bruno@clisp.org>
58083         duplocale: Tweak.
58084         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
58086 2009-12-12  Karl Berry  <karl@gnu.org>
58088         * config/srclist.txt (strtoll.c): tab changes, no more sync.
58090 2009-12-12  Bruno Haible  <bruno@clisp.org>
58092         * m4/po.m4: Undo incorrect untabification.
58094 2009-12-12  Bruno Haible  <bruno@clisp.org>
58096         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
58097         * modules/c-strtod (Depends-on): Add locale.
58098         * modules/c-strtold (Depends-on): Likewise.
58100 2009-12-12  Bruno Haible  <bruno@clisp.org>
58102         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
58104 2009-12-11  Eric Blake  <ebb9@byu.net>
58106         setenv: relax requirement in light of POSIX ruling
58107         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
58108         not NULL.
58109         * tests/test-setenv.c (main): Relax test.
58110         * tests/test-unsetenv.c (main): Likewise.
58111         * doc/posix-functions/setenv.texi (setenv): Document this.
58112         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
58114 2009-12-11  Bruno Haible  <bruno@clisp.org>
58116         New module 'fd-safer-flag'.
58117         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
58118         * lib/dup-safer.c (dup_safer_flag): Remove function.
58119         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
58120         * lib/fd-safer.c (fd_safer_flag): Remove function.
58121         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
58122         * modules/cloexec (configure.ac): Drop indicator macro.
58123         * modules/fd-safer-flag: New file.
58124         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
58125         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
58126         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
58128 2009-12-11  Bruno Haible  <bruno@clisp.org>
58130         Tests for module 'nl_langinfo'.
58131         * modules/nl_langinfo-tests: New file.
58132         * tests/test-nl_langinfo.sh: New file.
58133         * tests/test-nl_langinfo.c: New file.
58135         New module 'nl_langinfo'.
58136         * lib/nl_langinfo.c: New file.
58137         * m4/nl_langinfo.m4: New file.
58138         * modules/nl_langinfo: New file.
58139         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
58141 2009-12-11  Bruno Haible  <bruno@clisp.org>
58143         Tests for module 'langinfo'.
58144         * modules/langinfo-tests: New file.
58145         * tests/test-langinfo.c: New file.
58147         New module 'langinfo'.
58148         * lib/langinfo.in.h: New file.
58149         * m4/langinfo_h.m4: New file.
58150         * modules/langinfo: New file.
58151         * doc/posix-headers/langinfo.texi: Mention the new module.
58153 2009-12-11  Bruno Haible  <bruno@clisp.org>
58155         * lib/config.charset: Untabify.
58157 2009-12-11  Bruno Haible  <bruno@clisp.org>
58159         * modules/unistd-safer (configure.ac): Drop indicator macro.
58161 2009-12-11  Bruno Haible  <bruno@clisp.org>
58163         Move pipe2-safer code to its own file.
58164         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
58165         * lib/pipe-safer.c (pipe2_safer): Remove function.
58166         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
58167         (Makefile.am): Add it to lib_SOURCES.
58169 2009-12-10  Bruno Haible  <bruno@clisp.org>
58171         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
58173 2009-12-10  Bruno Haible  <bruno@clisp.org>
58175         Declare which arguments expect non-NULL values, for GCC and clang.
58176         * build-aux/arg-nonnull.h: New file.
58177         * modules/arg-nonnull: New file.
58178         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
58179         (inet_ntop, inet_pton): Use it.
58180         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
58181         (closedir, dirfd, opendir, scandir, alphasort): Use it.
58182         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
58183         (open, openat): Use it.
58184         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
58185         (fnmatch): Use it.
58186         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
58187         (getopt, getopt_long, getopt_long_only): Use it.
58188         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
58189         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
58190         Use it.
58191         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
58192         (iconv_open): Use it.
58193         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
58194         (strtoimax, strtoumax): Use it.
58195         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
58196         (duplocale): Use it.
58197         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
58198         (frexp, frexpl): Use it.
58199         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
58200         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
58201         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
58202         (tsearch, tfind, tdelete, twalk): Use it.
58203         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
58204         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
58205         sigpending): Use it.
58206         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
58207         (posix_spawn, posix_spawnp, posix_spawnattr_init,
58208         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
58209         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
58210         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
58211         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
58212         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
58213         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
58214         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
58215         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
58216         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
58217         Use it.
58218         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
58219         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
58220         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
58221         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
58222         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
58223         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
58224         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
58225         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
58226         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
58227         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
58228         strtoull, unsetenv): Use it.
58229         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
58230         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
58231         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
58232         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
58233         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
58234         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
58235         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
58236         (strcasecmp, strncasecmp): Use it.
58237         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
58238         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
58239         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
58240         rpl_setsockopt): Use it.
58241         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
58242         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
58243         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
58244         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
58245         (gettimeofday): Use it.
58246         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
58247         (times): Use it.
58248         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
58249         (uname): Use it.
58250         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
58251         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
58252         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
58253         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
58254         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
58255         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
58256         unlinkat, write): Use it.
58257         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
58258         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
58259         * lib/argv-iter.h: Include arg-nonnull.h.
58260         (_ATTRIBUTE_NONNULL_): Remove macro.
58261         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
58262         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
58263         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
58264         optimization.
58265         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
58266         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
58267         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
58268         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
58269         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
58270         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
58271         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
58272         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
58273         * modules/arpa_inet (Depends-on): Add arg-nonnull.
58274         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
58275         * modules/dirent (Depends-on): Add arg-nonnull.
58276         (Makefile.am): Insert arg-nonnull.h into dirent.h.
58277         * modules/fcntl-h (Depends-on): Add arg-nonnull.
58278         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
58279         * modules/fnmatch (Depends-on): Add arg-nonnull.
58280         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
58281         * modules/getopt-posix (Depends-on): Add arg-nonnull.
58282         (Makefile.am): Insert arg-nonnull.h into getopt.h.
58283         * modules/glob (Depends-on): Add arg-nonnull.
58284         (Makefile.am): Insert arg-nonnull.h into glob.h.
58285         * modules/iconv_open (Depends-on): Add arg-nonnull.
58286         (Makefile.am): Insert arg-nonnull.h into iconv.h.
58287         * modules/inttypes (Depends-on): Add arg-nonnull.
58288         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
58289         * modules/locale (Depends-on): Add arg-nonnull.
58290         (Makefile.am): Insert arg-nonnull.h into locale.h.
58291         * modules/math (Depends-on): Add arg-nonnull.
58292         (Makefile.am): Insert arg-nonnull.h into math.h.
58293         * modules/netdb (Depends-on): Add arg-nonnull.
58294         (Makefile.am): Insert arg-nonnull.h into netdb.h.
58295         * modules/search (Depends-on): Add arg-nonnull.
58296         (Makefile.am): Insert arg-nonnull.h into search.h.
58297         * modules/signal (Depends-on): Add arg-nonnull.
58298         (Makefile.am): Insert arg-nonnull.h into signal.h.
58299         * modules/spawn (Depends-on): Add arg-nonnull.
58300         (Makefile.am): Insert arg-nonnull.h into spawn.h.
58301         * modules/stdio (Depends-on): Add arg-nonnull.
58302         (Makefile.am): Insert arg-nonnull.h into stdio.h.
58303         * modules/stdlib (Depends-on): Add arg-nonnull.
58304         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
58305         * modules/string (Depends-on): Add arg-nonnull.
58306         (Makefile.am): Insert arg-nonnull.h into string.h.
58307         * modules/strings (Depends-on): Add arg-nonnull.
58308         (Makefile.am): Insert arg-nonnull.h into strings.h.
58309         * modules/sys_socket (Depends-on): Add arg-nonnull.
58310         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
58311         * modules/sys_stat (Depends-on): Add arg-nonnull.
58312         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
58313         * modules/sys_time (Depends-on): Add arg-nonnull.
58314         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
58315         * modules/sys_times (Depends-on): Add arg-nonnull.
58316         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
58317         * modules/sys_utsname (Depends-on): Add arg-nonnull.
58318         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
58319         * modules/time (Depends-on): Add arg-nonnull.
58320         (Makefile.am): Insert arg-nonnull.h into time.h.
58321         * modules/unistd (Depends-on): Add arg-nonnull.
58322         (Makefile.am): Insert arg-nonnull.h into unistd.h.
58323         * modules/wchar (Depends-on): Add arg-nonnull.
58324         (Makefile.am): Insert arg-nonnull.h into wchar.h.
58325         * modules/argv-iter (Depends-on): Add arg-nonnull.
58326         * tests/test-canonicalize.c (null_ptr): New function.
58327         (main): Use it.
58328         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
58329         (main): Use it.
58330         * tests/test-memmem.c (null_ptr): New function.
58331         (main): Use it.
58332         Reported by Jim Meyering.
58334 2009-12-10  Bruno Haible  <bruno@clisp.org>
58336         Use spaces for indentation, not tabs.
58337         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
58338         * m4/*.m4: Untabify.
58339         * build-aux/*.h: Untabify.
58340         * tests/**/*.[hc]: Untabify.
58341         * README: New section "Indent with spaces, not TABs", based on
58342         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
58343         * NEWS: Mention the change.
58345 2009-12-10  Bruno Haible  <bruno@clisp.org>
58347         pty test: Fix link error.
58348         * modules/pty-tests (Makefile.am): Add the default LDADD value to
58349         test_pty_LDADD.
58351 2009-12-07  Simon Josefsson  <simon@josefsson.org>
58353         * modules/pty: New file.
58354         * modules/pty-tests: New file.
58355         * m4/pty.m4: New file.
58356         * tests/test-pty.c: New file.
58357         * doc/glibc-headers/pty.texi: Modified.
58358         * doc/glibc-functions/forkpty.texi: Modified.
58359         * doc/glibc-functions/openpty.texi: Modified.
58361 2009-12-10  Bruno Haible  <bruno@clisp.org>
58363         Avoid syntax error in C++ mode.
58364         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
58366 2009-12-10  Bruno Haible  <bruno@clisp.org>
58368         Use sed with option -e.
58369         * gnulib-tool (func_version, func_emit_copyright_notice,
58370         func_emit_initmacro_end, func_import, func_create_testdir): Pass
58371         option -e to sed.
58372         * modules/link-warning (Makefile.am): Likewise.
58374 2009-12-10  Jim Meyering  <meyering@redhat.com>
58376         mgetgroups: do not write bytes beyond end of malloc'd buffer
58377         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
58378         username, we call getgroups with a one-element-shorter buffer,
58379         but still told it the length was original, max_n_groups.
58381 2009-12-09  Eric Blake  <ebb9@byu.net>
58383         cloexec: relax license
58384         * modules/cloexec (Maintainer): Add myself.
58385         (License): Use LGPL, not GPL.
58387         link-warning: optimize generation
58388         * modules/link-warning (Makefile.am): Reduce process usage.
58390 2009-12-09  Bruno Haible  <bruno@clisp.org>
58392         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
58393         workaround was added on 2009-11-17.
58395 2009-12-09  Jim Meyering  <meyering@redhat.com>
58396             Bruno Haible  <bruno@clisp.org>
58398         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
58399         * modules/link-warning (Makefile.am): Make the comment-removing sed
58400         command more robust in the face of bootstrap-prepended comment lines.
58402 2009-12-09  Bruno Haible  <bruno@clisp.org>
58404         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
58405         most one group.
58407 2009-12-09  Simon Josefsson  <simon@josefsson.org>
58408             Bruno Haible  <bruno@clisp.org>
58410         * build-aux/link-warning.h: Add copyright notice.
58411         * modules/link-warning (Makefile.am): Generate link-warning.h from
58412         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
58413         * NEWS: Mention change in link-warning module.
58414         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
58415         * modules/dirent (Makefile.am): Add dependency to dirent.h.
58416         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
58417         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
58418         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
58419         * modules/math (Makefile.am): Add dependency to math.h.
58420         * modules/search (Makefile.am): Add dependency to search.h.
58421         * modules/signal (Makefile.am): Add dependency to signal.h.
58422         * modules/spawn (Makefile.am): Add dependency to spawn.h.
58423         * modules/stdio (Makefile.am): Add dependency to stdio.h.
58424         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
58425         * modules/string (Makefile.am): Add dependency to string.h.
58426         * modules/strings (Makefile.am): Add dependency to strings.h.
58427         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
58428         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
58429         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
58430         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
58431         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
58432         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
58433         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
58434         * modules/unistd (Makefile.am): Add dependency to unistd.h.
58435         * modules/wchar (Makefile.am): Add dependency to wchar.h.
58437 2009-12-09  Bruno Haible  <bruno@clisp.org>
58439         fchdir: Optimize away rpl_fstat when possible.
58440         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
58441         REPLACE_OPEN_DIRECTORY.
58442         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
58444 2009-12-09  Bruno Haible  <bruno@clisp.org>
58446         * lib/fchdir.c: Update comment.
58448 2009-12-09  Bruno Haible  <bruno@clisp.org>
58450         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
58452 2009-12-08  Eric Blake  <ebb9@byu.net>
58454         fchdir: avoid memory leak on re-registration.
58455         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
58457 2009-12-08  Jim Meyering  <meyering@redhat.com>
58459         init.sh: avoid Solaris 10 /bin/sh portability problem
58460         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
58461         sourced script:
58462           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
58463           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
58464           bar
58465         tests/init.sh relied on that, accepting a --set-path=DIR argument,
58466         and two tests used that idiom.
58467         * tests/init.sh: Update suggested usage comments.
58468         (path_prepend_): New function, to be used in place
58469         of the --src-path=DIR option.
58470         (setup_): Move PATH-prepending code into path_prepend_.
58471         * tests/test-pread.sh: Adapt to new usage.
58472         * tests/test-xalloc-die.sh: Likewise.
58474 2009-12-08  Simon Josefsson  <simon@josefsson.org>
58476         * doc/gnulib.texi (Glibc pty.h): Add.
58477         * doc/glibc-functions/forkpty.texi: Add.
58478         * doc/glibc-functions/openpty.texi: Add.
58479         Suggested by Bruno Haible.
58481 2009-12-08  Eric Blake  <ebb9@byu.net>
58483         fchdir: fix logic bugs
58484         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
58485         * tests/test-fchdir.c (main): Enhance test.
58486         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
58487         is in use.
58489         dup2: fix logic bugs
58490         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
58491         REPLACE_DUP2 to decide when rpl_dup2 is needed.
58492         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
58493         exists.
58494         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
58496 2009-12-07  Eric Blake  <ebb9@byu.net>
58498         unlink: fix m4 detection
58499         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
58501         unistd-safer: add unit test
58502         * modules/unistd-safer-tests: New file.
58503         * tests/test-dup-safer.c: Likewise.
58504         * tests/test-cloexec.c (setmode): Avoid compiler warning.
58505         * tests/test-dup2.c (setmode): Likewise.
58506         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
58508         cloexec: preserve text vs. binary across dup_cloexec
58509         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
58510         mode.
58511         * modules/dup2-tests (Depends-on): Add binary-io.
58512         * modules/cloexec-tests (Depends-on): Likewise.
58513         * tests/test-dup2.c (setmode, is_mode): New helpers.
58514         (main): Add tests that translation mode is preserved.
58515         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
58516         Reported by Bruno Haible.
58518         mgetgroups: reduce duplicate listings
58519         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
58520         resulting array.
58521         * tests/test-chown.h (test_chown): Simplify client.
58522         * tests/test-lchown.h (test_lchown): Likewise.
58524 2009-12-06  Bruno Haible  <bruno@clisp.org>
58526         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
58527         value.
58529 2009-12-06  Bruno Haible  <bruno@clisp.org>
58531         * lib/progname.c: Include stdio.h, stdlib.h.
58532         (set_program_name): Reject a NULL argument.
58534 2009-12-05  Eric Blake  <ebb9@byu.net>
58536         pipe2-safer: new module
58537         * modules/pipe2-safer: New file.
58538         * lib/unistd-safer.h (pipe2_safer): New prototype.
58539         * lib/unistd--.h (pipe2): New wrapper.
58540         * lib/pipe-safer.c (pipe2_safer): New function.
58541         * modules/pipe (Depends-on): Add pipe2-safer.
58542         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
58544         stdlib-safer: preserve cloexec flag for mkostemp[s]
58545         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
58546         fd_safer_flag.
58548         unistd-safer: allow preservation of cloexec status via flag
58549         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
58550         prototypes.
58551         * lib/dup-safer.c (dup_safer_flag): New function.
58552         * lib/fd-safer.c (fd_safer_flag): Likewise.
58553         * modules/cloexec (configure.ac): Set witness.
58555         test-dup2: enhance test
58556         * modules/dup2-tests (Depends-on): Add cloexec.
58557         * tests/test-dup2.c (main): Enhance test.
58559         cloexec: add dup_cloexec
58560         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
58561         header and comments.
58562         * lib/cloexec.c (set_cloexec_flag): Add comments.
58563         (dup_cloexec): New function, with mingw implementation borrowed
58564         from...
58565         * lib/w32spawn.h (dup_noinherit): ...here.
58566         * modules/execute (Depends-on): Add cloexec.
58567         * modules/pipe (Depends-on): Likewise.
58568         * modules/cloexec (Depends-on): Add dup2.
58569         * modules/cloexec-tests (Files): New file.
58570         * tests/test-cloexec.c: Likewise.
58572         test-xalloc-die: fix test for mingw
58573         * modules/xalloc-die-tests (Files): Add tests/init.sh.
58574         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
58575         directory and .exe suffix off argv[0] output.
58577         test-fseeko: fix test for mingw
58578         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
58579         than undefining fseek, so test will pass on mingw.
58581 2009-12-05  Bruno Haible  <bruno@clisp.org>
58583         * lib/progname.h (set_program_name): Clarify specification.
58584         * lib/progname.c (set_program_name): Likewise.
58585         Reported by Jim Meyering.
58587 2009-12-05  Jim Meyering  <meyering@redhat.com>
58589         maint.mk: backslash-escape parens in default regexp
58590         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
58591         backslash-escape the literal parentheses.
58593         maint.mk: news-date-check: use grep -E
58594         * top/maint.mk (today): Define a Make variable, not a...
58595         (news-date-check): ...shell variable.
58596         (news-date-regexp): Use the Make variable.
58597         Use grep's -E option.  Change the failing diagnostic to mention
58598         the variable, $(news-date-regexp).
58600 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
58602         maintainer-makefile: allow customization of NEWS entry format
58603         * top/maint.mk (news-date-regexp): New overridable variable.
58604         (news-date-check): Use it.
58606 2009-12-04  Eric Blake  <ebb9@byu.net>
58608         mgetgroups: add xgetgroups, and avoid ENOSYS failures
58609         * lib/mgetgroups.h (xgetgroups): New prototype.
58610         * lib/mgetgroups.c (xgetgroups): New wrapper.
58611         (mgetgroups): Handle ENOSYS.
58612         * modules/mgetgroups (Depends-on): Add realloc.
58613         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
58615         mgetgroups: avoid argument promotion issues with -1
58616         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
58617         for invalid gid_t.
58618         * tests/test-chown.h (getegid, test_chown): Likewise.
58619         * tests/test-lchown.h (getegid, test_lchown): Likewise.
58621 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
58623         exclude: Fix header file problems.
58624         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
58626 2009-12-01  Jim Meyering  <meyering@redhat.com>
58628         fts: fts_open: do not let an empty string cause immediate failure
58629         This is required in support of GNU rm, for which the command
58630         "rm A '' B" must process and remove both A and B, in spite of
58631         the empty string argument.
58632         * lib/fts.c (fts_open): Do not let the presence of an empty string
58633         cause fts_open to fail immediately.  Most fts-using tools must be
58634         able to process all arguments, in order, and can be expected to
58635         diagnose such arguments themselves.
58637 2009-11-30  Eric Blake  <ebb9@byu.net>
58639         utimens: fix compilation error
58640         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
58641         Declare variable at right scope.
58643 2009-11-29  Jim Meyering  <meyering@redhat.com>
58645         bootstrap: handle perl-5.11's changed --version output
58646         * build-aux/bootstrap (get_version): Handle perl separately,
58647         since perl-5.11's --version output is different.
58649 2009-11-28  Jim Meyering  <meyering@redhat.com>
58651         userspec: depend on the inttostr module, too
58652         * modules/userspec (Depends-on): Add inttostr.
58654         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
58655         * lib/userspec.c (parse_with_separator): Do not accept a user ID
58656         number of MAXUID when it evaluates to (uid_t) -1.
58657         Likewise for group ID.  Reported by Matt McCutchen in
58658         <http://savannah.gnu.org/bugs/?28113>
58660         userspec: reformat to use spaces, not TABs
58661         * lib/userspec.c: Expand TABs to spaces.
58662         Add Emacs' "indent-tabs-mode: nil" hint.
58664 2009-11-27  Eric Blake  <ebb9@byu.net>
58666         getopt-gnu: flush out another BSD bug
58667         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
58668         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
58669         flush out BSD bug.
58670         * tests/test-getopt.h (test_getopt): End lists with NULL.
58671         * tests/test-getopt_long.h (test_getopt_long): Likewise.
58672         (test_getopt_long_posix): Enhance test.
58673         * modules/getopt-posix-tests (Depends-on): Add stdbool.
58674         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
58675         getopt-gnu.
58676         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
58677         Likewise.
58679 2009-11-27  Simon Josefsson  <simon@josefsson.org>
58681         * modules/idpriv-droptemp-tests (Notice): Fix text.
58683 2009-11-27  Jim Meyering  <meyering@redhat.com>
58685         test-xalloc-die: avoid spurious failure due to libtool argv difference
58686         In a libtool-enabled project, this test would fail due to a difference
58687         in the emitted program name, e.g.,
58688         -test-xalloc-die: memory exhausted
58689         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
58690         Use program to avoid that.
58691         * modules/xalloc-die-tests (Depends-on): Add progname.
58692         * tests/test-xalloc-die.c: Include progname.h".
58693         (program_name): Remove decl.
58694         (main): Call set_program_name.
58695         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
58697 2009-11-26  Richard Jones  <rjones@redhat.com>
58699         w32sock: leave win32 error in place.
58700         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
58702 2009-11-26  Eric Blake  <ebb9@byu.net>
58704         init.sh: suggest to use skip_ and fail_ functions in comments
58705         * tests/init.sh: Add a sentence.
58707 2009-11-25  Bruno Haible  <bruno@clisp.org>
58709         init.sh: add documentation in comments
58710         * tests/init.sh: Add some developer and user documentation.
58712 2009-11-26  Jim Meyering  <meyering@redhat.com>
58714         init.sh: accommodate even those who specify bogus srcdir manually
58715         * tests/init.sh: Normally, srcdir is guaranteed by automake and
58716         configure-time tests to be sanitized, so that there is no need to
58717         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
58718         (with no double quotes) suffices.  However, since tests may be
58719         invoked manually, and since you may explicitly set srcdir to the
58720         name of a directory containing spaces, do quote its uses here.
58721         * tests/test-pread.sh: Likewise.
58722         Suggested by Bruno Haible.
58724         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
58725         * tests/test-pread.sh: Write no data into the pipe, because
58726         test-pread actually reads none.  This avoids a diagnostic,
58727         "bash: echo: write error: Broken pipe", that arises in the unusual
58728         event something is ignoring SIGPIPE, and might be interpreted
58729         as some sort of failure.  Reported by Bruno Haible.
58731 2009-11-25  Jim Meyering  <meyering@redhat.com>
58733         test-pread: cover failure with ESPIPE and EINVAL
58734         * tests/test-pread.c (main): Test for failure, too.
58735         * tests/test-pread.sh: Invoke with stdin on a pipe.
58736         Suggested by Eric Blake.
58738         pread: improvement and fix
58739         * modules/pread (Depends-on): Depend on lseek, for portability to
58740         e.g., mingw.  Suggested by Eric Blake.
58741         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
58743         unistd.in.h: correct declaration of pread
58744         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
58745         Reported by Richard W.M. Jones.
58747         test-pread.sh: distribute the test script
58748         * modules/pread-tests (Files): Include test-pread.sh.
58750         test-pread.sh: clean up
58751         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
58752         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
58753         That is unnecessary, since it's always ".".
58754         Suggestion from Eric Blake.
58756         test-pread.sh: make executable
58757         * tests/test-pread.sh: Set executable bit.
58758         Reported by Eric Blake.
58760         correct typo in test-pread.sh
58761         * tests/test-pread.sh: Add #! line.
58763         test pread
58764         * tests/test-pread.c: New file.
58765         * tests/test-pread.sh: Likewise.
58766         * modules/pread-tests: Likewise.
58768         pread: new module
58769         * modules/pread: New file.
58770         * lib/unistd.in.h (pread): Define/declare.
58771         * lib/pread.c (pread): New file.
58772         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
58773         * modules/unistd (Makefile.am): Substitute witnesses.
58774         * doc/posix-functions/pread.texi (pread): Update.
58775         * MODULES.html.sh: Add pread.
58777 2009-11-25  Jim Meyering  <meyering@redhat.com>
58779         tests/init.sh: new file to be used via most *.sh tests
58780         * tests/init.sh: New file.
58782 2009-11-25  Eric Blake  <ebb9@byu.net>
58784         utimens: work around older Linux failure with symlinks
58785         * lib/utimens.c (lutimensat_works_really): New variable.
58786         (fdutimens, lutimens): Use it to manage kernels that support
58787         nanosecond times on files, but not on symlinks.
58788         Reported by Ondřej Vašík.
58790         utimes: fix configure grammar
58791         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
58793 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
58795         regex: Fix fastmap for multibyte character ranges.
58796         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
58797         characters when a multibyte character range is included.
58799 2009-11-22  Andy Wingo  <wingo@pobox.com>
58801         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
58802         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
58804 2009-11-24  Bruno Haible  <bruno@clisp.org>
58806         doc: Most *_l functions exist in MacOS X 10.5.
58807         * doc/posix-functions/duplocale.texi: Update platforms list.
58808         * doc/posix-functions/freelocale.texi: Likewise.
58809         * doc/posix-functions/newlocale.texi: Likewise.
58810         * doc/posix-functions/uselocale.texi: Likewise.
58811         * doc/posix-functions/isalnum_l.texi: Likewise.
58812         * doc/posix-functions/isalpha_l.texi: Likewise.
58813         * doc/posix-functions/isblank_l.texi: Likewise.
58814         * doc/posix-functions/iscntrl_l.texi: Likewise.
58815         * doc/posix-functions/isdigit_l.texi: Likewise.
58816         * doc/posix-functions/isgraph_l.texi: Likewise.
58817         * doc/posix-functions/islower_l.texi: Likewise.
58818         * doc/posix-functions/isprint_l.texi: Likewise.
58819         * doc/posix-functions/ispunct_l.texi: Likewise.
58820         * doc/posix-functions/isspace_l.texi: Likewise.
58821         * doc/posix-functions/isupper_l.texi: Likewise.
58822         * doc/posix-functions/iswalnum_l.texi: Likewise.
58823         * doc/posix-functions/iswalpha_l.texi: Likewise.
58824         * doc/posix-functions/iswblank_l.texi: Likewise.
58825         * doc/posix-functions/iswcntrl_l.texi: Likewise.
58826         * doc/posix-functions/iswctype_l.texi: Likewise.
58827         * doc/posix-functions/iswdigit_l.texi: Likewise.
58828         * doc/posix-functions/iswgraph_l.texi: Likewise.
58829         * doc/posix-functions/iswlower_l.texi: Likewise.
58830         * doc/posix-functions/iswprint_l.texi: Likewise.
58831         * doc/posix-functions/iswpunct_l.texi: Likewise.
58832         * doc/posix-functions/iswspace_l.texi: Likewise.
58833         * doc/posix-functions/iswupper_l.texi: Likewise.
58834         * doc/posix-functions/iswxdigit_l.texi: Likewise.
58835         * doc/posix-functions/isxdigit_l.texi: Likewise.
58836         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
58837         * doc/posix-functions/strcasecmp_l.texi: Likewise.
58838         * doc/posix-functions/strcoll_l.texi: Likewise.
58839         * doc/posix-functions/strfmon_l.texi: Likewise.
58840         * doc/posix-functions/strftime_l.texi: Likewise.
58841         * doc/posix-functions/strncasecmp_l.texi: Likewise.
58842         * doc/posix-functions/strxfrm_l.texi: Likewise.
58843         * doc/posix-functions/tolower_l.texi: Likewise.
58844         * doc/posix-functions/toupper_l.texi: Likewise.
58845         * doc/posix-functions/towctrans_l.texi: Likewise.
58846         * doc/posix-functions/towlower_l.texi: Likewise.
58847         * doc/posix-functions/towupper_l.texi: Likewise.
58848         * doc/posix-functions/wcscoll_l.texi: Likewise.
58849         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
58850         * doc/posix-functions/wctrans_l.texi: Likewise.
58851         * doc/posix-functions/wctype_l.texi: Likewise.
58852         * doc/glibc-functions/strptime_l.texi: Likewise.
58853         * doc/glibc-functions/strtod_l.texi: Likewise.
58854         * doc/glibc-functions/strtof_l.texi: Likewise.
58855         * doc/glibc-functions/strtol_l.texi: Likewise.
58856         * doc/glibc-functions/strtold_l.texi: Likewise.
58857         * doc/glibc-functions/strtoll_l.texi: Likewise.
58858         * doc/glibc-functions/strtoul_l.texi: Likewise.
58859         * doc/glibc-functions/strtoull_l.texi: Likewise.
58860         * doc/glibc-functions/wcsftime_l.texi: Likewise.
58861         * doc/glibc-functions/wcstod_l.texi: Likewise.
58862         * doc/glibc-functions/wcstof_l.texi: Likewise.
58863         * doc/glibc-functions/wcstol_l.texi: Likewise.
58864         * doc/glibc-functions/wcstold_l.texi: Likewise.
58865         * doc/glibc-functions/wcstoll_l.texi: Likewise.
58866         * doc/glibc-functions/wcstoul_l.texi: Likewise.
58867         * doc/glibc-functions/wcstoull_l.texi: Likewise.
58869 2009-11-24  Bruno Haible  <bruno@clisp.org>
58871         duplocale: Fix logic bug.
58872         * lib/duplocale.c: Don't include <langinfo.h>.
58873         (_NL_LOCALE_NAME): Remove macro.
58874         (rpl_duplocale): Use setlocale instead of nl_langinfo.
58875         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
58877 2009-11-23  Jim Meyering  <meyering@redhat.com>
58879         test-update-copyright: don't hard-code /usr/bin/perl
58880         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
58881         perl to print the current year.  Gilles Espinasse reported that
58882         the replaced use of perl was hard-coded as /usr/bin/perl.
58884 2009-11-23  Bruno Haible  <bruno@clisp.org>
58886         duplocale: Add support for glibc 2.3.x.
58887         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
58889 2009-11-22  Bruno Haible  <bruno@clisp.org>
58891         vasnprintf: Tiny optimization.
58892         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
58893         MacOS X.
58895 2009-11-22  Bruno Haible  <bruno@clisp.org>
58897         Tests for module 'duplocale'.
58898         * modules/duplocale-tests: New file.
58899         * tests/test-duplocale.c: New file.
58901         New module 'duplocale'.
58902         * m4/duplocale.m4: New file.
58903         * lib/locale.in.h (duplocale): New declaration.
58904         * lib/duplocale.c: New file.
58905         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
58906         gl_LOCALE_H_DEFAULTS): New macros.
58907         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
58908         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
58909         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
58910         REPLACE_DUPLOCALE.
58911         * modules/duplocale: New file.
58912         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
58914 2009-11-22  Bruno Haible  <bruno@clisp.org>
58916         * modules/locale-tests (configure.ac): Test for newlocale function.
58917         * tests/test-locale.c: When the system has extended locale functions,
58918         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
58920         locale: Make locale_t available when possible.
58921         * lib/locale.in.h: Include <xlocale.h> when it exists.
58922         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
58923         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
58924         * modules/locale (Depends-on): Add extensions.
58925         (Makefile.am): Also substitute HAVE_XLOCALE_H.
58926         * doc/posix-headers/locale.texi: Document the problem with locale_t.
58928 2009-11-22  Bruno Haible  <bruno@clisp.org>
58930         Add comments.
58931         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
58932         invocation.
58933         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
58934         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
58935         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
58937 2009-11-22  Bruno Haible  <bruno@clisp.org>
58939         error: account for the possibility of freopen (stdout).
58940         * lib/error.c: Include <unistd.h>.
58941         (flush_stdout): New function, extracted from error and error_at_line.
58942         Determine stdout's fd dynamically.
58943         (error, error_at_line): Invoke flush_stdout.
58944         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
58945         * modules/error (Depends-on): Add unistd.
58947 2009-11-22  Bruno Haible  <bruno@clisp.org>
58949         diffseq: Add comment.
58950         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
58952 2009-11-22  Jim Meyering  <meyering@redhat.com>
58954         c-stack: avoid defining an unused static function
58955         * lib/c-stack.c (find_stack_direction): Do not define this function
58956         when it will not be used.
58958         diffseq: avoid spurious gcc warnings
58959         * lib/diffseq.h (IF_LINT2): Define.
58960         (compareseq): Use it to initialize two members of "part".
58961         This avoids two used-uninitialized warnings.
58963 2009-11-21  Jim Meyering  <meyering@redhat.com>
58965         c-stack: avoid "ignoring return value of `write'" warning
58966         * lib/c-stack.c: Include "ignore-value.h".
58967         (die): Explicitly ignore each write return value.
58968         * modules/c-stack (Depends-on): Add ignore-value.
58970 2009-11-21  Bruno Haible  <bruno@clisp.org>
58972         diffseq: reduce scope of variable 'best'.
58973         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
58974         variable, earlier used for two different purposes.
58976 2009-11-21  Jim Meyering  <meyering@redhat.com>
58978         diffseq: remove useless assignment to "best"
58979         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
58980         assignment.  At that point "best" is already guaranteed to be zero.
58982 2009-11-20  Eric Blake  <ebb9@byu.net>
58984         build: mention ftp redirector in release announcements
58985         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
58986         values that used to come from cfg.mk; mention FTP redirect URL.
58987         * build-aux/announce-gen: Mention the mirror list.
58988         Suggested by Karl Berry.
58990         nanosleep: improve port to mingw
58991         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
58992         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
58993         LIB_NANOSLEEP, but only when needed.
58994         * modules/select (Link): Document LIBSOCKET.
58995         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
58996         enough.
58998         nanosleep: work around cygwin bug
58999         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
59000         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
59001         bug.
59002         (getnow): Delete, not needed.
59003         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
59004         LIB_CLOCK_GETTIME.
59005         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
59006         clock-time, gettime.
59007         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
59008         bug.
59009         * modules/nanosleep-tests: New test.
59010         * tests/test-nanosleep.c: New file.
59012         sleep: work around cygwin bug
59013         * lib/sleep.c (rpl_sleep): Work around the bug.
59014         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
59015         (gl_PREREQ_SLEEP): Delete unused macro.
59016         * modules/sleep (Depends-on): Add verify.
59017         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
59018         * modules/unistd (Makefile.am): Substitute witness.
59019         * lib/unistd.in.h (sleep): Update prototype.
59020         * doc/posix-functions/sleep.texi (sleep): Document the bug.
59021         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
59022         * modules/sleep-tests (Depends-on): Check for alarm.
59024 2009-11-20  Jim Meyering  <meyering@redhat.com>
59026         maint.mk: improve sc_prohibit_magic_number_exit
59027         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
59028         so it does not match uses like System.exit(1).
59029         Add comments showing how to correct all offenders.
59031 2009-11-19  Eric Blake  <ebb9@byu.net>
59033         xalloc-die-tests: add missing library
59034         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
59036         test-xvasprintf: silence compiler warnings
59037         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
59038         empty string from gcc.
59040 2009-11-19  Jim Meyering  <meyering@redhat.com>
59042         xfreopen: new module, from coreutils
59043         * modules/xfreopen: New module.
59044         * lib/xfreopen.c: New file.
59045         * lib/xfreopen.h: New file.
59046         * MODULES.html.sh (File stream based Input/Output"): Add it.
59048 2009-11-19  Eric Blake  <ebb9@byu.net>
59050         manywarnings: depend on warnings
59051         * modules/manywarnings (Depends-on): Add warnings.
59053         build: avoid compiler warnings
59054         * lib/select.c (rpl_select): Delete unused variable.
59055         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
59057 2009-11-18  Eric Blake  <ebb9@byu.net>
59059         tests: avoid false negative with --with-packager
59060         * tests/test-version-etc.sh: Discard packager information.
59061         * tests/test-argp-version-etc-1.sh: Likewise.
59062         Reported by Mike Frysinger.
59064         utimens: fix regression on Solaris
59065         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
59066         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
59067         can only change fd timestamps via futimesat.  Instead, use an
59068         additional witness macro to avoid BSD bug.
59069         Reported by Jim Meyering.
59071 2009-11-17  Eric Blake  <ebb9@byu.net>
59073         usleep: use it to simplify tests
59074         * modules/stat-time-tests (Depends-on): Add usleep.
59075         (configure.ac): Drop usleep check.
59076         * modules/chown-tests (Depends-on, configure.ac): Likewise.
59077         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
59078         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
59079         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
59080         * modules/openat-tests (Depends-on, configure.ac): Likewise.
59081         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
59082         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
59083         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
59084         Likewise.
59085         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
59086         * tests/test-lchown.h (nap): Likewise.
59087         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
59088         * tests/test-stat-time.c (nap): Likewise.
59089         * tests/test-utimens-common.h (nap): Update comments.
59091         usleep: new module
59092         * modules/usleep: New file.
59093         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
59094         * lib/usleep.c (usleep): Likewise.
59095         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
59096         * modules/unistd (Makefile.am): Substitute witnesses.
59097         * lib/unistd.in.h (usleep): Add declaration.
59098         * doc/pastposix-functions/usleep.texi (usleep): Document this.
59099         * MODULES.html.sh (Date and time): Likewise.
59100         * modules/usleep-tests (Depends-on): New test.
59101         * tests/test-usleep.c: New file.
59103         chown: work around OpenBSD bug
59104         * lib/chown.c (rpl_chown): Work around the bug.
59105         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
59106         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
59107         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
59108         * modules/chown (Depends-on): Add stdbool.
59109         * modules/lchown (Depends-on): Likewise.
59110         * doc/posix-functions/chown.texi (chown): Document the bug.
59111         * doc/posix-functions/lchown.texi (lchown): Likewise.
59112         * tests/test-lchown.h (test_chown): Relax test.
59114         mkstemp: avoid conflict with C++ keyword template
59115         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
59116         * lib/mkostemp.c (mkostemp): Likewise.
59117         * lib/mkostemps.c (mkostemps): Likewise.
59118         * lib/mkstemp.c (mkstemp): Likewise.
59119         * lib/mkstemps.c (mkstemps): Likewise.
59121         xalloc-die-tests: optimize
59122         * tests/test-xalloc-die.sh: Reduce number of processes.
59124 2009-11-17  Simon Josefsson  <simon@josefsson.org>
59126         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
59127         patch from ludo@gnu.org (Ludovic Courtès).
59129 2009-11-17  Jim Meyering  <meyering@redhat.com>
59131         version-etc: use proper license string
59132         * modules/version-etc (License): Use LGPL, not LGPLv3+.
59133         * modules/version-etc-fsf: Likewise.
59135 2009-11-17  Simon Josefsson  <simon@josefsson.org>
59137         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
59138         printed to stdout.  Deal with EOL differences.
59140 2009-11-17  Eric Blake  <ebb9@byu.net>
59142         unsetenv: work around Solaris bug
59143         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
59144         * lib/unsetenv.c (rpl_unsetenv): Work around it.
59145         Reported by Jim Meyering.
59147         vasnprintf: avoid compiler warnings
59148         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
59149         variables.
59150         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
59152 2009-11-17  Simon Josefsson  <simon@josefsson.org>
59154         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
59155         settings since xalloc-die is no longer the self test,
59156         xalloc-die.sh is.
59158 2009-11-17  Jim Meyering  <meyering@redhat.com>
59160         test-xalloc-die.sh: make the code agree with the commit log
59161         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
59162         at the end, just in case you happen to have a test-xalloc-die
59163         program in some other PATH directory.
59165         test-xalloc-die.sh: fix a portability bug
59166         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
59167         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
59168         Otherwise, argv[0] (as often seen in diagnostics) would be too
59169         system-dependent, sometimes with, and sometimes without the leading "./".
59171         version-etc-fsf: relax license to LGPLv3+
59172         * modules/version-etc-fsf (License): Relax license.
59174 2009-11-16  Eric Blake  <ebb9@byu.net>
59176         xalloc-die-tests: avoid printing null pointer
59177         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
59178         shell script.
59179         * tests/test-xalloc-die.c (program_name): Declare.
59180         * tests/test-xalloc-die.sh (tmpfiles): New file.
59182         setenv, unsetenv: work around various bugs
59183         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
59184         (setenv) [HAVE_SETENV]: Work around bugs.
59185         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
59186         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
59187         for bugs.
59188         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
59189         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
59190         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
59191         * modules/stdlib (Makefile.am): Update substitutions.
59192         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
59193         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
59194         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
59195         * modules/setenv-tests: New test.
59196         * modules/unsetenv-tests: Likewise.
59197         * tests/test-setenv.c: New file.
59198         * tests/test-unsetenv.c: Likewise.
59200 2009-11-16  Jim Meyering  <meyering@redhat.com>
59202         version-etc: relax license to LGPLv3+
59203         * modules/version-etc (License): Relax license.
59205         better AC_REQUIRE expanded-before-required-warning avoidance
59206         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
59207         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
59208         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
59209         which is no longer needed.
59211 2009-11-16  Eric Blake  <ebb9@byu.net>
59213         test-freading: clean up temporary file
59214         * tests/test-freading.c (main): Remove file on success, and use
59215         ASSERT more liberally.
59216         Reported by Jim Meyering.
59218 2009-11-16  Jim Meyering  <meyering@redhat.com>
59220         avoid new AC_REQUIRE expanded-before-required warnings
59221         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
59222         merely using it.
59223         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
59224         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
59226 2009-11-15  Simon Josefsson  <simon@josefsson.org>
59228         * tests/test-xalloc-die.c: New file.
59229         * modules/xalloc-die-tests: New file.
59230         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
59231         XFAIL_TESTS so it can be appended by modules.
59233 2009-11-15  Simon Josefsson  <simon@josefsson.org>
59235         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
59236         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
59238 2009-11-14  Eric Blake  <ebb9@byu.net>
59240         fnmatch: avoid compiler warning
59241         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
59242         to silence compiler warning about mismatch signedness in ?:.
59243         Reported by Robert Millan.
59245         intprops: add double-inclusion guard
59246         * lib/intprops.h: Allow idempotent includes.
59247         Suggested by Bruce Korb.
59249         openat: detect Solaris fchownat bug
59250         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
59251         penalizing glibc chownat when only lchownat is broken.
59252         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
59253         trailing slash bugs.
59254         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
59255         * modules/openat-tests (Files): Include more files.
59256         (Depends-on): Add mgetgroups, sleep, stat-time.
59257         (configure.ac): Add additional checks.
59258         (Makefile.am): Build new test.
59259         * tests/test-fchownat.c: New file.
59261         lchown: detect Solaris and FreeBSD bug
59262         * lib/lchown.c (rpl_lchown): Work around bug.
59263         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
59264         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
59265         * modules/unistd (Makefile.am): Populate it.
59266         * lib/unistd.in.h (lchown): Update declaration.
59267         * doc/posix-functions/lchown.texi (lchown): Document the bug.
59268         * modules/lchown-tests: New file.
59269         * tests/test-lchown.h (test_lchown): Likewise.
59270         * tests/test-lchown.c (main): Likewise.
59272         chown: detect Solaris and FreeBSD bug
59273         * lib/chown.c (rpl_chown): Work around bug.
59274         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
59275         (gl_PREREQ_CHOWN): Delete.
59276         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
59277         * modules/unistd (Makefile.am): Populate it.
59278         * lib/unistd.in.h (chown): Update declaration.
59279         * lib/lchown.c (chown): Update client.
59280         * modules/lchown (Depends-on): Add lstat.
59281         * doc/posix-functions/chown.texi (chown): Document the bug.
59282         * doc/posix-functions/getgroups.texi (getgroups): Document
59283         getgroups pitfall.
59284         * modules/chown-tests: New file.
59285         * tests/test-chown.h (test_chown): Likewise.
59286         * tests/test-chown.c (main): Likewise.
59288 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
59290         gnulib-tool: correctly detect absence of m4 directories
59291         * gnulib-tool: Avoid extra newline on data passed to wc -l.
59293 2009-11-14  Jim Meyering  <meyering@redhat.com>
59295         maint.mk: Prohibit inclusion of "xalloc.h" without use.
59296         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
59298 2009-11-14  John W. Eaton  <jwe@gnu.org>
59300         strftime.h: wrap function declaration in extern "C" block
59301         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
59303 2009-11-13  Eric Blake  <ebb9@byu.net>
59305         getgroups: avoid compiler warning
59306         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
59308         getgroups: work around FreeBSD bug
59309         * lib/getgroups.c (rpl_getgroups): Work around the bug.
59310         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
59311         * doc/posix-functions/getgroups.texi (getgroups): Document it.
59312         * tests/test-getgroups.c (main): Fix buffer overrun.
59314         getgroups: avoid compilation failure
59315         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
59316         * modules/getgroups (Depends-on): Add stdint.
59318 2009-11-13  Jim Meyering  <meyering@redhat.com>
59320         test-getgroups: avoid compilation failure
59321         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
59323 2009-11-13  Eric Blake  <ebb9@byu.net>
59325         mgetgroups: new module, taken from coreutils
59326         * modules/mgetgroups: New file.
59327         * lib/mgetgroups.h: Likewise.
59328         * lib/mgetgroups.c (mgetgroups): Likewise.
59329         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
59330         * MODULES.html.sh (Users and groups): Mention it.
59332         getgroups: don't expose GETGROUPS_T to user
59333         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
59334         an element at a time if GETGROUPS_T is wrong size.
59335         * lib/getugroups.h (getugroups): Change signature.
59336         * lib/unistd.in.h (getgroups): Likewise.
59337         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
59338         signature needs fixing.
59339         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
59340         AC_TYPE_GETGROUPS.
59341         * modules/group-member (Depends-on): Add getgroups.
59342         * lib/group-member.c (group_info, get_group_info): Use gid_t.
59343         (group_member): Rely on getgroups replacement.
59344         * lib/getugroups.c (getugroups): Use gid_t.
59345         * tests/test-getgroups.c (main): Likewise.
59346         * NEWS: Mention the signature change.
59347         * doc/posix-functions/getgroups.texi (getgroups): Mention the
59348         problem with signature.
59349         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
59350         GETGROUPS_T is still useful for setgroups.
59352         getgroups, getugroups: provide stubs for mingw
59353         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
59354         * lib/getugroups.c (getugroups): Likewise.
59355         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
59356         function.  Modernize replacement scheme.
59357         (gl_PREREQ_GETGROUPS): Delete.
59358         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
59359         * modules/getgroups (configure.ac): Declare witness.
59360         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
59361         * modules/unistd (Depends-on): Substitute witness.
59362         * lib/unistd.in.h (getgroups): Declare replacement.
59364         getgroups: avoid calling exit
59365         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
59366         drop xalloc.
59367         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
59368         dependencies.
59369         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
59370         exiting, in the rare case of malloc failure.
59372         getgroups: fix logic error
59373         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
59374         has more than 20 groups.
59375         * modules/getgroups-tests: New test.
59376         * tests/test-getgroups.c: New file.
59378 2009-11-13  Simon Josefsson  <simon@josefsson.org>
59380         * tests/test-base64.c: Improve.
59382 2009-11-13  Simon Josefsson  <simon@josefsson.org>
59384         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
59385         Blake <ebb9@byu.net>.
59387 2009-11-13  Simon Josefsson  <simon@josefsson.org>
59389         * tests/test-xvasprintf.c: Add %s%s related checks.
59391 2009-11-12  Eric Blake  <ebb9@byu.net>
59393         version-etc: match standards.texi style
59394         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
59395         and use <> only for URLs.
59397 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
59399         fts: do not fail on a submount during traversal
59400         * lib/fts.c (fts_build): Read the stat info again after opening
59401         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
59402         Original report at http://bugzilla.redhat.com/501848.
59404 2009-11-12  Jim Meyering  <meyering@redhat.com>
59406         bootstrap: sync from coreutils
59407         * build-aux/bootstrap (bootstrap_epilogue): New function.
59408         Use git_modules_config in one more place.  This make bootstrap's
59409         --gnulib-srcdir option more useful for testing.
59411         bootstrap: generalize autoheader check
59412         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
59413         AC_CONFIG_HEADERS.
59415 2009-11-11  Eric Blake  <ebb9@byu.net>
59417         mkfifoat: use new modules for Solaris and BSD bugs
59418         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
59419         * lib/mkfifoat.c (mknodat): Split...
59420         * lib/mknodat.c (mknodat): ...into new file.
59421         * modules/mkfifoat (Files): Ship new file.
59422         (Depends-on): Add mkfifo, mknod.
59423         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
59424         (Depends-on): Add symlink.
59425         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
59426         redundant with test_mkfifo.h.
59427         (do_mkfifoat, do_mknodat): New helpers.
59429         mknod: new module
59430         * modules/mknod: New file.
59431         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
59432         * lib/mknod.c (mknod): Likewise.
59433         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
59434         defaults.
59435         * modules/sys_stat (Makefile.am): Substitute them.
59436         * lib/sys_stat.in.h (mknod): Declare replacement.
59437         * MODULES.html.sh (Support for systems lacking POSIX:2008):
59438         Document it.
59439         * doc/posix-functions/mknod.texi (mknod): Likewise.
59440         * modules/mknod-tests: New test.
59441         * tests/test-mknod.c: Likewise.
59443         mkfifo: new module
59444         * modules/mkfifo: New file.
59445         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
59446         * lib/mkfifo.c (mkfifo): Likewise.
59447         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
59448         defaults.
59449         * modules/sys_stat (Makefile.am): Substitute them.
59450         * lib/sys_stat.in.h (mkfifo): Declare replacement.
59451         * MODULES.html.sh (Support for systems lacking POSIX:2008):
59452         Document it.
59453         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
59454         * modules/mkfifo-tests: New test.
59455         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
59456         from test-mkfifoat.c.
59457         * tests/test-mkfifo.c: New file.
59459         readlink: detect FreeBSD bug
59460         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
59461         slash on symlink.
59462         * doc/posix-functions/readlink.texi (readlink): Document the bug.
59463         * tests/test-readlink.h (test_readlink): Enhance test.
59465         symlink: detect FreeBSD bug
59466         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
59467         slash on symlink.
59468         * doc/posix-functions/symlink.texi (symlink): Document the bug.
59469         * tests/test-symlink.h (test_symlink): Enhance test.
59471 2009-11-10  Eric Blake  <ebb9@byu.net>
59473         link: detect FreeBSD bug
59474         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
59475         symlink.
59476         * doc/posix-functions/link.texi (link): Document the bug.
59477         * tests/test-link.h (test_link): Enhance test.
59478         * tests/test-linkat.c (main): Update caller.
59480         unlink, remove: detect FreeBSD bug
59481         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
59482         slash on symlink.
59483         * doc/posix-functions/unlink.texi (unlink): Document the bug.
59484         * doc/posix-functions/remove.texi (remove): Likewise.
59485         * tests/test-unlink.h (test_unlink): Enhance test.
59486         * tests/test-remove.c (main): Likewise.
59488 2009-11-09  Eric Blake  <ebb9@byu.net>
59490         rename: detect FreeBSD bug
59491         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
59492         slash on symlink.
59493         * modules/renameat-tests (Depends-on): Add filenamecat.
59494         * tests/test-rename.h (test_rename): Allow one more errno.
59495         * tests/test-renameat.c (main): Likewise.
59496         * doc/posix-functions/rename.texi (rename): Document the bug.
59498         open: detect FreeBSD bug
59499         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
59500         symlink.
59501         * doc/posix-functions/open.texi (open): Document the bug.
59502         * doc/posix-functions/utimes.texi (utimes): Likewise.
59503         * tests/test-open.h (test_open): Add parameters, and test symlink
59504         handling.
59505         * tests/test-open.c (main): Adjust caller.
59506         * tests/test-fcntl-safer.c (main): Likewise.
59507         * modules/open-tests (Depends-on): Add stdbool, symlink.
59508         * modules/fcntl-safer-tests (Depends-on): Likewise.
59509         * tests/test-openat.c (main): Add test-open tests.
59511         stat: detect FreeBSD bug
59512         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
59513         symlink.
59514         * doc/posix-functions/stat.texi (stat): Document the bug.
59515         * tests/test-stat.h (test_stat_func): Add argument.
59516         * tests/test-stat.c (main): Adjust caller.
59517         * tests/test-fstatat.c (main): Likewise.
59518         * modules/stat-tests (Depends-on): Add stdbool, symlink.
59519         Reported by Jim Meyering.
59521 2009-11-09  James Youngman  <jay@gnu.org>
59523         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
59524         * lib/strftime.c: Correct placement of #include "ignore-value.h".
59526 2009-11-08  Jim Meyering  <meyering@redhat.com>
59528         utimens: remove invalid futimesat call
59529         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
59530         It used the file descriptor of the target file as the DIR_FD
59531         parameter and NULL as the file name.  That caused failure with
59532         errno == EFAULT on FreeBSD-8.0-rc2
59534 2009-11-07  Eric Blake  <ebb9@byu.net>
59536         fflush, freadseek: use fseeko, not fseek
59537         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
59538         (clear_ungetc_buffer): Avoid potential problems on large files.
59539         * lib/freadseek.c (freadseek): Likewise.
59540         * modules/freadseek (Depends-on): Add fseeko.
59541         * modules/fseek (configure.ac): Set a witness.
59542         * tests/test-fflush.c (main): Use fseeko.
59543         * tests/test-fpurge.c (fseek): Disable link warning.
59544         * tests/test-freadable.c (fseek): Likewise.
59545         * tests/test-freading.c (fseek): Likewise.
59546         * tests/test-fseeko.c (fseek): Likewise.
59547         * tests/test-ftell.c (fseek): Likewise.
59548         * tests/test-ftello.c (fseek): Likewise.
59549         * tests/test-fwritable.c (fseek): Likewise.
59550         * tests/test-fwriting.c (fseek): Likewise.
59552 2009-11-06  Simon Josefsson  <simon@josefsson.org>
59554         * modules/memchr (Depends-on): Drop getpagesize dependency.
59556 2009-11-06  Simon Josefsson  <simon@josefsson.org>
59558         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
59559         Reported by Ludovic Courtès.
59560         * build-aux/pmccabe2html: Improve example usage.
59561         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
59563 2009-11-06  Jim Meyering  <meyering@redhat.com>
59565         do-release-commit-and-tag: New module.
59566         Automate the release-commit and tag process.
59567         * build-aux/do-release-commit-and-tag: New script, from coreutils.
59568         * modules/do-release-commit-and-tag: New file.
59569         * MODULES.html.sh (Support for maintaining and releasing): Add it.
59571 2009-11-06  Simon Josefsson  <simon@josefsson.org>
59573         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
59574         because test-select.c uses inet_pton.
59576 2009-11-06  Simon Josefsson  <simon@josefsson.org>
59578         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
59579         GETADDRINFO_LIB.  Bump serial number.
59580         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
59581         Suggested by Eric Blake <ebb9@byu.net>.
59583 2009-11-05  Eric Blake  <ebb9@byu.net>
59585         strtod: detect darwin bug
59586         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
59587         Reported by Leo Davis.
59589         freopen-safer: new module
59590         * modules/freopen-safer: New module.
59591         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
59592         * lib/freopen-safer.c (freopen_safer): New file.
59593         * lib/stdio-safer.h (freopen_safer): New declaration.
59594         * lib/stdio--.h (freopen): New override.
59595         * MODULES.html.sh (File stream based Input/Output): Mention it.
59596         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
59597         freopen-safer module.
59598         * doc/posix-functions/stderr.texi (stderr): Likewise.
59599         * doc/posix-functions/stdin.texi (stdin): Likewise.
59600         * doc/posix-functions/stdout.texi (stdout): Likewise.
59601         * modules/freopen-safer-tests: New test.
59602         * tests/test-reopen-safer.c: New file.
59604 2009-11-05  Jim Meyering  <meyering@redhat.com>
59606         maint.mk: Prohibit inclusion of "close-stream.h" without use.
59607         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
59609 2009-11-05  Simon Josefsson  <simon@josefsson.org>
59611         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
59613 2009-11-05  Simon Josefsson  <simon@josefsson.org>
59615         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
59617 2009-11-05  Simon Josefsson  <simon@josefsson.org>
59619         Fix link error.
59620         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
59621         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
59623 2009-11-05  Simon Josefsson  <simon@josefsson.org>
59625         * tests/test-func.c: Also test value of __func__.
59627 2009-11-05  Simon Josefsson  <simon@josefsson.org>
59629         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
59630         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
59632 2009-11-05  Bruno Haible  <bruno@clisp.org>
59634         Fix link error.
59635         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
59636         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
59637         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
59639 2009-11-05  Bruno Haible  <bruno@clisp.org>
59641         Tests for module 'inet_pton'.
59642         * modules/inet_pton-tests: New file.
59643         * tests/test-inet_pton.c: New file.
59645 2009-11-05  Bruno Haible  <bruno@clisp.org>
59647         Tests for module 'inet_ntop'.
59648         * modules/inet_ntop-tests: New file.
59649         * tests/test-inet_ntop.c: New file.
59651 2009-11-04  Eric Blake  <ebb9@byu.net>
59653         stdlib-safer: wrap all mkstemp variants
59654         * modules/mkostemp (configure.ac): Set witness.
59655         * modules/mkostemps (configure.ac): Likewise.
59656         * modules/mkstemps (configure.ac): Likewise.
59657         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
59658         (mkstemps_safer): Wrap more functions.
59659         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
59660         wrapping.
59661         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
59662         (mkstemps_safer): Implement the wrappers.
59664         mkstemps, mkostemps: new modules
59665         * modules/mkostemps: New module.
59666         * modules/mkstemps: Likewise.
59667         * lib/mkostemps.c (mkostemps): New file.
59668         * lib/mkstemps.c (mkstemps): Likewise.
59669         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
59670         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
59671         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
59672         * modules/stdlib (Makefile.am): Substitute them.
59673         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
59674         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
59675         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
59676         * doc/gnulib.texi (Glibc stdlib.h): Include them.
59677         * MODULES.html.sh (File system functions): Mention them.
59679         tempname: resync from glibc
59680         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
59681         same values for __GT_FILE as glibc.  Abort even when assertions
59682         are disabled.
59683         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
59684         match its value otherwise.  Allow idempotent inclusion.
59685         * lib/mkdtemp.c (mkdtemp): Adjust caller.
59686         * lib/mkostemp.c (mkostemp): Likewise.
59687         * lib/mkstemp.c (mkstemp): Likewise.
59688         * lib/tmpfile.c (tmpfile): Likewise.
59689         * NEWS: Document this.
59691         utimens: fix use of futimens on older Linux
59692         * lib/utimens.c (fdutimens): Use updated, rather than original,
59693         timespec to avoid bug in older Linux kernel.
59694         Reported by Simon Josefsson.
59696 2009-11-04  Bruno Haible  <bruno@clisp.org>
59698         Make num_processors more flexible and consistent.
59699         * lib/nproc.h (enum nproc_query): New type.
59700         (num_processors): Add a 'query' argument.
59701         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
59702         (num_processors): Add a 'query' argument. Test the value of the
59703         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
59704         mingw, count the number of CPUs available for the current process.
59705         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
59706         Check for sched_getaffinity and sched_getaffinity_np.
59707         * modules/nproc (Depends-on): Add c-ctype, extensions.
59708         * NEWS: Mention the change.
59710 2009-11-03  Bruno Haible  <bruno@clisp.org>
59712         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
59714 2009-11-03  Jim Meyering  <meyering@redhat.com>
59716         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
59717         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
59718         if it is defined.
59720 2009-11-02  Eric Blake  <ebb9@byu.net>
59722         mktime, timegm: share common declaration
59723         * lib/mktime-internal.h: New file.
59724         * lib/mktime.c: Use it rather than open-coding a declaration.
59725         * lib/timegm.c: Likewise.
59726         * modules/mktime (Files): Ship it.
59727         * modules/timegm (Files): Likewise.
59728         Suggested by Bruno Haible.
59730         test-update-copyright: update test to match script changes
59731         * tests/test-update-copyright.sh: Avoid hard-coding perl
59732         location.  Don't update *.bak created by earlier runs.
59734 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
59735             Simon Josefsson  <simon@josefsson.org>
59736             Bruno Haible  <bruno@clisp.org>
59738         Fix link error on Solaris 8.
59739         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
59740         also in libnsl. Define also INET_PTON_LIB.
59741         * modules/inet_pton (Link): New section.
59743 2009-11-02  Simon Josefsson  <simon@josefsson.org>
59744             Bruno Haible  <bruno@clisp.org>
59746         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
59747         * modules/inet_ntop (Link): New section.
59748         Reported by Boyan Kasarov <bkasarov@gmail.com>.
59750 2009-11-02  Eric Blake  <ebb9@byu.net>
59752         maint: avoid compiler warnings in m4 macros
59753         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
59754         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
59756 2009-11-02  Simon Josefsson  <simon@josefsson.org>
59758         * m4/pmccabe2html.m4: Remove file.
59759         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
59760         function.  Change maintainer.
59761         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
59762         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
59763         Courtès).
59765 2009-10-31  Eric Blake  <ebb9@byu.net>
59767         fseeko: fix m4 regression
59768         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
59769         regression from 2009-10-27.
59770         Reported by Ralf Wildenhues.
59772 2009-10-31  Jim Meyering  <meyering@redhat.com>
59774         inttostr: aesthetics and improved (compile-time) safety
59775         Define inttype_is_signed rather than inttype_is_unsigned,
59776         since the sole use is via "#if inttype_is_signed".
59777         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
59778         inttype_is_unsigned.
59779         * lib/offtostr.c (inttype_is_signed): Likewise.
59780         * lib/uinttostr.c (inttype_is_signed): Likewise.
59781         * lib/umaxtostr.c (inttype_is_signed): Likewise.
59782         * lib/inttostr.c (inttostr): Use verify to cross-check the
59783         inttype_is_signed value and the signedness of the actual type.
59784         * modules/inttostr (Depends-on): Add verify.
59786 2009-10-30  Eric Blake  <ebb9@byu.net>
59788         build: avoid compiler warnings
59789         * lib/fchmodat.c (lchmod): Mark unused variables.
59790         * lib/getopt.c (_getopt_initialize): Likewise.
59791         * lib/mktime.c (__mktime_internal): Provide prototype.
59792         * lib/inttostr.c (inttostr): Avoid compiler warning even with
59793         older gcc that do not understand #pragma GCC diagnostic.
59794         * lib/uinttostr.c (inttype_is_unsigned): Define.
59795         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
59797 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
59799         stat: fix compilation on AIX
59800         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
59801         only see struct stat64.
59803 2009-10-30  Eric Blake  <ebb9@byu.net>
59805         exclude: make more robust
59806         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
59807         rather than masking a coding bug.
59808         Suggested by Bruno Haible.
59810 2009-10-30  Jim Meyering  <meyering@redhat.com>
59812         perl scripts: remove #!/usr/bin/perl in favor of more portable...
59813         Rather than putting #!/usr/bin/perl on the first line,
59814         start with a variant of what's recommended by "man perlrun" that
59815         invokes the first "perl" program from your shell's search path.
59816         * build-aux/gitlog-to-changelog: Replace #!... as above.
59817         Add a "Local Variables" perl mode setting.
59818         Prompted by a patch from Ludovic Courtès.
59819         Improved by Eric Blake.
59820         * build-aux/useless-if-before-free: Likewise.
59821         * build-aux/announce-gen: Likewise.
59822         * build-aux/update-copyright: Likewise.
59824 2009-10-29  Eric Blake  <ebb9@byu.net>
59826         filenamecat-lgpl: adjust clients
59827         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
59828         filenamecat.
59829         * modules/renameat (Depends-on): Likewise.
59831         filenamecat: split into filenamecat-lgpl
59832         * modules/filenamecat-lgpl: New module.
59833         * modules/filenamecat (Files): Move library-safe files into
59834         filenamecat-lgpl.
59835         (Depends-on): Add filenamecat-lgpl.
59836         (configure.ac): Declare witness.
59837         * lib/filenamecat.h (file_name_concat): Only declare when using
59838         GPL module.
59839         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
59840         Move...
59841         * lib/filenamecat-lgpl.c: ...into new file.
59842         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
59843         (gl_FILE_NAME_CONCAT): Use it.
59844         * MODULES.html.sh (File system functions): Mention new module.
59846         argp: avoid memory leak
59847         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
59848         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
59849         base_name, since the latter malloc()s and can call exit().
59850         Leak introduced 2006-07-03.
59852         dirname-lgpl: adjust clients that don't need full dirname
59853         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
59854         * modules/filenamecat (Depends-on): Likewise.
59855         * modules/linkat (Depends-on): Likewise.
59856         * modules/mkancesdirs (Depends-on): Likewise.
59857         * modules/mkdir (Depends-on): Likewise.
59858         * modules/openat (Depends-on): Likewise.
59859         * modules/savewd (Depends-on): Likewise.
59860         * modules/rename (Depends-on): Likewise.
59861         (License): Relax license.
59862         * modules/mkdir-tests (Depends-on): Drop progname.
59863         (Makefile.am): Delete unneeded LDADD.
59864         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
59866         dirname: split into dirname-lgpl
59867         * modules/dirname-lgpl: New module.
59868         * modules/dirname (Files): Move library-safe files into
59869         dirname-lgpl.
59870         (Depends-on): Add dirname-lgpl.
59871         (configure.ac): Declare witness.
59872         * modules/double-slash-root (License): Relax license.
59873         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
59874         module.
59875         * lib/dirname.c (dir_len, mdir_name): Move...
59876         * lib/dirname-lgpl.c: ...into new file.
59877         * lib/basename.c (last_component, base_len): Move...
59878         * lib/basename-lgpl.c: ...into new file.
59879         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
59880         (gl_DIRNAME): Use it.
59881         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
59882         Mention new module.
59883         * modules/dirname-tests (Depends-on): Add progname.
59884         * tests/test-dirname.c (program_name): Delete.
59886         mkdir: make safe for libraries
59887         * modules/mkdir (Depends-on): Drop xalloc.
59888         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
59889         exit.
59891         tests: avoid some compiler warnings
59892         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
59893         literals.
59894         * tests/test-memchr.c (main): Avoid type mismatch.
59895         * tests/test-arpa_inet.c (main): Avoid unused parameters.
59896         * tests/test-base64.c (main): Likewise.
59897         * tests/test-getdelim.c (main): Likewise.
59898         * tests/test-gethostname.c (main): Likewise.
59899         * tests/test-getline.c (main): Likewise.
59900         * tests/test-netinet_in.c (main): Likewise.
59901         * tests/test-select.c (open_server_socket, main): Likewise.
59902         * tests/test-select-stdin.c (main): Likewise.
59903         * tests/test-sockets.c (main): Likewise.
59904         * tests/test-strsignal.c (main): Likewise.
59905         * tests/test-sys_select.c (main): Likewise.
59906         * tests/test-sys_socket.c (main): Likewise.
59907         * tests/test-u64.c (main): Likewise.
59908         * tests/test-xfprintf-posix.c (main): Likewise.
59909         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
59911         sockets: avoid compiler warning
59912         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
59914         maint: detect usage(1) and other suspicious exits
59915         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
59917 2009-10-29  Jim Meyering  <meyering@redhat.com>
59919         timespec: long-to-int truncation could make timespec_cmp malfunction
59920         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
59921         a multiple of 2^32 nanoseconds as no difference.
59923 2009-10-28  Jim Meyering  <meyering@redhat.com>
59925         fprintftime: wrap macro code argument in "do {...} while(0)"
59926         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
59927         cpy macro must be a statement that can be followed by a semicolon.
59928         Now that the else clause contains a comment and is hence longer
59929         than one line, I require curly braces.  That in turn requires
59930         that we wrap this code block in the standard do...while(0).
59932         fprintftime: remove stray semicolon from previous change
59933         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
59935         fprintftime: avoid a warning about ignored fwrite return value
59936         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
59937         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
59938         that is unsafe.
59939         * modules/fprintftime (Depends-on): Add ignore-value.
59941         exclude: avoid an unwarranted warning
59942         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
59944 2009-10-27  Eric Blake  <ebb9@byu.net>
59946         fseek: avoid compilation failure when fflush is replaced
59947         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
59948         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
59949         module is in use.
59950         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
59951         module is not in use; since REPLACE_FSEEK worked otherwise.
59952         (GNULIB_FTELLO): Likewise for ftell.
59953         Reported by Ian Beckwith and others.
59955 2009-10-27  Bruno Haible  <bruno@clisp.org>
59957         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
59958         Reported by Jim Meyering.
59960 2009-10-27  Jim Meyering  <jim@meyering.net>
59961             Bruno Haible  <bruno@clisp.org>
59963         Avoid warning despite dropping the return value of fwrite.
59964         * lib/unicodeio.c: Include ignore-value.h.
59965         (fwrite_success_callback): Explicitly ignore fwrite's return value.
59966         * modules/unicodeio (Depends-on): Add ignore-value.
59968 2009-10-26  Eric Blake  <ebb9@byu.net>
59970         areadlinkat: fix fallback path
59971         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
59972         pointer and zero.
59974 2009-10-22  Pádraig Brady  <P@draigBrady.com>
59976         Use a better IO block size for modern systems
59977         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
59978         * lib/md2.c: Likewise.
59979         * lib/md4.c: Likewise.
59980         * lib/md5.c: Likewise.
59981         * lib/sha1.c: Likewise.
59982         * lib/sha256.c: Likewise.
59983         * lib/sha512.c: Likewise.
59985 2009-10-22  Eric Blake  <ebb9@byu.net>
59987         tests: avoid several compiler warnings
59988         * tests/test-getcwd.c (main): Avoid buffer underflow.
59989         * tests/test-getdate.c (main): String literals are not safe with
59990         putenv, so use setenv.  Declare unused argument.
59991         * modules/getdate-tests (Depends-on): Add setenv.
59992         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
59993         problems with string literals in char *.
59994         * tests/test-hash.c (main): Avoid shadowing declaration.
59995         (insert_new): Treat string literals as char const *.
59996         * tests/test-getopt.h (test_getopt): Likewise.
59997         (getopt_loop): Alter types to minimize casting elsewhere.
59998         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
59999         (test_getopt_long_posix): Likewise.
60000         (do_getopt_long): Add wrapper to minimize casting.
60001         * tests/test-atexit.c (clear_temp_file): Use void.
60002         * tests/test-areadlink-with-size.c (main): Declare unused
60003         arguments.
60004         * tests/test-areadlink.c (main): Likewise.
60005         * tests/test-areadlinkat-with-size.c (main): Likewise.
60006         * tests/test-areadlinkat.c (main): Likewise.
60007         * tests/test-canonicalize-lgpl.c (main): Likewise.
60008         * tests/test-canonicalize.c (main): Likewise.
60009         * tests/test-dirent-safer.c (main): Likewise.
60010         * tests/test-dirname.c (main): Likewise.
60011         * tests/test-dup2.c (main): Likewise.
60012         * tests/test-fchdir.c (main): Likewise.
60013         * tests/test-fcntl-h.c (main): Likewise.
60014         * tests/test-fcntl-safer.c (main): Likewise.
60015         * tests/test-fdopendir.c (main): Likewise.
60016         * tests/test-fdutimensat.c (main): Likewise.
60017         * tests/test-fflush.c (main): Likewise.
60018         * tests/test-filenamecat.c (main): Likewise.
60019         * tests/test-filevercmp.c (main): Likewise.
60020         * tests/test-fopen-safer.c (main): Likewise.
60021         * tests/test-fopen.c (main): Likewise.
60022         * tests/test-fpending.c (main): Likewise.
60023         * tests/test-fpurge.c (main): Likewise.
60024         * tests/test-freading.c (main): Likewise.
60025         * tests/test-fstatat.c (main): Likewise.
60026         * tests/test-fsync.c (main): Likewise.
60027         * tests/test-futimens.c (main): Likewise.
60028         * tests/test-getndelim2.c (main): Likewise.
60029         * tests/test-gettimeofday.c (main): Likewise.
60030         * tests/test-getopt.c (main): Likewise.
60031         * tests/test-i-ring.c (main): Likewise.
60032         * tests/test-inttypes.c (main): Likewise.
60033         * tests/test-link.c (main): Likewise.
60034         * tests/test-lstat.c (main): Likewise.
60035         * tests/test-math.c (main): Likewise.
60036         * tests/test-md5.c (main): Likewise.
60037         * tests/test-memchr2.c (main): Likewise.
60038         * tests/test-memrchr.c (main): Likewise.
60039         * tests/test-mkdir.c (main): Likewise.
60040         * tests/test-mkdirat.c (main): Likewise.
60041         * tests/test-mkfifoat.c (main): Likewise.
60042         * tests/test-open.c (main): Likewise.
60043         * tests/test-openat-safer.c (main): Likewise.
60044         * tests/test-openat.c (main): Likewise.
60045         * tests/test-quotearg.c (main): Likewise.
60046         * tests/test-rawmemchr.c (main): Likewise.
60047         * tests/test-readlink.c (main): Likewise.
60048         * tests/test-remove.c (main): Likewise.
60049         * tests/test-rename.c (main): Likewise.
60050         * tests/test-renameat.c (main): Likewise.
60051         * tests/test-rmdir.c (main): Likewise.
60052         * tests/test-sha1.c (main): Likewise.
60053         * tests/test-signal.c (main): Likewise.
60054         * tests/test-sigaction.c (main): Likewise.
60055         * tests/test-stat.c (main): Likewise.
60056         * tests/test-stat-time.c (main): Likewise.
60057         * tests/test-stddef.c (main): Likewise.
60058         * tests/test-stdint.c (main): Likewise.
60059         * tests/test-stdio.c (main): Likewise.
60060         * tests/test-stdlib.c (main): Likewise.
60061         * tests/test-strchrnul.c (main): Likewise.
60062         * tests/test-strerror.c (main): Likewise.
60063         * tests/test-string.c (main): Likewise.
60064         * tests/test-strtod.c (main): Likewise.
60065         * tests/test-strverscmp.c (main): Likewise.
60066         * tests/test-symlink.c (main): Likewise.
60067         * tests/test-symlinkat.c (main): Likewise.
60068         * tests/test-sys_stat.c (main): Likewise.
60069         * tests/test-sys_time.c (main): Likewise.
60070         * tests/test-time.c (main): Likewise.
60071         * tests/test-unistd.c (main): Likewise.
60072         * tests/test-unlink.c (main): Likewise.
60073         * tests/test-unlinkat.c (main): Likewise.
60074         * tests/test-utimens.c (main): Likewise.
60075         * tests/test-utimensat.c (main): Likewise.
60076         * tests/test-version-etc.c (main): Likewise.
60077         * tests/test-wchar.c (main): Likewise.
60078         * tests/test-wctype.c (main): Likewise.
60079         * tests/test-xprintf-posix.c (main): Likewise.
60080         * tests/test-posixtm.c (main): Likewise.
60081         (STREQ): Delete unused macro.
60082         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
60083         shadowed variables.
60084         * tests/test-memchr.c (main): Likewise.
60086 2009-10-21  Eric Blake  <ebb9@byu.net>
60088         areadlinkat: avoid failure on older glibc
60089         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
60090         rather than mis-comparing 0 against FUNC_RESULT of char*.
60092 2009-10-21  Bruno Haible  <bruno@clisp.org>
60094         * modules/stpncpy (License): Relicense under LGPLv2+.
60095         Reported by David Lutterkort <lutter@redhat.com>.
60097 2009-10-20  Eric Blake  <ebb9@byu.net>
60099         utimensat: work around Solaris 9 bug
60100         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
60101         has trailing slash bugs.
60102         * tests/test-lutimens.h (test_lutimens): Enhance test.
60103         * tests/test-utimens.h (test_utimens): Likewise.
60104         * doc/posix-functions/utime.texi (utime): Enhance documentation.
60105         * doc/posix-functions/utimes.texi (utimes): Likewise.
60106         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
60107         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
60108         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
60109         * doc/posix-functions/futimens.texi (futimens): Likewise.
60111         fdutimensat: new module
60112         * modules/fdutimensat: New file.
60113         * lib/fdutimensat.c (fdutimensat): Likewise.
60114         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
60115         * MODULES.html.sh (File system functions): Mention module.
60116         * modules/fdutimensat-tests: New test.
60117         * tests/test-fdutimensat.c: Likewise.
60119         doc: regenerate INSTALL
60120         * doc/INSTALL: Reflect recent autoconf update.
60121         * doc/INSTALL.ISO: Likewise.
60122         * doc/INSTALL.UTF-8: Likewise.
60124 2009-10-20  Pádraig Brady  <P@draigBrady.com>
60126         acl: warn if ACL support is not detected
60127         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
60129 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
60131         * lib/nproc.h: Add extern "C" block for C++.
60133 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
60134             Bruno Haible  <bruno@clisp.org>
60136         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
60137         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
60138         * doc/posix-functions/isalpha.texi: Likewise.
60139         * doc/posix-functions/isblank.texi: Likewise.
60140         * doc/posix-functions/iscntrl.texi: Likewise.
60141         * doc/posix-functions/isdigit.texi: Likewise.
60142         * doc/posix-functions/isgraph.texi: Likewise.
60143         * doc/posix-functions/islower.texi: Likewise.
60144         * doc/posix-functions/isprint.texi: Likewise.
60145         * doc/posix-functions/ispunct.texi: Likewise.
60146         * doc/posix-functions/isspace.texi: Likewise.
60147         * doc/posix-functions/isupper.texi: Likewise.
60148         * doc/posix-functions/isxdigit.texi: Likewise.
60150 2009-10-18  Bruno Haible  <bruno@clisp.org>
60152         Tests for module 'isblank'.
60153         * modules/isblank-tests: New file.
60154         * tests/test-isblank.c: New file.
60156         New module 'isblank'.
60157         * lib/isblank.c: New file.
60158         * m4/isblank.m4: New file.
60159         * modules/isblank: New file.
60160         * doc/posix-functions/isblank.texi: Mention the new module.
60162 2009-10-18  Bruno Haible  <bruno@clisp.org>
60164         New module 'ctype'.
60165         * lib/ctype.in.h: New file.
60166         * m4/ctype.m4: New file.
60167         * modules/ctype: New file.
60168         * doc/posix-headers/ctype.texi: Mention the new module.
60170 2009-10-18  Jim Meyering  <meyering@redhat.com>
60172         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
60173         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
60174         right after its initialization, rather than farther down.
60175         Keeping these in close proximity makes it easier to ensure
60176         that each such variable is initialized.  E.g.,
60178             LIB_CLOCK_GETTIME=
60179             AC_SUBST([LIB_CLOCK_GETTIME])
60181         This change also increments these serial numbers.
60182         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
60183         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
60184         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60186 2009-10-18  Bruno Haible  <bruno@clisp.org>
60188         Don't let environment variables perturb build.
60189         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
60190         (gl_PREREQ_GETHRXTIME): ... not here.
60192 2009-10-18  Bruno Haible  <bruno@clisp.org>
60194         Avoid symlink attack in localcharset module.
60195         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
60196         (O_NOFOLLOW): Define fallback.
60197         (get_charset_aliases): Don't open the file if it is a symbolic link.
60198         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
60199         gl_FCNTL_H.
60200         (gl_FCNTL_H): Require it.
60201         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
60202         * modules/localcharset (Files): Add m4/fcntl_h.m4.
60203         Reported by Fergal Glynn <fglynn@veracode.com>.
60205 2009-10-18  Bruno Haible  <bruno@clisp.org>
60207         Implement nproc for mingw.
60208         * lib/nproc.c: Include <windows.h>
60209         (num_processors): On native Windows platforms, try GetSystemInfo.
60211 2009-10-18  Bruno Haible  <bruno@clisp.org>
60213         Implement nproc for IRIX.
60214         * lib/nproc.c: Include <sys/sysmp.h>.
60215         (num_processors): On IRIX systems, try sysmp.
60216         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
60218 2009-10-18  Bruno Haible  <bruno@clisp.org>
60220         Implement nproc for HP-UX.
60221         * lib/nproc.c: Include <sys/pstat.h>
60222         (num_processors): On HP-UX systems, try pstat_getdynamic.
60223         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
60224         pstat_getdynamic.
60226 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
60227             Bruno Haible  <bruno@clisp.org>
60229         Implement nproc for NetBSD, OpenBSD.
60230         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
60231         (ARRAY_SIZE): New macro.
60232         (num_processors): On BSD systems, try sysctl of HW_NCPU.
60233         * m4/nproc.m4: New file.
60234         * modules/nproc (Files): Add m4/nproc.m4.
60235         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
60236         (Makefile.am): Instead, augment lib_SOURCES.
60238 2009-10-18  Bruno Haible  <bruno@clisp.org>
60240         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
60241         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
60242         sys/param.h.
60244 2009-10-16  Eric Blake  <ebb9@byu.net>
60246         utimensat: new module
60247         * modules/utimensat: New file.
60248         * lib/utimensat.c (utimensat): Likewise.
60249         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
60250         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
60251         so we can work around Linux bugs.
60252         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
60253         * modules/sys_stat (Makefile.am): Substitute them.
60254         * lib/sys_stat.in.h (utimensat): Declare it.
60255         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
60256         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
60257         * modules/utimensat-tests: New test.
60258         * tests/test-utimensat.c: Likewise.
60260         utimens: let lutimens work on non-symlinks
60261         * lib/utimens.c (lutimens): Fall back to utimens rather than
60262         failing with ENOSYS, when file is not a symlink.
60263         (utimens): Reduce redirection.
60264         * tests/test-lutimens.h (test_lutimens): Update test to cover
60265         non-symlinks.
60266         * tests/test-utimens.h (test_utimens): Update test to cover
60267         symlinks.
60268         * tests/test-utimens.c (main): Update caller.
60270         utimens: cache whether utimensat syscall works
60271         * lib/utimens.c (utimensat_works_really): New cache variable.
60272         (fdutimens, lutimens): Use it to avoid failing syscall.
60274         test-stat-time, test-utimens: improve portability
60275         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
60276         ext4 on alpha, and for cygwin.
60277         * tests/test-utimens-common.h: New file.
60278         (nap): Factor delays into single function.
60279         * tests/test-lutimens.h (test_lutimens): Use new header.
60280         * tests/test-futimens.h (test_futimens): Likewise.
60281         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
60282         timestamps to occur from same machine, as was done previously for
60283         test_utimens.
60284         * modules/utimens-tests (Files): Ship new file.
60285         * modules/futimens-tests (Files): Likewise.
60286         Reported in part by Jim Meyering.
60288         sys_stat: sort replacement declarations
60289         * lib/sys_stat.in.h: Sort declarations.
60290         * lib/futimens.c (futimens): Fix typo.
60292 2009-10-15  Jim Meyering  <meyering@redhat.com>
60294         don't let environment settings perturb build
60295         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
60296         could cause a configure-time and/or build-time malfunction.
60297         Typically, a configure-time function-in-library test is performed
60298         via code like this:
60300           LIB_VAR=
60301           AC_SUBST([LIB_VAR])
60302           prefix_saved_LIBS=$LIBS
60303             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
60304                        [test "$ac_cv_search_FUNC" = "none required" ||
60305                         LIB_VAR=$ac_cv_search_FUNC])
60306           LIBS=$prefix_saved_LIBS
60308         However, in each of the files affected by this change, the LIB_VAR=
60309         initialization was omitted.  Thus, when set in the environment, its
60310         value would propagate into generated Makefiles when FUNC is not found
60311         in LIB_NAME.
60312         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
60313         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
60314         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60316 2009-10-14  Eric Blake  <ebb9@byu.net>
60318         fchdir: avoid infinite recursion in mingw
60319         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
60320         recursing.
60322         test-stat-time: port to mingw
60323         * tests/test-stat-time.c (force_unlink): Return a value.
60324         (test_ctime) [W32]: Fix compilation error.
60325         (nap): Don't call usleep with too large an argument.  Use
60326         force_unlink.
60327         * doc/pastposix-functions/usleep.texi (usleep): Document the
60328         portability issue.
60330 2009-10-13  Jim Meyering  <meyering@redhat.com>
60332         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
60333         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
60334         * modules/pipe-filter-ii: Likewise.
60335         * modules/sys_socket-tests: Likewise.
60336         * modules/tsearch-tests: Likewise.
60337         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
60338         (check): Depend on it.
60340 2009-10-12  Eric Blake  <ebb9@byu.net>
60342         utimens-tests: port to NFS file systems
60343         * tests/test-utimens.h (test_utimens): Refactor utimecmp
60344         comparisons to avoid spurious failures from timestamp drift
60345         between NFS machines.
60347 2009-10-12  Eric Blake  <ebb9@byu.net>
60349         stat-time-tests: minor cleanups
60350         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
60351         * tests/test-stat-time.c (nap): Separate assignment from call.
60352         Suggested by Paolo Bonzini and Bruno Haible.
60354         sys_stat: guarantee struct timespec
60355         * lib/sys_stat.in.h (includes): Always include <time.h>
60356         * modules/sys_stat (Depends-on): Add time.
60357         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
60358         mode_t permission values.
60359         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
60360         get at subsecond timestamps.
60362 2009-10-10  Eric Blake  <ebb9@byu.net>
60364         futimens: new module
60365         * modules/futimens: New file.
60366         * lib/futimens.c (futimens): Likewise.
60367         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
60368         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
60369         we can work around Linux bugs.
60370         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
60371         * modules/sys_stat (Makefile.am): Substitute them.
60372         * lib/sys_stat.in.h (futimens): Declare it.
60373         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
60374         * doc/posix-functions/futimens.texi (futimens): Likewise.
60375         * modules/futimens-tests: New test.
60376         * tests/test-futimens.c: Likewise.
60378         utimens: introduce fdutimens
60379         * lib/utimens.h (fdutimens): New prototype.
60380         * lib/utimens.c (gl_futimens): Move guts...
60381         (fdutimens): ...to new interface.
60382         * tests/test-utimens.c (do_fdutimens): Use it.
60384         utimens: add UTIME_NOW and UTIME_OMIT support
60385         * lib/utimens.c (validate_timespec, update_timespec): New helper
60386         functions.
60387         (gl_futimens, lutimens): Use them.
60388         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
60389         stdbool, sys_stat.
60390         (Link): Mention resulting library dependency.
60391         * modules/utimecmp (Link): Likewise.
60392         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
60393         (Makefile.am): Pick up library dependency.
60394         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
60395         definition.
60396         * tests/test-sys_stat.c: Test the definitions.
60397         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
60398         * NEWS: Document library dependency.
60400         utimecmp: support symlink timestamps
60401         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
60402         hashing when possible.  Use pathconf when available.
60403         (SYSCALL_RESOLUTION): Recognize tighter resolution.
60404         * modules/utimecmp (Depends-on): Add lstat.
60406         utimens: add lutimens interface
60407         * lib/utimens.c (lutimens): New function.
60408         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
60409         * lib/utimens.h (lutimens): Declare new interface.
60410         * tests/test-utimens.c (main): Enhance test.
60411         * tests/test-lutimens.h (test_lutimens): New file.
60412         * modules/utimens-tests (Files): Distribute it.
60413         (Depends-on): Add symlink.
60414         (configure.ac): Check for usleep.
60416         utimens: validate futimens usage
60417         * lib/utimens.c (gl_futimens): Require valid fd up front, using
60418         fewer syscalls on failure later on.  Avoid compiler warning on
60419         mingw.
60420         * modules/utimens (Depends-on): Add dup2.
60422         utimens: add test
60423         * modules/utimens-tests: New test.
60424         * tests/test-utimens.h: New file.
60425         * tests/test-futimens.h: Likewise.
60426         * tests/test-utimens.c: Likewise.
60428         doc: mention timestamp portability issues
60429         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
60430         instead.
60431         * doc/posix-functions/utime.texi (utime): Likewise.
60432         * doc/posix-functions/utimes.texi (utimes): Likewise.
60433         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
60434         instead.
60435         * doc/posix-functions/futimens.texi (futimens): Mention utimens
60436         module.
60437         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
60438         Mention weakness with symlink timestamps.
60439         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
60440         to utimensat/futimens instead.
60441         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
60443         test-dup2: enhance test
60444         * tests/test-dup2.c (main): Also check AT_FDCWD.
60446         test-stat-time: avoid more spurious failures
60447         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
60448         xfs; and avoid race if the two timestamps cross quantization edge.
60450         relocatable: prefer 'file system' over 'filesystem'
60451         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
60452         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
60453         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
60454         * doc/relocatable.texi (Enabling Relocatability): Likewise.
60455         * lib/relocatable.c (compute_curr_prefix): Likewise.
60457 2009-10-10  Jim Meyering  <meyering@redhat.com>
60459         stat-time-tests: check for the usleep function
60460         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
60462 2009-10-10  Bruno Haible  <bruno@clisp.org>
60464         * modules/xnanosleep: Put the Link section after the Include section.
60466 2009-10-09  Eric Blake  <ebb9@byu.net>
60468         dup2: work around FreeBSD 6.1 bug
60469         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
60470         * doc/posix-functions/dup2.texi (dup2): Document it.
60471         Reported by Nelson H. F. Beebe and Jim Meyering.
60473         test-stat-time: port to buggy NFS clients
60474         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
60475         (test_ctime): Also skip test if mtime and ctime are skewed.
60477         maint: prefer 'file system' over 'filesystem'
60478         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
60479         * doc/posix-functions/lstat.texi (lstat): Likewise.
60480         * lib/file-has-acl.c (file_has_acl): Likewise.
60481         * lib/fwriteerror.c [TEST]: Likewise.
60482         * tests/test-areadlink.h (test_areadlink): Likewise.
60483         * tests/test-areadlinkat-with-size.c (main): Likewise.
60484         * tests/test-areadlinkat.c (main): Likewise.
60485         * tests/test-canonicalize-lgpl.c (main): Likewise.
60486         * tests/test-canonicalize.c (main): Likewise.
60487         * tests/test-fstatat.c (main): Likewise.
60488         * tests/test-linkat.c (main): Likewise.
60489         * tests/test-lstat.h (test_lstat_func): Likewise.
60490         * tests/test-mkdir.h (test_mkdir): Likewise.
60491         * tests/test-readlink.h (test_readlink): Likewise.
60492         * tests/test-remove.c (main): Likewise.
60493         * tests/test-rename.h (test_rename): Likewise.
60494         * tests/test-renameat.c (main): Likewise.
60495         * tests/test-rmdir.h (test_rmdir_func): Likewise.
60496         * tests/test-symlink.h (test_symlink): Likewise.
60497         * tests/test-symlinkat.c (main): Likewise.
60498         * tests/test-unlink.h (test_unlink_func): Likewise.
60499         * tests/test-unlinkat.c (main): Likewise.
60501         maint: make realtime library usage explicit
60502         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
60503         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
60504         * modules/settime (Link): Likewise.
60505         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
60507         test-stat-time: speed up execution
60508         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
60509         warning on mingw.
60510         (nap): New helper function.
60511         (prepare_test): Use it to reduce sleep time.
60512         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
60513         execution.
60514         * modules/stat-time-tests (configure.ac): Check for usleep.
60516 2009-10-09  Jim Meyering  <meyering@redhat.com>
60518         selinux-h: always use getfilecon wrappers
60519         * lib/getfilecon.c: New file.
60520         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
60521         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
60522         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
60523         (fgetfilecon): Provide a stub.
60524         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
60525         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
60526         file unconditionally.
60527         When <selinux/selinux.h> is found, arrange to use wrappers.
60528         * modules/selinux-h (Files): Add getfilecon.c.
60529         (Makefile.am): Substitute include-next-related bits
60530         into the now-always-generated selinux/selinux.h file.
60531         * doc/glibc-functions/lgetfilecon.texi: New file.
60532         * doc/glibc-functions/fgetfilecon.texi: New file.
60533         * doc/glibc-functions/getfilecon.texi: New file.
60534         * doc/glibc-functions/getfilecon-desc.texi: New file.
60535         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
60536         which to pull in the new files.
60537         * MODULES.html.sh (Misc): Add selinux-h.
60539 2009-10-08  Jim Meyering  <meyering@redhat.com>
60541         unistd: fix comment typo
60542         * lib/unistd.in.h (euidaccess): Fix a comment typo.
60544 2009-10-08  Eric Blake  <ebb9@byu.net>
60546         areadlink: use SIZE_MAX consistently
60547         * modules/areadlink (Depends-on): Add stdint.
60548         * modules/areadlink-with-size (Depends-on): Likewise.
60549         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
60550         gives NULL; drop sys/types, since unistd gives size_t; and add
60551         stdint for SIZE_MAX.
60552         (SIZE_MAX): Rely on headers.
60553         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
60554         and add stdint.
60555         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
60556         (SIZE_MAX): Likewise.
60557         (INITIAL_BUF_SIZE): Turn into enum.
60558         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
60560 2009-10-08  Jim Meyering  <meyering@redhat.com>
60562         areadlinkat: avoid compilation failure
60563         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
60564         Fix typo in comment.
60566 2009-10-07  Eric Blake  <ebb9@byu.net>
60568         areadlinkat-with-size: new module
60569         * modules/areadlinkat-with-size: New module.
60570         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
60571         * lib/areadlink.h (areadlinkat): Declare it.
60572         * MODULES.html.sh (File system functions): Mention it.
60573         * modules/areadlinkat-with-size-tests: New test.
60574         * tests/test-areadlinkat-with-size.c: New file.
60576         xreadlinkat: new module
60577         * modules/xreadlinkat: New module.
60578         * lib/xreadlinkat.c (xreadlinkat): New file.
60579         * lib/xreadlink.h (xreadlinkat): Declare it.
60580         * MODULES.html.sh (File system functions): Mention it.
60582         areadlinkat: new module
60583         * lib/at-func.c (FUNC_FAIL): New define.
60584         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
60585         * modules/areadlinkat: New module.
60586         * lib/linkat.c (areadlinkat): Move...
60587         * lib/areadlinkat.c (areadlinkat): ...to new file.
60588         * lib/areadlink.h (areadlinkat): Declare it.
60589         * modules/linkat (Depends-on): Add areadlinkat.
60590         * MODULES.html.sh (File system functions): Mention it.
60591         * modules/areadlinkat-tests: New test.
60592         * tests/test-areadlinkat.c: New file.
60594         areadlink, areadlink-with-size: add tests
60595         * modules/areadlink-tests: New test.
60596         * modules/areadlink-with-size-tests: Likewise.
60597         * tests/test-areadlink.h: New file.
60598         * tests/test-areadlink.c: Likewise.
60599         * tests/test-areadlink-with-size.c: Likewise.
60601         maint: minor cleanups
60602         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
60603         _UNUSED_PARAMETER_ instead.
60604         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
60605         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
60606         * modules/linkat-tests (Files): Distribute test-link.h.
60608         openat, utimens: whitespace cleanup
60609         * lib/openat.c: Prefer space throughout, rather than mix of 8
60610         spaces vs. tabs.
60611         * lib/at-func.c: Likewise.
60612         * lib/utimens.c: Likewise.
60614         openat: avoid using wrong fd
60615         * lib/openat.c (openat_permissive): Reject user's fd if saving the
60616         working directory chooses same fd.
60617         * lib/at-func.c (AT_FUNC_NAME): Likewise.
60619         mkdir, mkdirat: fix cygwin 1.5.x bug
60620         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
60621         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
60622         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
60623         bug.
60624         (gl_PREREQ_MKDIR): Delete unused macro.
60625         * modules/mkdir (Files): Track file rename.
60626         (configure.ac): Update macro name.
60627         * modules/openat (Depends-on): Add mkdir.
60628         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
60630         mkdir, mkdirat: add tests
60631         * modules/mkdir-tests: New test.
60632         * tests/test-mkdir.h: New file.
60633         * tests/test-mkdir.c: Likewise.
60634         * tests/test-mkdirat.c: Likewise.
60635         * modules/openat-tests (Files): Add new files.
60636         (Makefile.am): Run new test.
60638 2009-10-06  Eric Blake  <ebb9@byu.net>
60640         doc: tweak *at function documentation
60641         * doc/posix-functions/faccessat.texi (faccessat): Mention
60642         known issue with replacement.
60643         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
60644         * doc/posix-functions/linkat.texi (linkat): Likewise.
60645         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
60646         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
60647         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
60648         * doc/posix-functions/renameat.texi (renameat): Likewise.
60649         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
60651         openat: fix GNU/Hurd bug in unlinkat
60652         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
60653         broken.
60654         * doc/posix-functions/unlink.texi (unlink): Document this.
60655         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
60657         fdopendir: fix GNU/Hurd bug
60658         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
60659         allowing non-directory fds.
60660         * lib/fdopendir.c (rpl_fdopendir): Work around it.
60661         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
60662         * modules/dirent (Makefile.am): Substitute it.
60663         * lib/dirent.in.h (fdopendir): Declare replacement.
60664         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
60665         * tests/test-fdopendir.c (main): Test something other than
60666         /dev/null, since on Hurd that behaves like a directory.
60668         test-symlink: port to GNU/Hurd
60669         * tests/test-symlink.h (test_symlink): Relax expected errno.
60671         doc: tweak more cygwin information
60672         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
60673         now compatible with glibc.
60674         * doc/posix-functions/getopt.texi (getopt): Likewise.
60676         getopt-gnu: add another test
60677         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
60678         guarantee behavior relied on by m4.
60679         * tests/test-getopt.c (main): Use it.
60680         * modules/getopt-posix-tests (Depends-on): Add setenv.
60681         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
60683         getopt: fix compilation on darwin
60684         * lib/getopt.in.h (includes): Leave breadcrumbs during system
60685         include.
60686         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
60687         Reported by Ludovic Courtès.
60689 2009-10-06  Bruno Haible  <bruno@clisp.org>
60691         * modules/size_max (Description): Discourage its use.
60692         Reported by Simon Josefsson.
60694 2009-10-06  Jim Meyering  <meyering@redhat.com>
60696         linkat: avoid compilation failure
60697         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
60699 2009-10-05  Eric Blake  <ebb9@byu.net>
60701         linkat: support Linux 2.6.17
60702         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
60703         linkat on Linux, but allow cache variable override.
60704         * lib/linkat.c (rpl_linkat): Define override.
60705         * modules/linkat (Depends-on): Add symlinkat.
60706         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
60707         * modules/unistd (Makefile.am): Substitute it.
60708         * lib/unistd.in.h (linkat): Declare replacement.
60709         Reported by Pádraig Brady.
60711         quotearg: port test to systems with C.UTF-8 locale
60712         * tests/test-quotearg.c (struct result_strings): Add another
60713         member, differentiating between C.ASCII and C.UTF-8 handling.
60714         (compare_strings): Add parameter.
60715         (main): Adjust all callers.
60717         getopt: avoid clash with FreeBSD _getopt_internal
60718         * lib/getopt.in.h (_getopt_internal): Override the name.
60719         * lib/getopt_int.h (includes): Pick up any overrides.
60720         Reported by Reuben Thomas.
60722         hash: allow C89 compilation
60723         * lib/hash.c (check_tuning): Move declaration before statement.
60724         Reported by Reuben Thomas.
60726 2009-10-05  Karl Berry  <karl@gnu.org>
60728         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
60730 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
60731             Bruno Haible  <bruno@clisp.org>
60733         * lib/uname.c (uname): Use a table-driven algorithm to compute
60734         Windows NT versions.
60736 2009-10-04  Bruno Haible  <bruno@clisp.org>
60738         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
60739         program_invocation_short_name.
60740         * modules/progname (configure.ac): Test for presence of
60741         program_invocation_short_name.
60742         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
60744 2009-10-04  Bruno Haible  <bruno@clisp.org>
60746         * lib/progname.c (set_program_name): Fix comment.
60747         Reported by Jim Meyering.
60749 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
60750             Bruno Haible  <bruno@clisp.org>
60752         * lib/uname.c: Include <string.h>.
60753         (uname): Do only one call to GetVersionEx in the common case.
60755 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
60756             Bruno Haible  <bruno@clisp.org>
60758         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
60759         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
60760         (uname): Add support for Windows CE and various non-x86 CPU types.
60762 2009-10-03  Bruno Haible  <bruno@clisp.org>
60764         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
60765         invocation to tests/configure.ac.
60766         Reported by Ian Beckwith <ianb@erislabs.net>.
60768 2009-10-02  Eric Blake  <ebb9@byu.net>
60770         fchdir: avoid compiler warning
60771         * lib/fchdir.c (canonicalize_file_name)
60772         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
60774         test-open: support mingw errno values
60775         * tests/test-open.h (test_open): Relax test.
60776         * tests/test-fopen.h (test_fopen): Likewise.
60777         * tests/test-openat-safer.c (main): Likewise.
60779         open: fix opening directory on mingw
60780         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
60782         test-open: on GNU/Hurd, /dev/null is a directory
60783         * tests/test-fopen.h (main): Rename...
60784         (test_fopen): ...to this.  Use a guaranteed non-directory when
60785         confirming open behavior on trailing slash.
60786         * tests/test-openat-safer.c (main): Likewise.
60787         * tests/test-open.h (main): Likewise....
60788         (test_open): ...to this.
60789         * tests/test-fopen.c (main): Adjust caller.
60790         * tests/test-fopen-safer.c (main): Likewise.
60791         * tests/test-open.c (main): Likewise.
60792         * tests/test-fcntl-safer.c (main): Likewise.
60793         Reported by Samuel Thibault.
60795         rename, fchdir: don't ignore chdir failure
60796         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
60797         * lib/rename.c (rpl_rename) [W32]: Likewise.
60798         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
60799         an empty destination directory if source cannot be renamed,
60800         although there is still possibility for failure.
60801         * doc/posix-functions/rename.texi (rename): Document the race.
60802         Reported by Jim Meyering.
60804         maint: cleanup whitespace in recent commits
60805         * lib/rename.c (rpl_rename): Remove tabs.
60806         * tests/test-link.h (test_link): Likewise.
60807         * lib/fchdir.c (get_name): Likewise.
60808         Reported by Jim Meyering.
60810 2009-10-02  Ben Pfaff  <blp@gnu.org>
60812         relocatable-prog-wrapper: Add missing dependency on
60813         double-slash-root.
60814         * modules/relocatable-prog-wrapper: Add dependency.
60815         Reported by Ian Beckwith <ianb@erislabs.net>.
60817 2009-10-02  Eric Blake  <ebb9@byu.net>
60819         renameat: fix Solaris bugs
60820         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
60821         needed fixing.
60822         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
60823         * modules/stdio (Makefile.am): Substitute it.
60824         * lib/stdio.in.h (renameat): Declare replacement.
60825         * lib/renameat.c (rpl_renameat): Implement fix.
60827         renameat: new module
60828         * modules/renameat: New file.
60829         * lib/renameat.c (renameat): Likewise.
60830         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
60831         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
60832         * modules/stdio (Makefile.am): Substitute them.
60833         * lib/stdio.in.h (renameat): Declare it.
60834         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
60835         * doc/posix-functions/renameat.texi (renameat): Likewise.
60836         * modules/renameat-tests: New test.
60837         * tests/test-renameat.c: Likewise.
60839         rename: fix mingw bugs
60840         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
60841         directory overwrite bugs.
60843         rename: fix another cygwin 1.5 bug
60844         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
60845         checks.
60846         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
60847         unnecessary cygwin workarounds.  Also work around bug with moving
60848         full directory onto an empty one.
60849         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
60851         rename-dest-slash: merge into rename module
60852         * modules/rename-dest-slash (Status): Mark obsolete.
60853         (Depends-on): Add rename.
60854         (Files): Let rename do it all.
60855         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
60856         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
60857         * m4/rename-dest-slash.m4: ...so this file can be deleted.
60858         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
60859         * lib/rename.c (rpl_rename): Update comments.
60861         rename: fix cygwin 1.5.x bugs
60862         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
60863         * lib/rename.c (rpl_rename): Work around them.
60864         * modules/rename (Depends-on): Add same-inode.
60866         rename: fix Solaris 10 bug
60867         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
60868         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
60869         was the only bug.
60871         rename: fix Solaris 9 bug
60872         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
60873         on non-directory.  Avoid calling exit.
60874         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
60875         strdup.
60876         * modules/rename-tests (Depends-on): Drop lstat.
60877         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
60878         (gl_PREREQ_RENAME): Delete unused macro.
60880         rename-dest-slash: fix NetBSD bug
60881         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
60882         links.
60883         * modules/rename-dest-slash (Depends-on): Add same-inode.
60885         rename-tests: new test, exposes several platform bugs
60886         * modules/rename-tests: New file.
60887         * tests/test-rename.h: Likewise.
60888         * tests/test-rename.c: Likewise.
60889         * doc/posix-functions/rename.texi (rename): Improve documentation,
60890         including bugs that will eventually be fixed in gnulib.
60892 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
60894         * lib/uname.c: Include <stdlib.h>
60895         (uname): Assume version info is available.
60897 2009-10-02  Jim Meyering  <meyering@redhat.com>
60899         gnu-web-doc-update: correct --help output
60900         * build-aux/gnu-web-doc-update: Make --help output relevant.
60902         gnu-web-doc-update: add standard options
60903         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
60905         gnu-web-doc-update: New module.
60906         Use this script to automatically update the on-line web documentation
60907         for your GNU project at http://www.gnu.org/software/$pkg/manual/
60908         * modules/gnu-web-doc-update: New file, from coreutils.
60909         * build-aux/gnu-web-doc-update: New script.
60911 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
60913         link: LoadLibrary is not needed.
60914         * lib/link.c: Use GetModuleHandle.
60916 2009-10-01  Eric Blake  <ebb9@byu.net>
60918         getopt: bump serial number
60919         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
60920         change.
60922         tests: tighten link, rmdir, and remove tests
60923         * tests/test-link.h (includes): No need to use <config.h> here.
60924         Clean up if directory hard link was created, otherwise test for
60925         trailing '.'.
60926         * tests/test-linkat.c (main): Simplify.
60927         * tests/test-remove.c (main): Enhance test for trailing '.'.
60928         * tests/test-rmdir.h (test_rmdir_func): Likewise.
60930 2009-10-01  Jim Meyering  <meyering@redhat.com>
60932         maint.mk: requiring "make major" was annoying, for a "minor" release.
60933         What is intended is "stable", to contrast with alpha and beta,
60934         so require "make stable", not "make major".
60935         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
60936         (get_tool_versions): Likewise.
60937         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
60939 2009-09-30  Ben Pfaff  <blp@gnu.org>
60941         Fix broken build of replacement for Windows tmpfile().
60942         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
60943         flags argument added along with the 'mkostemp' module.
60945 2009-09-28  Bruno Haible  <bruno@clisp.org>
60947         Avoid identifier clash with POSIX function 'remove' defined as a macro.
60948         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
60949         to 'remove_elt'.
60950         (gl_list_remove): Update.
60951         * lib/gl_list.c (gl_list_remove): Update.
60952         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
60953         to 'remove_elt'.
60954         (gl_oset_remove): Update.
60955         * lib/gl_list.c (gl_oset_remove): Update.
60956         Reported by Eric Blake.
60958 2009-09-28  Eric Blake  <ebb9@byu.net>
60960         doc: mention yet more cygwin 1.7 status
60961         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
60962         cygwin.
60963         * doc/glibc-functions/execvpe.texi (execvpe): New file.
60964         * doc/gnulib.texi (Glibc unistd.h): Mention it.
60966         argp: fix test failure
60967         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
60968         that are not upper-case.  Pass correct range to tolower.
60970 2009-09-27  Jim Meyering  <meyering@redhat.com>
60972         test-yesno: work around sparc-dash here-document infelicity
60973         Without this change, the literal \177 byte in a here document
60974         would make dash 0.5.5.1-3 access uninitialized memory.
60975         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
60976         Instead, use a marker, "@", and filter through tr to create the desired
60977         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
60979 2009-09-27  Bruno Haible  <bruno@clisp.org>
60981         Disable untested support for new flavours of ACLs on AIX.
60982         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
60983         progress.
60984         * lib/set-mode-acl.c (qset_acl): Likewise.
60986 2008-12-07  Bruno Haible  <bruno@clisp.org>
60988         Add support for new flavours of ACLs on AIX. (Untested.)
60989         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
60990         (file_has_acl): Add support for newer AIX.
60991         * lib/set-mode-acl.c (qset_acl): Likewise.
60992         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
60993         Rainer Tammer <tammer@tammer.net>.
60995 2009-09-26  Eric Blake  <ebb9@byu.net>
60997         argp: fix compilation of getopt
60998         * lib/getopt.in.h (includes): Use different guard than glibc.
60999         Reported by Sergey Poznyakoff.
61001         doc: mention more cygwin 1.7 status
61002         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
61003         bug.
61004         * doc/posix-functions/execl.texi (execl): Likewise.
61005         * doc/posix-functions/execle.texi (execle): Likewise.
61006         * doc/posix-functions/execlp.texi (execlp): Likewise.
61007         * doc/posix-functions/execv.texi (execv): Likewise.
61008         * doc/posix-functions/execve.texi (execve): Likewise.
61009         * doc/posix-functions/execvp.texi (execvp): Likewise.
61010         * doc/glibc-functions/canonicalize_file_name.texi
61011         (canonicalize_file_name): Cygwin 1.7 now provides this.
61012         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
61013         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
61014         on AT_SYMLINK_NOFOLLOW.
61016 2009-09-24  Eric Blake  <ebb9@byu.net>
61018         test-linkat: make test more robust
61019         * tests/test-linkat.c (main): Avoid collision with EEXIST.
61021         getopt: fix inclusion guards for cygwin
61022         * modules/getopt-posix (Depends-on): Add include-next.
61023         (Makefile.am): Substitute more items in replacement header.
61024         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
61025         <getopt.h>.
61026         * lib/getopt.in.h (includes): Use split inclusion guard, and
61027         prefer <getopt.h> over include <unistd.h> when one is present.
61028         (option): Also override name of 'struct option'.
61030         same-inode: revert prior change; it is not yet ready
61031         * NEWS: Undo mention of this change.
61032         * lib/same-inode.h (same-inode.h): Undo tri-state change.
61033         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
61034         * lib/cycle-check.c (cycle_check): Likewise.
61035         * lib/same.c (same_name): Likewise.
61036         * lib/at-func2.c (at_func2): Likewise.
61038 2009-09-23  Eric Blake  <ebb9@byu.net>
61040         linkat: new module
61041         * modules/linkat: New file.
61042         * lib/at-func2.c (at_func2): Likewise.
61043         * lib/linkat.c (linkat): Likewise.
61044         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
61045         * lib/openat-priv.h (at_func2): Add declaration.
61046         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
61047         * modules/unistd (Makefile.am): Substitute them.
61048         * lib/unistd.in.h (linkat): Declare it.
61049         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
61050         * doc/posix-functions/linkat.texi (linkat): Likewise.
61051         * doc/posix-functions/link.texi (link): Tweak wording.
61052         * tests/test-link.c (main): Move guts...
61053         * tests/test-link.h (test_link): ...into new file.
61054         * modules/linkat-tests: New test.
61055         * tests/test-linkat.c: Likewise.
61056         * modules/link-tests (Files): Ship new file.
61057         (Depends-on): Add stdbool.
61059         dirname: add library-safe mdir_name
61060         * lib/dirname.h (mdir_name): New prototype.
61061         * lib/dirname.c (dir_name): Move guts...
61062         (mdir_name): ...to new function that avoids xalloc_die.
61064         fchdir: another mingw fix
61065         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
61066         * lib/fchdir.c (get_name): New helper method; skips canonicalize
61067         on mingw (where it has not yet been ported), and make it optional
61068         elsewhere.
61069         (_gl_register_fd): Use it.
61071         same-inode: make SAME_INODE tri-state, to port to mingw
61072         * NEWS: Mention this change.
61073         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
61074         st_ino always being 0.
61075         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
61076         * lib/cycle-check.c (cycle_check): Likewise.
61077         * lib/same.c (same_name): Likewise.
61079         lstat: avoid mingw compilation error
61080         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
61081         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
61082         lstat ourselves.
61083         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
61084         was adequate.
61085         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
61086         the checks for lstat.
61087         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
61089         link: fix test failure on Solaris 9
61090         * lib/link.c (rpl_link): Don't assume link will catch bogus
61091         trailing slash on source.
61093         test-symlinkat: enhance test
61094         * tests/test-readlink.c (main): Move guts...
61095         * tests/test-readlink.h (test_readlink): ...into new file.
61096         * tests/test-symlink.c (main): Move guts...
61097         * tests/test-symlink.h (test_symlink): ...into new file.
61098         * tests/test-symlinkat.c (main): Use new files for further
61099         coverage.
61100         (do_symlink, do_readlink): New helper functions.
61101         * modules/symlink-tests (Files): Ship new file.
61102         (Depends-on): Add stdbool.
61103         * modules/readlink-tests (Files): Ship new file.
61104         (Depends-on): Add stdbool.
61105         * modules/symlinkat-tests (Files): Use new files.
61107 2009-09-23  Eric Blake  <ebb9@byu.net>
61109         readlink: document portability issue with symlink length
61110         * doc/posix-functions/lstat.texi (lstat): Mention that some file
61111         systems have bogus st_size on symlinks, and mention the
61112         areadlink-with-size module.
61113         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
61114         * doc/posix-functions/readlink.texi (readlink): Mention the
61115         areadlink module, and ERANGE failure.
61116         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
61117         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
61119         readlink: fix Solaris 9 bug with trailing slash
61120         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
61121         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
61122         * doc/posix-functions/readlink.texi (readlink): Document this.
61123         * modules/readlink-tests: New test.
61124         * tests/test-readlink.c: Likewise.
61126         readlink: fix cygwin 1.5.x bug with return type
61127         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
61128         * lib/unistd.in.h (readlink): Use ssize_t.
61129         * lib/readlink.c (readlink): Likewise.
61130         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
61131         * modules/unistd (Makefile.am): Substitute it.
61132         * lib/unistd.in.h (readlink): Declare replacement.
61133         * doc/posix-functions/readlink.texi (readlink): Document this.
61135         symlink: use throughout gnulib
61136         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
61137         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
61138         symlink is not used.
61139         * modules/symlinkat (Depends-on): Add symlink.
61140         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
61141         * modules/canonicalize-tests (Depends-on): Likewise.
61142         * modules/lstat-tests (Depends-on): Likewise.
61143         * modules/openat-tests (Depends-on): Likewise.
61144         * modules/remove-tests (Depends-on): Likewise.
61145         * modules/rmdir-tests (Depends-on): Likewise.
61146         * modules/unlink-tests (Depends-on): Likewise.
61147         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
61148         * tests/test-canonicalize.c (symlink): Likewise.
61149         * tests/test-fstatat.c (symlink): Likewise.
61150         * tests/test-lstat.c (symlink): Likewise.
61151         * tests/test-remove.c (symlink): Likewise.
61152         * tests/test-rmdir.c (symlink): Likewise.
61153         * tests/test-unlink.c (symlink): Likewise.
61154         * tests/test-unlinkat.c (symlink): Likewise.
61156         symlink: new module, for Solaris 9 bug
61157         * modules/symlink: New file.
61158         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
61159         * lib/symlink.c: Likewise.
61160         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
61161         * modules/unistd (Makefile.am): Substitute them.
61162         * lib/unistd.in.h (symlink): Declare replacement.
61163         * MODULES.html.sh (File system functions): Mention it.
61164         * doc/posix-functions/symlink.texi (symlink): Likewise.
61165         * modules/symlink-tests: New test.
61166         * tests/test-symlink.c: Likewise.
61168 2009-09-23  Bruno Haible  <bruno@clisp.org>
61170         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
61171         when needed.
61172         Test case: gnulib-tool --import --with-tests atexit inttypes.
61173         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
61175 2009-09-23  Bruno Haible  <bruno@clisp.org>
61177         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
61178         subcommand, not in a subshell.
61180 2009-09-22  Eric Blake  <ebb9@byu.net>
61182         unistd: sort replacement declarations
61183         * lib/unistd.in.h: Sort declarations.
61185         open, openat: minor optimization
61186         * lib/open.c (open): If open succeeded, len is non-zero.
61187         * lib/openat.c (rpl_openat): Likewise.
61189         link-follow: ensure correct result
61190         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
61191         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
61192         distinguish between possible failures.
61194 2009-09-21  Eric Blake  <ebb9@byu.net>
61196         fts: avoid compiler warning
61197         * lib/fts.c (dirent_inode_sort_may_be_useful)
61198         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
61200 2009-09-19  Bruno Haible  <bruno@clisp.org>
61202         * lib/progreloc.c (canonicalize_file_name): New declaration.
61204 2009-09-19  Eric Blake  <ebb9@byu.net>
61206         link: fix quoting
61207         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
61209         openat: fix openat bugs on Solaris 9
61210         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
61211         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
61212         * modules/openat (Depends-on): Add open.
61213         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
61214         * modules/fcntl-h (Makefile.am): Substitute it.
61215         * lib/fcntl.in.h (openat): Declare replacement.
61216         * doc/posix-functions/openat.texi (openat): Document this.
61218         openat: move fstatat and unlinkat into correct files
61219         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
61220         compiled.
61221         * lib/openat.c (fstatat, unlinkat): Move...
61222         * lib/fstatat.c (fstatat): ...into correct files.
61223         * lib/unlinkat.c (unlinkat): Likewise.
61225         openat: fix unlinkat bugs on Solaris 9
61226         * lib/unlinkat.c (unlinkat): New file.
61227         * modules/openat (Depends-on): Add unlink.
61228         (Files): Distribute it.
61229         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
61230         trailing slash behavior is broken.
61231         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
61232         * modules/unistd (Makefile.am): Substitute it.
61233         * lib/unistd.in.h (unlinkat): Declare replacement.
61234         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
61236         openat: fix fstatat bugs on Solaris 9
61237         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
61238         stat.
61239         * doc/posix-functions/fstatat.texi (fstatat): Document this.
61241         test-unlinkat: enhance test, to expose Solaris 9 bug
61242         * tests/test-unlink.c (main): Factor guts...
61243         * tests/test-unlink.h (test_rmdir_func): ...into new file.
61244         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
61245         * tests/test-rmdir.c (main): Adjust caller.
61246         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
61247         (unlinker): New helper function.
61248         (rmdirat): Enhance check.
61249         * modules/rmdir-tests (Depends-on): Add stdbool.
61250         * modules/unlink-tests (Depends-on): Likewise.
61251         (Files): Add test-unlink.h.
61252         * modules/openat-tests (Files): Likewise.
61253         (Depends-on): Add unlinkdir.
61255         test-fstatat: new test, to expose Solaris 9 bugs
61256         * tests/test-stat.c (main): Factor guts...
61257         * tests/test-stat.h (test_stat_func): ...into new file.
61258         * tests/test-lstat.c (main): Factor guts...
61259         * tests/test-lstat.h (test_lstat_func): ...into new file.
61260         * tests/test-fstatat.c: New file.
61261         * modules/stat-tests (Files): Add test-stat.h.
61262         * modules/lstat-tests (Files): Add test-lstat.h.
61263         (Depends-on): Add stdbool.
61264         * modules/openat-tests (Depends-on): Add pathmax.
61265         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
61266         (Makefile.am): Run new test.
61268         remove: new module, for mingw and Solaris 9 bugs
61269         * modules/remove: New file.
61270         * lib/remove.c: Likewise.
61271         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
61272         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
61273         * modules/stdio (Makefile.am): Use them.
61274         * lib/stdio.in.h (remove): Declare replacement.
61275         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
61276         * doc/posix-functions/remove.texi (remove): Likewise.
61277         * modules/remove-tests: New test.
61278         * tests/test-remove.c: Likewise.
61280         unlink: new module, for Solaris 9 bug
61281         * modules/unlink: New file.
61282         * lib/unlink.c: Likewise.
61283         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
61284         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
61285         * modules/unistd (Makefile.am): Use them.
61286         * lib/unistd.in.h (stat): Declare replacement.
61287         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
61288         * doc/posix-functions/unlink.texi (unlink): Likewise.
61289         * modules/unlink-tests: New test.
61290         * tests/test-unlink.c: Likewise.
61292         lstat: fix Solaris 9 bug
61293         * lib/lstat.c (lstat): Also check for trailing slash on
61294         non-symlink, non-directories.  Use stat module to simplify logic.
61295         * doc/posix-functions/lstat.texi (lstat): Document it.
61296         * modules/lstat-tests (Depends-on): Add errno, same-inode.
61297         (configure.ac): Check for symlink.
61298         * tests/test-lstat.c (main): Add more tests.
61300         stat: add as dependency to other modules
61301         * modules/chown (Depends-on): Add stat.
61302         * modules/euidaccess (Depends-on): Likewise.
61303         * modules/fchdir (Depends-on): Likewise.
61304         * modules/isdir (Depends-on): Likewise.
61305         * modules/link (Depends-on): Likewise.
61306         * modules/lstat (Depends-on): Likewise.
61307         * modules/mkdir-p (Depends-on): Likewise.
61308         * modules/modechange (Depends-on): Likewise.
61309         * modules/open (Depends-on): Likewise.
61310         * modules/readlink (Depends-on): Likewise.
61311         * modules/same (Depends-on): Likewise.
61313         stat: fix Solaris 9 bug
61314         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
61315         slash.
61316         * lib/stat.c (rpl_stat): Work around it.
61317         * doc/posix-functions/stat.texi (stat): Update documentation.
61319         stat: new module, for mingw bug
61320         * modules/stat: New file.
61321         * lib/stat.c: Likewise.
61322         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
61323         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
61324         * modules/sys_stat (Makefile.am): Use them.
61325         * lib/sys_stat.in.h (stat): Declare replacement.
61326         * lib/openat.c (fstatat): Deal with lstat and stat being function
61327         macros.
61328         * modules/openat (Depends-on): Add inline.
61329         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
61330         * doc/posix-functions/stat.texi (stat): Likewise.
61331         * modules/stat-tests: New test.
61332         * tests/test-stat.c: Likewise.
61334 2009-09-19  Jim Meyering  <meyering@redhat.com>
61336         syntax-check: detect unnecessary inclusion of canonicalize.h
61337         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
61339 2009-09-19  Eric Blake  <ebb9@byu.net>
61341         canonicalize-lgpl: adjust clients to use correct header
61342         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
61343         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
61344         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
61345         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
61346         * lib/progreloc.c (includes): Likewise.
61348 2009-09-19  Jim Meyering  <meyering@redhat.com>
61350         test-posixtm.c: correct a comment
61351         * tests/test-posixtm.c: Correct first-line comment.
61352         Spotted by Eric Blake.
61354 2009-09-16  Jim Meyering  <meyering@redhat.com>
61356         posixtm-tests: make T const-correct; add a test case
61357         * tests/test-posixtm.c (T): Declare const.
61358         Add a test for -(2^31+1).
61359         Remove useless can-succeed-only-in-2002 test.
61361         posixtm-tests: adjust the sole failing test
61362         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
61363         expected output matches what mktime now produces.  Cross-checked via
61364         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
61366         posixtm: move #ifdef'd tests into a new module
61367         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
61368         * tests/test-posixtm.c: ... this new file.
61369         * modules/posixtm-tests: New module.
61371 2009-09-19  Eric Blake  <ebb9@byu.net>
61373         openat: simplify use of at-func.c
61374         * lib/at-func.c (includes): Include prerequisites here, to
61375         simplify requirements on client files.
61376         * lib/openat-priv.h: Add double-inclusion guard.
61377         * lib/faccessat.c (includes): Simplify.
61378         * lib/fchmodat.c (includes): Likewise.
61379         * lib/fchownat.c (includes): Likewise.
61380         * lib/mkdirat.c (includes): Likewise.
61381         * lib/mkfifoat.c (includes): Likewise.
61382         * lib/symlinkat.c (includes): Likewise.
61384         openat: allow return of fd 0
61385         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
61386         * modules/save-cwd (Depends-on): Replace fcntl-safer with
61387         unistd-safer.
61388         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
61389         <fcntl.h>; this module does not leak fds.
61390         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
61391         must be allowed to return 0, leaving openat_safer to add the
61392         safety.
61393         (openat_permissive): Avoid writing to just-opened fd 2 if
61394         restoring the current directory fails.
61395         * lib/openat-die.c (openat_restore_fail): Add comment.
61396         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
61397         (save_cwd): Guarantee safe fd, but without use of open_safer.
61398         * tests/test-openat.c: New test.
61399         * modules/openat-tests (Files, Makefile.am): Distribute and build
61400         new file.
61402         relocatable-prog-wrapper: fix build
61403         * modules/relocatable-prog-wrapper (Files): Update name of
61404         canonicalize m4 file, broken on 2009-09-17.
61405         Reported by emad hajjar <aleppos@hotmail.com>.
61407 2009-09-19  Bruno Haible  <bruno@clisp.org>
61409         * lib/safe-alloc.h: Use the standard header with GPL copyright.
61410         * lib/safe-alloc.c: Likewise.
61411         Reported by Ian Beckwith <ianb@erislabs.net>.
61413 2009-09-18  Bruno Haible  <bruno@clisp.org>
61415         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
61416         Reported by <erobles@sensacd.com.mx>.
61418 2009-09-17  Eric Blake  <ebb9@byu.net>
61420         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
61421         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
61422         slashes when checking if last component is missing.
61423         * tests/test-canonicalize.c (main): Test this.
61425         canonicalize, canonicalize-lgpl: honor // if distinct from /
61426         * modules/canonicalize (Files): Add double-slash-root.m4.
61427         * modules/canonicalize-lgpl (Files): Likewise.
61428         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
61429         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
61430         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
61431         fallback definition.
61432         (canonicalize_filename_mode): Use it to protect //.
61433         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
61434         (__realpath): Likewise.
61435         * tests/test-canonicalize.c (main): Test this.
61436         * tests/test-canonicalize-lgpl.c (main): Likewise.
61437         * modules/canonicalize-tests (Depends-on): Add same-inode.
61438         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
61440         canonicalize-lgpl: fix glibc bug with trailing slash
61441         * m4/canonicalize-lgpl.m4: Move contents...
61442         * m4/canonicalize.m4: ...here.
61443         (gl_CANONICALIZE_LGPL): Factor realpath check...
61444         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
61445         glibc 2.3.5 bug, fixed 2005-04-27.
61446         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
61447         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
61448         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
61449         * modules/canonicalize-lgpl (Files): Manage file rename.
61450         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
61451         * modules/stdlib (Makefile.am): Substitute witness.
61452         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
61453         is needed.
61454         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
61455         replacement is required.
61456         * lib/canonicalize.c (canonicalize_file_name): Likewise.
61457         * doc/glibc-functions/canonicalize_file_name.texi
61458         (canonicalize_file_name): Document this.
61459         * doc/posix-functions/realpath.texi (realpath): Likewise.
61461         canonicalize-lgpl: reject non-directory with trailing slash
61462         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
61463         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
61464         catches failures in glibc 2.3.5.
61465         * tests/test-canonicalize.c (main): Likewise.
61467         canonicalize-lgpl: use native realpath if it works
61468         * lib/canonicalize-lgpl.c (realpath): Guard with
61469         FUNC_REALPATH_WORKS.
61470         * lib/stdlib.in.h (realpath): Make declaration optional based on
61471         HAVE_REALPATH.
61472         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
61473         native realpath works.
61474         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
61475         * modules/stdlib (Makefile.am): Substitute witness.
61477         canonicalize, canonicalize-lgpl: use <stdlib.h>
61478         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
61479         (Include): Mention <stdlib.h>.
61480         (configure.ac): Mention functions we provide.
61481         * modules/canonicalize (configure.ac): Likewise.
61482         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
61483         realpath if canonicalize_file_name is missing.
61484         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
61485         * modules/stdlib (Makefile.am): Substitute witnesses.
61486         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
61487         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
61488         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
61489         * NEWS: Document this.
61490         * doc/glibc-functions/canonicalize_file_name.texi
61491         (canonicalize_file_name): Likewise.
61492         * doc/posix-functions/realpath.texi (realpath): Likewise.
61493         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
61495         test-canonicalize: consolidate into single C program
61496         * tests/test-canonicalize.sh: Delete; move setup into...
61497         * tests/test-canonicalize.c (main): ...the program, making it
61498         easier to run in debugger.  Add some tests.
61499         * modules/canonicalize-tests (Files): Remove unused file.
61500         (Depends-on): Add progname.
61501         (configure.ac, Makefile.am): Simplify.
61503         test-canonicalize-lgpl: consolidate into single C program
61504         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
61505         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
61506         easier to run in debugger.  Add some tests.
61507         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
61508         (configure.ac, Makefile.am): Simplify.
61510         canonicalize: avoid resolvepath
61511         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
61512         unnecessary checks.
61513         * lib/canonicalize.c (includes): Simplify.
61514         (canonicalize_file_name): Drop resolvepath implementation.
61515         * modules/canonicalize (Depends-on): Drop filenamecat.
61517         canonicalize: don't lose errno
61518         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
61519         over calls to free.
61521         canonicalize: simplify errno handling
61522         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
61523         assignment.
61525         canonicalize, canonicalize-lgpl: update module dependencies
61526         * modules/canonicalize (Depends-on): Add extensions, lstat,
61527         pathmax, stdlib.
61528         (Files): Drop pathmax.h.
61529         (configure.ac): Adjust macro name.
61530         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
61531         lstat, stdlib, sys_stat.
61532         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
61533         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
61534         extensions.
61535         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
61536         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
61537         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
61538         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
61539         declaration, if available.
61540         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
61541         we can rely on the readlink module.
61542         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
61543         (includes): Use <unistd.h> unconditionally.
61545 2009-09-17  Eric Blake  <ebb9@byu.net>
61547         maint: make Include sections of modules consistent
61548         * modules/alloca: Use only header name; no need to list #include.
61549         * modules/alloca-opt: Likewise.
61550         * modules/arpa_inet: Likewise.
61551         * modules/canon-host: Likewise.
61552         * modules/configmake: Likewise.
61553         * modules/dirent: Likewise.
61554         * modules/eealloc: Likewise.
61555         * modules/environ: Likewise.
61556         * modules/fchdir: Likewise.
61557         * modules/fcntl: Likewise.
61558         * modules/fcntl-h: Likewise.
61559         * modules/gethrxtime: Likewise.
61560         * modules/gettime: Likewise.
61561         * modules/ignore-value: Likewise.
61562         * modules/inet_ntop: Likewise.
61563         * modules/inet_pton: Likewise.
61564         * modules/inttypes: Likewise.
61565         * modules/isnand-nolibm: Likewise.
61566         * modules/isnanf-nolibm: Likewise.
61567         * modules/mbchar: Likewise.
61568         * modules/mbfile: Likewise.
61569         * modules/mbiter: Likewise.
61570         * modules/mbuiter: Likewise.
61571         * modules/netdb: Likewise.
61572         * modules/netinet_in: Likewise.
61573         * modules/nproc: Likewise.
61574         * modules/pagealign_alloc: Likewise.
61575         * modules/poll: Likewise.
61576         * modules/printf-frexp: Likewise.
61577         * modules/pthread: Likewise.
61578         * modules/putenv: Likewise.
61579         * modules/random_r: Likewise.
61580         * modules/relocatable-prog: Likewise.
61581         * modules/search: Likewise.
61582         * modules/select: Likewise.
61583         * modules/selinux-h: Likewise.
61584         * modules/settime: Likewise.
61585         * modules/signal: Likewise.
61586         * modules/size_max: Likewise.
61587         * modules/socklen: Likewise.
61588         * modules/ssize_t: Likewise.
61589         * modules/stdarg: Likewise.
61590         * modules/stdbool: Likewise.
61591         * modules/stddef: Likewise.
61592         * modules/stdint: Likewise.
61593         * modules/stdio: Likewise.
61594         * modules/stdlib: Likewise.
61595         * modules/string: Likewise.
61596         * modules/strings: Likewise.
61597         * modules/sys_file: Likewise.
61598         * modules/sys_ioctl: Likewise.
61599         * modules/sys_select: Likewise.
61600         * modules/sys_socket: Likewise.
61601         * modules/sys_stat: Likewise.
61602         * modules/sys_time: Likewise.
61603         * modules/sys_times: Likewise.
61604         * modules/sys_utsname: Likewise.
61605         * modules/sys_wait: Likewise.
61606         * modules/sysexits: Likewise.
61607         * modules/time: Likewise.
61608         * modules/times: Likewise.
61609         * modules/tmpfile: Likewise.
61610         * modules/trim: Likewise.
61611         * modules/unistd: Likewise.
61612         * modules/wchar: Likewise.
61613         * modules/wctype: Likewise.
61615 2009-09-17  Bruno Haible  <bruno@clisp.org>
61617         Make getdate.y compile on QNX and NetBSD 5 / i386.
61618         * m4/getdate.m4 (gl_GETDATE): Conditionally define
61619         TIME_T_FITS_IN_LONG_INT.
61620         * lib/getdate.y (long_time_t): New type.
61621         (relative_time): Change type of 'seconds' field to long_time_t.
61622         (get_date): Update types of local variables. Check against overflow
61623         during conversion from long_time_t to time_t.
61624         Reported by Matt Kraai <kraai@ftbfs.org>
61625         and Hasso Tepper <hasso@netbsd.org>.
61627 2009-09-17  Bruno Haible  <bruno@clisp.org>
61629         * modules/COPYING: Update copyright years.
61630         * modules/README: Likeiwse.
61631         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
61632         Reported by Ian Beckwith <ianb@erislabs.net>.
61634 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
61636         * users.txt: Update references for gnuit package.
61638 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
61640         * m4/getdelim.m4: Fix typo in copyright line.
61642 2009-09-17  Bruno Haible  <bruno@clisp.org>
61644         * lib/atoll.c: Use the standard header with GPL copyright.
61645         * lib/argz.in.h: Likewise.
61646         * lib/glob.c: Likewise.
61647         * lib/glob-libc.h: Likewise.
61648         * lib/random_r.c: Likewise.
61649         * lib/siglist.h: Likewise.
61650         * lib/strsignal.c: Likewise.
61651         Reported by Ian Beckwith <ianb@erislabs.net>.
61653 2009-09-17  Eric Blake  <ebb9@byu.net>
61655         rmdir: ensure correct dependency order
61656         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
61658 2009-09-17  Bruno Haible  <bruno@clisp.org>
61660         Disable assertion that fails on NetBSD 5 / i386.
61661         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
61662         Reported by Sam Steingold <sds@gnu.org>
61663         and Hasso Tepper <hasso@netbsd.org>.
61665 2009-09-16  Eric Blake  <ebb9@byu.net>
61667         unlinkdir: port to mingw
61668         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
61669         on which no one can unlink a directory.
61671         stdlib: sort witness names
61672         * modules/stdlib (Makefile.am): Sort replacements.
61673         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
61674         * lib/stdlib.in.h: Likewise.
61676         parse-duration-tests: avoid link failure
61677         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
61678         LIBINTL.
61679         Reported by Tom G. Christensen.
61681         openat-tests: ensure unlinkat behaves like rmdir
61682         * tests/test-rmdir.c (main): Factor guts...
61683         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
61684         * modules/rmdir-tests (Files): Ship new file.
61685         * modules/openat-tests: New test.
61686         * tests/test-unlinkat.c: Likewise.
61688         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
61689         * modules/rmdir-errno (Status, Notice): Now obsolete.
61691         rmdir: work around cygwin 1.5.x and mingw bugs
61692         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
61693         * lib/rmdir.c (rmdir): Work around it.
61694         * modules/rmdir (Status, Notice): No longer obsolete.
61695         (Files): Add dos.m4.
61696         (Depends-on): Add unistd.
61697         (configure.ac): Set witnesses.
61698         (License): Relax to LGPLv2+.
61699         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
61700         * modules/unistd (Makefile.am): Substitute witnesses.
61701         * lib/unistd.in.h (rmdir): Declare replacement.
61702         * doc/posix-functions/rmdir.texi (rmdir): Document this.
61703         * modules/rmdir-tests: New tests.
61704         * tests/test-rmdir.c: Likewise.
61706 2009-09-15  Eric Blake  <ebb9@byu.net>
61708         fchdir: improve use of replacement functions
61709         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
61710         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
61711         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
61712         REPLACE_CLOSEDIR.
61713         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
61714         * modules/sys_stat (Makefile.am): Substitute correct witness.
61715         * modules/dirent (Makefile.am): Likewise.
61716         * modules/unistd (Makefile.am): Likewise.
61717         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
61718         * lib/unistd.in.h (dup): Likewise.
61719         * lib/sys_stat.in.h (fstat): Likewise.
61721         maint: ignore gnulib-tool temp files
61722         * .gitignore: Ignore files created during gnulib-tool --test.
61724 2009-09-13  Jim Meyering  <meyering@redhat.com>
61726         posixtm: don't reject a time that specify "60" as the number of seconds
61727         * lib/posixtm.c (posixtime): The code to reject invalid dates
61728         would also reject a time specified with the .60 suffix.
61729         But POSIX allows that, in order to accommodate leap seconds.
61730         So don't reject it.
61731         (main): Adjust tests accordingly.
61732         * modules/posixtm (Depends-on): Add stpcpy.
61734 2009-09-11  Jim Meyering  <meyering@redhat.com>
61736         announce-gen: include [$release_type] in emitted Subject:
61737         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
61738         e.g., [stable] in the emitted Subject: line.
61740 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61742         Remove obsolete macros from several modules.
61743         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
61744         obsolete Autoconf macros with their modern counterparts.
61745         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
61746         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
61747         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
61748         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
61749         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
61750         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
61751         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
61752         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
61753         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
61754         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
61755         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
61756         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
61757         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
61758         * m4/sockets.m4 (gl_SOCKETS): Likewise.
61759         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
61760         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
61761         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
61762         * m4/time_r.m4 (gl_TIME_R): Likewise.
61763         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
61764         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
61765         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
61767         Fix copyright header in build-aux scripts.
61768         * build-aux/git-version-gen: Fix copyright header to match GPLv3
61769         recommendation.
61770         * build-aux/ncftpput-ftp: Likewise.
61771         * build-aux/update-copyright: Likewise.
61773 2009-09-09  Eric Blake  <ebb9@byu.net>
61775         test-link: allow Linux choice of errno
61776         * tests/test-link.c (main): Relax test for alternate error.
61778         strndup: fix improper m4 caching
61779         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
61780         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
61781         (gl_PREREQ_STRNDUP): Delete.
61782         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
61783         * modules/string (Makefile.am): Substitute it.
61784         * lib/string.in.h (strndup): Modernize prototype.
61786         getcwd: port to mingw
61787         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
61788         different from the POSIX assumptions made throughout the getcwd
61789         module; fortunately, the mingw getcwd does not need replacement.
61790         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
61791         * modules/getcwd-tests: New test.
61792         * tests/test-getcwd.c: Likewise.
61794         link: fix platform bugs
61795         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
61796         * lib/link.c (link): Work around them.  Fix related mingw bug.
61797         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
61798         * modules/unistd (Makefile.am): Substitute it.
61799         * lib/unistd.in.h (link): Declare replacement.
61800         * doc/posix-functions/link.texi (link): Document this.
61801         * modules/link (Depends-on): Add strdup-posix, sys_stat.
61803         test-link: consolidate into single C program, test more cases
61804         * tests/test-link.sh: Delete.
61805         * tests/test-link.c: Test more error conditions.  Exposes bugs on
61806         at least Cygwin and Solaris.
61807         * modules/link-tests (Files): Remove unused file.
61808         (Depends-on): Add errno, sys_stat.
61809         (Makefile.am): Simplify.
61811 2009-09-08  Bruno Haible  <bruno@clisp.org>
61813         Work around towlower, towupper bug on mingw.
61814         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
61815         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
61816         * doc/posix-functions/towlower.texi: Mention the mingw bug.
61817         * doc/posix-functions/towupper.texi: Likewise.
61818         Reported by Eric Blake.
61820 2009-09-08  Jim Meyering  <meyering@redhat.com>
61822         build: don't try to run autoheader if we don't use it
61823         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
61824         is not used in configure.ac.
61826 2009-09-08  Eric Blake  <ebb9@byu.net>
61828         euidaccess: fix compilation error
61829         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
61831         rawmemchr: relax license
61832         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
61833         okay.
61834         Reported by Jim Meyering.
61836         mkfifoat: new module
61837         * modules/mkfifoat: New file.
61838         * lib/mkfifoat.c: Likewise.
61839         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
61840         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
61841         * modules/sys_stat (Makefile.am): Use them.
61842         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
61843         * MODULES.html.sh (File system functions): Mention module.
61844         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
61845         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
61846         * modules/mkfifoat-tests: New test.
61847         * tests/test-mkfifoat.c: Likewise.
61849         strchrnul: relax license
61850         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
61851         okay.
61852         Reported by Jim Meyering.
61854 2009-09-08  Eric Blake  <ebb9@byu.net>
61856         fstatat: fix compilation on Solaris
61857         * lib/fstatat.c (includes): Add fcntl.h.
61858         Reported by Pádraig Brady.
61860 2009-09-07  Eric Blake  <ebb9@byu.net>
61862         rename: modernize replacement
61863         * modules/rename (Depends-on): Add stdio.
61864         (configure.ac): Declare witness.
61865         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
61866         stdio take care of replacement.
61867         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
61868         * modules/stdio (Makefile.am): Substitute them.
61869         * lib/stdio.in.h (rename): Declare replacement.
61870         * lib/rename.c (includes): Allow cross-compilation to non-windows
61871         machines.
61872         * doc/posix-functions/rename.texi (rename): Improve
61873         documentation.
61875         stdio: sort witness names
61876         * modules/stdio (Makefile.am): Sort replacements.
61877         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
61878         * lib/stdio.in.h: Likewise.
61880         getcwd: minor cleanups
61881         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
61882         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
61884         openat: provide more convenience names
61885         * modules/faccessat (configure.ac): Add C witness.
61886         * lib/unistd.in.h (readlinkat): Fix typo.
61887         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
61888         convenience wrappers.
61889         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
61890         wrappers in syntax checks.
61892 2009-09-06  Eric Blake  <ebb9@byu.net>
61894         doc: fix comments in recent patches
61895         * lib/faccessat.c: Mention correct function.
61896         * lib/fchmodat.c: Likewise.
61897         * lib/fchownat.c: Likewise.
61898         * lib/symlinkat.c: Likewise.
61899         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
61900         constants.
61902         faccessat, symlinkat: continue cleanup of previous patch
61903         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
61904         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
61905         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
61906         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
61907         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
61908         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
61909         set.
61911 2009-09-06  Bruno Haible  <bruno@clisp.org>
61913         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
61914         (fstatat): Declare if GNULIB_FSTATAT is set.
61915         (mkdirat): Declare if GNULIB_MKDIRAT is set.
61916         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
61917         (unlinkat): Declare if GNULIB_UNLINKAT is set.
61918         * modules/fcntl-h (Files): Remove m4/openat.m4.
61919         * modules/sys_stat (Files): Remove m4/openat.m4.
61920         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
61921         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
61922         * modules/unistd (Files): Remove m4/openat.m4.
61923         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
61924         GNULIB_OPENAT.
61925         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
61926         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
61927         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
61928         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
61929         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
61930         gl_OPENAT_DEFAULTS.
61931         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
61932         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
61933         Don't require gl_OPENAT_DEFAULTS.
61934         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
61935         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
61936         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
61937         (gl_OPENAT_DEFAULTS): Remove macro.
61939 2009-09-06  Bruno Haible  <bruno@clisp.org>
61941         * modules/openat (configure.ac): Remove unneeded witness.
61943 2009-09-06  Bruno Haible  <bruno@clisp.org>
61945         Set errno to ENOSYS when a function is entirely unsupported.
61946         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
61947         EOPNOTSUPP.
61948         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
61949         * modules/chown (Depends-on): Remove errno.
61951 2009-09-06  Bruno Haible  <bruno@clisp.org>
61953         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
61955 2009-09-06  Bruno Haible  <bruno@clisp.org>
61957         * lib/sys_stat.in.h: Fix preprocessor command indentation.
61959 2009-09-06  Ben Pfaff  <blp@gnu.org>
61960             Bruno Haible  <bruno@clisp.org>
61962         Work around a glibc bug in strtok_r.
61963         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
61964         Undefine if UNDEFINE_STRTOK_R is set.
61965         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
61966         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61967         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
61968         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
61969         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
61970         UNDEFINE_STRTOK_R.
61971         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
61973 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
61975         exclude: minor fix
61976         * lib/exclude.c: Include wctype.h
61978 2009-09-06  Akim Demaille  <demaille@gostai.com>
61980         bootstrap: improve error message
61981         * build-aux/bootstrap (find_tool): Upon failure, report the list
61982         of candidates.
61983         Honor the initial value of the envvar.
61985 2009-09-05  Eric Blake  <ebb9@byu.net>
61987         symlinkat: new module
61988         * modules/symlinkat: New file.
61989         * lib/symlinkat.c: Likewise.
61990         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
61991         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
61992         * modules/unistd (Makefile.am): Use them.
61993         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
61994         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
61995         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
61996         * MODULES.html.sh (File system functions): Mention module.
61997         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
61998         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
61999         * modules/symlinkat-tests: New test.
62000         * tests/test-symlinkat.c: Likewise.
62002         test-openat-safer: add more checks
62003         * tests/test-openat-safer.c (main): Check more code paths.
62005 2009-09-05  Jim Meyering  <meyering@redhat.com>
62007         syntax-check: detect unnecessary inclusion of openat.h
62008         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
62010 2009-09-05  Bruno Haible  <bruno@clisp.org>
62012         Support towlower, towupper.
62013         * doc/posix-functions/towlower.texi: Mention module wctype.
62014         * doc/posix-functions/towupper.texi: Likewise.
62015         * lib/wctype.in.h (towlower, towupper): New functions.
62016         * tests/test-wctype.c: Include stdio.h, stdlib.h.
62017         (ASSERT): New macro.
62018         (e): New variable.
62019         (main): Test also towlower, towupper. Test WEOF argument.
62020         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
62022 2009-09-05  Bruno Haible  <bruno@clisp.org>
62024         Fix conversion behaviour when the input is invalid.
62025         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
62026         mark occurring in first pass of indirect conversion.
62027         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
62028         input.
62029         Found by clang's static analyzer.
62031 2009-09-05  Bruno Haible  <bruno@clisp.org>
62033         * tests/test-striconveh.c (main): Test indirect conversion on platforms
62034         where direct conversion is possible.
62036 2009-09-04  Eric Blake  <ebb9@byu.net>
62038         openat: fail with ENOENT on empty name
62039         * lib/openat-proc.c (openat_proc_name): Special-case the empty
62040         buffer.
62042         link-follow: fix logic bug in prior patch
62043         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
62044         reversed sense of yes and no in prior patch.  Avoid confusing
62045         compilation failure with desired semantics.
62047         link-follow: accommodate mingw and cross-compilation
62048         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
62049         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
62050         cross-compilation results to -1, to make linkat easier to
62051         implement when cross-compiling.  Trivially support mingw.
62052         * modules/link-follow (configure.ac): Call new name.
62053         * NEWS: Mention this.
62055 2009-09-03  Eric Blake  <ebb9@byu.net>
62057         faccessat: compile replacement
62058         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
62059         needed.
62061         fts: fix compilation error
62062         * lib/fts.c (includes): Re-add "openat.h", for
62063         openat_needs_fchdir.
62065         faccessat: new module
62066         * modules/faccessat: New file.
62067         * lib/faccessat.c: Likewise.
62068         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
62069         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
62070         * modules/unistd (Makefile.am): Use it.
62071         * lib/unistd.in.h (faccessat): Declare it.
62072         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
62073         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
62074         * MODULES.html.sh (File system functions): Mention it.
62075         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
62076         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
62078         euidaccess: prefer POSIX over non-standard implementation
62079         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
62080         * lib/euidaccess.c (euidaccess): Use it if available.
62082         openat: make template easier to use
62083         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
62084         AT_FUNC_F2 to be undefined.
62085         (VALIDATE_FLAG): New macro; use it to reject bad flags.
62086         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
62087         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
62088         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
62089         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
62090         Likewise.
62091         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
62092         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
62093         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
62094         Likewise.
62096         openat: declare in POSIX headers
62097         * NEWS: Mention this.
62098         * modules/openat (configure.ac): Declare witnesses.
62099         (Depends-on): Add fcntl-h, sys_stat, unistd.
62100         (Include): Mention correct headers.
62101         * modules/fcntl-h (Depends-on): Add link-warning.
62102         (Files): Add openat.m4.
62103         (Makefile.am): Substitute witnesses.
62104         * modules/sys_stat (Files, Makefile.am): Likewise.
62105         * modules/unistd (Files, Makefile.am): Likewise.
62106         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
62107         (gl_OPENAT_DEFAULTS): New macro.
62108         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
62109         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
62110         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
62111         (SYS_STAT_H): Remove unused variable.
62112         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
62113         * lib/fcntl--.h (includes): Remove unneeded header.
62114         * lib/openat-safer.c (includes): Likewise.
62115         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
62116         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
62117         appropriate headers.
62118         (__OPENAT_PREFIX): Delete.
62119         * lib/fcntl.in.h (openat): Provide declaration.
62120         (AT_FDCWD): Fix Solaris bug.
62121         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
62122         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
62123         * lib/fchmodat.c (includes):  Adjust to find declaration.
62124         * lib/fchownat.c (includes): Likewise.
62125         * lib/mkdirat.c (includes): Likewise.
62126         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
62127         still visible.
62129 2009-09-02  Eric Blake  <ebb9@byu.net>
62131         errno: use consistently
62132         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
62133         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
62134         * lib/canonicalize.c (ELOOP): Likewise.
62135         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
62136         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
62137         * lib/lchown.c (EOPNOTSUPP): Likewise.
62138         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
62139         * lib/savewd.c (ESTALE): Likewise.
62140         * lib/settime.c (ENOSYS): Likewise.
62141         * lib/utimens.c (ENOSYS): Likewise.
62142         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
62143         * lib/chdir-safer.c (ELOOP): Likewise.
62144         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
62145         * modules/c-stack (Depends-on): Add errno.
62146         * modules/canonicalize (Depends-on): Likewise.
62147         * modules/chdir-safer (Depends-on): Likewise.
62148         * modules/fdopendir (Depends-on): Likewise.
62149         * modules/inet_ntop (Depends-on): Likewise.
62150         * modules/inet_pton (Depends-on): Likewise.
62151         * modules/lchown (Depends-on): Likewise.
62152         * modules/openat (Depends-on): Likewise.
62153         * modules/savewd (Depends-on): Likewise.
62154         * modules/settime (Depends-on): Likewise.
62155         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
62157         fts: avoid leaking fds
62158         * modules/fts (Depends-on): Add cloexec.
62159         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
62160         flag.
62162         fts: make directory fds more robust
62163         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
62164         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
62166         backupfile, chdir-long, fts, savedir: make safer
62167         * lib/backupfile.c (includes): Use "dirent--.h", since
62168         numbered_backup can write to stderr during readdir.
62169         * lib/savedir.c (includes): Likewise.
62170         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
62171         emulation can write to stderr on failure.
62172         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
62173         * lib/getcwd.c: Document why opendir_safer is unused.
62174         * lib/glob.c: Likewise.
62175         * lib/scandir.c: Likewise.
62176         * lib/openat-proc.c: Likewise, for open_safer.
62177         * modules/backupfile (Depends-on): Add dirent-safer.
62178         * modules/savedir (Depends-on): Likewise.
62179         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
62180         * modules/chdir-long (Depends-on): Add openat-safer.
62182         openat-safer: new module
62183         * modules/openat-safer: New file.
62184         * lib/openat-safer.c: Likewise.
62185         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
62186         * lib/fcntl-safer.h (openat_safer): Declare.
62187         * lib/fcntl--.h (openat): Override.
62188         * MODULES.html.sh (File descriptor based I/O): Mention it.
62189         * lib/openat.h: Add double-inclusion guards.
62190         * lib/openat.c (includes): Only include "fcntl-safer.h", not
62191         "fcntl--.h", so we can implement openat.
62192         * modules/openat-safer-tests: New test.
62193         * tests/test-openat-safer.c: New file.
62195         dirent-safer: new module
62196         * modules/dirent-safer: New file.
62197         * lib/dirent--.h: Likewise.
62198         * lib/dirent-safer.h: Likewise.
62199         * lib/opendir-safer.c: Likewise.
62200         * m4/dirent-safer.m4: Likewise.
62201         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
62202         * modules/dirent-safer-tests: New test.
62203         * tests/test-dirent-safer.c: New file.
62204         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
62206         fdopendir: optimize on mingw
62207         * lib/unistd.in.h (_gl_directory_name): New prototype.
62208         * lib/fchdir.c (_gl_directory_name): Implement it.
62209         (fchdir): Use it to simplify implementation.
62210         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
62211         fchdir, when available, to avoid calling [f]chdir().
62213         fdopendir: split into its own module
62214         * lib/openat.c (fdopendir): Move...
62215         * lib/fdopendir.c: ...into new file.
62216         * modules/fdopendir: New module.
62217         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
62218         * modules/openat (Depends-on): Add fdopendir.
62219         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
62220         fdopendir here.
62221         * modules/savedir (Depends-on): Only need fdopendir, not full
62222         openat.
62223         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
62224         * lib/openat.h (fdopendir): Drop prototype.
62225         * lib/dirent.in.h (fdopendir): Provide prototype.
62226         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
62227         * modules/dirent (Makefile.am): Substitute them.
62228         * MODULES.html.sh (File system functions): Mention it.
62229         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
62230         * modules/fdopendir-tests: New file.
62231         * tests/test-fdopendir.c: Likewise.
62233         fchdir: use more consistent macro convention
62234         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
62235         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
62236         REPLACE_FCHDIR, rather than relying on config.h macros.
62237         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
62238         inside a single make-time REPLACE_FCHDIR block, rather than using
62239         the config.h FCHDIR_REPLACEMENT.
62240         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
62241         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
62242         Manage fstat replacement.
62243         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
62244         REPLACE_FCHDIR.
62245         * modules/sys_stat (Files): Add m4/unistd_h.m4.
62246         (Makefile.am): Substitute REPLACE_FCHDIR.
62247         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
62248         FCHDIR_REPLACEMENT.
62249         * lib/dup-safer.c (dup_safer): Likewise.
62250         * lib/dup2.c (rpl_dup2): Likewise.
62251         * lib/dup3.c (rpl_dup3): Likewise.
62252         * lib/open.c (rpl_open): Likewise.
62254         fchdir: simplify error handling, and support dup3
62255         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
62256         stdbool, malloc-posix, realloc-posix.
62257         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
62258         (ensure_dirs_slot): Return false on allocation failure.
62259         (rpl_dup2): Delete.
62260         (_gl_register_dup): New function.
62261         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
62262         (_gl_register_fd): Close fd on allocation failure.
62263         * lib/fcntl.in.h (_gl_register_fd): Update signature.
62264         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
62265         prototype.
62266         (rpl_dup2_fchdir): Delete prototype.
62267         * lib/open.c (open): Update caller.
62268         * lib/dup2.c (dup2): Track fchdir metadata.
62269         * lib/dup3.c (dup3): Likewise.
62270         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
62271         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
62273 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62275         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
62276         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
62277         don't pass arguments to AC_OUTPUT.
62279 2009-09-02  Bruno Haible  <bruno@clisp.org>
62281         * modules/mkdtemp (License): Relicense under LGPLv2+.
62282         Reported by Paolo Bonzini.
62284 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62286         Replace uses of obsolete autoconf macros in Jim's modules.
62287         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
62288         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
62289         can evoke a warning from autoconf when run with -Wobsolete
62290         enabled.  They were declared obsolete for good reasons (see
62291         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
62292         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
62293         should not continue using the deprecated macros.
62294         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
62295         obsolete Autoconf macros with modern counterparts.
62296         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
62297         * m4/dos.m4 (gl_AC_DOS): Likewise.
62298         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
62299         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
62300         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
62301         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
62302         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
62303         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
62304         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
62305         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
62306         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
62307         Likewise.
62308         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
62309         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
62310         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
62311         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
62312         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
62313         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
62315 2009-09-01  Eric Blake  <ebb9@byu.net>
62317         fchdir: fix off-by-one bug in previous patch
62318         * lib/fchdir.c (rpl_fstat): Use correct bounds.
62319         (_gl_unregister_fd): Delete useless if.
62321 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
62323         maint.mk: sort the list of syntax-check rules
62324         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
62325         easier to get a sense of progress when the rules are run sequentially
62326         and take a long time.
62328 2009-09-01  Simon Josefsson  <simon@josefsson.org>
62330         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
62331         * modules/netinet_in: Likewise.
62332         * modules/sys_file: Likewise.
62333         * modules/sys_ioctl: Likewise.
62334         * modules/sys_select: Likewise.
62335         * modules/sys_socket: Likewise.
62336         * modules/sys_stat: Likewise.
62337         * modules/sys_time: Likewise.
62338         * modules/sys_times: Likewise.
62339         * modules/sys_utsname: Likewise.
62340         * modules/sys_wait: Likewise.
62342 2009-09-01  Jim Meyering  <meyering@redhat.com>
62344         fts: help ensure that return values are not ignored
62345         * lib/fts_.h (__GNUC_PREREQ): Define.
62346         (__attribute_warn_unused_result__): Define.
62347         (fts_children, fts_close, fts_open, fts_read): Declare with
62348         __attribute_warn_unused_result__.
62350         fts: fts_close now fails also when closing a dir file descriptor fails
62351         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
62352         and propagate to caller, along with errno.
62354         announce-gen: correct formatting in --help output
62355         * build-aux/announce-gen (usage): Move the one-line description in
62356         --help output "up", to where it belongs, just after Usage:.
62358 2009-08-31  Eric Blake  <ebb9@byu.net>
62360         fchdir: port to mingw
62361         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
62362         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
62363         opened, then use a substitute.
62364         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
62365         replacement.
62366         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
62367         (_gl_register_fd): No need to check stat if open already filters
62368         all directories.
62369         (fchdir): Fix error condition to match POSIX.
62370         * modules/fchdir (Depends-on): Add sys_stat.
62371         * doc/posix-functions/open.texi (open): Document the limitation.
62372         * modules/fchdir-tests: New file.
62373         * tests/test-fchdir.c: Likewise.
62375         canonicalize: allow cross-testing from cygwin to mingw
62376         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
62377         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
62378         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
62379         Likewise.
62380         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
62381         target does not support symlinks.
62382         * tests/test-canonicalize-lgpl.sh: Likewise.
62384         chown: avoid compilation warning on mingw
62385         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
62386         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
62387         mingw.
62388         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
62389         * modules/chown (Depends-on): Add errno.
62391 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
62393         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
62394         command.
62396 2009-08-31  Jim Meyering  <meyering@redhat.com>
62398         canonicalize: remove useless initialization
62399         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
62400         initialization of local, "end".
62402 2009-08-30  Bruno Haible  <bruno@clisp.org>
62404         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
62405         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
62406         ENOSYS.
62408 2009-08-30  Bruno Haible  <bruno@clisp.org>
62410         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
62411         /usr/xpg4/bin/tr when it exists.
62412         * tests/test-pipe-filter-gi1.sh: Likewise.
62414 2009-08-30  Bruno Haible  <bruno@clisp.org>
62416         Work around deficient /usr/bin/id program on Solaris.
62417         * tests/test-file-has-acl.sh (ID): New variable.
62418         * tests/test-set-mode-acl.sh (ID): Likewise.
62419         * tests/test-copy-acl.sh (ID): Likewise.
62420         * tests/test-copy-file.sh (ID): Likewise.
62422 2009-08-30  Bruno Haible  <bruno@clisp.org>
62424         New module 'xstriconveh'.
62425         * lib/xstriconveh.h: New file.
62426         * lib/xstriconveh.c: New file.
62427         * modules/xstriconveh: New file.
62429 2009-08-30  Bruno Haible  <bruno@clisp.org>
62431         Make it easier to use mem_cd_iconveh.
62432         * lib/striconveh.h (iconveh_t): New type.
62433         (iconveh_open, iconveh_close): New declarations.
62434         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
62435         with a single 'const iconveh_t *' argument.
62436         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
62437         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
62438         with a single 'const iconveh_t *' argument.
62439         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
62440         * tests/test-striconveh.c (main): Update.
62441         * NEWS: Mention the change.
62443 2009-08-30  Bruno Haible  <bruno@clisp.org>
62445         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
62446         problem.
62448 2009-08-30  Bruno Haible  <bruno@clisp.org>
62450         Work around iconv_open problem on Solaris.
62451         * lib/iconv_open-solaris.gperf: New file.
62452         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
62453         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
62454         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
62455         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
62456         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
62457         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
62459 2009-08-29  Jim Meyering  <meyering@redhat.com>
62461         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
62462         * top/maint.mk (cvs-check): Remove target; it was just an alias
62463         to the better-named vc-diff-check.
62464         (maintainer-distcheck): Remove rule.  It was used only from
62465         the (alpha/beta/major) target, and all of its commands but one
62466         were coreutils-specific.
62467         (vc-dist): Remove rule.
62468         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
62469         Run vc-diff-check, not vc-dist.
62470         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
62472 2009-08-27  Bruno Haible  <bruno@clisp.org>
62474         * tests/test-bitrotate.c (main): Remove test that uses a shift count
62475         of 0.
62477 2009-08-27  Bruno Haible  <bruno@clisp.org>
62479         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
62480         compilers.
62481         * doc/func.texi: Document the SunPRO C bug.
62483 2009-08-27  Bruno Haible  <bruno@clisp.org>
62485         Fix link error on Solaris.
62486         * tests/test-parse-duration.c (xstrdup): Remove function.
62488 2009-08-26  Pádraig Brady  <P@draigbrady.com>
62490         ignore-value: handle pointer types, too
62491         * lib/ignore-value.h (__attribute__): Remove definition.
62492         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
62493         of a more concise and more-often effective "(void) i" statement.
62494         (ignore_ptr): New function to suppress warnings from functions that
62495         return pointers, and to make it explicit that one function doesn't
62496         handle all cases.
62498 2009-08-25  Bruno Haible  <bruno@clisp.org>
62500         dup2: work around a Linux bug.
62501         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
62502         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
62503         * doc/posix-functions/dup2.texi: Mention the Linux bug.
62504         Reported by Simon Josefsson.
62506 2009-08-25  Jim Meyering  <meyering@redhat.com>
62508         libguestfs uses gnulib
62509         * users.txt: Add libguestfs.
62511 2009-08-24  Eric Blake  <ebb9@byu.net>
62513         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
62514         * lib/pipe2.c (includes): Add binary-io.h.
62515         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
62517 2009-08-24  Bruno Haible  <bruno@clisp.org>
62519         Tolerate declared but missing accept4 syscall.
62520         * lib/accept4.c (accept4): Invoke original accept4 function first, if
62521         available.
62522         * lib/sys_socket.in.h (accept4): If the function is already present,
62523         override it.
62524         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
62525         * modules/accept4 (Makefile.am): Compile accept4.c always.
62526         Reported by Paolo Bonzini and Eric Blake.
62528 2009-08-23  Bruno Haible  <bruno@clisp.org>
62530         New module 'accept4'.
62531         * lib/sys_socket.in.h (accept4): New declaration.
62532         * lib/accept4.c: New file.
62533         * m4/accept4.m4: New file.
62534         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
62535         GNULIB_ACCEPT4, HAVE_ACCEPT4.
62536         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
62537         HAVE_ACCEPT4.
62538         * modules/accept4: New file.
62539         * doc/glibc-functions/accept4.texi: Mention the new module.
62541 2009-08-24  Jim Meyering  <meyering@redhat.com>
62543         progname: also set global program_invocation_name, when possible
62544         Before this change, a libtool-enabled program that calls glibc's
62545         error function would report the program name as
62546         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
62547         * modules/progname (configure.ac): Check for a declaration of
62548         program_invocation_name.
62549         * lib/progname.c:  Include <errno.h>.
62550         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
62551         Set program_invocation_name.
62553 2009-08-23  Bruno Haible  <bruno@clisp.org>
62555         * lib/dup3.c: Include <string.h>.
62557 2009-08-23  Bruno Haible  <bruno@clisp.org>
62559         * lib/dup3.c (dup3): Test only once whether the system actually exists.
62560         * lib/pipe2.c (pipe2): Likewise.
62561         Suggested by Eric Blake.
62563 2009-08-23  Bruno Haible  <bruno@clisp.org>
62565         Tolerate declared but missing dup3 syscall.
62566         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
62567         * lib/unistd.in.h (dup3): If the function is already present,
62568         override it.
62569         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
62570         * modules/dup3 (Makefile.am): Compile dup3.c always.
62571         Reported by Paolo Bonzini.
62573 2009-08-23  Bruno Haible  <bruno@clisp.org>
62575         Tolerate declared but missing pipe2 syscall.
62576         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
62577         available.
62578         * lib/unistd.in.h (pipe2): If the function is already present,
62579         override it.
62580         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
62581         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
62582         Reported by Paolo Bonzini.
62584 2009-08-23  Bruno Haible  <bruno@clisp.org>
62586         * lib/pipe2.c (pipe2): Move #ifs inside function.
62588 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
62590         quotearg: document limitations of quote_these_too
62591         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
62592         those limitations are created.
62593         * lib/quotearg.h (set_char_quoting): Document that digits and
62594         letters that are special after backslash are not permitted.
62595         (quotearg_char): Cross-reference set_char_quoting documentation.
62597 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
62599         quotearg: implement custom_quoting_style
62600         * lib/quotearg.c: (struct quoting_options): Add left_quote and
62601         right_quote fields.
62602         (set_custom_quoting): New public function.
62603         (quotearg_buffer_restyled): Add left_quote and right_quote
62604         arguments, handle them very much like locale quoting, and update
62605         all uses.
62606         (quotearg_n_custom): New public function.
62607         (quotearg_n_custom_mem): New public function.
62608         (quotearg_custom): New public function.
62609         (quotearg_custom_mem): New public function.
62610         * lib/quotearg.h: Prototype and document new public functions.
62611         (enum quoting_style): For escape_quoting_style and
62612         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
62613         ignored even though they're otherwise like c_quoting_style.
62614         Add custom_quoting_style member and document with comparison to
62615         clocale_quoting_style.
62616         * tests/test-quotearg.c (custom_quotes): New array.
62617         (custom_results): New array.
62618         (main): Extend to test custom quoting.
62620 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
62622         quotearg: fix right quote escaping when it's in quote_these_too
62623         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
62624         quote, be sure to prepend only one backslash.
62625         * tests/test-quotearg.c (use_quote_double_quotes): New function.
62626         (main): Test it.
62628 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
62630         quotearg-tests: test escaping of embedded locale quotes
62631         * tests/test-quotearg.c (struct result_strings): Add member for
62632         new input.
62633         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
62634         (inputs): Add new input.
62635         (results_g): Add expected results.
62636         (flag_results): Likewise.
62637         (locale_results): Likewise.
62638         (compare_strings): Check those.
62640 2009-08-23  Bruno Haible  <bruno@clisp.org>
62642         Tests for module 'dup3'.
62643         * modules/dup3-tests: New file.
62644         * tests/test-dup3.c: New file.
62646         New module 'dup3'.
62647         * lib/unistd.in.h (dup3): New declaration.
62648         * lib/dup3.c: New file.
62649         * m4/dup3.m4: New file.
62650         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
62651         HAVE_DUP3.
62652         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
62653         * modules/dup3: New file.
62654         * doc/glibc-functions/dup3.texi: Mention the new module.
62656 2009-08-23  Bruno Haible  <bruno@clisp.org>
62658         Tweak the dup2 test.
62659         * tests/test-dup2.c (main): Create the test file empty. Verify that an
62660         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
62661         the test file is still empty. Fix argument order of lseek.
62663 2009-08-23  Bruno Haible  <bruno@clisp.org>
62665         Avoid test link errors when the modules getopt-gnu, gettext are used.
62666         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
62667         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
62669 2009-08-23  Bruno Haible  <bruno@clisp.org>
62671         Fix getdtablesize() on mingw.
62672         * lib/getdtablesize.c (getdtablesize): Implement differently.
62673         * lib/unistd.in.h (getdtablesize): Improve comment.
62675 2009-08-23  Bruno Haible  <bruno@clisp.org>
62677         New module 'mkostemp'.
62678         Based on Ulrich Drepper's 2007-08-10 change in glibc.
62679         * lib/stdlib.in.h (mksotemp): New declaration.
62680         * lib/mkostemp.c: New file, from glibc with modifications.
62681         * lib/tempname.h (GT_FILE): Remove outdated comment.
62682         (gen_tempname): Add flags argument.
62683         * lib/tempname.c (__GT_BIGFILE): Remove macro.
62684         (__GT_FILE): Map to 1.
62685         (small_open, large_open): Remove macros.
62686         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
62687         * lib/mkstemp.c (mkstemp): Update.
62688         * lib/mkdtemp.c (mkdtemp): Likewise.
62689         * m4/mkostemp.m4: New file.
62690         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
62691         HAVE_MKOSTEMP.
62692         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
62693         HAVE_MKOSTEMP.
62694         * modules/mkostemp: New file, based on modules/mkstemp.
62695         * doc/glibc-functions/mkostemp.texi: Mention the new module.
62696         * NEWS: Mention the change.
62698 2009-08-23  Bruno Haible  <bruno@clisp.org>
62700         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
62701         Reported by Eric Blake.
62703 2009-08-23  Bruno Haible  <bruno@clisp.org>
62705         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
62706         Reported by Eric Blake.
62708 2009-08-23  Bruno Haible  <bruno@clisp.org>
62710         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
62711         * modules/pipe2 (Depends-on): Likewise.
62713 2009-08-23  Eric Blake  <ebb9@byu.net>
62715         fcntl-h: add O_TTY_INIT support
62716         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
62717         * tests/test-fcntl-h.c (o): Test it.
62718         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
62720         fcntl-h: rename from fcntl, in preparation for fcntl(2)
62721         * modules/fcntl: Move <fcntl.h> header replacement...
62722         * modules/fcntl-h: ...to new name, so as not to collide with
62723         like-named function.
62724         * tests/test-fcntl.c: Rename...
62725         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
62726         * modules/fcntl-tests: Rename...
62727         * modules/fcntl-h-tests: ...to this.  Update test file name.
62728         * modules/chdir-long (Depends-on): Update clients.
62729         * modules/chdir-safer (Depends-on): Likewise.
62730         * modules/fcntl-safer (Depends-on): Likewise.
62731         * modules/fts (Depends-on): Likewise.
62732         * modules/mkancesdirs (Depends-on): Likewise.
62733         * modules/mkdir-p (Depends-on): Likewise.
62734         * modules/open (Depends-on): Likewise.
62735         * modules/savewd (Depends-on): Likewise.
62736         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
62737         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
62739 2009-08-22  Bruno Haible  <bruno@clisp.org>
62741         * modules/binary-io (License): Relicense under LGPL.
62742         * modules/pipe2 (License): Likewise.
62744 2009-08-22  Bruno Haible  <bruno@clisp.org>
62746         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
62747         return value.
62748         * lib/pipe-filter-gi.c (filter_init): Likewise.
62749         Reported by Eric Blake.
62751 2009-08-22  Bruno Haible  <bruno@clisp.org>
62753         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
62754         * modules/pipe (Depends-on): Add pipe2.
62756 2009-08-22  Bruno Haible  <bruno@clisp.org>
62758         Tests for module 'pipe2'.
62759         * modules/pipe2-tests: New file.
62760         * tests/test-pipe2.c: New file.
62762         New module 'pipe2'.
62763         * lib/unistd.in.h (pipe2): New declaration.
62764         * lib/pipe2.c: New file.
62765         * m4/pipe2.m4: New file.
62766         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
62767         HAVE_PIPE2.
62768         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
62769         * modules/pipe2: New file.
62770         * doc/glibc-functions/pipe2.texi: Mention the new module.
62772 2009-08-22  Bruno Haible  <bruno@clisp.org>
62774         Reference some new glibc functions.
62775         * doc/glibc-functions/accept4.texi: New file.
62776         * doc/glibc-functions/dup3.texi: New file.
62777         * doc/glibc-functions/mkostemp.texi: New file.
62778         * doc/glibc-functions/pipe2.texi: New file.
62779         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
62780         (Glibc sys/socket.h): Refer to accept4.
62781         (Glibc unistd.h): Refer to dup3, pipe2.
62782         Reported by Eric Blake.
62784 2009-08-22  Jim Meyering  <meyering@redhat.com>
62785             Bruno Haible  <bruno@clisp.org>
62787         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
62788         This makes it so packages using automake-1.11's silent-rules option
62789         can print e.g., a single "GEN    configmake.h" line, rather than
62790         the 30+ statements that perform the job.  If you want to see the
62791         actual commands, you can still run "make V=1".
62792         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
62793         so that make output is abbreviated when those variables are defined
62794         appropriately.
62795         * modules/argz: Likewise.
62796         * modules/arpa_inet: Likewise.
62797         * modules/byteswap: Likewise.
62798         * modules/configmake: Likewise.
62799         * modules/dirent: Likewise.
62800         * modules/errno: Likewise.
62801         * modules/fcntl: Likewise.
62802         * modules/float: Likewise.
62803         * modules/fnmatch: Likewise.
62804         * modules/getopt-posix: Likewise.
62805         * modules/glob: Likewise.
62806         * modules/iconv_open: Likewise.
62807         * modules/inttypes: Likewise.
62808         * modules/localcharset: Likewise.
62809         * modules/locale: Likewise.
62810         * modules/math: Likewise.
62811         * modules/netdb: Likewise.
62812         * modules/netinet_in: Likewise.
62813         * modules/poll: Likewise.
62814         * modules/posix_spawnp-tests: Likewise.
62815         * modules/sched: Likewise.
62816         * modules/search: Likewise.
62817         * modules/selinux-h: Likewise.
62818         * modules/signal: Likewise.
62819         * modules/spawn: Likewise.
62820         * modules/stdarg: Likewise.
62821         * modules/stdbool: Likewise.
62822         * modules/stddef: Likewise.
62823         * modules/stdint: Likewise.
62824         * modules/stdio: Likewise.
62825         * modules/stdlib: Likewise.
62826         * modules/string: Likewise.
62827         * modules/strings: Likewise.
62828         * modules/sys_file: Likewise.
62829         * modules/sys_ioctl: Likewise.
62830         * modules/sys_select: Likewise.
62831         * modules/sys_socket: Likewise.
62832         * modules/sys_stat: Likewise.
62833         * modules/sys_time: Likewise.
62834         * modules/sys_times: Likewise.
62835         * modules/sys_utsname: Likewise.
62836         * modules/sys_wait: Likewise.
62837         * modules/sysexits: Likewise.
62838         * modules/time: Likewise.
62839         * modules/unistd: Likewise.
62840         * modules/wchar: Likewise.
62841         * modules/wctype: Likewise.
62843 2009-08-22  Jim Meyering  <meyering@redhat.com>
62845         announce-gen: detect write failure
62846         * build-aux/announce-gen: Add Coda at end.
62847         Remove equivalent-but-more-verbose block at top.
62849 2009-08-19  Akim Demaille  <demaille@gostai.com>
62851         bootstrap: --help to stdout.
62852         * bootstrap (usage): Don't send --help to stderr.
62853         Use a here doc instead of a long string.
62855 2009-08-21  Eric Blake  <ebb9@byu.net>
62857         test-popen-safer: split from test-popen
62858         * tests/test-popen.c (main): Move...
62859         * tests/test-popen.h: ...into new file.
62860         * tests/test-popen-safer2.c: New file.
62861         * modules/popen-tests (Files): Add test-popen.h.
62862         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
62863         Suggested by Bruno Haible.
62865         test-fcntl-safer: split from test-open
62866         * tests/test-open.c (main): Move...
62867         * tests/test-open.h: ...into new file.
62868         * tests/test-fcntl-safer.c: New file.
62869         * modules/open-tests (Files): Add test-open.h.
62870         * modules/fcntl-safer-tests: New file.
62871         Suggested by Bruno Haible.
62873         test-fopen-safer: split from test-fopen
62874         * tests/test-fopen.c (main): Move...
62875         * tests/test-fopen.h: ...into new file.
62876         * tests/test-fopen-safer.c: New file.
62877         * modules/fopen-tests (Files): Add test-fopen.h.
62878         * modules/fopen-safer-tests: New file.
62879         Suggested by Bruno Haible.
62881 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
62883         popen-safer: test O_CLOEXEC at run-time.
62884         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
62886 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
62888         fcntl: move more flags to the header
62889         * lib/cloexec.c: Do not define FD_CLOEXEC here.
62890         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
62891         * lib/fcntl.in.h: Do both things here.
62893 2009-08-21  Jim Meyering  <meyering@redhat.com>
62895         consistently remove $@-t before redirecting to it
62896         * modules/argz: Remove $@-t and $@ before redirecting to the former.
62897         * modules/alloca-opt: Likewise.
62898         * modules/byteswap: Likewise.
62899         * modules/fnmatch: Likewise.
62900         * modules/getopt-posix: Likewise.
62901         * modules/glob: Likewise.
62902         * modules/poll: Likewise.
62903         * modules/posix_spawnp-tests: Likewise.
62904         * modules/sys_socket: Likewise.
62905         * modules/sysexits: Likewise.
62907 2009-08-21  Eric Blake  <ebb9@byu.net>
62909         popen: simplify access to original popen
62910         * lib/popen.c (rpl_popen): No need to worry about popen being a
62911         macro.
62912         Reported by Bruno Haible.
62914 2009-08-20  Eric Blake  <ebb9@byu.net>
62916         build: avoid some compiler warnings
62917         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
62918         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
62919         type.
62920         (new_exclude_segment, excluded_file_pattern_p)
62921         (excluded_file_name_p): Reduce scope.
62922         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
62923         old-style declaration.
62925 2009-08-20  Simon Josefsson  <simon@josefsson.org>
62927         * tests/test-exclude1.sh: Handle Windows EOL.
62928         * tests/test-exclude2.sh: Likewise.
62929         * tests/test-exclude3.sh: Likewise.
62930         * tests/test-exclude4.sh: Likewise.
62931         * tests/test-exclude5.sh: Likewise.
62932         * tests/test-exclude6.sh: Likewise.
62933         * tests/test-exclude7.sh: Likewise.
62935 2009-08-19  Akim Demaille  <demaille@gostai.com>
62937         bootstrap: find sha1sum when named gsha1sum.
62938         * bootstrap (find_tool): New.
62939         ($SHA1SUM): New.
62940         Use it.
62942 2009-08-20  Jim Meyering  <meyering@redhat.com>
62944         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
62945         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
62946         expression that converts "." in a file name to "\." in the resulting
62947         regexp.  Start with a dummy statement, so that prior shell variable
62948         definitions are expanded portably.  Reported by Simon Josefsson.
62950 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
62952         Fix polling for writeability of a screen buffer.
62953         * lib/poll.c: Distinguish input and screen buffers for the
62954         Win32 implementation.
62955         * lib/select.c: Likewise.
62957 2009-08-19  Eric Blake  <ebb9@byu.net>
62959         popen-safer: prevent popen from clobbering std descriptors
62960         * modules/popen-safer: New file.
62961         * lib/popen-safer.c: Likewise.
62962         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
62963         * lib/stdio--.h (popen): Provide override.
62964         * lib/stdio-safer.h (popen_safer): Provide declaration.
62965         * tests/test-popen.c (includes): Partially test this.
62966         * modules/popen-safer-tests: New file, for more tests.
62967         * tests/test-popen-safer.c: Likewise.
62968         * MODULES.html.sh (file stream based Input/Output): Mention it.
62970         tests: test some of the *-safer modules
62971         * modules/fopen-safer (Depends-on): Add fopen.
62972         * modules/fcntl-safer (Depends-on): Add fcntl.
62973         * modules/stdlib-safer (Depends-on): Add stdlib.
62974         (configure.ac): Set indicator.
62975         * modules/unistd-safer (configure.ac): Likewise.
62976         * modules/tmpfile-safer (configure.ac): Likewise.
62977         (Depends-on): Add tmpfile.
62978         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
62979         active.
62980         * tests/test-fopen.c (includes): Test safer versions when they are
62981         in use.
62982         * tests/test-open.c (includes): Likewise.
62984         popen: fix cygwin 1.5 bug when stdin closed
62985         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
62986         * modules/popen: New file.
62987         * modules/popen-tests: Likewise.
62988         * tests/test-popen.c: Likewise.
62989         * m4/popen.m4: Likewise.
62990         * lib/popen.c: Likewise.
62991         * lib/stdio.in.h (popen): New declaration.
62992         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
62993         * modules/stdio (Makefile.am): Likewise.
62994         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
62996 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
62998         maint.mk: give full control over update-copyright exclusions
62999         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
63000         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
63001         (update-copyright): Don't force inclusion of top-level
63002         ChangeLog.  Don't force exclusion of all COPYING files, but make
63003         them the default exclusion instead.
63005 2009-08-16  Bruno Haible  <bruno@clisp.org>
63007         Fix test failures on Solaris 10.
63008         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
63009         tests when Solaris iconv() is used.
63010         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
63011         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
63012         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
63013         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
63014         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
63016 2009-08-16  Bruno Haible  <bruno@clisp.org>
63018         Fix test failures on Solaris 10.
63019         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
63020         'tr' program and pass it as first argument.
63021         * tests/test-pipe-filter-gi1.sh: Likewise.
63022         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
63023         program as first argument.
63024         * tests/test-pipe-filter-gi1.c (main): Likewise.
63026 2009-08-16  Eric Blake  <ebb9@byu.net>
63028         fpurge: fix previous commits
63029         * modules/fpurge (Makefile.am): Make replacement conditional,
63030         partially reverting 2007-04-29 change; missed in previous
63031         attempt.
63032         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
63033         is missing.
63035 2009-08-16  Bruno Haible  <bruno@clisp.org>
63037         Clarify fpurge's effect on the file position.
63038         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
63039         * tests/test-fpurge.c (main): Make a second pass for checking the file
63040         position.
63042 2009-08-16  Bruno Haible  <bruno@clisp.org>
63044         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
63045         declaration of fpurge is missing.
63046         * tests/test-fpurge.c (main): Check that the file has not more contents
63047         than expected. Close the file before removing it.
63049 2009-08-15  Eric Blake  <ebb9@byu.net>
63051         fpurge: don't wrap working cygwin implementation
63052         * lib/fpurge.c (fpurge): Fix comment typo.
63053         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
63054         1.7 to avoid replacement.
63055         * tests/test-fpurge.c (main): Enhance test.
63057 2009-08-15  Eric Blake  <ebb9@byu.net>
63058         and Jim Meyering  <meyering@redhat.com>
63060         test-update-copyright: skip if perl is insufficient
63061         * tests/test-update-copyright.sh: Failure to run maintainer tool
63062         should not cause testsuite failure on cygwin 1.5.
63064 2009-08-14  Eric Blake  <ebb9@byu.net>
63066         doc: mention more functions added in cygwin 1.7.0
63067         * doc/posix-headers/limits.texi (limits.h): Update for recent
63068         cygwin additions.
63069         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
63070         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
63071         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
63072         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
63073         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
63075 2009-08-14  Eric Blake  <ebb9@byu.net>
63077         maint.mk: simplify update-copyright rule
63078         * top/maint.mk (update-copyright-local): Delete, and document how
63079         to do it in cfg.mk instead.
63080         (update-copyright-exclude-regexp): Delete, and document how to do
63081         it in .x-update-copyright instead.
63082         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
63083         exclude ChangeLog.
63085 2009-08-14  Bruno Haible  <bruno@clisp.org>
63087         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
63089 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
63091         maint.mk: support update-copyright-env
63092         * top/maint.mk (update-copyright-env): Define place-holder.
63093         (update-copyright): Expand $(update-copyright-env) before
63094         invoking update-copyright.
63096 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
63098         update-copyright: implement forced reformatting
63099         * build-aux/update-copyright: Implement and document
63100         UPDATE_COPYRIGHT_FORCE.
63101         * tests/test-update-copyright.sh: Test it.
63103 2009-08-14  Eric Blake  <ebb9@byu.net>
63104         and Bruno Haible  <bruno@clisp.org>
63106         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
63107         * tests/test-locale.c: Revert previous patch related to NULL.
63108         * tests/test-stdio.c: Likewise.
63109         * tests/test-stdlib.c: Likewise.
63110         * tests/test-string.c: Likewise.
63111         * tests/test-unistd.c: Likewise.
63112         * modules/time-tests (Depends-on): Add verify.
63113         * modules/wchar-tests (Depends-on): Likewise.
63114         * tests/test-time.c: Test for NULL compliance.
63115         * tests/test-wchar.c: Likewise.
63116         * modules/locale (Depends-on): Add stddef.
63117         * modules/stdio (Depends-on): Likewise.
63118         * modules/stdlib (Depends-on): Likewise.
63119         * modules/string (Depends-on): Likewise.
63120         * modules/time (Depends-on): Likewise.
63121         * modules/unistd (Depends-on): Likewise.
63122         * modules/wchar (Depends-on): Likewise.
63123         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
63124         * lib/stdlib.in.h (includes): Likewise.
63125         * lib/string.in.h (includes): Likewise.
63126         * lib/time.in.h (includes): Likewise.
63127         * lib/unistd.in.h (includes): Likewise.
63128         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
63129         replaced.
63130         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
63131         * m4/stddef_h.m4: New file.
63132         * modules/stddef: Likewise.
63133         * lib/stddef.in.h: Likewise.
63134         * modules/stddef-tests: Likewise.
63135         * tests/test-stddef.c: Likewise.
63136         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
63137         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
63138         * doc/posix-headers/locale.texi (locale.h): Likewise.
63139         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
63140         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
63141         * doc/posix-headers/string.texi (string.h): Likewise.
63142         * doc/posix-headers/time.texi (time.h): Likewise.
63143         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
63144         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
63146 2009-08-14  Eric Blake  <ebb9@byu.net>
63148         doc: improve git diff of texinfo files
63149         * .gitattributes: Add rule for *.texi files, with hint on how to
63150         use it.
63151         Copied from m4, and based on a report by Bruno Haible.
63153 2009-08-14  Bruno Haible  <bruno@clisp.org>
63155         Disable multithread support by default on Cygwin 1.5.x for real.
63156         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
63158 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
63160         update-copyright: much ado about intervals
63161         * build-aux/update-copyright: Implement and document
63162         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
63163         of copyright year intervals.
63164         Also, document UPDATE_COPYRIGHT_YEAR.
63165         * tests/test-update-copyright.sh: Test it.
63167         update-copyright: convert 2-digit to 4-digit years
63168         * build-aux/update-copyright: Implement and document.
63169         * tests/test-update-copyright.sh: Update.
63171 2009-08-14  Jim Meyering  <meyering@redhat.com>
63173         test-exclude: avoid coreutils "make check" failure
63174         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
63175         just as in test-argmatch.c.
63177 2009-08-13  Eric Blake  <ebb9@byu.net>
63179         test-dup2: fix bad assumption
63180         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
63181         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
63183         test-version-etc: fix CRLF portability issue
63184         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
63185         recognize \r.
63186         * tests/test-argp-version-etc-1.sh: Likewise.
63188         getopt: update client modules
63189         * modules/argp (Depends-on): Use getopt-gnu.
63190         * modules/git-merge-changelog (Depends-on): Likewise.
63191         * modules/long-options (Depends-on): Likewise.
63192         * modules/xstrtol (Depends-on): Likewise.
63194 2009-08-13  Simon Josefsson  <simon@josefsson.org>
63196         * tests/test-version-etc.sh: Don't fail on different
63197         project/version.  Don't fail on CRLF differences.  Rewrite to use
63198         multiple -e instead of multiple sed forks, suggested by Eric Blake
63199         <ebb9@byu.net>.
63200         * tests/test-argp-version-etc-1.sh: Likewise.
63202 2009-08-13  Simon Josefsson  <simon@josefsson.org>
63204         * tests/test-version-etc.sh: Don't fail on different
63205         project/version.
63207 2009-08-12  Bruno Haible  <bruno@clisp.org>
63209         Tests for modules 'getopt-posix', 'getopt-gnu'.
63210         * modules/getopt-posix-tests: New file.
63211         * tests/test-getopt.c: New file.
63212         * tests/test-getopt.h: New file.
63213         * tests/test-getopt_long.h: New file.
63215         New modules 'getopt-posix', 'getopt-gnu'.
63216         * modules/getopt-gnu: New file, renamed from modules/getopt.
63217         * modules/getopt-posix: New file.
63218         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
63219         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
63220         (gl_GETOPT): Remove macro.
63221         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
63222         Disable the test against BSD systems that declare optreset. Test
63223         against mingw bug. Test against lack of support of optional arguments
63224         on many platforms.
63225         * doc/glibc-headers/getopt.texi: Update module name and list of
63226         relevant platforms.
63227         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
63228         'getopt-gnu' and more portability problems.
63229         * NEWS: Mention the changes.
63231 2009-08-12  Bruno Haible  <bruno@clisp.org>
63233         Ensure that optarg etc. get declared by <unistd.h>.
63234         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
63235         AC_USE_SYSTEM_EXTENSIONS.
63236         * modules/getopt (Depends-on): Add 'extensions'.
63238 2009-08-12  Bruno Haible  <bruno@clisp.org>
63240         Avoid test link errors.
63241         * modules/pipe-filter-ii-tests (Makefile.am): Define
63242         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
63243         * modules/pipe-filter-gi-tests (Makefile.am): Define
63244         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
63245         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
63247 2009-08-12  Bruno Haible  <bruno@clisp.org>
63249         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
63250         gl_GETOPT_SUBSTITUTE before.
63251         (gl_GETOPT): Use it.
63252         * m4/argp.m4 (gl_ARGP): Update.
63253         Reported by Sergey Poznyakoff.
63255         * m4/getopt.m4: Reorder macros.
63256         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
63257         (gl_GETOPT_SUBSTITUTE): Remove macro.
63259 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
63261         Minor improvement in gitlog-to-changelog
63263         * build-aux/gitlog-to-changelog: New option `--format' makes
63264         output format string configurable.
63266 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
63268         Optimize exclude: use hash tables for non-wildcard patterns.
63270         * lib/exclude.c: Include hash.h and mbuiter.h
63271         (struct exclude_pattern, exclude_segment): New data types.
63272         (struct exclude): Rewrite.
63273         (fnmatch_pattern_has_wildcards): New function.
63274         (new_exclude_segment, free_exclude_segment): New functions.
63275         (excluded_file_pattern_p, excluded_file_name_p): New functions.
63276         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
63277         * lib/exclude.h (is_fnmatch_pattern): New prototype.
63278         * modules/exclude: Depend on hash and mbuiter.
63280         * modules/exclude-tests: New file.
63281         * tests/test-exclude.c: New file.
63282         * tests/test-exclude1.sh: New file.
63283         * tests/test-exclude2.sh: New file.
63284         * tests/test-exclude3.sh: New file.
63285         * tests/test-exclude4.sh: New file.
63286         * tests/test-exclude5.sh: New file.
63287         * tests/test-exclude6.sh: New file.
63288         * tests/test-exclude7.sh: New file.
63290 2009-08-12  Bruno Haible  <bruno@clisp.org>
63292         Ensure that getopt() gets declared by <unistd.h>.
63293         * lib/unistd.in.h: Conditionally include getopt.h.
63294         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
63295         Set GNULIB_UNISTD_H_GETOPT.
63296         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
63297         GNULIB_UNISTD_H_GETOPT.
63298         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
63300 2009-08-12  Bruno Haible  <bruno@clisp.org>
63302         Clarify logic.
63303         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
63304         gl_replace_getopt instead of GETOPT_H.
63306 2009-08-12  Bruno Haible  <bruno@clisp.org>
63308         * m4/getopt.m4: Add comments.
63310 2009-08-12  Bruno Haible  <bruno@clisp.org>
63312         Disable multithread support by default on Cygwin 1.5.x.
63313         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
63314         set gl_use_threads=no if not specified otherwise.
63316 2009-08-11  Bruno Haible  <bruno@clisp.org>
63318         Avoid compilation error on NetBSD 5.0.
63319         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
63320         * tests/test-stdio.c: Likewise.
63321         * tests/test-stdlib.c: Likewise.
63322         * tests/test-string.c: Likewise.
63323         * tests/test-unistd.c: Likewise.
63324         Reported by Greg Troxel <gdt@ir.bbn.com>
63325         at <https://savannah.gnu.org/support/?106973>.
63327 2009-08-11  Bruno Haible  <bruno@clisp.org>
63329         * modules/dup2-tests (Depends-on): Remove close.
63331         Undo 2009-07-19 commit.
63332         * modules/acl-tests (Depends-on): Remove close.
63333         * modules/binary-io-tests (Depends-on): Likewise.
63334         * modules/closein-tests (Depends-on): Likewise.
63335         * modules/flock-tests (Depends-on): Likewise.
63336         * modules/fsync-tests (Depends-on): Likewise.
63337         * modules/lseek-tests (Depends-on): Likewise.
63338         * modules/pipe-tests (Depends-on): Likewise.
63339         * modules/posix_spawn-tests (Depends-on): Likewise.
63340         * modules/posix_spawnp-tests (Depends-on): Likewise.
63341         * modules/stat-time-tests (Depends-on): Likewise.
63342         * modules/yesno-tests (Depends-on): Likewise.
63344 2009-08-10  Bruno Haible  <bruno@clisp.org>
63346         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
63348 2009-08-10  Bruno Haible  <bruno@clisp.org>
63350         Fix a gcc warning.
63351         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
63353 2009-08-10  Bruno Haible  <bruno@clisp.org>
63355         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
63356         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
63357         not only the first time.
63358         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
63359         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
63360         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
63361         is 1, not only the first time.
63363 2009-08-10  Bruno Haible  <bruno@clisp.org>
63365         Make it possible to use module 'gethostname' without module 'close'.
63366         * lib/unistd.in.h (close): Evoke a link error only if
63367         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
63368         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
63369         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
63370         * modules/unistd (Makefile.am): Substitute
63371         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
63372         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
63373         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
63374         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
63375         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
63376         * modules/sys_ioctl (Makefile.am): Substitute
63377         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
63378         * modules/socket (configure.ac): On native Windows, set
63379         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
63380         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
63381         Reported by Sam Steingold <sds@gnu.org>.
63383 2009-08-10  Bruno Haible  <bruno@clisp.org>
63385         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
63386         * modules/ioctl (configure.ac): Likewise.
63388 2009-08-10  Bruno Haible  <bruno@clisp.org>
63390         Avoid collision between gnulib wrapper and libintl wrapper.
63391         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
63392         already defined in intl/printf.c.
63393         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
63394         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
63396 2009-08-09  Bruno Haible  <bruno@clisp.org>
63398         Make <sys/select.h> really self-contained, also on Solaris 10.
63399         * lib/sys_select.in.h: Include <string.h>.
63400         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
63401         Solaris 10 problem.
63402         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
63403         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
63404         Reported by Jim Meyering.
63406 2009-08-09  Bruno Haible  <bruno@clisp.org>
63408         Avoid warnings from 'aclocal' that are due to a use of macro name
63409         AM_XGETTEXT_OPTION that is not defined in automake.
63410         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
63411         automake.
63412         * modules/error (configure.ac): Likewise.
63413         * modules/propername (configure.ac): Likewise.
63414         * modules/vasprintf (configure.ac): Likewise.
63415         * modules/verror (configure.ac): Likewise.
63416         * modules/xprintf (configure.ac): Likewise.
63417         * modules/xvasprintf (configure.ac): Likewise.
63419 2009-08-08  Bruno Haible  <bruno@clisp.org>
63421         Avoid compilation error in C++ mode.
63422         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
63423         Reported by Sam Steingold <sds@gnu.org>.
63425 2009-08-08  Bruno Haible  <bruno@clisp.org>
63427         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
63428         for the various Unix platforms.
63429         * doc/posix-headers/limits.texi: Update platforms list regarding
63430         HOST_NAME_MAX.
63431         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
63433 2009-08-07  Jim Meyering  <meyering@redhat.com>
63435         selinux-at: fix typo in a comment
63436         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
63437         Spotted by Paolo Bonzini.
63439         selinux-at: remove redundant m4 code, add documentation
63440         * modules/selinux-at (configure.ac): Remove redundant code.
63441         LIB_SELINUX is already set via the dependent module, selinux-h.
63442         (Include): Add quotes around selinux-at.h.
63443         * lib/selinux-at.h: Add documentation.
63444         Reported by Bruno Haible in
63445         http://marc.info/?l=gnulib-bug&m=124958988300749
63447 2009-08-07  Bruno Haible  <bruno@clisp.org>
63449         Avoid link error on MacOS X 10.3 and 10.4.
63450         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
63451         on non-ELF systems.
63452         * lib/argp-pv.c (argp_program_version): Likewise.
63453         Reported by Simon Josefsson.
63455 2009-08-07  Simon Josefsson  <simon@josefsson.org>
63457         * tests/test-version-etc.sh: Use $EXEEXT.
63459 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
63461         update-copyright: update documentation to point to maint.mk
63462         * build-aux/update-copyright: Here.
63464 2009-08-06  Jim Meyering  <meyering@redhat.com>
63466         maint.mk: support update-copyright-local
63467         * top/maint.mk (update-copyright-local): Define place-holder.
63468         (update-copyright): Depend on $(update-copyright-local).
63470 2009-08-06  Jim Meyering  <meyering@redhat.com>
63472         selinux-at: new module
63473         Initially written for coreutils, this module will soon be
63474         used by findutils, too.
63475         * MODULES.html.sh [Misc]: Add selinux-at.
63476         * lib/selinux-at.h: New file, from coreutils.
63477         * lib/selinux-at.c: Likewise.
63478         * modules/selinux-at: Likewise.
63479         (License): Change from LGPL to GPL, since it depends
63480         on the GPL'd openat module.
63482         doc: update README
63483         * README: Remove references to cogito.
63484         Remove cvs-repo-updating instructions from 2007.
63485         Don't imply that CVS is better if you have limited disk space.
63487 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
63489         update-copyright: support C-style comments
63490         * build-aux/update-copyright: Implement and document.
63491         * tests/test-update-copyright.sh: Test.
63493 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
63495         update-copyright: support omitted "(C)"
63496         * build-aux/update-copyright: Implement and document.  Also,
63497         allow variable whitespace before "(C)".
63498         * tests/test-update-copyright.sh: Test.
63500 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
63502         update-copyright: don't trip on non-FSF copyright statements
63503         * build-aux/update-copyright: Fix so that the first correctly
63504         formatted FSF copyright statement is recognized no matter what
63505         appears before it.  Update documentation.
63506         * tests/test-update-copyright.sh: Test that.
63508 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
63510         update-copyright: clean up code a little
63511         * build-aux/update-copyright: Append "_re" to the name of any
63512         variable holding a regular expression.
63513         Replace "old" and "new" with "stmt" in variable names.
63514         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
63515         handled correctly.
63516         Format code more consistently.
63518 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
63520         update-copyright-tests: improve portability
63521         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
63522         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
63524 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
63526         update-copyright: support @copyright{} and &copy;
63527         * build-aux/update-copyright: Implement and document.
63528         * tests/test-update-copyright.sh: Test.
63530 2009-08-04  Jim Meyering  <meyering@redhat.com>
63532         update-copyright-tests: correctly test EOL=\r\n handling
63533         * tests/test-update-copyright.sh: Put \r at the end of some lines
63534         for the dos-eol tests.  Based on a patch by Joel E. Denny.
63536         maint.mk: make update-copyright exclusion list more configurable
63537         * top/maint.mk (update-copyright): Default to excluding COPYING,
63538         but allow an override, in case someone does want to update that file.
63540         maint.mk: don't update copyright date in COPYING
63541         * top/maint.mk (update-copyright): Exclude COPYING.
63543         maint.mk: add a copyright-updating rule
63544         * top/maint.mk (update-copyright): New rule.
63545         Derived from coreutils/Makefile.am.
63547         update-copyright: rename some variables
63548         * build-aux/update-copyright: Rename a few variables for clarity.
63549         Tweak syntax.  List Joel E. Denny as coauthor.
63551 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
63553         update-copyright: fix bug for 2-digit last year and add tests
63554         * build-aux/update-copyright: Fix bug.
63555         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
63556         specified.
63557         * modules/update-copyright-tests: New
63558         * tests/test-update-copyright.sh: New.
63560 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
63562         update-copyright: handle leading tabs in line prefix
63563         * build-aux/update-copyright: Count leading tabs as 8 spaces
63564         when computing margin.  This helps with the formatting of
63565         ChangeLogs, for example.
63566         Fix documentation a little.
63568 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
63570         update-copyright: support EOL=\r\n
63571         * build-aux/update-copyright: Implement that.
63573 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
63575         update-copyright: automatically format copyright statements
63576         * build-aux/update-copyright: Implement that.
63577         Also, be a little more predictable and safer by always failing
63578         when the full copyright format is not perfectly recognized as an
63579         unbroken whole.  Discussed at
63580         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
63581         Rewrite documentation.
63583 2009-08-03  Bruno Haible  <bruno@clisp.org>
63585         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
63587 2009-08-02  Bruno Haible  <bruno@clisp.org>
63589         Tests for module 'uname'.
63590         * modules/uname-tests: New file.
63591         * tests/test-uname.c: New file.
63593         New module 'uname'.
63594         * lib/uname.c: New file.
63595         * m4/uname.m4: New file.
63596         * modules/uname: New file.
63597         * doc/posix-functions/uname.texi: Mention the new module.
63599 2009-08-02  Bruno Haible  <bruno@clisp.org>
63601         Tests for module 'sys_utsname'.
63602         * modules/sys_utsname-tests: New file.
63603         * tests/test-sys_utsname.c: New file.
63605         New module 'sys_utsname'.
63606         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
63607         * m4/sys_utsname_h.m4: New file.
63608         * modules/sys_utsname: New file.
63609         * doc/posix-headers/sys_utsname.texi: Mention the new module.
63611 2009-08-02  Bruno Haible  <bruno@clisp.org>
63613         Implicitly initialize the sockets library.
63614         * lib/gethostname.c: Include sockets.h.
63615         (rpl_gethostname): Invoke gl_sockets_startup.
63616         * lib/socket.c: Include sockets.h.
63617         (rpl_socket): Invoke gl_sockets_startup.
63618         * modules/gethostname (Depends-on): Add sockets.
63619         * modules/socket (Depends-on): Likewise.
63620         * tests/test-poll.c: Don't include sockets.h.
63621         (main): Don't invoke gl_sockets_startup.
63622         * tests/test-select.c: Don't include sockets.h.
63623         (main): Don't invoke gl_sockets_startup.
63625 2009-08-02  Bruno Haible  <bruno@clisp.org>
63627         Allow multiple calls to gl_sockets_startup.
63628         * lib/sockets.c (initialized_sockets_version): New variable.
63629         (gl_sockets_startup): Do nothing if already called for this or a higher
63630         version.
63631         (gl_sockets_cleanup): Reset initialized_sockets_version.
63633 2009-08-03  Simon Josefsson  <simon@josefsson.org>
63635         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
63636         different project/version.
63638 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
63639             Bruno Haible  <bruno@clisp.org>
63641         Tests for module 'pipe-filter-gi'.
63642         * modules/pipe-filter-gi-tests: New file.
63643         * tests/test-pipe-filter-gi1.sh: New file.
63644         * tests/test-pipe-filter-gi1.c: New file.
63645         * tests/test-pipe-filter-gi2.sh: New file.
63646         * tests/test-pipe-filter-gi2-main.c: New file.
63647         * tests/test-pipe-filter-gi2-child.c: New file.
63649         New module 'pipe-filter-gi'.
63650         * lib/pipe-filter-gi.c: New file.
63651         * modules/pipe-filter-gi: New file.
63653 2009-08-02  Bruno Haible  <bruno@clisp.org>
63654             Paolo Bonzini  <bonzini@gnu.org>
63656         Tests for module 'pipe-filter-ii'.
63657         * modules/pipe-filter-ii-tests: New file.
63658         * tests/test-pipe-filter-ii1.sh: New file.
63659         * tests/test-pipe-filter-ii1.c: New file.
63660         * tests/test-pipe-filter-ii2.sh: New file.
63661         * tests/test-pipe-filter-ii2-main.c: New file.
63662         * tests/test-pipe-filter-ii2-child.c: New file.
63664         New module 'pipe-filter-ii'.
63665         * lib/pipe-filter.h: New file.
63666         * lib/pipe-filter-ii.c: New file.
63667         * lib/pipe-filter-aux.h: New file.
63668         * modules/pipe-filter-ii: New file.
63670 2009-08-02  Simon Josefsson  <simon@josefsson.org>
63672         * lib/gc-libgcrypt.c: Change copyright to FSF.
63673         * lib/gc-gnulib.c: Likewise.
63675 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
63677         * lib/gethostname.c: Include limits.h.
63679 2009-08-02  Simon Josefsson  <simon@josefsson.org>
63680             Bruno Haible  <bruno@clisp.org>
63682         Ensure HOST_NAME_MAX as part of the gethostname module.
63683         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
63684         define also HOST_NAME_MAX.
63685         * tests/test-gethostname.c: Include <limits.h>.
63686         (main): Check also HOST_NAME_MAX.
63687         * doc/posix-headers/limits.texi: Document the mingw problem.
63689 2009-08-02  Bruno Haible  <bruno@clisp.org>
63691         * lib/gethostname.c (gethostname): Fix handling of large len argument.
63692         Add comments.
63694 2009-03-31  Simon Josefsson  <simon@josefsson.org>
63696         * lib/gethostname.c: Add Windows wrapper.
63697         * m4/gethostname.m4: Look for gethostname in -lws2_32.
63698         * modules/gethostname: Depend on sys_socket & errno, for also
63699         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
63700         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
63702 2009-07-31  Jim Meyering  <meyering@redhat.com>
63704         getloadavg: fix symbol name in comment
63705         * lib/getloadavg.c: Correct a typo I introduced when adding
63706         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
63707         Matt Kraai spotted the problem.
63709 2009-07-29  Matt Kraai  <mkraai@beckman.com>
63711         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
63712         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
63713         code also if ! defined N_NAME_POINTER.
63714         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
63715         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
63716         but the n_name member is a 12-byte array.
63718 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
63720         update-copyright: generalize comment handling
63721         * build-aux/update-copyright: Handle copyright statements
63722         within more comment styles.
63723         Document usage.
63724         Report any file with an external copyright holder or parse failure.
63726 2009-07-29  Jim Meyering  <meyering@redhat.com>
63728         mktime: correct setting of REPLACE_MKTIME
63729         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
63731         update-copyright: new module
63732         * modules/update-copyright: New file.
63733         * build-aux/update-copyright: New file.
63734         * MODULES.html.sh (maint+release support): Add update-copyright.
63736 2009-07-27  Bruno Haible  <bruno@clisp.org>
63738         Fix compilation error when <ctime> is used and mktime is replaced.
63739         * lib/time.in.h (mktime): New declaration.
63740         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
63741         REPLACE_MKTIME instead of defining mktime in config.h.
63742         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
63743         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
63744         Reported by Ross McFarland <rwmcfa1@neces.com>.
63746 2009-07-27  Bruno Haible  <bruno@clisp.org>
63748         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
63749         Reported by Matt Kraai <mkraai@beckman.com>.
63751 2009-07-25  Jim Meyering  <meyering@redhat.com>
63753         maint.mk: avoid warnings about missing files
63754         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
63755         diagnostic when .prev-version does not exist.
63756         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
63757         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
63758         nonexistent cfg.mk.
63759         Suggestions from Simon Josefsson.
63761 2009-07-25  Bruno Haible  <bruno@clisp.org>
63763         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
63764         defined as macros. Needed on QNX 6.4.1.
63765         Reported by Matt Kraai <mkraai@beckman.com>.
63767 2009-07-23  Jim Meyering  <meyering@redhat.com>
63769         maint.mk: invoke "make dist" with a working value of XZ_OPT
63770         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
63772 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
63774         Make fseeko.c compile on QNX.
63775         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
63777 2009-07-22  Peter Simons  <simons@cryp.to>
63779         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
63780         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
63781         * lib/md4.h: Likewise.
63782         * lib/md5.h: Likewise.
63783         * lib/sha1.h: Likewise.
63784         * lib/sha256.h: Likewise.
63785         * lib/sha512.h: Likewise.
63787         tests-sha1: don't assign literal string to 'char *' variable
63788         * tests/test-sha1.c (main): Declare locals with "const" to match
63789         attributes of the right hand side.
63791 2009-07-21  Eric Blake  <ebb9@byu.net>
63793         dup2: fix more mingw problems
63794         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
63795         fd to itself.
63796         * doc/posix-functions/dup2.texi (dup2): Document the bug.
63797         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
63798         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
63799         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
63800         care of mingw bugs.
63802 2009-07-21  Jim Meyering  <meyering@redhat.com>
63804         vc-list-files: avoid failure when /bin/sh is dash
63805         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
63806         On some Debian based systems, /bin/sh is a symlink to dash, and running
63807         this command would omit the "/" following each 'tests' prefix:
63808           dash -x build-aux/vc-list-files -C . tests
63809         That is because bash and dash work differently:
63810           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
63811           bash ok
63812           dash odd
63814 2009-07-21  Eric Blake  <ebb9@byu.net>
63816         dup2-tests: test previous patch
63817         * modules/dup2-tests: New file.
63818         * tests/test-dup2.c: Likewise.
63819         * tests/test-open.c (main): Avoid unspecified behavior.
63820         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
63821         test.
63823         dup2: work around mingw and cygwin 1.5 bug
63824         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
63825         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
63826         * modules/unistd (Makefile.am): Substitute it.
63827         * lib/unistd.in.h (dup2): Declare the replacement.
63828         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
63829         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
63830         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
63831         * modules/execute (Depends-on): Add dup2.
63832         * modules/fseterr (Depends-on): Likewise.
63833         * modules/pipe (Depends-on): Likewise.
63834         * modules/posix_spawn-internal (Depends-on): Likewise.
63836 2009-07-21  Bruno Haible  <bruno@clisp.org>
63838         * modules/.gitattributes: New file.
63840 2009-07-20  Bruno Haible  <bruno@clisp.org>
63842         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
63843         (main): Use it.
63845 2009-07-20  Eric Blake  <ebb9@byu.net>
63847         test-pipe: make a bit more robust.
63848         * tests/test-pipe.c (myerr): Allow error messages regardless of
63849         what we do to stderr.
63850         (test_pipe): Rearrange to avoid deadlock.
63851         (child_main): Try a larger read, to ensure we avoided deadlock.
63852         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
63853         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
63854         if misused.
63856 2009-07-19  Jim Meyering  <meyering@redhat.com>
63858         fts: avoid false-positive cycle-detection
63859         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
63860         for each new command line argument.
63862 2009-07-19  Bruno Haible  <bruno@clisp.org>
63864         Fix build error on mingw with the modules sys_select and unistd.
63865         * modules/acl-tests (Depends-on): Add close.
63866         * modules/binary-io-tests (Depends-on): Likewise.
63867         * modules/closein-tests (Depends-on): Likewise.
63868         * modules/flock-tests (Depends-on): Likewise.
63869         * modules/fsync-tests (Depends-on): Likewise.
63870         * modules/lseek-tests (Depends-on): Likewise.
63871         * modules/pipe-tests (Depends-on): Likewise.
63872         * modules/posix_spawn-tests (Depends-on): Likewise.
63873         * modules/posix_spawnp-tests (Depends-on): Likewise.
63874         * modules/stat-time-tests (Depends-on): Likewise.
63875         * modules/yesno-tests (Depends-on): Likewise.
63877 2009-07-19  Bruno Haible  <bruno@clisp.org>
63879         Unify conditionals.
63880         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
63881         macros, not at the compiler macros.
63882         * lib/pipe.c: Likewise.
63883         * lib/execute.c: Likewise.
63884         * lib/spawni.c: Likewise.
63886 2009-07-19  Bruno Haible  <bruno@clisp.org>
63888         Fix handling of closed stdin/stdout/stderr on mingw.
63889         * lib/w32spawn.h: Include unistd.h.
63890         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
63891         file descriptor with O_NOINHERIT flag.
63892         (fd_safer_noinherit): New function, based on fd-safer.c.
63893         (dup_safer_noinherit): New function, based on dup-safer.c.
63894         (undup_safer_noinherit): New function.
63895         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
63896         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
63897         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
63898         instead of fd_safer.
63899         * tests/test-pipe.c: Include <windows.h>.
63900         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
63901         result.
63903         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
63904         from main.
63905         (test_pipe): Pass an extra argument for disambiguation.
63906         (main): Invoke parent_main or child_main.
63908         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
63909         consistently.
63911 2009-07-18  Eric Blake  <ebb9@byu.net>
63913         test-pipe: fix mingw build
63914         * tests/test-pipe.c (main): Avoid fcntl on mingw.
63916 2009-07-18  Bruno Haible  <bruno@clisp.org>
63918         * modules/pipe-tests (Makefile.am): Fix typo.
63920 2009-07-18  Eric Blake  <ebb9@byu.net>
63922         error: fix mingw build
63923         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
63924         Reported by Bruno Haible.
63926         error: avoid undefined use of stdout
63927         * lib/error.c (error, error_at_line): Check that fd 1 is open
63928         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
63929         is handling faults and the close_stdout module wants to report the
63930         detection of closed stdout as an error.
63932 2009-07-17  Eric Blake  <ebb9@byu.net>
63934         pipe: be robust in face of closed fds
63935         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
63936         should cause child to misbehave.
63937         * modules/pipe-tests: New module.
63938         * tests/test-pipe.c: New file.
63939         * tests/test-pipe.sh: New file.
63940         Reported by Akim Demaille.
63942 2009-07-14  Bruno Haible  <bruno@clisp.org>
63944         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
63945         Reported by anonymous kc.
63947 2009-07-07  Jim Meyering  <meyering@redhat.com>
63949         maint.mk: don't look for translatable strings in *.m4 or *.mk
63950         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
63951         when searching for translatable strings.
63953 2009-07-05  Jim Meyering  <meyering@redhat.com>
63955         remove superfluous parentheses in STREQ definition
63956         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
63957         * lib/getugroups.c (STREQ): Likewise.
63958         * lib/fnmatch.c (STREQ): Likewise.
63959         Spotted by Bruno Haible.
63961 2009-07-04  Jim Meyering  <meyering@redhat.com>
63963         argv-iter: new module
63964         * MODULES.html.sh: Add argv-iter.
63965         * lib/argv-iter.c, lib/argv-iter.h: New files.
63966         * modules/argv-iter: New file.
63967         * modules/argv-iter-tests: New file.
63968         * tests/test-argv-iter.c: Test it.
63970 2009-07-04  Bruno Haible  <bruno@clisp.org>
63972         Fix assertion.
63973         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
63974         contains more exact copies of a given entry than file2, leave the extra
63975         copies unpaired rather than aborting.
63976         Reported by Eric Blake.
63978 2009-07-02  Bruno Haible  <bruno@clisp.org>
63980         Speedup git-merge-changelog for git cherry-pick.
63981         * lib/git-merge-changelog.c (struct entries_mapping): New type.
63982         (entries_mapping_get): New function, extracted from compute_mapping.
63983         (entries_mapping_reverse_get): New function.
63984         (compute_mapping): Add a 'full' argument. Return the result in a
63985         'struct entries_mapping'.
63986         (main): Update. Access the mappings through entries_mapping_get.
63987         Reported by Eric Blake.
63989 2009-07-02  Bruno Haible  <bruno@clisp.org>
63991         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
63992         best_i.
63994 2009-07-02  Bruno Haible  <bruno@clisp.org>
63996         Speed up approximate search for matching ChangeLog entries.
63997         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
63998         argument. Call fstrcmp_bounded instead of fstrcmp.
63999         (compute_mapping, try_split_merged_entry, main): Update callers.
64001 2009-07-02  Bruno Haible  <bruno@clisp.org>
64003         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
64005 2009-06-30  Bruno Haible  <bruno@clisp.org>
64007         Reduce the number of uc_is_cased calls.
64008         * lib/unicase.h (casing_suffix_context_t): Add
64009         'first_char_except_ignorable' field.
64010         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
64011         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
64012         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
64013         Update initializer.
64014         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
64015         case-ignorable characters.
64016         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
64017         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
64018         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
64019         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
64020         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
64022 2009-06-30  Bruno Haible  <bruno@clisp.org>
64024         Tests for module 'unicase/ignorable'.
64025         * modules/unicase/ignorable-tests: New file.
64026         * tests/unicase/test-ignorable.c: New file, generated by
64027         gen-uni-tables.
64029         Tests for module 'unicase/cased'.
64030         * modules/unicase/cased-tests: New file.
64031         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
64032         * tests/unicase/test-predicate-part1.h: New file, derived from
64033         tests/unictype/test-predicate-part1.h.
64034         * tests/unicase/test-predicate-part2.h: New file, same as
64035         tests/unictype/test-predicate-part2.h.
64037         Fix evaluation of "Before C" condition of FINAL_SIGMA.
64038         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
64039         (output_casing_properties): New function.
64040         (main): Call it.
64041         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
64042         * lib/unicase/cased.c: Include unictype/bitmap.h.
64043         (uc_is_cased): Define through a bitmap lookup.
64044         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
64045         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
64046         (uc_is_case_ignorable): Define through a bitmap lookup.
64047         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
64048         lib/unictype/bitmap.h.
64049         (Depends-on): Add inline. Clean up.
64050         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
64051         lib/unictype/bitmap.h.
64052         (Depends-on): Add inline. Clean up.
64053         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
64054         recognition.
64055         * tests/unicase/test-u16-tolower.c (main): Likewise.
64056         * tests/unicase/test-u32-tolower.c (main): Likewise.
64058 2009-06-30  Bruno Haible  <bruno@clisp.org>
64060         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
64061         * lib/unicase/u16-casemap.c: Likewise.
64062         * lib/unicase/u32-casemap.c: Likewise.
64064 2009-06-29  Bruno Haible  <bruno@clisp.org>
64066         Define u32_casefold as a wrapper around u32_ct_casefold.
64067         * lib/unicase/u32-casefold.c: Update.
64068         * modules/unicase/u32-casefold (Depends-on): Add
64069         unicase/u32-ct-casefold, unicase/empty-prefix-context,
64070         unicase/empty-suffix-context. Clean up.
64072         Define u16_casefold as a wrapper around u16_ct_casefold.
64073         * lib/unicase/u16-casefold.c: Update.
64074         * modules/unicase/u16-casefold (Depends-on): Add
64075         unicase/u16-ct-casefold, unicase/empty-prefix-context,
64076         unicase/empty-suffix-context. Clean up.
64078         Define u8_casefold as a wrapper around u8_ct_casefold.
64079         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
64080         * lib/unicase/u8-casefold.c: Update.
64081         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
64082         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
64084         Define u32_totitle as a wrapper around u32_ct_totitle.
64085         * lib/unicase/u32-totitle.c: Update.
64086         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
64087         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
64089         Define u16_totitle as a wrapper around u16_ct_totitle.
64090         * lib/unicase/u16-totitle.c: Update.
64091         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
64092         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
64094         Define u8_totitle as a wrapper around u8_ct_totitle.
64095         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
64096         functions.
64097         (FUNC): Delegate to U_CT_TOTITLE.
64098         * lib/unicase/u8-totitle.c: Update.
64099         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
64100         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
64102         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
64103         invocation.
64104         * modules/unicase/u32-tolower (Depends-on): Add
64105         unicase/empty-prefix-context, unicase/empty-suffix-context.
64107         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
64108         invocation.
64109         * modules/unicase/u16-tolower (Depends-on): Add
64110         unicase/empty-prefix-context, unicase/empty-suffix-context.
64112         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
64113         * modules/unicase/u8-tolower (Depends-on): Add
64114         unicase/empty-prefix-context, unicase/empty-suffix-context.
64116         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
64117         invocation.
64118         * modules/unicase/u32-toupper (Depends-on): Add
64119         unicase/empty-prefix-context, unicase/empty-suffix-context.
64121         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
64122         invocation.
64123         * modules/unicase/u16-toupper (Depends-on): Add
64124         unicase/empty-prefix-context, unicase/empty-suffix-context.
64126         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
64127         * modules/unicase/u8-toupper (Depends-on): Add
64128         unicase/empty-prefix-context, unicase/empty-suffix-context.
64130         New module 'unicase/u32-ct-casefold'.
64131         * lib/unicase/u32-ct-casefold.c: New file.
64132         * modules/unicase/u32-ct-casefold: New file.
64134         New module 'unicase/u16-ct-casefold'.
64135         * lib/unicase/u16-ct-casefold.c: New file.
64136         * modules/unicase/u16-ct-casefold: New file.
64138         New module 'unicase/u8-ct-casefold'.
64139         * lib/unicase/u8-ct-casefold.c: New file.
64140         * lib/unicase/u-ct-casefold.h: New file, derived from
64141         lib/unicase/u-casefold.h.
64142         * modules/unicase/u8-ct-casefold: New file.
64144         New module 'unicase/u32-ct-totitle'.
64145         * lib/unicase/u32-ct-totitle.c: New file.
64146         * modules/unicase/u32-ct-totitle: New file.
64148         New module 'unicase/u16-ct-totitle'.
64149         * lib/unicase/u16-ct-totitle.c: New file.
64150         * modules/unicase/u16-ct-totitle: New file.
64152         New module 'unicase/u8-ct-totitle'.
64153         * lib/unicase/u8-ct-totitle.c: New file.
64154         * lib/unicase/u-ct-totitle.h: New file, derived from
64155         lib/unicase/u-totitle.h.
64156         * modules/unicase/u8-ct-totitle: New file.
64158         New module 'unicase/u32-ct-tolower'.
64159         * lib/unicase/u32-ct-tolower.c: New file.
64160         * modules/unicase/u32-ct-tolower: New file.
64162         New module 'unicase/u16-ct-tolower'.
64163         * lib/unicase/u16-ct-tolower.c: New file.
64164         * modules/unicase/u16-ct-tolower: New file.
64166         New module 'unicase/u8-ct-tolower'.
64167         * lib/unicase/u8-ct-tolower.c: New file.
64168         * modules/unicase/u8-ct-tolower: New file.
64170         New module 'unicase/u32-ct-toupper'.
64171         * lib/unicase/u32-ct-toupper.c: New file.
64172         * modules/unicase/u32-ct-toupper: New file.
64174         New module 'unicase/u16-ct-toupper'.
64175         * lib/unicase/u16-ct-toupper.c: New file.
64176         * modules/unicase/u16-ct-toupper: New file.
64178         New module 'unicase/u8-ct-toupper'.
64179         * lib/unicase/u8-ct-toupper.c: New file.
64180         * modules/unicase/u8-ct-toupper: New file.
64182         Add context arguments to u*_casemap functions.
64183         * lib/unicase/unicasemap.h: Include unicase.h.
64184         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
64185         suffix_context arguments.
64186         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
64187         functions.
64188         (FUNC): Add prefix_context and suffix_context arguments. Use
64189         uc_is_cased and uc_is_case_ignorable.
64190         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
64191         * lib/unicase/u16-casemap.c: Likewise.
64192         * lib/unicase/u32-casemap.c: Likewise.
64193         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
64194         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
64195         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
64196         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
64197         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
64198         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
64200         New module 'unicase/u32-suffix-context'.
64201         * lib/unicase/u32-suffix-context.c: New file.
64202         * modules/unicase/u32-suffix-context: New file.
64204         New module 'unicase/u16-suffix-context'.
64205         * lib/unicase/u16-suffix-context.c: New file.
64206         * modules/unicase/u16-suffix-context: New file.
64208         New module 'unicase/u8-suffix-context'.
64209         * lib/unicase/u8-suffix-context.c: New file.
64210         * lib/unicase/u-suffix-context.h: New file.
64211         * modules/unicase/u8-suffix-context: New file.
64213         New module 'unicase/empty-suffix-context'.
64214         * lib/unicase/empty-suffix-context.c: New file.
64215         * modules/unicase/empty-suffix-context: New file.
64217         New module 'unicase/u32-prefix-context'.
64218         * lib/unicase/u32-prefix-context.c: New file.
64219         * modules/unicase/u32-prefix-context: New file.
64221         New module 'unicase/u16-prefix-context'.
64222         * lib/unicase/u16-prefix-context.c: New file.
64223         * modules/unicase/u16-prefix-context: New file.
64225         New module 'unicase/u8-prefix-context'.
64226         * lib/unicase/u8-prefix-context.c: New file.
64227         * lib/unicase/u-prefix-context.h: New file.
64228         * lib/unicase/context.h: New file.
64229         * modules/unicase/u8-prefix-context: New file.
64231         New module 'unicase/empty-prefix-context'.
64232         * lib/unicase/empty-prefix-context.c: New file.
64233         * modules/unicase/empty-prefix-context: New file.
64235         New module 'unicase/ignorable'.
64236         * lib/unicase/ignorable.c: New file.
64237         * modules/unicase/ignorable: New file.
64239         New module 'unicase/cased'.
64240         * lib/unicase/caseprop.h: New file.
64241         * lib/unicase/cased.c: New file.
64242         * modules/unicase/cased: New file.
64244         New functions for case mapping of substrings.
64245         * lib/unicase.h (casing_prefix_context_t): New type.
64246         (unicase_empty_prefix_context): New variable.
64247         (u8_casing_prefix_context, u16_casing_prefix_context,
64248         u32_casing_prefix_context, u8_casing_prefixes_context,
64249         u16_casing_prefixes_context, u32_casing_prefixes_context): New
64250         declarations.
64251         (casing_suffix_context_t): New type.
64252         (unicase_empty_suffix_context): New variable.
64253         (u8_casing_suffix_context, u16_casing_suffix_context,
64254         u32_casing_suffix_context, u8_casing_suffixes_context,
64255         u16_casing_suffixes_context, u32_casing_suffixes_context,
64256         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
64257         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
64258         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
64259         declarations.
64261 2009-06-28  Jim Meyering  <meyering@redhat.com>
64263         boostrap: indent only with spaces
64264         * build-aux/bootstrap: Indent only with spaces, never TABs.
64266         bootstrap: split long lines
64267         * build-aux/bootstrap: Keep line length < 80.
64269         bootstrap: sync from coreutils
64270         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
64271         just as autoreconf does.  Verify a list of prerequisite
64272         package-name,version-number pairs if defined in bootstrap.conf.
64273         Refer to README-prereq, if prerequisites are not satisfied.
64275 2009-06-27  Eric Blake  <ebb9@byu.net>
64277         tests: add test for bogus NULL definition
64278         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
64279         * tests/test-stdlib.c: Likewise.
64280         * tests/test-string.c: Likewise.
64281         * tests/test-locale.c: Likewise.
64282         * tests/test-unistd.c: Likewise.
64283         * modules/stdio-tests (Depends-on): Add verify.
64284         * modules/stdlib-tests (Depends-on): Likewise.
64285         * modules/string-tests (Depends-on): Likewise.
64286         * modules/locale-tests (Depends-on): Likewise.
64287         * modules/unistd-tests (Depends-on): Likewise.
64289 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
64291         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
64292         self-explaining comment.
64293         * m4/selinux-selinux-h: Update serial.
64294         (gl_LIBSELINUX): New macro, adding a warning for missing development
64295         packages to code extracted from...
64296         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
64297         Add warning for missing development packages here, too.
64299 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
64301         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
64303 2009-06-25  Eric Blake  <ebb9@byu.net>
64305         version-etc: fix regression
64306         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
64307         gcc.
64308         (version_etc): Use it, to catch bugs with trailing NULL.
64309         * lib/version-etc.c (version_etc_arn): Delete unused argument.
64310         (version_etc_va): Fix logic bug.
64311         * modules/version-etc-tests: Add test.
64312         * tests/test-version-etc.c: New file.
64313         * tests/test-version-etc.sh: Likewise.
64315 2009-06-25  Sam Steingold  <sds@gnu.org>
64317         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
64318         mbtowc declaration.
64320 2009-06-25  Eric Blake  <ebb9@byu.net>
64322         fpurge: migrate into <stdio.h>
64323         * lib/fpurge.h: Delete...
64324         * lib/stdio.in.h (fpurge): ...and declare here, instead.
64325         * lib/fpurge.c (fpurge): Change declaring header.
64326         * modules/fpurge (Files): Drop deleted file.
64327         (Depends-on): Add stdio.
64328         (configure.ac): Set witness.
64329         * modules/stdio (Makefile.am): Support fpurge macros.
64330         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
64331         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
64332         * lib/fflush.c: Update client.
64333         * tests/test-fpurge.c: Likewise.
64334         * NEWS: Mention the change.
64336 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
64338         * lib/argp-version-etc.c (program_authors): Add const
64339         qualifier.
64340         * lib/version-etc.c: Fix typos in the comments.
64341         * modules/argp-version-etc: Depends on version-etc.
64343 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
64345         argp-version-etc: new module.
64347         * lib/argp-version-etc.c: New file.
64348         * lib/argp-version-etc.h: New file.
64349         * modules/argp-version-etc: New file.
64350         * modules/argp-version-etc-tests: New file.
64351         * tests/test-argp-version-etc.c: New test.
64352         * tests/test-argp-version-etc-1.sh: New test.
64354 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
64356         Provide additional interfaces and documentation for version-etc
64357         module.
64359         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
64360         interfaces.
64361         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
64362         prototypes.
64364 2009-06-24  Bruno Haible  <bruno@clisp.org>
64366         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
64367         HAVE_LIB${NAME} macro.
64368         Reported by Sam Steingold <sds@gnu.org>.
64370 2009-06-23  Simon Josefsson  <simon@josefsson.org>
64372         * modules/hash-tests (test_hash_LDADD): Link to libintl when
64373         needed.
64375 2009-06-21  Bruno Haible  <bruno@clisp.org>
64377         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
64378         work.
64379         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
64380         together with LIB${NAME}, LTLIB${NAME}.
64381         Reported by Sam Steingold <sds@gnu.org>.
64383 2009-06-20  Jim Meyering  <meyering@redhat.com>
64385         tests: make sc_require_test_exit_idiom more generic
64386         * top/maint.mk (Exit_witness_file): New overridable variable.
64387         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
64388         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
64390 2009-06-19  Jim Meyering  <meyering@redhat.com>
64392         hash: reverse order of src/dst parameters in an internal interface
64393         * lib/hash.c (transfer_entries): Reverse order of parameters to
64394         put DST before SRC.  Adjust callers.
64396         tests: test-hash: avoid wholesale duplication
64397         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
64398         Instead, use a loop and add a single conditional.
64400         tests: test-hash: allow seed selection via a command line argument
64401         * tests/test-hash.c (get_seed): New function.
64402         (main): Use it.
64404 2009-06-19  Eric Blake  <ebb9@byu.net>
64406         hash: avoid memory leak on allocation failure
64407         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
64408         failure.  Factor repeated algorithm...
64409         (transfer_entries): ...into new helper routine.
64410         (hash_delete): React to hash_rehash return value.
64412         hash: reduce memory pressure in hash_rehash no-op case
64413         * lib/hash.c (next_prime): Avoid overflow.
64414         (hash_initialize): Factor bucket size computation...
64415         (compute_bucket_size): ...into new helper function.
64416         (hash_rehash): Use new function and open coding to reduce memory
64417         pressure, and avoid a memory leak in USE_OBSTACK code.
64418         Reported by Jim Meyering.
64420 2009-06-18  Eric Blake  <ebb9@byu.net>
64422         hash: make rotation more obvious
64423         * modules/hash (Depends-on): Add bitrotate and stdint.
64424         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
64425         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
64426         (SIZE_MAX): Rely on headers for definition.
64427         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
64428         (raw_hasher): Use rotr_sz.
64429         Suggested by Jim Meyering.
64431         hash: fix memory leak in last patch
64432         * lib/hash.c (hash_rehash): Avoid memory leak.
64434         hash: avoid no-op rehashing
64435         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
64437         hash: provide default callback functions
64438         * lib/hash.c (raw_hasher, raw_comparator): New functions.
64439         (hash_initialize): Use them as defaults.
64440         * tests/test-hash.c (main): Test this.
64442         hash: minor optimization
64443         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
64444         when possible.
64445         (hash_initialize): Document this promise.
64446         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
64447         * tests/test-hash.c (hash_compare_strings): Test this.
64449 2009-06-18  Bruno Haible  <bruno@clisp.org>
64451         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
64452         going to be replaced anyway.
64454 2009-06-18  Bruno Haible  <bruno@clisp.org>
64456         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
64457         in one place.
64458         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
64459         be replaced anyway.
64461 2009-06-18  Eric Blake  <ebb9@byu.net>
64463         hash: check for resize before insertion
64464         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
64465         threshold before insertion, so that a pathological hash_rehash
64466         that fills every bucket can still trigger another rehash.
64468 2009-06-18  Jim Meyering  <meyering@redhat.com>
64470         hash-tests: add a loop around the small tests
64471         * tests/test-hash.c (main): Repeat small tests with selected
64472         small initial table sizes.
64474 2009-06-17  Eric Blake  <ebb9@byu.net>
64476         hash: minor cleanups
64477         * lib/hash.h (hash_entry): Make opaque, by moving...
64478         * lib/hash.c (hash_entry): ...here.
64479         (hash_insert): Clarify restrictions on what can be inserted.
64480         (hash_get_next): Clarify when it is safe to remove an element
64481         during traversal.
64482         (check_tuning): Skip verification when tuning is known safe.
64483         (hash_initialize): Clarify restrictions on tuning.
64485 2009-06-17  Jim Meyering  <jim@meyering.net>
64486         and Eric Blake  <ebb9@byu.net>
64488         hash-tests: new module
64489         * modules/hash-tests: New file.
64490         * tests/test-hash.c: New file.
64492 2009-06-17  Eric Blake  <ebb9@byu.net>
64494         strstr-simple: document new module
64495         * MODULES.html.sh: Document new module.
64497         strstr, strcasestr: replace on platforms with broken memchr
64498         * modules/strstr: Split into...
64499         * modules/strstr-simple: ...new module that does not care about
64500         performance, but does care about glibc bug.
64501         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
64502         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
64503         if platform memchr is broken, per Debian bug 521737.
64504         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
64505         memchr.
64506         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
64507         * doc/posix-functions/strstr.texi (strstr): Document the fix.
64508         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
64509         * modules/mountlist (Depends-on): Add strstr-simple.
64510         * modules/gen-uni-tables (Depends-on): Likewise.
64511         * modules/argz (Depends-on): Add strstr.
64513 2009-06-17  Bruno Haible  <bruno@clisp.org>
64515         * modules/posix_spawn-internal (Depends-on): Add errno.
64517 2009-06-17  Bruno Haible  <bruno@clisp.org>
64519         Define missing ESTALE on Interix 3.5.
64520         * lib/errno.in.h (ESTALE): Assign a value if missing.
64521         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
64522         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
64523         missing.
64524         * doc/posix-headers/errno.texi: Mention the Interix bug.
64525         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
64527 2009-06-15  Eric Blake  <ebb9@byu.net>
64529         memchr, memchr2: add valgrind exception
64530         * lib/memchr.valgrind: New file.
64531         * lib/memchr2.valgrind: New file.
64532         * modules/memchr (Files): Distribute valgrind file.
64533         * modules/memchr2 (Files): Likewise.
64535         docs: memchr is no longer obsolete
64536         * MODULES.html.sh: Move memchr from obsolete to string.h section.
64537         * lib/string.in.h (memchr): Simplify logic.
64539 2009-06-14  Jim Meyering  <meyering@redhat.com>
64541         link-follow: fix the "checking..." message to not mention trailing slash
64542         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
64543         never considered trailing slashes.
64545 2009-06-14  Bruno Haible  <bruno@clisp.org>
64547         * m4/memchr.m4: Mention also the bug on IA-64.
64548         * doc/posix-functions/memchr.texi: Likewise.
64550 2009-06-12  Eric Blake  <ebb9@byu.net>
64552         memchr: detect broken x86_64 and alpha implementations
64553         * modules/memchr-tests (Depends-on): Move mmap detection...
64554         * modules/memchr (Depends-on): ...here.
64555         (configure.ac): Set indicator.
64556         * lib/string.in.h (memchr): Declare replacement.
64557         * modules/string (Makefile.am): Trigger replacement.
64558         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
64559         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
64560         bugs.
64561         * doc/posix-functions/memchr.texi (memchr): Document the bug.
64562         * modules/getpagesize (License): Relax license.
64564 2009-06-11  Bruno Haible  <bruno@clisp.org>
64566         * lib/idpriv.h: Add more references.
64568 2009-06-08  Bruno Haible  <bruno@clisp.org>
64570         Tests for module 'idpriv-droptemp'.
64571         * modules/idpriv-droptemp-tests: New file.
64572         * tests/test-idpriv-droptemp.sh: New file.
64573         * tests/test-idpriv-droptemp.su.sh: New file.
64574         * tests/test-idpriv-droptemp.c: New file.
64576         New module 'idpriv-droptemp'.
64577         * lib/idpriv-droptemp.c: New file.
64578         * modules/idpriv-droptemp: New file.
64580 2009-06-08  Bruno Haible  <bruno@clisp.org>
64582         Tests for module 'idpriv-drop'.
64583         * modules/idpriv-drop-tests: New file.
64584         * tests/test-idpriv-drop.sh: New file.
64585         * tests/test-idpriv-drop.su.sh: New file.
64586         * tests/test-idpriv-drop.c: New file.
64588         New module 'idpriv-drop'.
64589         * lib/idpriv.h: New file.
64590         * lib-idpriv-drop.c: New file.
64591         * m4/idpriv.m4: New file.
64592         * modules/idpriv-drop: New file.
64594 2009-06-08  Bruno Haible  <bruno@clisp.org>
64596         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
64597         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
64598         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
64599         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
64600         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
64601         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
64602         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
64604 2009-06-08  Eric Blake  <ebb9@byu.net>
64606         test-strstr: use memory fence, when possible
64607         * tests/test-strstr.c (main): Use memory fence, in order to be
64608         more likely to trigger Debian bug 521737.
64609         * modules/strstr-tests (Files): Pull in additional files.
64611         memchr: no longer obsolete, for wider field testing
64612         * modules/memchr (Status, Notice): Delete, this module is no
64613         longer obsolete.
64614         * modules/vasnprintf (Depends-on): Add memchr.
64616 2009-06-07  Jim Meyering  <meyering@redhat.com>
64618         hash: declare some functions with the warn_unused_result attribute
64619         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
64621 2009-06-07  Bruno Haible  <bruno@clisp.org>
64623         * tests/test-alignof.c: Don't test int64_t if it does not exist.
64624         Reported by Eric Blake.
64626 2009-06-06  Eric Blake  <ebb9@byu.net>
64628         test-alignof: fix typo with long double
64629         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
64630         compiler error.
64632 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
64634         Escape non-texinfo { and }s.
64635         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
64636         markup error.
64638 2009-06-04  Jim Meyering  <meyering@redhat.com>
64640         gitlog-to-changelog: don't infloop on an empty commit log
64641         * build-aux/gitlog-to-changelog: Warn about an empty log message.
64642         Reported by Boris Petersen <transacid@centerim.org>.
64644 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
64646         version-etc: extend for packagers
64647         Add three new configure options, intended for packagers:
64648           --with-packager="packager name"
64649           --with-packager-version="packager-specific version"
64650           --with-packager-bug-reports="packager bug reporting"
64651         An example with coreutils:
64652           $ ./configure \
64653             --with-packager=Gentoo \
64654             --with-packager-bug-report=http://bugs.gentoo.org/ \
64655             --with-packager-version="patchset 1.6"
64656           $ ./src/ls --version | head -n2
64657           ls (GNU coreutils) 7.1-dirty
64658           Packaged by Gentoo (patchset 1.6)
64659         Note that the bug reporting info via --help doesn't show up because
64660         coreutils uses its own custom emit_bug_reporting_address() implementation
64661         in src/system.h.  If it didn't, it'd look like:
64662           $ ./src/ls --help | tail -n4
64663           Report bugs to <bug-coreutils@gnu.org>.
64664           Report Gentoo bugs to <http://bugs.gentoo.org/>.
64665           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
64666           General help using GNU software: <http://www.gnu.org/gethelp/>.
64667         * lib/version-etc.c: Print new information, if provided.
64668         * m4/version-etc.m4: New file.
64669         * modules/version-etc (Files): Add m4/version-etc.m4.
64670         (configure.ac): Add gl_VERSION_ETC.
64672 2009-05-31  Bruno Haible  <bruno@clisp.org>
64674         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
64675         and 'int64_t'.
64676         * modules/alignof-tests (Dependencies): Add stdint.
64677         Reported by Eric Blake.
64679 2009-05-31  Bruno Haible  <bruno@clisp.org>
64681         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
64682         restriction due to compiler bugs.
64683         Reported by Eric Blake.
64685 2009-05-31  Simon Josefsson  <simon@josefsson.org>
64686             Bruno Haible  <bruno@clisp.org>
64688         Fix test-alignof failure.
64689         * lib/alignof.h (alignof_slot): New macro.
64690         (alignof_type): New macro, with the same semantics as the previous
64691         'alignof'.
64692         (alignof): Alias to alignof_slot.
64693         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
64694         check that the results are usable as constant expressions.
64696 2009-05-31  Bruno Haible  <bruno@clisp.org>
64698         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
64699         * tests/test-memchr.c (main): Check that memchr does not read past the
64700         first occurrence of the byte.
64701         * tests/test-strstr.c (main): Update comment.
64702         Suggested by Eric Blake.
64704 2009-05-30  Bruno Haible  <bruno@clisp.org>
64706         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
64707         detail how to use dumpbin.
64708         Reported by David Byron <dbyron@dbyron.com>.
64710 2009-06-02  Simon Josefsson  <simon@josefsson.org>
64712         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
64714 2009-06-02  Simon Josefsson  <simon@josefsson.org>
64716         * m4/manywarnings.m4: Add GCC 4.4 warnings.
64718 2009-05-28  Bruno Haible  <bruno@clisp.org>
64720         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
64721         build-aux/ files.
64723 2009-05-28  Simon Josefsson  <simon@josefsson.org>
64725         * gnulib-tool (func_import): Transform license on build-aux/ files too.
64727 2009-05-27  Simon Josefsson  <simon@josefsson.org>
64729         * gnulib-tool (sed_transform_main_lib_file)
64730         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
64731         regexps.
64733 2009-05-26  Simon Josefsson  <simon@josefsson.org>
64735         * tests/test-strstr.c: Add another self-test.
64736         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
64737         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
64739 2009-05-23  Bruno Haible  <bruno@clisp.org>
64741         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
64742         change.
64744 2009-05-21  Bruno Haible  <bruno@clisp.org>
64746         Simplify use of mode_t varargs.
64747         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
64748         uses 'mode_t' or 'int'.
64749         * lib/openat.c (openat): Likewise.
64750         * lib/open-safer.c (open_safer): Likewise.
64751         * m4/mode_t.m4: New file.
64752         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
64753         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
64754         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
64755         * modules/open (Files): Add m4/mode_t.m4.
64756         * modules/openat (Files): Likewise.
64757         * modules/fcntl-safer (Files): Likewise.
64758         Suggested by Eric Blake.
64760 2009-05-21  Pádraig Brady  <P@draigbrady.com>
64762         * doc/glibc-functions/fallocate.texi: New file.
64763         * doc/gnulib.texi: Include it.
64765 2009-05-21  Eric Blake  <ebb9@byu.net>
64766             Bruno Haible  <bruno@clisp.org>
64768         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
64769         invocations.
64770         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
64772 2009-05-21  Eric Blake  <ebb9@byu.net>
64773             Bruno Haible  <bruno@clisp.org>
64775         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
64776         include_next. Fix of 2008-11-20 commit.
64777         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
64778         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
64779         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
64780         NEXT_MATH_H.
64781         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
64782         instead of NEXT_MATH_H.
64784 2009-05-21  Bruno Haible  <bruno@clisp.org>
64786         Avoid redefinition warnings for SIZE_MAX.
64787         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
64788         Reported by Simon Josefsson.
64790 2009-05-21  Bruno Haible  <bruno@clisp.org>
64792         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
64793         AC_CACHE_VAL.
64795 2009-05-20  Bruno Haible  <bruno@clisp.org>
64797         Make zeroptr.h work on mingw.
64798         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
64799         mprotect.
64800         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
64801         * modules/memchr2-tests (configure.ac): Likewise.
64802         * modules/memcmp-tests (configure.ac): Likewise.
64803         * modules/memmem-tests (configure.ac): Likewise.
64804         * modules/memrchr-tests (configure.ac): Likewise.
64805         Reported by Simon Josefsson.
64807 2009-05-20  Simon Josefsson  <simon@josefsson.org>
64809         * tests/test-glob.c: Include string.h for strcmp prototype.
64811 2009-05-20  Simon Josefsson  <simon@josefsson.org>
64813         * modules/getdelim (Depends-on): Add explicit stdint, although it
64814         was implicitly already pulled in via realloc-posix.
64815         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
64817 2009-05-20  Simon Josefsson  <simon@josefsson.org>
64819         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
64820         G. Christensen" <tgc@jupiterrise.com>.
64821         * m4/sys_socket_h.m4: Check for sa_family_t.
64822         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
64823         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
64824         * tests/test-sys_socket.c: Check that sa_family_t works.
64826 2009-05-18  Eric Blake  <ebb9@byu.net>
64828         maint.mk: allow gnulib_dir in VPATH build
64829         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
64831 2009-05-15  Jim Meyering  <meyering@redhat.com>
64833         maint.mk: Give gnulib_dir a default definition.
64834         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
64835         Thus, most packages no longer need to specify this variable in cfg.mk
64837 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
64839         rename.m4: fix typos that would make non-mingw cross-configure fail
64840         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
64842 2009-05-13  Eric Blake  <ebb9@byu.net>
64844         mmap-anon: avoid out-of-order autoconf expansion
64845         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
64846         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
64847         * modules/memchr-tests (Depends-on): Add extensions.
64848         * modules/memchr2-tests (Depends-on): Add extensions.
64849         * modules/memcmp-tests (Depends-on): Add extensions.
64850         * modules/memmem-tests (Depends-on): Add extensions.
64851         * modules/memrchr-tests (Depends-on): Add extensions.
64853 2009-05-13  Bruno Haible  <bruno@clisp.org>
64855         Make some tests ISO C 99 compliant.
64856         * tests/zerosize-ptr.h: New file.
64857         * tests/test-memchr.c: Include zerosize-ptr.h.
64858         (main): Use a zero-size object pointer instead of NULL.
64859         * tests/test-memchr2.c: Include zerosize-ptr.h.
64860         (main): Use a zero-size object pointer instead of NULL.
64861         * tests/test-memcmp.c: Include zerosize-ptr.h.
64862         (main): Use a zero-size object pointer instead of NULL.
64863         * tests/test-memmem.c: Include zerosize-ptr.h.
64864         (main): Use a zero-size object pointer instead of NULL.
64865         * tests/test-memrchr.c: Include zerosize-ptr.h.
64866         (main): Use a zero-size object pointer instead of NULL.
64867         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
64868         m4/mmap-anon.m4.
64869         (Depends-on): Add getpagesize.
64870         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
64871         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
64872         m4/mmap-anon.m4.
64873         (Depends-on): Add getpagesize.
64874         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
64875         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
64876         m4/mmap-anon.m4.
64877         (Depends-on): Add getpagesize.
64878         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
64879         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
64880         m4/mmap-anon.m4.
64881         (Depends-on): Add getpagesize.
64882         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
64883         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
64884         m4/mmap-anon.m4.
64885         (Depends-on): Add getpagesize.
64886         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
64888 2009-05-12  Bruno Haible  <bruno@clisp.org>
64890         Tests for module 'alignof'.
64891         * modules/alignof-tests: New file.
64892         * tests/test-alignof.c: New file.
64894 2009-05-12  Bruno Haible  <bruno@clisp.org>
64896         Fix alignof macro.
64897         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
64898         vendor compilers that are always correct.
64900 2009-05-12  Bruno Haible  <bruno@clisp.org>
64902         Make the MAP_ANONYMOUS detection work on HP-UX 11.
64903         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
64904         not whether its fully works.
64906 2009-05-12  Bruno Haible  <bruno@clisp.org>
64908         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
64910 2009-05-12  Jim Meyering  <meyering@redhat.com>
64912         * top/maint.mk: Adjust backslash alignment.
64914 2009-05-11  Simon Josefsson  <simon@josefsson.org>
64916         * top/maint.mk: Make $(srcdir)/build-aux configurable.
64918 2009-05-11  Eric Blake  <ebb9@byu.net>
64920         argp: avoid undefined behavior
64921         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
64922         macros.
64924 2009-05-08  Simon Josefsson  <simon@josefsson.org>
64926         * tests/test-vc-list-files-git.sh: Do git config of user.email and
64927         user.name to prevent git commit from complaining.
64929 2009-05-10  Bruno Haible  <bruno@clisp.org>
64931         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
64932         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
64933         it rewrites every file name only once.
64934         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
64936 2009-05-08  Bruno Haible  <bruno@clisp.org>
64938         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
64939         instead of 'max'.
64941 2009-05-08  Simon Josefsson  <simon@josefsson.org>
64943         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
64944         sockaddr_storage test.
64946 2009-05-07  Simon Josefsson  <simon@josefsson.org>
64948         * modules/sys_socket (Makefile.am): Substitute
64949         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
64950         * m4/sys_socket_h.m4: Check for sockaddr_storage.
64951         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
64952         * tests/test-sys_socket.c: Check sockaddr_storage.
64954 2009-05-08  Bruno Haible  <bruno@clisp.org>
64956         New module 'alignof'.
64957         * lib/alignof.h: New file.
64958         * modules/alignof: New file.
64960 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
64961             Bruno Haible  <bruno@clisp.org>
64963         Fix test-file-has-acl on FreeBSD.
64964         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
64965         mask is implicitly added.
64966         * tests/test-file-has-acl.c: Include <signal.h>.
64967         (main): Terminate the test after 5 seconds.
64968         * modules/acl-tests (configure.ac): Check for alarm function.
64970 2009-05-04  Bruno Haible  <bruno@clisp.org>
64972         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
64973         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
64974         * modules/errno (configure.ac): Drop AC_REQUIRE.
64975         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
64976         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
64978 2009-05-04  Simon Josefsson  <simon@josefsson.org>
64980         * modules/glob-tests: New module.
64981         * tests/test-glob.c: Add.
64983 2009-05-04  Simon Josefsson  <simon@josefsson.org>
64985         * modules/fnmatch-tests: New module.
64986         * tests/test-fnmatch.c: Add.
64988 2009-05-04  Eric Blake  <ebb9@byu.net>
64990         maint: make the new no-submodule-changes rule VPATH-safe
64991         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
64993 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
64994             Bruno Haible  <bruno@clisp.org>
64996         acl: Fix infinite loop on FreeBSD.
64997         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
64998         of return value from acl_get_entry.
64999         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
65000         Likewise.
65002 2009-05-03  Bruno Haible  <bruno@clisp.org>
65004         * lib/acl-internal.h (acl_entries): Clarify return value.
65005         * lib/acl_entries.c (acl_entries): Likewise.
65007 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
65009         Bug fix in acl module.
65010         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
65012 2009-05-03  Bruno Haible  <bruno@clisp.org>
65014         Create gperf-generated file in the source dir, not in the build dir.
65015         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
65016         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
65017         * modules/unicase/locale-language (unicase/locale-languages.h):
65018         Likewise.
65019         * modules/unicase/special-casing (unicase/special-casing-table.h):
65020         Likewise.
65021         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
65022         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
65023         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
65024         Reported by Ralf Wildenhues.
65026 2009-05-03  Bruno Haible  <bruno@clisp.org>
65028         * modules/fnmatch (Description, configure.ac): Taken from
65029         fnmatch-posix.
65030         * modules/fnmatch-posix: Turn into a symbolic reference to the
65031         'fnmatch' module, and deprecate.
65032         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
65034 2009-05-03  Bruno Haible  <bruno@clisp.org>
65036         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
65037         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
65038         Reported by Ralf Wildenhues.
65040 2009-05-04  Simon Josefsson  <simon@josefsson.org>
65042         * m4/fnmatch.m4: Fix fnmatch re-define.
65044 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
65046         priv-set: new module and tests; adapt write-any-file
65047         * lib/priv-set.c: New file.
65048         * lib/priv-set.h: New file.
65049         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
65050         * lib/write-any-file.c: Simplify by using priv-set module.
65051         * m4/priv-set.m4: New file.
65052         * modules/priv-set: New file.
65053         * modules/unlinkdir: Add dependency on priv-set module.
65054         * modules/write-any-file: Likewise.
65056         Tests for module 'priv-set'.
65057         * modules/priv-set-tests: New file.
65058         * tests/test-priv-set.c: New file.
65060 2009-05-03  Jim Meyering  <meyering@redhat.com>
65061             Bruno Haible  <bruno@clisp.org>
65063         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
65064         use the converted UTF-8 variant of the name instead.
65066 2009-05-03  Jim Meyering  <meyering@redhat.com>
65068         tests: tighten some getdate tests
65069         * tests/test-getdate.c (main): Tighten tests: require equality,
65070         not just greater than.  Set TZ envvar to UTC0.
65072 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
65074         getdate: correctly interpret "next monday" when run on a Monday
65075         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
65076         that e.g., "next tues" (when run on a tuesday) results in a date
65077         that is one week in the future, and not today's date.
65078         I.e., add a week when the wday is the same as the current one.
65079         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
65080         and earlier by Martin Bernreuther and Jan Minář.
65081         * tests/test-getdate.c (main): Check that "next DAY" is always in
65082         the future and that "last DAY" is always in the past.
65084 2009-05-02  Jim Meyering  <meyering@redhat.com>
65086         build: ensure that a release build fails when a submodule is unclean
65087         * top/maint.mk (no-submodule-changes): New rule.
65088         (alpha beta major): Depend on it.
65090 2009-05-02  Bruno Haible  <bruno@clisp.org>
65092         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
65093         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
65094         shell variable gl_fnmatch_required to detect which variant is
65095         requested.
65096         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
65097         gl_FUNC_FNMATCH_POSIX.
65098         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
65099         exclude fnmatch-posix.
65101 2009-05-02  Bruno Haible  <bruno@clisp.org>
65103         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
65104         * modules/mbsrtowcs (License): Change to LGPLv2+.
65105         * modules/strnlen1 (License): Likewise.
65106         Reported by Simon Josefsson.
65108 2009-05-02  Bruno Haible  <bruno@clisp.org>
65110         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
65111         "cross".
65112         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
65113         gnulib-tool was called with option --source-base=lib.
65115 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65117         Use automake *-local hooks without commands, for extensibility.
65118         * modules/localcharset (Makefile.am): Rename install-exec-local
65119         rule to install-exec-localcharset, and make it a prerequisite of
65120         install-exec-local.  Likewise, rename the uninstall-local rule to
65121         uninstall-localcharset, and make it a prerequisite of the former.
65123 2009-05-01  Bruno Haible  <bruno@clisp.org>
65125         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
65126         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
65127         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
65128         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
65129         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
65130         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
65131         m4/locale-zh.m4, m4/codeset.m4.
65133         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
65134         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
65135         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
65136         m4/locale-zh.m4.
65138         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
65139         REPLACE_WCRTOMB if mbstate_t must be replaced.
65140         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
65141         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
65143 2009-05-01  Bruno Haible  <bruno@clisp.org>
65145         Avoid compiler warnings when redefining macros defined by <libintl.h>.
65146         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
65147         dngettext, dcngettext, textdomain, bindtextdomain,
65148         bind_textdomain_codeset): Undefine before redefining.
65150 2009-04-30  Bruno Haible  <bruno@clisp.org>
65152         Fix bug introduced on 2009-04-25.
65153         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
65154         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
65155         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
65156         is defined.
65157         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
65158         is defined.
65159         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
65160         is defined.
65161         Reported by Elbert_Pol <elbert.pol@gmail.com>.
65163 2009-04-28  Bruno Haible  <bruno@clisp.org>
65165         Comment tweaks.
65166         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
65167         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
65168         * lib/unicase.h (u*_casexfrm): Likewise.
65169         Reported by Paolo Bonzini.
65171 2009-04-28  Bruno Haible  <bruno@clisp.org>
65173         Fix a compilation error.
65174         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
65175         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
65176         Reported by Jim Meyering.
65178 2009-04-27  Bruno Haible  <bruno@clisp.org>
65180         New module 'libunistring'.
65181         * modules/libunistring: New file.
65182         * m4/libunistring.m4: New file.
65183         * MODULES.html.sh (Unicode string functions): Add it.
65185 2009-04-27  Eric Blake  <ebb9@byu.net>
65187         maint.mk: allow package-specific header to provide <config.h>
65188         * top/maint.mk (sc_require_config_h): New variable.
65189         (sc_require_config_h, sc_require_config_h_first): Use it.
65191 2009-04-27  Simon Josefsson  <simon@josefsson.org>
65193         * top/maint.mk (sc_avoid_if_before_free): Except
65194         useless-if-before-free script.
65196 2009-04-27  Eric Blake  <ebb9@byu.net>
65198         maintainer-makefile: depend on all required helper scripts
65199         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
65200         useless-if-before-free.
65201         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
65202         version, rather than assuming gnulib checkout is available.
65203         Reported by Simen Josefsson.
65205 2009-04-26  Bruno Haible  <bruno@clisp.org>
65207         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
65208         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
65209         "../" or "..".
65211 2009-04-26  Bruno Haible  <bruno@clisp.org>
65213         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
65214         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
65215         AC_LIB_HAVE_LINKFLAGS.
65217 2009-04-26  Bruno Haible  <bruno@clisp.org>
65219         Simplify calling convention of u*_conv_from_encoding.
65220         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
65221         u32_conv_from_encoding): Expect a resultbuf argument and return the
65222         result directly as a pointer.
65223         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
65224         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
65225         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
65226         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
65227         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
65228         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
65229         Update.
65230         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
65231         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
65232         * lib/vasnprintf.c (VASNPRINTF): Update.
65233         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
65234         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
65235         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
65236         * NEWS: Mention the change.
65238 2009-04-26  Bruno Haible  <bruno@clisp.org>
65240         Simplify calling convention of u*_conv_to_encoding.
65241         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
65242         u32_conv_to_encoding): Expect a resultbuf argument and return the
65243         result directly as a pointer.
65244         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
65245         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
65246         freeing scaled_offsets if mem_iconveha failed.
65247         * lib/unicase/u-casexfrm.h (FUNC): Update.
65248         * lib/uninorm/u-normxfrm.h (FUNC): Update.
65249         * lib/vasnprintf.c (VASNPRINTF): Update.
65250         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
65251         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
65252         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
65253         * NEWS: Mention the change.
65255 2009-04-26  Bruno Haible  <bruno@clisp.org>
65257         Avoid test failures on AIX and OSF/1.
65258         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
65259         malloc(0).
65260         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
65261         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
65262         Likewise.
65263         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
65264         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
65265         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
65266         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
65267         * doc/posix-functions/malloc.texi: Document the portability problem
65268         related to malloc(0).
65270 2009-04-26  Bruno Haible  <bruno@clisp.org>
65272         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
65273         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
65274         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
65276 2009-04-25  Bruno Haible  <bruno@clisp.org>
65278         Avoid link error when creating a namespace clean library.
65279         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
65280         as macro with arguments if already defined as an alias.
65281         * lib/signbitf.c (gl_signbitf): Don't undefine.
65282         * lib/signbitd.c (gl_signbitd): Don't undefine.
65283         * lib/signbitl.c (gl_signbitl): Don't undefine.
65285 2009-04-25  Jim Meyering  <meyering@redhat.com>
65287         vc-list-files: fix another quoting bug
65288         * build-aux/vc-list-files: Avoid sed backslash expansion
65289         of pathological directory names.
65291 2009-04-25  Eric Blake  <ebb9@byu.net>
65293         vc-list-files: fix shell quoting error
65294         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
65295         timestamp.
65297 2009-04-25  Jim Meyering  <meyering@redhat.com>
65299         vc-list-files: restore lost functionality with subdir argument
65300         * build-aux/vc-list-files: When given a non-"." sub-directory
65301         argument, substitute the $dir/ prefix back onto each resulting name.
65302         Otherwise, coreutils' root_tests check would fail.
65304 2009-04-24  Eric Blake  <ebb9@byu.net>
65306         vc-list-files: ignore git symlinks
65307         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
65308         than ls-files, to ignore git symlinks.
65310         maint.mk: import improvements from m4
65311         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
65312         (move_if_change): Delete unused macro.
65313         (news-date-check, vc-diff-check): Support VPATH builds.
65314         (announcement): Likewise.  Split --bootstrap-tools list...
65315         (boostrap-tools): ...into separate list, which can be overridden
65316         in cfg.mk.
65317         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
65318         requiring dependency on useless-if-before-free module.
65319         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
65320         Support VPATH builds.
65322 2009-04-24  Jim Meyering  <meyering@redhat.com>
65324         maint.mk: remove coreutils-specific rules and variables
65325         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
65326         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
65327         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
65329         maint.mk: remove obsolete rule
65330         * top/maint.mk (rel-check): Remove rule.
65331         (WGET, WGETFLAGS): Remove now-unused variables.
65333 2009-04-24  Simon Josefsson  <simon@josefsson.org>
65335         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
65336         consistency.
65338         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
65339         '$(PATH_SEPARATOR)' instead of ':'.
65341 2009-04-24  Simon Josefsson  <simon@josefsson.org>
65343         * lib/getopt1.c (main): Use 'const' for static array.
65345 2009-04-24  Simon Josefsson  <simon@josefsson.org>
65347         * top/maint.mk: Sync with coreutils.
65348         * NEWS: Explain incompatibilities.
65350 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65351             Bruno Haible  <bruno@clisp.org>
65353         Fix cross-compilation results.
65354         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
65355         statement, as third argument of AC_TRY_RUN.
65356         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
65357         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
65358         Likewise.
65359         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
65360         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
65361         Likewise.
65362         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
65363         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
65364         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
65366 2009-04-20  Bruno Haible  <bruno@clisp.org>
65368         Avoid test failure on mingw.
65369         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
65371 2009-04-20  Bruno Haible  <bruno@clisp.org>
65373         Avoid compilation error on mingw.
65374         * modules/localename-tests (Depends-on): Add locale.
65376 2009-04-19  Bruno Haible  <bruno@clisp.org>
65378         Support for building a shared library on Windows platforms.
65379         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
65380         (main): Test the presence of UNINORM_NFC here.
65381         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
65382         (main): Test the presence of UNINORM_NFD here.
65383         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
65384         (main): Test the presence of UNINORM_NFKC here.
65385         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
65386         (main): Test the presence of UNINORM_NFKD here.
65388 2009-04-19  Bruno Haible  <bruno@clisp.org>
65390         Avoid a compiler warning.
65391         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
65392         Change type of variable 'sequence'.
65394 2009-04-19  Bruno Haible  <bruno@clisp.org>
65396         * modules/configmake (Makefile.am): When the contents of configmake.h
65397         does not change, arrange to preserve its modification time.
65399 2009-04-17  Simon Josefsson  <simon@josefsson.org>
65401         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
65402         gettext domain.
65404 2009-04-16  Jim Meyering  <meyering@redhat.com>
65406         useless-if-before-free: improve conversion code
65407         * build-aux/useless-if-before-free: Adjust code-in-comment to match
65408         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
65410 2009-04-14  Bruno Haible  <bruno@clisp.org>
65412         * modules/fcntl (Depends-on): Add extensions.
65413         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
65415 2009-04-12  Ben Pfaff  <blp@gnu.org>
65417         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
65418         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
65420 2009-03-20  Ben Pfaff  <blp@gnu.org>
65422         Make rename replace existing destinations on Windows.
65423         * m4/rename.m4: Add test for Mingw.
65424         * lib/rename.c: Add rename replacement that uses MoveFileEx with
65425         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
65426         * doc/posix-functions/rename.texi: Document.
65428 2009-04-10  Bruno Haible  <bruno@clisp.org>
65430         New include file "iconveh.h".
65431         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
65432         * lib/striconveh.h: Include it.
65433         (enum iconv_ilseq_handler): Remove definition.
65434         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
65435         striconveh.h.
65436         * lib/striconveha.c: Include striconveh.h.
65437         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
65438         * modules/striconveh (Files): Add lib/iconveh.h.
65439         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
65440         lib/striconveh.h.
65442 2009-04-10  Bruno Haible  <bruno@clisp.org>
65444         * lib/uniconv.h: Update comment.
65446 2009-04-10  Bruno Haible  <bruno@clisp.org>
65448         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
65449         always.
65450         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
65451         * lib/unistr/u16-mbtouc-aux.c: Likewise.
65452         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
65453         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
65454         "unistring-notinline.h", so that the function gets defined always.
65455         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
65456         * lib/unistr/u8-uctomb.c: Likewise.
65457         * lib/unistr/u16-mbtouc.c: Likewise.
65458         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
65459         * lib/unistr/u16-uctomb.c: Likewise.
65460         * lib/unistr/u32-mbtouc.c: Likewise.
65461         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
65462         * lib/unistr/u32-uctomb.c: Likewise.
65464 2009-04-10  Bruno Haible  <bruno@clisp.org>
65466         Mark 'utime' obsolete.
65467         * modules/utime (Status, Notice): New sections.
65468         Suggested by Jim Meyering.
65470         Fix cross-compile guess for utime test.
65471         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
65472         autoconf.
65473         * doc/posix-functions/utime.texi: Give more precisions.
65474         Reported by Jan <ipif@ymail.com>.
65476 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
65478         filevercmp: correct today's change
65479         * lib/filevercmp.c: Also handle coreutils' test inputs.
65480         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
65482         Fix regression in 'filevercmp' module. Thanks Sven Joachim
65483         for reporting it.
65484         * lib/filevercmp.c: Special handle for "", "." and "..".
65485         * tests/test-filevercmp.c: Enlarge the set suite.
65487 2009-04-07  Jim Meyering  <meyering@redhat.com>
65489         useless-if-before-free: show how to remove braced useless free, too
65490         * build-aux/useless-if-before-free: still only in a comment, though.
65492 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
65494         maint.mk: import changes to syntax-check macros from coreutils
65495         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
65496         Use them in the relevant macros.
65498 2009-04-06  Bruno Haible  <bruno@clisp.org>
65500         Fix unportable use of bit-fields.
65501         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
65502         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
65503         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
65505 2009-04-06  Bruno Haible  <bruno@clisp.org>
65507         Avoid test failures on AIX and OSF/1.
65508         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
65509         that malloc(0) = NULL.
65510         * tests/unicase/test-u8-tolower.c (check): Likewise.
65511         * tests/unicase/test-u8-totitle.c (check): Likewise.
65512         * tests/unicase/test-u8-toupper.c (check): Likewise.
65513         * tests/unicase/test-u16-casefold.c (check): Likewise.
65514         * tests/unicase/test-u16-tolower.c (check): Likewise.
65515         * tests/unicase/test-u16-totitle.c (check): Likewise.
65516         * tests/unicase/test-u16-toupper.c (check): Likewise.
65517         * tests/unicase/test-u32-casefold.c (check): Likewise.
65518         * tests/unicase/test-u32-tolower.c (check): Likewise.
65519         * tests/unicase/test-u32-totitle.c (check): Likewise.
65520         * tests/unicase/test-u32-toupper.c (check): Likewise.
65521         * tests/uninorm/test-u8-nfc.c (check): Likewise.
65522         * tests/uninorm/test-u8-nfd.c (check): Likewise.
65523         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
65524         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
65525         * tests/uninorm/test-u16-nfc.c (check): Likewise.
65526         * tests/uninorm/test-u16-nfd.c (check): Likewise.
65527         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
65528         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
65529         * tests/uninorm/test-u32-nfc.c (check): Likewise.
65530         * tests/uninorm/test-u32-nfd.c (check): Likewise.
65531         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
65532         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
65534 2009-04-05  Bruno Haible  <bruno@clisp.org>
65536         Work around an autoconf limitation.
65537         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
65538         comment line if it would be longer than 3 KB.
65540 2009-04-05  Bruno Haible  <bruno@clisp.org>
65542         Avoid test failure with libiconv-1.13.
65543         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
65544         of the expected test results.
65546 2009-04-05  Bruno Haible  <bruno@clisp.org>
65548         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
65549         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
65550         that it should be installed.
65552 2009-04-05  Bruno Haible  <bruno@clisp.org>
65554         * gnulib-tool: New option --copy-file.
65555         (func_usage): Document it.
65556         (func_dest_tmpfilename): Moved out of func_import.
65557         (func_add_file, func_update_file): New functions, extracted from
65558         func_import.
65559         (func_import): Update.
65561 2009-04-05  Karl Berry  <karl@gnu.org>
65563         * README: prominently mention gnulib-tool.
65564         Rearrange sections so getting the code is near the top.
65566 2009-04-05  Bruno Haible  <bruno@clisp.org>
65568         * lib/unicase.h: Mention u*_cmp2.
65569         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
65570         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
65571         * lib/unicase/ulc-casecmp.c: Likewise.
65572         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
65573         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
65574         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
65575         unistr/u8-cmp.
65576         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
65577         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
65578         unistr/u16-cmp.
65579         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
65580         unistr/u32-cmp.
65582         * lib/uninorm.h: Mention u*_cmp2.
65583         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
65584         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
65585         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
65586         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
65587         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
65588         unistr/u8-cmp.
65589         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
65590         unistr/u16-cmp.
65591         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
65592         unistr/u32-cmp.
65594         New module 'unistr/u32-cmp2'.
65595         * lib/unistr/u32-cmp2.c: New file.
65596         * modules/unistr/u32-cmp2: New file.
65598         New module 'unistr/u16-cmp2'.
65599         * lib/unistr/u16-cmp2.c: New file.
65600         * modules/unistr/u16-cmp2: New file.
65602         New module 'unistr/u8-cmp2'.
65603         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
65604         * lib/unistr/u8-cmp2.c: New file.
65605         * lib/unistr/u-cmp2.h: New file.
65606         * modules/unistr/u8-cmp2: New file.
65608 2009-04-05  Bruno Haible  <bruno@clisp.org>
65610         * lib/unictype.h (uc_property_is_valid): New macro.
65611         * tests/unictype/test-pr_byname.c (main): Use it.
65613         * lib/unistr.h: Doc fixes.
65614         * lib/uniconv.h: Doc fixes.
65615         * lib/unictype.h: Doc fixes.
65617 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
65619         Port coreutils 7.2 to Solaris 8.
65621         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
65622         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
65623         for Solaris 8.  This is a bit of a hack, as it means it's the
65624         caller's responsibility to add -lnsl if needed, but most likely it
65625         won't be needed since only getaddrinfo uses this and getaddrinfo
65626         isn't needed on Solaris 8.
65628         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
65629         problem to Solaris 8 encountered with coreutils 7.2, which
65630         resulted in a message "fnmatch.c:292: warning: passing argument 4
65631         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
65632         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
65634 2009-04-03  Simon Josefsson  <simon@josefsson.org>
65636         * m4/ld-version-script.m4: Add FIXME comment.
65638 2009-04-02  Simon Josefsson  <simon@josefsson.org>
65640         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
65641         SOVERSION variable.
65643 2009-04-02  Bruno Haible  <bruno@clisp.org>
65645         * Makefile (info, html, dvi, pdf): Combine the rules.
65646         Suggested by Jim Meyering.
65648 2009-04-01  Bruno Haible  <bruno@clisp.org>
65650         * Makefile (info, html, dvi, pdf): New targets.
65651         Reported by Reuben Thomas <rrt@sc3d.org>.
65653 2009-04-01  Bruno Haible  <bruno@clisp.org>
65655         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
65656         can be put into PATH.
65657         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
65659 2009-04-01  Bruno Haible  <bruno@clisp.org>
65661         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
65663 2009-04-01  Bruno Haible  <bruno@clisp.org>
65665         Rename module 'visibility'.
65666         * modules/lib-symbol-visibility: Renamed from modules/visibility.
65667         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
65668         * doc/gnulib.texi: Update.
65669         * MODULES.html.sh (Misc): Update.
65670         * NEWS: Mention the change.
65672 2009-04-01  Simon Josefsson  <simon@josefsson.org>
65674         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
65675         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
65676         Eric Blake <ebb9@byu.net> for review.
65677         * MODULES.html.sh: Add lib-msvc-compat.
65678         * doc/gnulib.texi: Link to new section.
65679         * m4/ld-output-def.m4: New file.
65680         * doc/ld-output-def.texi: New file.
65682 2009-04-01  Simon Josefsson  <simon@josefsson.org>
65684         Rename ld-version-script to lib-symbol-versions.  Suggested by
65685         Bruno Haible <bruno@clisp.org>.
65686         * modules/ld-version-script: Renamed to lib-symbol-versions.
65687         * doc/ld-version-script.texi: Fix module name.
65688         * MODULES.html.sh: Add lib-symbol-versions.
65690 2009-03-31  Simon Josefsson  <simon@josefsson.org>
65692         * modules/u64-tests: New file.
65693         * tests/test-u64.c: New file.
65695 2009-03-04  Simon Josefsson  <simon@josefsson.org>
65697         * MODULES.html.sh: Mention u64.
65698         * modules/u64: New module.
65699         * modules/crypto/sha512: Depend on u64 module instead of providing
65700         u64.h.
65702 2009-03-27  Eric Blake  <ebb9@byu.net>
65704         test-strerror: make debugging EAI_SYSTEM easier
65705         * modules/getaddrinfo-tests (Depends-on): Add strerror.
65706         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
65707         failure was EAI_SYSTEM.
65709 2009-03-25  Bruno Haible  <bruno@clisp.org>
65711         Fix a problem with --enable-relocatable on Solaris 7.
65712         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
65713         since 2008-02-24.
65715 2009-03-25  Eric Blake  <ebb9@byu.net>
65717         test-sockets: avoid gcc warning
65718         * tests/test-sockets.c (main): Silence compiler warning.
65720 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
65722         New modules nproc, pthread, contributed by Glen Lenker.
65724         * MODULES.html.sh: Add pthread, nproc.
65725         * lib/nproc.c: New file.
65726         * lib/nproc.h: New file.
65727         * lib/pthread.in.h: New file.
65728         * m4/pthread.m4: New file.
65729         * modules/nproc: New file.
65730         * modules/pthread: New file.
65732 2009-03-24  Simon Josefsson  <simon@josefsson.org>
65734         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
65735         New variable.
65737 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
65739         filevercmp: handle simple~ and numbered.~3~ backup suffixes
65740         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
65741         * tests/test-filevercmp.c: Add tests for backup suffixes.
65743 2009-03-24  Simon Josefsson  <simon@josefsson.org>
65745         * modules/stdlib (Depends-on): Add stdint, needed when defining
65746         struct random_data on, for example, HP-UX 10.20.  Reported by
65747         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
65749 2009-03-24  Simon Josefsson  <simon@josefsson.org>
65751         * lib/readline.c (readline): Call fflush on stdout after printing
65752         prompt.
65754 2009-03-20  Bruno Haible  <bruno@clisp.org>
65756         Remove dependency from 'close' module to -lws2_32 on native Windows.
65757         * lib/close-hook.h: New file.
65758         * lib/close-hook.c: New file.
65759         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
65760         w32sock.h.
65761         (_gl_close_fd_maybe_socket): Remove function.
65762         (rpl_close): Invoke execute_all_close_hooks instead of
65763         _gl_close_fd_maybe_socket.
65764         * lib/sockets.c: Include close-hook.h, w32sock.h.
65765         (close_fd_maybe_socket): New function, essentially from lib/close.c.
65766         (close_sockets_hook): New variable.
65767         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
65768         (gl_sockets_cleanup): Unregister it.
65769         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
65770         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
65771         * modules/close-hook: New file.
65772         * modules/close (Files): Remove lib/w32sock.h.
65773         (Depends-on): Add close-hook.
65774         (Link): Remove section.
65775         * modules/sockets (Files): Add lib/w32sock.h.
65776         (Depends-on): Add close-hook.
65777         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
65778         invocation.
65779         * NEWS: Mention that LIB_CLOSE is gone.
65781 2009-03-23  Eric Blake  <ebb9@byu.net>
65783         signal-tests: test previous patch
65784         * tests/test-signal.c: New file.
65785         * modules/signal-tests: Likewise.
65787         signal.h: always support 'volatile sig_atomic_t'
65788         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
65789         (gl_SIGNAL_H_DEFAULTS): Add a default.
65790         * modules/signal (Makefile.am): Substitute if needed.
65791         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
65792         users can blindly add volatile.
65793         * doc/posix-headers/signal.texi (signal.h): Document it.
65794         Reported by Matthew Woehlke.
65796 2009-03-23  Jim Meyering  <meyering@redhat.com>
65798         pathmax: PATH_MAX: use pathconf only when available
65799         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
65800         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
65801         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
65802         This avoids a link failure in a PSP cross-compilation environment
65803         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
65805         * lib/vasnprintf.c (divide): Fix typo in comment.
65807 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65809         * gnulib-tool (func_filter_filelist): Fix comment.
65811 2009-03-20  Bruno Haible  <bruno@clisp.org>
65813         Make sockets.h self-contained.
65814         * lib/sockets.c: Include sockets.h first.
65815         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
65817 2009-03-19  Eric Blake  <ebb9@byu.net>
65819         doc: mention more functions added in cygwin 1.7.0
65820         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
65821         addition.
65822         * doc/posix-functions/log2f.texi: Likewise.
65824 2009-03-19  Jim Meyering  <meyering@redhat.com>
65826         fsusage: avoid syntax error due to statement-before-declaration
65827         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
65828         after all declarations.  Reported by Matthew Woehlke in
65829         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
65831 2009-03-18  Eric Blake  <ebb9@byu.net>
65833         build-aux/compile: sync from automake
65834         * build-aux/compile: New file, from automake.
65835         * config/srclist.txt: Mention build-aux/compile.
65837 2009-03-17  Bruno Haible  <bruno@clisp.org>
65839         * lib/git-merge-changelog.c: Fix typo in comment.
65840         Reported by Reuben Thomas <rrt@sc3d.org>.
65842 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
65844         * m4/regex.m4: update and improve help for
65845         --without-included-regex.
65847 2009-03-17  Simon Josefsson  <simon@josefsson.org>
65849         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
65850         failure on missing include files.
65852 2009-03-17  Eric Blake  <ebb9@byu.net>
65854         doc: mention more functions added in cygwin 1.7.0
65855         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
65856         addition.
65857         * doc/posix-functions/fwscanf.texi: Likewise.
65858         * doc/posix-functions/swprintf.texi: Likewise.
65859         * doc/posix-functions/swscanf.texi: Likewise.
65860         * doc/posix-functions/vfwprintf.texi: Likewise.
65861         * doc/posix-functions/vfwscanf.texi: Likewise.
65862         * doc/posix-functions/vswprintf.texi: Likewise.
65863         * doc/posix-functions/vswscanf.texi: Likewise.
65864         * doc/posix-functions/vwprintf.texi: Likewise.
65865         * doc/posix-functions/vwscanf.texi: Likewise.
65866         * doc/posix-functions/wcscasecmp.texi: Likewise.
65867         * doc/posix-functions/wcsdup.texi: Likewise.
65868         * doc/posix-functions/wcsftime.texi: Likewise.
65869         * doc/posix-functions/wcsncasecmp.texi: Likewise.
65870         * doc/posix-functions/wprintf.texi: Likewise.
65871         * doc/posix-functions/wscanf.texi: Likewise.
65872         * doc/glibc-functions/gethostbyname2.texi: Likewise.
65874 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65876         maint.mk: really add $(AM_MAKEFLAGS)
65877         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
65878         was inadvertently omitted in the last commit.
65879         Spotted by Bruno Haible.
65881         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
65882         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
65883         $(AM_MAKEFLAGS)' rather than plain `make'.
65885         gnulib-tool: execute $MAKE not make
65886         * gnulib-tool: Default $MAKE to 'make'.
65887         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
65888         than make.  Initialize $MAKE in the do-autobuild script.
65890         gnulib-tool: use $MAKE not make in generated files
65891         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
65892         make, in generated files.  Initialize $MAKE in the do-autobuild
65893         script.
65895         * top/GNUmakefile (_have-git-version-gen): Fix typo.
65897         GNUmakefile: disable parallelism only for multiple, recursive targets
65898         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
65899         additions in the Makefile.
65900         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
65901         by Automake.
65902         (.NOTPARALLEL): Only disable parallel builds if multiple targets
65903         are listed on the command line and at least one of them is
65904         listed in $(ALL_RECURSIVE_TARGETS).
65906 2009-03-14  Bruno Haible  <bruno@clisp.org>
65908         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
65909         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
65910         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
65911         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
65912         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
65913         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
65914         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
65915         unistr/u8-uctomb.
65916         * modules/unistr/u8-strchr (Depends-on): Likewise.
65917         * modules/unistr/u8-strrchr (Depends-on): Likewise.
65918         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
65919         unistr/u16-uctomb.
65920         * modules/unistr/u16-strchr (Depends-on): Likewise.
65921         * modules/unistr/u16-strrchr (Depends-on): Likewise.
65923 2009-03-12  Bruno Haible  <bruno@clisp.org>
65925         Work around select() bug on Interix 3.5.
65926         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
65927         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
65928         * m4/select.m4: New file.
65929         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
65930         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
65931         * modules/select (Files): Add m4/select.m4.
65932         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
65933         * modules/nanosleep (Depends-on): Add select.
65934         * modules/poll (Depends-on): Likewise.
65935         * doc/posix-functions/select.texi: Mention the Interix bug.
65936         Reported by Markus Duft <mduft@gentoo.org>.
65938         * lib/select.c: Renamed from lib/winsock-select.c.
65939         * modules/select (Files): Add lib/select.c, remove
65940         lib/winsock-select.c.
65941         (configure.ac): Update.
65943 2009-03-12  Jim Meyering  <meyering@redhat.com>
65945         avoid gcc warnings about unused macro definitions
65946         * lib/readtokens.c (STREQ): Remove unused definition.
65947         * lib/xmalloc.c (SIZE_MAX): Likewise.
65948         * lib/openat-die.c (N_): Likewise.
65949         * lib/mountlist.c (SIZE_MAX): Remove definition.
65950         Instead, include <stdint.h>.
65951         * lib/readutmp.c: Likewise.
65952         * modules/readutmp (Depends-on): Add stdint.
65953         * modules/mountlist (Depends-on): Add stdint.
65954         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
65956 2009-03-10  Bruno Haible  <bruno@clisp.org>
65958         Tests for module 'mbmemcasecoll'.
65959         * modules/mbmemcasecoll-tests: New file.
65960         * tests/test-mbmemcasecoll1.sh: New file.
65961         * tests/test-mbmemcasecoll2.sh: New file.
65962         * tests/test-mbmemcasecoll3.sh: New file.
65963         * tests/test-mbmemcasecoll.c: New file.
65965         New module 'mbmemcasecoll'.
65966         * lib/mbmemcasecoll.h: New file.
65967         * lib/mbmemcasecoll.c: New file.
65968         * modules/mbmemcasecoll: New file.
65970         * tests/test-mbmemcasecmp.h: New file, extracted from
65971         tests/test-mbmemcasecmp.c.
65972         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
65973         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
65974         (main): Update.
65975         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
65977 2009-03-09  Bruno Haible  <bruno@clisp.org>
65979         Tests for module 'mbmemcasecmp'.
65980         * modules/mbmemcasecmp-tests: New file.
65981         * tests/test-mbmemcasecmp1.sh: New file.
65982         * tests/test-mbmemcasecmp2.sh: New file.
65983         * tests/test-mbmemcasecmp3.sh: New file.
65984         * tests/test-mbmemcasecmp.c: New file.
65986         New module 'mbmemcasecmp'.
65987         * lib/mbmemcasecmp.h: New file.
65988         * lib/mbmemcasecmp.c: New file.
65989         * modules/mbmemcasecmp: New file.
65991 2009-03-09  Bruno Haible  <bruno@clisp.org>
65993         Tests for module 'unicase/ulc-casecoll'.
65994         * modules/unicase/ulc-casecoll-tests: New file.
65995         * tests/unicase/test-ulc-casecoll1.sh: New file.
65996         * tests/unicase/test-ulc-casecoll2.sh: New file.
65997         * tests/unicase/test-ulc-casecoll.c: New file.
65999         New module 'unicase/ulc-casecoll'.
66000         * lib/unicase.h (ulc_casecoll): New declaration.
66001         * lib/unicase/ulc-casecoll.c: New file.
66002         * modules/unicase/ulc-casecoll: New file.
66004         New module 'unicase/ulc-casexfrm'.
66005         * lib/unicase.h (ulc_casexfrm): New declaration.
66006         * lib/unicase/ulc-casexfrm.c: New file.
66007         * modules/unicase/ulc-casexfrm: New file.
66009 2009-03-09  Bruno Haible  <bruno@clisp.org>
66011         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
66012         invocations.
66014         * m4/mbscasecmp.m4: Remove file.
66015         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
66016         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
66018         * m4/mbscasestr.m4: Remove file.
66019         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
66020         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
66022         * m4/mbschr.m4: Remove file.
66023         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
66024         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
66026         * m4/mbscspn.m4: Remove file.
66027         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
66028         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
66030         * m4/mbslen.m4: Remove file.
66031         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
66032         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
66034         * m4/mbsncasecmp.m4: Remove file.
66035         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
66036         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
66038         * m4/mbsnlen.m4: Remove file.
66039         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
66040         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
66042         * m4/mbspbrk.m4: Remove file.
66043         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
66044         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
66046         * m4/mbspcasecmp.m4: Remove file.
66047         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
66048         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
66050         * m4/mbsrchr.m4: Remove file.
66051         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
66052         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
66054         * m4/mbssep.m4: Remove file.
66055         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
66056         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
66058         * m4/mbsspn.m4: Remove file.
66059         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
66060         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
66062         * m4/mbsstr.m4: Remove file.
66063         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
66064         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
66066         * m4/mbstok_r.m4: Remove file.
66067         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
66068         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
66070         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
66072         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
66073         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
66075         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
66077 2009-03-08  Bruno Haible  <bruno@clisp.org>
66079         Tests for module 'unicase/ulc-casecmp'.
66080         * modules/unicase/ulc-casecmp-tests: New file.
66081         * tests/unicase/test-ulc-casecmp1.sh: New file.
66082         * tests/unicase/test-ulc-casecmp2.sh: New file.
66083         * tests/unicase/test-ulc-casecmp.c: New file.
66085         New module 'unicase/ulc-casecmp'.
66086         * lib/unicase.h (ulc_casecmp): New declaration.
66087         * lib/unicase/ulc-casecmp.c: New file.
66088         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
66089         'const SRC_UNIT *'.
66090         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
66091         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
66092         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
66093         * modules/unicase/ulc-casecmp: New file.
66095         Tests for module 'unicase/u32-is-cased'.
66096         * modules/unicase/u32-is-cased-tests: New file.
66097         * tests/unicase/test-u32-is-cased.c: New file.
66099         Tests for module 'unicase/u16-is-cased'.
66100         * modules/unicase/u16-is-cased-tests: New file.
66101         * tests/unicase/test-u16-is-cased.c: New file.
66103         Tests for module 'unicase/u8-is-cased'.
66104         * modules/unicase/u8-is-cased-tests: New file.
66105         * tests/unicase/test-u8-is-cased.c: New file.
66106         * tests/unicase/test-is-cased.h: New file.
66108         New module 'unicase/u32-is-cased'.
66109         * lib/unicase/u32-is-cased.c: New file.
66110         * modules/unicase/u32-is-cased: New file.
66112         New module 'unicase/u16-is-cased'.
66113         * lib/unicase/u16-is-cased.c: New file.
66114         * modules/unicase/u16-is-cased: New file.
66116         New module 'unicase/u8-is-cased'.
66117         * lib/unicase/u8-is-cased.c: New file.
66118         * lib/unicase/u-is-cased.h: New file.
66119         * modules/unicase/u8-is-cased: New file.
66121         Tests for module 'unicase/u32-is-casefolded'.
66122         * modules/unicase/u32-is-casefolded-tests: New file.
66123         * tests/unicase/test-u32-is-casefolded.c: New file.
66125         Tests for module 'unicase/u16-is-casefolded'.
66126         * modules/unicase/u16-is-casefolded-tests: New file.
66127         * tests/unicase/test-u16-is-casefolded.c: New file.
66129         Tests for module 'unicase/u8-is-casefolded'.
66130         * modules/unicase/u8-is-casefolded-tests: New file.
66131         * tests/unicase/test-u8-is-casefolded.c: New file.
66132         * tests/unicase/test-is-casefolded.h: New file.
66134         New module 'unicase/u32-is-casefolded'.
66135         * lib/unicase/u32-is-casefolded.c: New file.
66136         * modules/unicase/u32-is-casefolded: New file.
66138         New module 'unicase/u16-is-casefolded'.
66139         * lib/unicase/u16-is-casefolded.c: New file.
66140         * modules/unicase/u16-is-casefolded: New file.
66142         New module 'unicase/u8-is-casefolded'.
66143         * lib/unicase/u8-is-casefolded.c: New file.
66144         * modules/unicase/u8-is-casefolded: New file.
66146         Tests for module 'unicase/u32-is-titlecase'.
66147         * modules/unicase/u32-is-titlecase-tests: New file.
66148         * tests/unicase/test-u32-is-titlecase.c: New file.
66150         Tests for module 'unicase/u16-is-titlecase'.
66151         * modules/unicase/u16-is-titlecase-tests: New file.
66152         * tests/unicase/test-u16-is-titlecase.c: New file.
66154         Tests for module 'unicase/u8-is-titlecase'.
66155         * modules/unicase/u8-is-titlecase-tests: New file.
66156         * tests/unicase/test-u8-is-titlecase.c: New file.
66157         * tests/unicase/test-is-titlecase.h: New file.
66159         New module 'unicase/u32-is-titlecase'.
66160         * lib/unicase/u32-is-titlecase.c: New file.
66161         * modules/unicase/u32-is-titlecase: New file.
66163         New module 'unicase/u16-is-titlecase'.
66164         * lib/unicase/u16-is-titlecase.c: New file.
66165         * modules/unicase/u16-is-titlecase: New file.
66167         New module 'unicase/u8-is-titlecase'.
66168         * lib/unicase/u8-is-titlecase.c: New file.
66169         * modules/unicase/u8-is-titlecase: New file.
66171         Tests for module 'unicase/u32-is-lowercase'.
66172         * modules/unicase/u32-is-lowercase-tests: New file.
66173         * tests/unicase/test-u32-is-lowercase.c: New file.
66175         Tests for module 'unicase/u16-is-lowercase'.
66176         * modules/unicase/u16-is-lowercase-tests: New file.
66177         * tests/unicase/test-u16-is-lowercase.c: New file.
66179         Tests for module 'unicase/u8-is-lowercase'.
66180         * modules/unicase/u8-is-lowercase-tests: New file.
66181         * tests/unicase/test-u8-is-lowercase.c: New file.
66182         * tests/unicase/test-is-lowercase.h: New file.
66184         New module 'unicase/u32-is-lowercase'.
66185         * lib/unicase/u32-is-lowercase.c: New file.
66186         * modules/unicase/u32-is-lowercase: New file.
66188         New module 'unicase/u16-is-lowercase'.
66189         * lib/unicase/u16-is-lowercase.c: New file.
66190         * modules/unicase/u16-is-lowercase: New file.
66192         New module 'unicase/u8-is-lowercase'.
66193         * lib/unicase/u8-is-lowercase.c: New file.
66194         * modules/unicase/u8-is-lowercase: New file.
66196         Tests for module 'unicase/u32-is-uppercase'.
66197         * modules/unicase/u32-is-uppercase-tests: New file.
66198         * tests/unicase/test-u32-is-uppercase.c: New file.
66200         Tests for module 'unicase/u16-is-uppercase'.
66201         * modules/unicase/u16-is-uppercase-tests: New file.
66202         * tests/unicase/test-u16-is-uppercase.c: New file.
66204         Tests for module 'unicase/u8-is-uppercase'.
66205         * modules/unicase/u8-is-uppercase-tests: New file.
66206         * tests/unicase/test-u8-is-uppercase.c: New file.
66207         * tests/unicase/test-is-uppercase.h: New file.
66209         New module 'unicase/u32-is-uppercase'.
66210         * lib/unicase/u32-is-uppercase.c: New file.
66211         * modules/unicase/u32-is-uppercase: New file.
66213         New module 'unicase/u16-is-uppercase'.
66214         * lib/unicase/u16-is-uppercase.c: New file.
66215         * modules/unicase/u16-is-uppercase: New file.
66217         New module 'unicase/u8-is-uppercase'.
66218         * lib/unicase/u8-is-uppercase.c: New file.
66219         * modules/unicase/u8-is-uppercase: New file.
66221         New module 'unicase/u32-is-invariant'.
66222         * lib/unicase/u32-is-invariant.c: New file.
66223         * modules/unicase/u32-is-invariant: New file.
66225         New module 'unicase/u16-is-invariant'.
66226         * lib/unicase/u16-is-invariant.c: New file.
66227         * modules/unicase/u16-is-invariant: New file.
66229         New module 'unicase/u8-is-invariant'.
66230         * lib/unicase/u8-is-invariant.c: New file.
66231         * lib/unicase/invariant.h: New file.
66232         * lib/unicase/u-is-invariant.h: New file.
66233         * modules/unicase/u8-is-invariant: New file.
66235         Tests for module 'unicase/u32-casecoll'.
66236         * modules/unicase/u32-casecoll-tests: New file.
66237         * tests/unicase/test-u32-casecoll.c: New file.
66239         Tests for module 'unicase/u16-casecoll'.
66240         * modules/unicase/u16-casecoll-tests: New file.
66241         * tests/unicase/test-u16-casecoll.c: New file.
66243         Tests for module 'unicase/u8-casecoll'.
66244         * modules/unicase/u8-casecoll-tests: New file.
66245         * tests/unicase/test-u8-casecoll.c: New file.
66247         New module 'unicase/u32-casecoll'.
66248         * lib/unicase/u32-casecoll.c: New file.
66249         * modules/unicase/u32-casecoll: New file.
66251         New module 'unicase/u16-casecoll'.
66252         * lib/unicase/u16-casecoll.c: New file.
66253         * modules/unicase/u16-casecoll: New file.
66255         New module 'unicase/u8-casecoll'.
66256         * lib/unicase/u8-casecoll.c: New file.
66257         * lib/unicase/u-casecoll.h: New file.
66258         * modules/unicase/u8-casecoll: New file.
66260         New module 'unicase/u32-casexfrm'.
66261         * lib/unicase/u32-casexfrm.c: New file.
66262         * modules/unicase/u32-casexfrm: New file.
66264         New module 'unicase/u16-casexfrm'.
66265         * lib/unicase/u16-casexfrm.c: New file.
66266         * modules/unicase/u16-casexfrm: New file.
66268         New module 'unicase/u8-casexfrm'.
66269         * lib/unicase/u8-casexfrm.c: New file.
66270         * lib/unicase/u-casexfrm.h: New file.
66271         * modules/unicase/u8-casexfrm: New file.
66273         Tests for module 'unicase/u32-casecmp'.
66274         * modules/unicase/u32-casecmp-tests: New file.
66275         * tests/unicase/test-u32-casecmp.c: New file.
66277         Tests for module 'unicase/u16-casecmp'.
66278         * modules/unicase/u16-casecmp-tests: New file.
66279         * tests/unicase/test-u16-casecmp.c: New file.
66281         Tests for module 'unicase/u8-casecmp'.
66282         * modules/unicase/u8-casecmp-tests: New file.
66283         * tests/unicase/test-u8-casecmp.c: New file.
66284         * tests/unicase/test-casecmp.h: New file.
66286         New module 'unicase/u32-casecmp'.
66287         * lib/unicase/u32-casecmp.c: New file.
66288         * modules/unicase/u32-casecmp: New file.
66290         New module 'unicase/u16-casecmp'.
66291         * lib/unicase/u16-casecmp.c: New file.
66292         * modules/unicase/u16-casecmp: New file.
66294         New module 'unicase/u8-casecmp'.
66295         * lib/unicase/u8-casecmp.c: New file.
66296         * lib/unicase/u-casecmp.h: New file.
66297         * modules/unicase/u8-casecmp: New file.
66299         Tests for module 'unicase/u32-casefold'.
66300         * modules/unicase/u32-casefold-tests: New file.
66301         * tests/unicase/test-u32-casefold.c: New file.
66303         Tests for module 'unicase/u16-casefold'.
66304         * modules/unicase/u16-casefold-tests: New file.
66305         * tests/unicase/test-u16-casefold.c: New file.
66307         Tests for module 'unicase/u8-casefold'.
66308         * modules/unicase/u8-casefold-tests: New file.
66309         * tests/unicase/test-u8-casefold.c: New file.
66311         New module 'unicase/u32-casefold'.
66312         * lib/unicase/u32-casefold.c: New file.
66313         * modules/unicase/u32-casefold: New file.
66315         New module 'unicase/u16-casefold'.
66316         * lib/unicase/u16-casefold.c: New file.
66317         * modules/unicase/u16-casefold: New file.
66319         New module 'unicase/u8-casefold'.
66320         * lib/unicase/u8-casefold.c: New file.
66321         * lib/unicase/u-casefold.h: New file.
66322         * modules/unicase/u8-casefold: New file.
66324         New module 'unicase/tocasefold'.
66325         * lib/unicase/casefold.h: New file.
66326         * lib/unicase/tocasefold.c: New file.
66327         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
66328         * modules/unicase/tocasefold: New file.
66330         Tests for module 'unicase/u32-totitle'.
66331         * modules/unicase/u32-totitle-tests: New file.
66332         * tests/unicase/test-u32-totitle.c: New file.
66334         Tests for module 'unicase/u16-totitle'.
66335         * modules/unicase/u16-totitle-tests: New file.
66336         * tests/unicase/test-u16-totitle.c: New file.
66338         Tests for module 'unicase/u8-totitle'.
66339         * modules/unicase/u8-totitle-tests: New file.
66340         * tests/unicase/test-u8-totitle.c: New file.
66342         New module 'unicase/u32-totitle'.
66343         * lib/unicase/u32-totitle.c: New file.
66344         * modules/unicase/u32-totitle: New file.
66346         New module 'unicase/u16-totitle'.
66347         * lib/unicase/u16-totitle.c: New file.
66348         * modules/unicase/u16-totitle: New file.
66350         New module 'unicase/u8-totitle'.
66351         * lib/unicase/u8-totitle.c: New file.
66352         * lib/unicase/u-totitle.h: New file.
66353         * modules/unicase/u8-totitle: New file.
66355         Tests for module 'unicase/u32-tolower'.
66356         * modules/unicase/u32-tolower-tests: New file.
66357         * tests/unicase/test-u32-tolower.c: New file.
66359         Tests for module 'unicase/u16-tolower'.
66360         * modules/unicase/u16-tolower-tests: New file.
66361         * tests/unicase/test-u16-tolower.c: New file.
66363         Tests for module 'unicase/u8-tolower'.
66364         * modules/unicase/u8-tolower-tests: New file.
66365         * tests/unicase/test-u8-tolower.c: New file.
66367         New module 'unicase/u32-tolower'.
66368         * lib/unicase/u32-tolower.c: New file.
66369         * modules/unicase/u32-tolower: New file.
66371         New module 'unicase/u16-tolower'.
66372         * lib/unicase/u16-tolower.c: New file.
66373         * modules/unicase/u16-tolower: New file.
66375         New module 'unicase/u8-tolower'.
66376         * lib/unicase/u8-tolower.c: New file.
66377         * modules/unicase/u8-tolower: New file.
66379         Tests for module 'unicase/u32-toupper'.
66380         * modules/unicase/u32-toupper-tests: New file.
66381         * tests/unicase/test-u32-toupper.c: New file.
66383         Tests for module 'unicase/u16-toupper'.
66384         * modules/unicase/u16-toupper-tests: New file.
66385         * tests/unicase/test-u16-toupper.c: New file.
66387         Tests for module 'unicase/u8-toupper'.
66388         * modules/unicase/u8-toupper-tests: New file.
66389         * tests/unicase/test-u8-toupper.c: New file.
66391         New module 'unicase/u32-toupper'.
66392         * lib/unicase/u32-toupper.c: New file.
66393         * modules/unicase/u32-toupper: New file.
66395         New module 'unicase/u16-toupper'.
66396         * lib/unicase/u16-toupper.c: New file.
66397         * modules/unicase/u16-toupper: New file.
66399         New module 'unicase/u8-toupper'.
66400         * lib/unicase/u8-toupper.c: New file.
66401         * modules/unicase/u8-toupper: New file.
66403         New module 'unicase/u32-casemap'.
66404         * lib/unicase/u32-casemap.c: New file.
66405         * modules/unicase/u32-casemap: New file.
66407         New module 'unicase/u16-casemap'.
66408         * lib/unicase/u16-casemap.c: New file.
66409         * modules/unicase/u16-casemap: New file.
66411         New module 'unicase/u8-casemap'.
66412         * lib/unicase/unicasemap.h: New file.
66413         * lib/unicase/u8-casemap.c: New file.
66414         * lib/unicase/u-casemap.h: New file.
66415         * modules/unicase/u8-casemap: New file.
66417         New module 'unicase/special-casing'.
66418         * lib/unicase/special-casing.h: New file.
66419         * lib/unicase/special-casing.c: New file.
66420         * lib/unicase/special-casing-table.gperf: New file, generated by
66421         gen-uni-tables.c.
66422         * modules/unicase/special-casing: New file.
66424         Tests for module 'unicase/locale-language'.
66425         * modules/unicase/locale-language-tests: New file.
66426         * tests/unicase/test-locale-language.sh: New file.
66427         * tests/unicase/test-locale-language.c: New file.
66429         New module 'unicase/locale-language'.
66430         * lib/unicase/locale-language.c: New file.
66431         * lib/unicase/locale-languages.gperf: New file.
66432         * modules/unicase/locale-language: New file.
66434         Generate more tables for case conversion and case folding.
66435         * lib/gen-uni-tables.c (SCC_*): New enum items.
66436         (struct special_casing_rule): New type.
66437         (casing_rules, num_casing_rules, allocated_casing_rules): New
66438         variables.
66439         (add_casing_rule, fill_casing_rules): New functions.
66440         (struct casefold_rule): New type.
66441         (casefolding_rules, num_casefolding_rules,
66442         allocated_casefolding_rules): New variables.
66443         (fill_casefolding_rules): New function.
66444         (unicode_casefold): New variable.
66445         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
66446         sort_casing_rules, output_casing_rules): New functions.
66447         (main): Accept to more arguments: SpecialCasing.txt and
66448         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
66449         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
66450         Output mapping for casefolding.
66452         * lib/unicase.h: Include stdbool.h, uninorm.h.
66453         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
66454         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
66455         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
66456         arguments.
66457         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
66458         resultp arguments.
66459         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
66460         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
66461         resultp arguments.
66462         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
66463         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
66464         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
66465         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
66466         declarations.
66467         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
66469 2009-03-08  Bruno Haible  <bruno@clisp.org>
66471         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
66472         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
66473         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
66474         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
66476 2009-03-07  Bruno Haible  <bruno@clisp.org>
66478         Adjust u*_normcmp, u*_normcoll API.
66479         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
66480         u16_normcoll, u32_normcoll): Change failure conventions.
66481         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
66482         errno and return -1.
66483         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
66485 2009-03-07  Bruno Haible  <bruno@clisp.org>
66487         Tests for module 'uninorm/u32-normcoll'.
66488         * modules/uninorm/u32-normcoll-tests: New file.
66489         * tests/uninorm/test-u32-normcoll.c: New file.
66491         Tests for module 'uninorm/u16-normcoll'.
66492         * modules/uninorm/u16-normcoll-tests: New file.
66493         * tests/uninorm/test-u16-normcoll.c: New file.
66495         Tests for module 'uninorm/u8-normcoll'.
66496         * modules/uninorm/u8-normcoll-tests: New file.
66497         * tests/uninorm/test-u8-normcoll.c: New file.
66499 2009-03-07  Bruno Haible  <bruno@clisp.org>
66501         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
66502         tests/uninorm/test-u32-normcmp.c.
66503         * tests/uninorm/test-u32-normcmp.c: Include it.
66504         (test_nonascii): New function, extracted from main. Add some more
66505         tests.
66506         (main): Invoke test_ascii and test_nonascii.
66507         * modules/uninorm/u32-normcmp-tests (Files): Add
66508         tests/uninorm/test-u32-normcmp.h.
66509         (Depends-on): Remove uninorm/u32-normcmp.
66511         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
66512         tests/uninorm/test-u16-normcmp.c.
66513         * tests/uninorm/test-u16-normcmp.c: Include it.
66514         (test_nonascii): New function, extracted from main. Add some more
66515         tests.
66516         (main): Invoke test_ascii and test_nonascii.
66517         * modules/uninorm/u16-normcmp-tests (Files): Add
66518         tests/uninorm/test-u16-normcmp.h.
66519         (Depends-on): Remove uninorm/u16-normcmp.
66521         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
66522         tests/uninorm/test-u8-normcmp.c.
66523         * tests/uninorm/test-u8-normcmp.c: Include it.
66524         (test_nonascii): New function, extracted from main. Add some more
66525         tests.
66526         (main): Invoke test_ascii and test_nonascii.
66527         * modules/uninorm/u8-normcmp-tests (Files): Add
66528         tests/uninorm/test-u8-normcmp.h.
66529         (Depends-on): Remove uninorm/u8-normcmp.
66531 2009-03-07  Bruno Haible  <bruno@clisp.org>
66533         New module 'uninorm/u32-normcoll'.
66534         * lib/uninorm/u32-normcoll.c: New file.
66535         * modules/uninorm/u32-normcoll: New file.
66537         New module 'uninorm/u16-normcoll'.
66538         * lib/uninorm/u16-normcoll.c: New file.
66539         * modules/uninorm/u16-normcoll: New file.
66541         New module 'uninorm/u8-normcoll'.
66542         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
66543         declarations.
66544         * lib/uninorm/u8-normcoll.c: New file.
66545         * lib/uninorm/u-normcoll.h: New file.
66546         * modules/uninorm/u8-normcoll: New file.
66548         New module 'uninorm/u32-normxfrm'.
66549         * lib/uninorm/u32-normxfrm.c: New file.
66550         * modules/uninorm/u32-normxfrm: New file.
66552         New module 'uninorm/u16-normxfrm'.
66553         * lib/uninorm/u16-normxfrm.c: New file.
66554         * modules/uninorm/u16-normxfrm: New file.
66556         New module 'uninorm/u8-normxfrm'.
66557         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
66558         declarations.
66559         * lib/uninorm/u8-normxfrm.c: New file.
66560         * lib/uninorm/u-normxfrm.h: New file.
66561         * modules/uninorm/u8-normxfrm: New file.
66563 2009-03-07  Bruno Haible  <bruno@clisp.org>
66565         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
66566         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
66567         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
66569 2009-03-07  Bruno Haible  <bruno@clisp.org>
66571         New module 'memxfrm'.
66572         * lib/memxfrm.h: New file.
66573         * lib/memxfrm.c: New file.
66574         * modules/memxfrm: New file.
66576 2009-03-07  Bruno Haible  <bruno@clisp.org>
66578         New module 'memcmp2'.
66579         * lib/memcmp2.h: New file.
66580         * lib/memcmp2.c: New file.
66581         * modules/memcmp2: New file.
66583 2009-03-07  Bruno Haible  <bruno@clisp.org>
66585         Tests for module 'uninorm/decomposing-form'.
66586         * modules/uninorm/decomposing-form-tests: New file.
66587         * tests/uninorm/test-decomposing-form.c: New file.
66589         New module 'uninorm/decomposing-form'.
66590         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
66591         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
66592         Add 'decomposing_variant' field.
66593         * lib/uninorm/decomposing-form.c: New file.
66594         * lib/uninorm/nfc.c (uninorm_nfc): Update.
66595         * lib/uninorm/nfd.c (uninorm_nfd): Update.
66596         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
66597         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
66598         * modules/uninorm/decomposing-form: New file.
66599         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
66600         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
66602 2009-03-07  Bruno Haible  <bruno@clisp.org>
66604         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
66605         strings.
66607 2009-03-06  Bruno Haible  <bruno@clisp.org>
66609         Tests for module 'uninorm/u32-normcmp'.
66610         * tests/uninorm/test-u32-normcmp.c: New file.
66611         * modules/uninorm/u32-normcmp-tests: New file.
66613         Tests for module 'uninorm/u16-normcmp'.
66614         * tests/uninorm/test-u16-normcmp.c: New file.
66615         * modules/uninorm/u16-normcmp-tests: New file.
66617         Tests for module 'uninorm/u8-normcmp'.
66618         * tests/uninorm/test-u8-normcmp.c: New file.
66619         * modules/uninorm/u8-normcmp-tests: New file.
66621         New module 'uninorm/u32-normcmp'.
66622         * lib/uninorm/u32-normcmp.c: New file.
66623         * modules/uninorm/u32-normcmp: New file.
66625         New module 'uninorm/u16-normcmp'.
66626         * lib/uninorm/u16-normcmp.c: New file.
66627         * modules/uninorm/u16-normcmp: New file.
66629         New module 'uninorm/u8-normcmp'.
66630         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
66631         declarations.
66632         * lib/uninorm/u8-normcmp.c: New file.
66633         * lib/uninorm/u-normcmp.h: New file.
66634         * modules/uninorm/u8-normcmp: New file.
66636 2009-03-06  Bruno Haible  <bruno@clisp.org>
66638         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
66639         Reported by Eric Blake.
66641 2009-03-06  Eric Blake  <ebb9@byu.net>
66642             Bruno Haible  <bruno@clisp.org>
66644         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
66645         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
66646         condition.
66647         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
66648         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
66649         condition.
66650         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
66652 2009-03-06  Eric Blake  <ebb9@byu.net>
66654         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
66655         to avoid compiler warnings.
66656         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
66658 2009-03-05  Bruno Haible  <bruno@clisp.org>
66660         * tests/test-ftell.c (main): Disable test beyond end of file on
66661         FreeMiNT.
66662         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
66664 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
66666         * lib/filevercmp.c: Move hidden files up in ordering.
66667         * tests/test-filevercmp.c: Add tests for hidden files.
66669 2009-03-04  Bruno Haible  <bruno@clisp.org>
66671         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
66672         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
66673         AM_CFLAGS.
66674         Reported by Simon Josefsson.
66676 2009-03-03  Bruno Haible  <bruno@clisp.org>
66678         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
66679         Reported by Simon Josefsson.
66681         * doc/ld-version-script.texi: Update node reference.
66683 2009-03-03  Bruno Haible  <bruno@clisp.org>
66685         * modules/visibility (License): Change to 'unlimited'.
66686         Suggested by Simon Josefsson.
66688 2009-03-03  Jim Meyering  <meyering@redhat.com>
66690         unlinkdir: cannot_unlink_dir may modify process state
66691         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
66692         it's neither thread-safe nor appropriate for use in a library.
66694 2009-03-03  Eric Blake  <ebb9@byu.net>
66696         test-closein: silence test under Darwin
66697         * tests/test-closein.sh: Ignore stderr from cat, since we don't
66698         care if it dies from EPIPE or EBADF.
66700 2009-03-03  Bruno Haible  <bruno@clisp.org>
66702         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
66703         earlier.
66704         * doc/visibility.texi: Fix @node and @section.
66706 2009-03-03  Simon Josefsson  <simon@josefsson.org>
66708         * doc/gnulib.texi: Link to sections for ld version script and
66709         visibility.
66710         * doc/visibility.texi: Add @node and @section.
66711         * modules/ld-version-script: New module.
66712         * m4/ld-version-script.m4: New file.
66713         * doc/ld-version-script.texi: New file.
66715 2009-03-02  David Lutterkort  <lutter@redhat.com>
66717         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
66718         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
66720 2009-03-02  Bruno Haible  <bruno@clisp.org>
66722         * doc/visibility.texi: Mention libtool's -export-symbols option.
66724 2009-03-02  Jim Meyering  <meyering@redhat.com>
66726         announce-gen: new option: --no-print-checksums
66727         * build-aux/announce-gen (usage): Describe it.
66728         (print_checksums): Print a newline here, not in the [*] footnote.
66729         (main): Honor it.
66731 2009-03-01  Bruno Haible  <bruno@clisp.org>
66733         Use socklen_t in the native Windows replacements prototypes.
66734         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
66735         instead of 'int'.
66736         * lib/getsockopt.c (rpl_getsockopt): Likewise.
66737         * lib/setsockopt.c (rpl_setsockopt): Likewise.
66738         * modules/getsockopt (Depends-on): Add socklen.
66739         * modules/setsockopt (Depends-on): Add socklen.
66741 2009-03-01  Bruno Haible  <bruno@clisp.org>
66743         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
66744         least 4.2.
66746 2009-03-01  Eric Blake  <ebb9@byu.net>
66747             Bruno Haible  <bruno@clisp.org>
66749         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
66750         error messages.
66751         * lib/wait-process.c (wait_subprocess): Omit error message about
66752         deadly signal sent to the child of termsigp != NULL.
66754 2009-03-01  Eric Blake  <ebb9@byu.net>
66756         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
66758 2009-03-01  Bruno Haible  <bruno@clisp.org>
66760         Avoid a gcc warning.
66761         * tests/test-sched.c (b): Make global.
66762         Reported by Eric Blake.
66764 2009-01-19  Martin Lambers  <marlam@marlam.de>
66766         Provide POSIX semantics for socket timeout options on W32.
66767         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
66768         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
66769         * modules/setsockopt: Depend on sys_time module for struct timeval.
66770         * modules/getsockopt: Depend on sys_time module for struct timeval.
66772 2009-03-01  Simon Josefsson  <simon@josefsson.org>
66774         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
66775         __USE_GNU, for consistency with netdb.in.h.
66776         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
66778 2009-03-01  Bruno Haible  <bruno@clisp.org>
66780         More support for FreeMiNT.
66781         * lib/fseeko.c (rpl_fseeko): Complete last commit.
66782         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
66784 2009-03-01  Bruno Haible  <bruno@clisp.org>
66786         More support for FreeMiNT.
66787         * lib/fpurge.c (fpurge): Correct last commit.
66788         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
66790 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66792         Fix unportable awk script in vc-list-files.
66793         * build-aux/vc-list-files: In the replacement awk script, use
66794         substr with a second argument of 1, not zero.
66795         Report by Simon Josefsson.
66797 2009-02-28  Bruno Haible  <bruno@clisp.org>
66799         More support for FreeMiNT.
66800         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
66801         to FreeMiNT today.
66802         * lib/fwriting.c (fwriting): Likewise.
66803         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
66805 2009-02-28  Bruno Haible  <bruno@clisp.org>
66807         * tests/test-freadseek.c (main): Disable test beyond end of file on
66808         FreeMiNT.
66809         * tests/test-ftello.c (main): Likewise.
66810         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
66812 2009-02-28  Bruno Haible  <bruno@clisp.org>
66814         Add tentative support for FreeMiNT.
66815         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
66816         * lib/fpurge.c (fpurge): Likewise.
66817         * lib/freadable.c (freadable): Likewise.
66818         * lib/freading.c (freading): Likewise.
66819         * lib/freadptr.c (freadptr): Likewise.
66820         * lib/freadseek.c (freadptrinc): Likewise.
66821         * lib/fseeko.c (rpl_fseeko): Likewise.
66822         * lib/fseterr.c (fseterr): Likewise.
66823         * lib/fwritable.c (fwritable): Likewise.
66824         * lib/fwriting.c (fwriting): Likewise.
66825         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
66826         Hourihane.
66827         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
66829 2009-02-28  Bruno Haible  <bruno@clisp.org>
66831         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
66832         SIGCHLD.
66833         Reported by Jim Meyering.
66835 2009-02-28  Bruno Haible  <bruno@clisp.org>
66837         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
66838         Mention the results of these tests on various platforms.
66839         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
66840         order.
66841         * doc/posix-functions/printf.texi: Likewise.
66842         * doc/posix-functions/snprintf.texi: Likewise.
66843         * doc/posix-functions/sprintf.texi: Likewise.
66844         * doc/posix-functions/vfprintf.texi: Likewise.
66845         * doc/posix-functions/vprintf.texi: Likewise.
66846         * doc/posix-functions/vsnprintf.texi: Likewise.
66847         * doc/posix-functions/vsprintf.texi: Likewise.
66848         * doc/glibc-functions/obstack_printf.texi: Likewise.
66849         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
66851 2009-02-28  Bruno Haible  <bruno@clisp.org>
66853         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
66854         Reported by Loïc Minier <lool@dooz.org>.
66856 2009-02-27  Bruno Haible  <bruno@clisp.org>
66858         * gnulib-tool (func_import): Make the sed expression used to create the
66859         sed script for updating the .gitignore file POSIX compliant.
66860         Reported by Eric Blake.
66862 2009-02-27  Bruno Haible  <bruno@clisp.org>
66864         * gnulib-tool (sed): Don't alias as "sed --posix".
66865         Reported by Eric Blake.
66867 2009-02-27  Bruno Haible  <bruno@clisp.org>
66869         Avoid test link errors.
66870         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
66871         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
66872         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
66873         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
66874         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
66876 2009-02-27  Bruno Haible  <bruno@clisp.org>
66878         Avoid spurious "(cached)" in configure output.
66879         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
66880         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
66881         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
66882         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
66883         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
66884         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
66885         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
66886         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
66887         Reported by Eric Blake.
66889 2009-02-27  Eric Blake  <ebb9@byu.net>
66891         printf: fix regression in previous patch
66892         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
66894 2009-02-27  Bruno Haible  <bruno@clisp.org>
66896         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
66897         value.
66898         * lib/stdint.in.h: Likewise.
66899         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
66901 2009-02-27  Eric Blake  <ebb9@byu.net>
66903         doc: mention more functions added in cygwin 1.7.0
66904         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
66905         addition.
66906         * doc/posix-functions/open_wmemstream.texi: Likewise.
66907         * doc/posix-functions/wcsnlen.texi: Likewise.
66908         * doc/posix-functions/wcsnrtombs.texi: Likewise.
66909         * doc/posix-functions/wcstod.texi: Likewise.
66910         * doc/posix-functions/wcstof.texi: Likewise.
66911         * doc/posix-functions/wcstoimax.texi: Likewise.
66912         * doc/posix-functions/wcstok.texi: Likewise.
66913         * doc/posix-functions/wcstoumax.texi: Likewise.
66915         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
66916         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
66917         * doc/posix-functions/fprintf.texi: Update.
66918         * doc/posix-functions/printf.texi: Update.
66919         * doc/posix-functions/snprintf.texi: Update.
66920         * doc/posix-functions/sprintf.texi: Update.
66921         * doc/posix-functions/vfprintf.texi: Update.
66922         * doc/posix-functions/vprintf.texi: Update.
66923         * doc/posix-functions/vsnprintf.texi: Update.
66924         * doc/posix-functions/vsprintf.texi: Update.
66925         * doc/glibc-functions/obstack_printf.texi: Update.
66926         * doc/glibc-functions/obstack_vprintf.texi: Update.
66928 2009-02-26  Eric Blake  <ebb9@byu.net>
66930         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
66931         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
66932         compilation bug by using runtime conversion.
66933         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
66934         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
66935         * modules/ceill-tests (Files): Use nan.h.
66936         * modules/floorl-tests (Files): Likewise.
66937         * modules/frexpl-tests (Files): Likewise.
66938         * modules/isnanl-tests (Files): Likewise.
66939         * modules/ldexpl-tests (Files): Likewise.
66940         * modules/roundl-tests (Files): Likewise.
66941         * modules/truncl-tests (Files): Likewise.
66942         * tests/test-ceill.c (main): Use a working NaN.
66943         * tests/test-floorl.c (main): Likewise.
66944         * tests/test-frexpl.c (main): Likewise.
66945         * tests/test-isnan.c (test_long_double): Likewise.
66946         * tests/test-isnanl.h (main): Likewise.
66947         * tests/test-ldexpl.h (main): Likewise.
66948         * tests/test-roundl.h (main): Likewise.
66949         * tests/test-truncl.h (main): Likewise.
66950         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
66952 2009-02-26  Eric Blake  <ebb9@byu.net>
66953             Bruno Haible  <bruno@clisp.org>
66955         Work around a *printf bug with %ls on Solaris.
66956         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
66957         precision is specified, sprintf stops converting the wide string
66958         argument when the number of bytes that have been produced by this
66959         conversion equals or exceeds the precision.
66960         * doc/posix-functions/fprintf.texi: Update.
66961         * doc/posix-functions/printf.texi: Update.
66962         * doc/posix-functions/snprintf.texi: Update.
66963         * doc/posix-functions/sprintf.texi: Update.
66964         * doc/posix-functions/vfprintf.texi: Update.
66965         * doc/posix-functions/vprintf.texi: Update.
66966         * doc/posix-functions/vsnprintf.texi: Update.
66967         * doc/posix-functions/vsprintf.texi: Update.
66968         * doc/glibc-functions/obstack_printf.texi: Update.
66969         * doc/glibc-functions/obstack_vprintf.texi: Update.
66971 2009-02-26  Eric Blake  <ebb9@byu.net>
66973         stdlib: favor compiler check of random.h
66974         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
66975         to avoid an ObjC random.h installed by Swarm.
66977 2009-02-26  Bruno Haible  <bruno@clisp.org>
66979         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
66980         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
66981         Reported by Gary V. Vaughan <gary@gnu.org>.
66983 2009-02-26  Bruno Haible  <bruno@clisp.org>
66985         Fix *printf behaviour regarding the %ls directive.
66986         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
66987         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
66988         NEED_PRINTF_DIRECTIVE_LS.
66989         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
66990         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
66991         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66992         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
66993         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
66994         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
66995         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
66996         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66997         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66998         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66999         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67000         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
67001         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67002         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67003         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67004         * doc/posix-functions/fprintf.texi: Update.
67005         * doc/posix-functions/printf.texi: Update.
67006         * doc/posix-functions/snprintf.texi: Update.
67007         * doc/posix-functions/sprintf.texi: Update.
67008         * doc/posix-functions/vfprintf.texi: Update.
67009         * doc/posix-functions/vprintf.texi: Update.
67010         * doc/posix-functions/vsnprintf.texi: Update.
67011         * doc/posix-functions/vsprintf.texi: Update.
67012         * doc/glibc-functions/obstack_printf.texi: Update.
67013         * doc/glibc-functions/obstack_vprintf.texi: Update.
67014         Reported by Eric Blake.
67016 2009-02-25  Bruno Haible  <bruno@clisp.org>
67018         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
67019         with known value.
67020         Reported by Gary V. Vaughan <gary@gnu.org>.
67022 2009-02-25  Bruno Haible  <bruno@clisp.org>
67024         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
67025         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
67026         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
67027         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
67028         Reported by Gary V. Vaughan <gary@gnu.org>.
67030 2009-02-25  Bruno Haible  <bruno@clisp.org>
67032         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
67033         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
67034         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
67035         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
67036         Reported by Gary V. Vaughan <gary@gnu.org>.
67038 2009-02-25  Eric Blake  <ebb9@byu.net>
67040         tests: skip fseek/ftell tests if ungetc is broken
67041         * m4/ungetc.m4: New file.
67042         * modules/fseek-tests: Split test, so ungetc dependency is
67043         separate from rest of test.
67044         * modules/fseeko-tests: Likewise.
67045         * modules/ftell-tests: Likewise.
67046         * modules/ftello-tests: Likewise.
67047         * tests/test-fseek.c (main): Isolate ungetc dependency.
67048         * tests/test-fseeko.c (main): Likewise.
67049         * tests/test-ftell.c (main): Likewise.
67050         * tests/test-ftello.c (main): Likewise.
67051         * tests/test-fseek2.sh: New file.
67052         * tests/test-fseeko2.sh: Likewise.
67053         * tests/test-ftell2.sh: Likewise.
67054         * tests/test-ftello2.sh: Likewise.
67056 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
67058         test-getaddrinfo: fix usage of skip return code 77
67059         * tests/test-gettaddrinfo.c: Return skip code 77 only
67060         for first occurrence of skip (4x77 is not 77)
67062 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
67064         strtod: avoid C99 decl-after-statement
67065         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
67067 2009-02-24  Eric Blake  <ebb9@byu.net>
67069         strtod: detect HP-UX 11.31 bug
67070         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
67071         Reported by Gary V. Vaughan.
67073 2009-02-23  Bruno Haible  <bruno@clisp.org>
67075         Fix invalid read past end of memory block.
67076         * lib/vasnprintf.c (DCHAR_SET): Define.
67077         (local_wcslen): Define only when needed.
67078         (local_strnlen, local_wcsnlen): New functions.
67079         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
67080         directives that involve a conversion ourselves.
67081         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
67082         wcsnlen, mbrtowc, wcrtomb.
67083         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
67084         * tests/test-vasprintf-posix.c (test_function): Likewise.
67085         * tests/test-snprintf-posix.h (test_function): Likewise.
67086         * tests/test-sprintf-posix.h (test_function): Likewise.
67087         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67089 2009-02-22  Bruno Haible  <bruno@clisp.org>
67091         Implement new clarified decomposition of Hangul syllables.
67092         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
67093         of type LTV, return only a pairwise decomposition.
67094         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
67095         Likewise.
67096         * tests/uninorm/test-decomposition.c (main): Updated expected result.
67097         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
67098         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
67100 2009-02-22  Bruno Haible  <bruno@clisp.org>
67102         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
67103         zero-length results and shrink excess allocated memory.
67104         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
67105         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
67106         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
67107         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
67108         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
67109         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
67110         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
67111         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
67112         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
67113         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
67114         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
67115         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
67117 2009-02-21  Bruno Haible  <bruno@clisp.org>
67119         * doc/gnulib.texi: Include safe-alloc.texi earlier.
67120         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
67121         spaces after a period. Put a space between a macro name and its
67122         argument list. Trivial rewordings.
67123         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
67124         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
67125         (main): Return 0 explicitly.
67127 2009-02-21  Bruno Haible  <bruno@clisp.org>
67129         Tests for module 'uninorm/filter'.
67130         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
67131         * modules/uninorm/filter-tests: New file.
67133         New module 'uninorm/filter'.
67134         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
67135         uninorm_filter_flush, uninorm_filter_free): New declarations.
67136         * lib/uninorm/uninorm-filter.c: New file.
67137         * modules/uninorm/filter: New file.
67139 2009-02-21  Bruno Haible  <bruno@clisp.org>
67141         Tests for module 'uninorm/nfkc'.
67142         * tests/uninorm/test-nfkc.c: New file.
67143         * tests/uninorm/test-u8-nfkc.c: New file.
67144         * tests/uninorm/test-u16-nfkc.c: New file.
67145         * tests/uninorm/test-u32-nfkc.c: New file.
67146         * tests/uninorm/test-u32-nfkc-big.sh: New file.
67147         * tests/uninorm/test-u32-nfkc-big.c: New file.
67148         * modules/uninorm/nfkc-tests: New file.
67150         New module 'uninorm/nfkc'.
67151         * lib/uninorm/nfkc.c: New file.
67152         * modules/uninorm/nfkc: New file.
67154         Tests for module 'uninorm/nfkd'.
67155         * tests/uninorm/test-nfkd.c: New file.
67156         * tests/uninorm/test-u8-nfkd.c: New file.
67157         * tests/uninorm/test-u16-nfkd.c: New file.
67158         * tests/uninorm/test-u32-nfkd.c: New file.
67159         * tests/uninorm/test-u32-nfkd-big.sh: New file.
67160         * tests/uninorm/test-u32-nfkd-big.c: New file.
67161         * modules/uninorm/nfkd-tests: New file.
67163         New module 'uninorm/nfkd'.
67164         * lib/uninorm/nfkd.c: New file.
67165         * modules/uninorm/nfkd: New file.
67167         Tests for module 'uninorm/nfc'.
67168         * tests/uninorm/test-nfc.c: New file.
67169         * tests/uninorm/test-u8-nfc.c: New file.
67170         * tests/uninorm/test-u16-nfc.c: New file.
67171         * tests/uninorm/test-u32-nfc.c: New file.
67172         * tests/uninorm/test-u32-nfc-big.sh: New file.
67173         * tests/uninorm/test-u32-nfc-big.c: New file.
67174         * modules/uninorm/nfc-tests: New file.
67176         New module 'uninorm/nfc'.
67177         * lib/uninorm/nfc.c: New file.
67178         * modules/uninorm/nfc: New file.
67180         Tests for module 'uninorm/nfd'.
67181         * tests/uninorm/test-nfd.c: New file.
67182         * tests/uninorm/test-u8-nfd.c: New file.
67183         * tests/uninorm/test-u16-nfd.c: New file.
67184         * tests/uninorm/test-u32-nfd.c: New file.
67185         * tests/uninorm/test-u32-nfd-big.sh: New file.
67186         * tests/uninorm/test-u32-nfd-big.c: New file.
67187         * tests/uninorm/test-u32-normalize-big.h: New file.
67188         * tests/uninorm/test-u32-normalize-big.c: New file.
67189         * tests/uninorm/NormalizationTest.txt: New file, created from
67190         Unicode 5.1.0 NormalizationTest.txt.
67191         * modules/uninorm/nfd-tests: New file.
67193         New module 'uninorm/nfd'.
67194         * lib/uninorm/nfd.c: New file.
67195         * modules/uninorm/nfd: New file.
67197         New module 'uninorm/u32-normalize'.
67198         * lib/uninorm/u32-normalize.c: New file.
67199         * modules/uninorm/u32-normalize: New file.
67201         New module 'uninorm/u16-normalize'.
67202         * lib/uninorm/u16-normalize.c: New file.
67203         * modules/uninorm/u16-normalize: New file.
67205         New module 'uninorm/u8-normalize'.
67206         * lib/uninorm/u8-normalize.c: New file.
67207         * lib/uninorm/normalize-internal.h: New file.
67208         * lib/uninorm/u-normalize-internal.h: New file.
67209         * modules/uninorm/u8-normalize: New file.
67211         New module 'uninorm/decompose-internal'.
67212         * lib/uninorm/decompose-internal.c: New file.
67213         * modules/uninorm/decompose-internal: New file.
67215         Tests for module 'uninorm/composition'.
67216         * tests/uninorm/test-composition.c: New file.
67217         * modules/uninorm/composition-tests: New file.
67219         New module 'uninorm/composition'.
67220         * lib/uninorm/composition.c: New file.
67221         * lib/uninorm/composition-table.gperf: New file, generated by
67222         gen-uni-tables.
67223         * modules/uninorm/composition: New file.
67225         Tests for module 'uninorm/compat-decomposition'.
67226         * tests/uninorm/test-compat-decomposition.c: New file.
67227         * modules/uninorm/compat-decomposition-tests: New file.
67229         New module 'uninorm/compat-decomposition'.
67230         * lib/uninorm/decompose-internal.h: New file.
67231         * lib/uninorm/compat-decomposition.c: New file.
67232         * modules/uninorm/compat-decomposition: New file.
67234         Tests for module 'uninorm/canonical-decomposition'.
67235         * tests/uninorm/test-canonical-decomposition.c: New file.
67236         * modules/uninorm/canonical-decomposition-tests: New file.
67238         New module 'uninorm/canonical-decomposition'.
67239         * lib/uninorm/canonical-decomposition.c: New file.
67240         * modules/uninorm/canonical-decomposition: New file.
67242         Tests for module 'uninorm/decomposition'.
67243         * tests/uninorm/test-decomposition.c: New file.
67244         * modules/uninorm/decomposition-tests: New file.
67246         New module 'uninorm/decomposition'.
67247         * lib/uninorm/decomposition.c: New file.
67248         * modules/uninorm/decomposition: New file.
67250         New module 'uninorm/decomposition-table'.
67251         * lib/uninorm/decomposition-table.h: New file.
67252         * lib/uninorm/decomposition-table.c: New file.
67253         * lib/uninorm/decomposition-table1.h: New file, generated by
67254         gen-uni-tables.
67255         * lib/uninorm/decomposition-table2.h: New file, generated by
67256         gen-uni-tables.
67257         * modules/uninorm/decomposition-table: New file.
67259         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
67260         (UC_DECOMP_*): New enumeration items.
67261         (get_decomposition): New function.
67262         (struct decomp_table): New type.
67263         (output_decomposition, output_decomposition_tables): New functions.
67264         (unicode_composition_exclusions): New variable.
67265         (fill_composition_exclusions, debug_output_composition_tables): New
67266         functions.
67267         (main): Accept one more argument. Invoke fill_composition_exclusions.
67268         Output decomposition and composition tables.
67270         New module 'uninorm/base'.
67271         * lib/uninorm.h: New file.
67272         * lib/unictype.h: Update comment.
67273         * modules/uninorm/base: New file.
67275 2009-02-21  David Lutterkort  <lutter@redhat.com>
67277         Tests for module 'safe-alloc'.
67278         * tests/test-safe-alloc.c: New file.
67279         * modules/safe-alloc-tests: New file.
67281         New module 'safe-alloc'.
67282         * lib/safe-alloc.h: New file.
67283         * lib/safe-alloc.c: New file.
67284         * m4/safe-alloc.m4: New file.
67285         * modules/safe-alloc: New file.
67286         * doc/safe-alloc.texi: New file.
67287         * doc/gnulib.texi: Include it.
67288         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
67289         safe-alloc.
67291 2009-02-18  Bruno Haible  <bruno@clisp.org>
67293         Fix link error on non-glibc systems.
67294         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
67295         variable.
67296         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
67298 2009-02-18  Jim Meyering  <meyering@redhat.com>
67300         fts: avoid used-uninitialized error due to recent change
67301         * lib/fts.c (fts_read): Guard uses of the new member,
67302         parent->fts_n_dirs_remaining, since it's not relevant for
67303         the parent of a directory specified on the command-line.
67305 2009-02-17  James Youngman  <jay@gnu.org>
67306             Bruno Haible  <bruno@clisp.org>
67308         * m4/include_next.m4: Reformulate comment.
67310 2009-02-16  Jim Meyering  <meyering@redhat.com>
67312         fts: add #if guards so that the fts_lgpl module still builds
67313         * lib/fts.c: Guard just-added hash-table-using parts with
67314         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
67315         Reported by Simon Josefsson.
67317 2009-02-15  Bruno Haible  <bruno@clisp.org>
67319         * modules/array-mergesort-tests: New file.
67320         * tests/test-array-mergesort.c: New file.
67322         New module 'array-mergesort'.
67323         * modules/array-mergesort: New file.
67324         * lib/array-mergesort.h: New file.
67326 2009-02-15  Bruno Haible  <bruno@clisp.org>
67328         Fix 2009-02-07 commit.
67329         * lib/gen-uni-tables.c (output_predicate, output_category,
67330         output_combclass, output_bidi_category, output_decimal_digit,
67331         output_digit, output_numeric, output_mirror, output_scripts,
67332         output_ident_category, output_simple_mapping): Fix format directives.
67333         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
67335 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
67337         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
67338         fixes are available from IBM.
67340 2009-02-13  Jim Meyering  <meyering@redhat.com>
67342         fts: arrange not to stat non-directories in more cases
67343         This makes GNU find (when it doesn't need to stat each file)
67344         *much* more efficient at traversing reiserfs file systems.
67345         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
67346         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
67347         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
67348         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
67349         (leaf_optimization_applies): New function.
67350         (LCO_hash, LCO_compare): New helper functions.
67351         (link_count_optimize_ok): New function.
67352         (fts_stat): Initialize new member (if dir).
67353         (fts_read): Decrement parent's fts_n_dirs_remaining count if
67354         we've just stat'ed a directory.  Skip the stat call when possible.
67355         ---
67356         Note this AFS-related exchange:
67357         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
67358         and note find's pioctl call in find/fstype.c.
67359         But that is necessary only if you want to enable the
67360         optimization for AFS, and for now, I don't.
67362         fts: move a function definition "up" (no semantic change)
67363         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
67364         "up" to precede upcoming use of a related function.
67366 2009-02-11  Jim Meyering  <meyering@redhat.com>
67368         fts: correct internal computation of nlinks (optimization-related)
67369         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
67370         whether the current entry is a directory, so don't test it.
67372 2009-02-10  Bruno Haible  <bruno@clisp.org>
67374         Tests for module 'uniwbrk/ulc-wordbreaks'.
67375         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
67376         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
67377         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
67379         Tests for module 'uniwbrk/u32-wordbreaks'.
67380         * modules/uniwbrk/u32-wordbreaks-tests: New file.
67381         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
67383         Tests for module 'uniwbrk/u16-wordbreaks'.
67384         * modules/uniwbrk/u16-wordbreaks-tests: New file.
67385         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
67387         Tests for module 'uniwbrk/u8-wordbreaks'.
67388         * modules/uniwbrk/u8-wordbreaks-tests: New file.
67389         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
67391 2009-02-10  Bruno Haible  <bruno@clisp.org>
67393         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
67394         property.
67395         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
67396         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
67397         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
67399 2009-02-10  Simon Josefsson  <simon@josefsson.org>
67401         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
67402         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
67404 2009-02-10  Bruno Haible  <bruno@clisp.org>
67406         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
67407         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
67408         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
67409         * lib/unilbrk/u8-possible-linebreaks.c: Update.
67410         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
67411         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
67413 2009-02-09  Simon Josefsson  <simon@josefsson.org>
67415         * lib/sockets.h (gl_fd_to_handle): New function.
67417         * tests/test-sockets.c: Call gl_fd_to_handle.
67419 2009-02-09  Bruno Haible  <bruno@clisp.org>
67421         * doc/havelib.texi: Document the conventions on bi-arch systems.
67423 2009-02-08  Bruno Haible  <bruno@clisp.org>
67425         Document the AC_LIB_LINKFLAGS macro.
67426         * doc/havelib.texi: New file, mostly written on 2005-05-24.
67427         * doc/gnulib.texi: Include it.
67429 2009-02-08  Bruno Haible  <bruno@clisp.org>
67431         Fix wrong order of sections, compared to TOC.
67432         * doc/gnulib.texi: Include relocatable-maint.texi after the
67433         "Regular expressions" node, not before.
67435 2009-02-08  Bruno Haible  <bruno@clisp.org>
67437         Tests for module 'unicase/totitle'.
67438         * modules/unicase/totitle-tests: New file.
67440         Tests for module 'unicase/tolower'.
67441         * modules/unicase/tolower-tests: New file.
67443         Tests for module 'unicase/toupper'.
67444         * modules/unicase/toupper-tests: New file.
67445         * tests/unicase/test-mapping-part1.h: New file.
67446         * tests/unicase/test-mapping-part2.h: New file.
67448         New module 'unicase/totitle'.
67449         * modules/unicase/totitle: New file.
67450         * lib/unicase/totitle.c: New file.
67452         New module 'unicase/tolower'.
67453         * modules/unicase/tolower: New file.
67454         * lib/unicase/tolower.c: New file.
67456         New module 'unicase/toupper'.
67457         * modules/unicase/toupper: New file.
67458         * lib/unicase/toupper.c: New file.
67459         * lib/unicase/simple-mapping.h: New file.
67461         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
67462         (mapping_table): New structure.
67463         (output_simple_mapping): New function.
67464         (main): Invoke output_simple_mapping_test and output_simple_mapping.
67465         * modules/gen-uni-tables (Description): Update.
67466         * lib/unicase/toupper.h: New file, automatically generated by
67467         gen-uni-tables.
67468         * lib/unicase/tolower.h: New file, automatically generated by
67469         gen-uni-tables.
67470         * lib/unicase/totitle.h: New file, automatically generated by
67471         gen-uni-tables.
67472         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
67473         gen-uni-tables.
67474         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
67475         gen-uni-tables.
67476         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
67477         gen-uni-tables.
67479         New module 'unicase/base'.
67480         * modules/unicase/base: New file.
67481         * lib/unicase.h: New file.
67483 2009-02-08  Bruno Haible  <bruno@clisp.org>
67485         New module 'uniwbrk/ulc-wordbreaks'.
67486         * modules/uniwbrk/ulc-wordbreaks: New file.
67487         * lib/uniwbrk/ulc-wordbreaks.c: New file.
67489         New module 'uniwbrk/u32-wordbreaks'.
67490         * modules/uniwbrk/u32-wordbreaks: New file.
67491         * lib/uniwbrk/u32-wordbreaks.c: New file.
67493         New module 'uniwbrk/u16-wordbreaks'.
67494         * modules/uniwbrk/u16-wordbreaks: New file.
67495         * lib/uniwbrk/u16-wordbreaks.c: New file.
67497         New module 'uniwbrk/u8-wordbreaks'.
67498         * modules/uniwbrk/u8-wordbreaks: New file.
67499         * lib/uniwbrk/u8-wordbreaks.c: New file.
67500         * lib/uniwbrk/u-wordbreaks.h: New file.
67502         New module 'uniwbrk/table'.
67503         * modules/uniwbrk/table: New file.
67504         * lib/uniwbrk/wbrktable.h: New file.
67505         * lib/uniwbrk/wbrktable.c: New file.
67507         New module 'uniwbrk/wordbreak-property'.
67508         * modules/uniwbrk/wordbreak-property: New file.
67509         * lib/uniwbrk/wordbreak-property.c: New file.
67511         * lib/gen-uni-tables.c (WBP_*): New enum items.
67512         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
67513         (unicode_org_wbp): New variable.
67514         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
67515         New functions.
67516         (wbp_table): New structure.
67517         (output_wbp, output_wbrk_tables): New functions.
67518         (main): Accept additional argument. Invoke fill_org_wbp,
67519         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
67520         output_wbrk_tables.
67521         * modules/gen-uni-tables (Description): Update.
67522         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
67523         gen-uni-tables.
67525         New module 'uniwbrk/base'.
67526         * modules/uniwbrk/base: New file.
67527         * lib/uniwbrk.h: New file.
67529 2009-02-08  Bruno Haible  <bruno@clisp.org>
67531         Update to Unicode 5.1.0.
67532         * lib/gen-uni-tables.c (is_property_alphabetic): Include
67533         U+2185..U+2188.
67534         (is_property_default_ignorable_code_point): Don't include characters
67535         of category Cc or Cs and not-a-characters.
67536         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
67537         U+0D79, U+109E, U+109F, U+A60C.
67538         * lib/unictype/bidi_of.h: Regenerated.
67539         * lib/unictype/blocks.h: Regenerated.
67540         * lib/unictype/categ_C.h: Regenerated.
67541         * lib/unictype/categ_Cf.h: Regenerated.
67542         * lib/unictype/categ_Cn.h: Regenerated.
67543         * lib/unictype/categ_L.h: Regenerated.
67544         * lib/unictype/categ_Ll.h: Regenerated.
67545         * lib/unictype/categ_Lm.h: Regenerated.
67546         * lib/unictype/categ_Lo.h: Regenerated.
67547         * lib/unictype/categ_Lu.h: Regenerated.
67548         * lib/unictype/categ_M.h: Regenerated.
67549         * lib/unictype/categ_Mc.h: Regenerated.
67550         * lib/unictype/categ_Me.h: Regenerated.
67551         * lib/unictype/categ_Mn.h: Regenerated.
67552         * lib/unictype/categ_N.h: Regenerated.
67553         * lib/unictype/categ_Nd.h: Regenerated.
67554         * lib/unictype/categ_Nl.h: Regenerated.
67555         * lib/unictype/categ_No.h: Regenerated.
67556         * lib/unictype/categ_P.h: Regenerated.
67557         * lib/unictype/categ_Pd.h: Regenerated.
67558         * lib/unictype/categ_Pe.h: Regenerated.
67559         * lib/unictype/categ_Pf.h: Regenerated.
67560         * lib/unictype/categ_Pi.h: Regenerated.
67561         * lib/unictype/categ_Po.h: Regenerated.
67562         * lib/unictype/categ_Ps.h: Regenerated.
67563         * lib/unictype/categ_S.h: Regenerated.
67564         * lib/unictype/categ_Sk.h: Regenerated.
67565         * lib/unictype/categ_Sm.h: Regenerated.
67566         * lib/unictype/categ_So.h: Regenerated.
67567         * lib/unictype/categ_of.h: Regenerated.
67568         * lib/unictype/combining.h: Regenerated.
67569         * lib/unictype/ctype_alnum.h: Regenerated.
67570         * lib/unictype/ctype_alpha.h: Regenerated.
67571         * lib/unictype/ctype_graph.h: Regenerated.
67572         * lib/unictype/ctype_lower.h: Regenerated.
67573         * lib/unictype/ctype_print.h: Regenerated.
67574         * lib/unictype/ctype_punct.h: Regenerated.
67575         * lib/unictype/ctype_upper.h: Regenerated.
67576         * lib/unictype/decdigit.h: Regenerated.
67577         * lib/unictype/digit.h: Regenerated.
67578         * lib/unictype/mirror.h: Regenerated.
67579         * lib/unictype/numeric.h: Regenerated.
67580         * lib/unictype/pr_alphabetic.h: Regenerated.
67581         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
67582         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
67583         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
67584         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
67585         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
67586         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
67587         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
67588         * lib/unictype/pr_combining.h: Regenerated.
67589         * lib/unictype/pr_dash.h: Regenerated.
67590         * lib/unictype/pr_decimal_digit.h: Regenerated.
67591         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
67592         * lib/unictype/pr_deprecated.h: Regenerated.
67593         * lib/unictype/pr_diacritic.h: Regenerated.
67594         * lib/unictype/pr_extender.h: Regenerated.
67595         * lib/unictype/pr_format_control.h: Regenerated.
67596         * lib/unictype/pr_grapheme_base.h: Regenerated.
67597         * lib/unictype/pr_grapheme_extend.h: Regenerated.
67598         * lib/unictype/pr_grapheme_link.h: Regenerated.
67599         * lib/unictype/pr_id_continue.h: Regenerated.
67600         * lib/unictype/pr_id_start.h: Regenerated.
67601         * lib/unictype/pr_ideographic.h: Regenerated.
67602         * lib/unictype/pr_ignorable_control.h: Regenerated.
67603         * lib/unictype/pr_lowercase.h: Regenerated.
67604         * lib/unictype/pr_math.h: Regenerated.
67605         * lib/unictype/pr_numeric.h: Regenerated.
67606         * lib/unictype/pr_other_alphabetic.h: Regenerated.
67607         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
67608         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
67609         * lib/unictype/pr_other_id_continue.h: Regenerated.
67610         * lib/unictype/pr_other_lowercase.h: Regenerated.
67611         * lib/unictype/pr_other_math.h: Regenerated.
67612         * lib/unictype/pr_punctuation.h: Regenerated.
67613         * lib/unictype/pr_sentence_terminal.h: Regenerated.
67614         * lib/unictype/pr_soft_dotted.h: Regenerated.
67615         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
67616         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
67617         * lib/unictype/pr_unified_ideograph.h: Regenerated.
67618         * lib/unictype/pr_uppercase.h: Regenerated.
67619         * lib/unictype/pr_xid_continue.h: Regenerated.
67620         * lib/unictype/pr_xid_start.h: Regenerated.
67621         * lib/unictype/pr_zero_width.h: Regenerated.
67622         * lib/unictype/scripts.h: Regenerated.
67623         * lib/unictype/scripts_byname.gperf: Regenerated.
67624         * lib/unictype/sy_java_ident.h: Regenerated.
67625         * lib/unilbrk/lbrkprop1.h: Regenerated.
67626         * lib/unilbrk/lbrkprop2.h: Regenerated.
67627         * tests/unictype/test-categ_C.c: Regenerated.
67628         * tests/unictype/test-categ_Cf.c: Regenerated.
67629         * tests/unictype/test-categ_Cn.c: Regenerated.
67630         * tests/unictype/test-categ_L.c: Regenerated.
67631         * tests/unictype/test-categ_Ll.c: Regenerated.
67632         * tests/unictype/test-categ_Lm.c: Regenerated.
67633         * tests/unictype/test-categ_Lo.c: Regenerated.
67634         * tests/unictype/test-categ_Lu.c: Regenerated.
67635         * tests/unictype/test-categ_M.c: Regenerated.
67636         * tests/unictype/test-categ_Mc.c: Regenerated.
67637         * tests/unictype/test-categ_Me.c: Regenerated.
67638         * tests/unictype/test-categ_Mn.c: Regenerated.
67639         * tests/unictype/test-categ_N.c: Regenerated.
67640         * tests/unictype/test-categ_Nd.c: Regenerated.
67641         * tests/unictype/test-categ_Nl.c: Regenerated.
67642         * tests/unictype/test-categ_No.c: Regenerated.
67643         * tests/unictype/test-categ_P.c: Regenerated.
67644         * tests/unictype/test-categ_Pd.c: Regenerated.
67645         * tests/unictype/test-categ_Pe.c: Regenerated.
67646         * tests/unictype/test-categ_Pf.c: Regenerated.
67647         * tests/unictype/test-categ_Pi.c: Regenerated.
67648         * tests/unictype/test-categ_Po.c: Regenerated.
67649         * tests/unictype/test-categ_Ps.c: Regenerated.
67650         * tests/unictype/test-categ_S.c: Regenerated.
67651         * tests/unictype/test-categ_Sk.c: Regenerated.
67652         * tests/unictype/test-categ_Sm.c: Regenerated.
67653         * tests/unictype/test-categ_So.c: Regenerated.
67654         * tests/unictype/test-ctype_alnum.c: Regenerated.
67655         * tests/unictype/test-ctype_alpha.c: Regenerated.
67656         * tests/unictype/test-ctype_graph.c: Regenerated.
67657         * tests/unictype/test-ctype_lower.c: Regenerated.
67658         * tests/unictype/test-ctype_print.c: Regenerated.
67659         * tests/unictype/test-ctype_punct.c: Regenerated.
67660         * tests/unictype/test-ctype_upper.c: Regenerated.
67661         * tests/unictype/test-decdigit.h: Regenerated.
67662         * tests/unictype/test-digit.h: Regenerated.
67663         * tests/unictype/test-numeric.h: Regenerated.
67664         * tests/unictype/test-pr_alphabetic.c: Regenerated.
67665         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
67666         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
67667         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
67668         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
67669         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
67670         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
67671         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
67672         * tests/unictype/test-pr_combining.c: Regenerated.
67673         * tests/unictype/test-pr_dash.c: Regenerated.
67674         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
67675         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
67676         * tests/unictype/test-pr_deprecated.c: Regenerated.
67677         * tests/unictype/test-pr_diacritic.c: Regenerated.
67678         * tests/unictype/test-pr_extender.c: Regenerated.
67679         * tests/unictype/test-pr_format_control.c: Regenerated.
67680         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
67681         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
67682         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
67683         * tests/unictype/test-pr_id_continue.c: Regenerated.
67684         * tests/unictype/test-pr_id_start.c: Regenerated.
67685         * tests/unictype/test-pr_ideographic.c: Regenerated.
67686         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
67687         * tests/unictype/test-pr_lowercase.c: Regenerated.
67688         * tests/unictype/test-pr_math.c: Regenerated.
67689         * tests/unictype/test-pr_numeric.c: Regenerated.
67690         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
67691         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
67692         Regenerated.
67693         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
67694         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
67695         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
67696         * tests/unictype/test-pr_other_math.c: Regenerated.
67697         * tests/unictype/test-pr_punctuation.c: Regenerated.
67698         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
67699         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
67700         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
67701         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
67702         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
67703         * tests/unictype/test-pr_uppercase.c: Regenerated.
67704         * tests/unictype/test-pr_xid_continue.c: Regenerated.
67705         * tests/unictype/test-pr_xid_start.c: Regenerated.
67706         * tests/unictype/test-pr_zero_width.c: Regenerated.
67708         Update to Unicode 5.1.0.
67709         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
67710         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
67711         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
67712         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
67713         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
67714         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
67715         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
67716         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
67717         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
67718         (nonspacing_table_ind): Update.
67719         * tests/uniwidth/test-uc_width2.sh: Update expected result.
67721         Update to Unicode 5.1.0.
67722         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
67723         code transform.
67724         * lib/uniname/uniname.c (unicode_character_name,
67725         unicode_name_character): Add the range 0x1Fxxx to the code transform.
67726         * lib/uniname/uninames.h: Regenerated.
67727         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
67729 2009-02-07  Bruno Haible  <bruno@clisp.org>
67731         Merge gen-ctype and gen-lbrk into a single program.
67732         * lib/gen-uni-tables.c: New file, incorporating
67733         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
67734         Add directory prefixes to the names of the generated files.
67735         * lib/unictype/gen-ctype.c: Remove file.
67736         * lib/unilbrk/gen-lbrk.c: Remove file.
67737         * modules/gen-uni-tables: New file.
67738         * modules/unictype/gen-ctype: Remove file.
67739         * modules/unilbrk/gen-lbrk: Remove file.
67741 2009-02-07  Bruno Haible  <bruno@clisp.org>
67743         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
67745         New module 'unistr/u32-strcoll'.
67746         * modules/unistr/u32-strcoll: New file.
67747         * lib/unistr/u32-strcoll.c: New file.
67749         New module 'unistr/u16-strcoll'.
67750         * modules/unistr/u16-strcoll: New file.
67751         * lib/unistr/u16-strcoll.c: New file.
67753         New module 'unistr/u8-strcoll'.
67754         * modules/unistr/u8-strcoll: New file.
67755         * lib/unistr/u8-strcoll.c: New file.
67756         * lib/unistr/u-strcoll.h: New file.
67758 2009-02-07  Bruno Haible  <bruno@clisp.org>
67760         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
67761         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
67762         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
67763         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
67764         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
67765         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
67767 2009-02-07  Bruno Haible  <bruno@clisp.org>
67769         Make 64-bit clean.
67770         * lib/unictype/gen-ctype.c (output_predicate, output_category,
67771         output_combclass, output_bidi_category, output_decimal_digit,
67772         output_digit, output_numeric, output_mirror, output_scripts,
67773         output_ident_category): Use proper width specifier in format strings.
67775 2009-02-07  Bruno Haible  <bruno@clisp.org>
67777         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
67778         failure behaviour.
67780 2009-02-07  Jim Meyering  <meyering@redhat.com>
67782         regex: avoid compilation failure with upcoming gcc-4.4
67783         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
67784         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
67785         "... error: integer overflow in preprocessor expression".
67787 2009-02-05  Ben Pfaff  <blp@gnu.org>
67789         Fix link errors on Windows when close module is used.
67790         * modules/close: Add $(LIB_CLOSE) to Link section.
67791         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
67792         $(LIB_CLOSE) on Windows.
67794 2009-02-05  Jim Meyering  <meyering@redhat.com>
67796         still avoid unused-parameter warnings, but do it cleanly
67797         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
67798         (get_fs_usage): Cast to void instead.
67799         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
67800         (dev_from_mount_options, read_file_system_list): Cast to void.
67801         Prompted by Bruno Haible.
67803 2009-02-04  Jim Meyering  <meyering@redhat.com>
67805         fsusage.c: correct copyright year
67806         * lib/fsusage.c: Reflect year in which the change is pushed into
67808         avoid misc. warnings
67809         * lib/fsusage.c (UNUSED_PARAM): Define.
67810         (get_fs_usage): Mark parameter "disk" as unused.
67811         * lib/getugroups.c (getgrent): Use "void" in prototype.
67812         * lib/mountlist.c: Mark unused parameters.
67813         (read_file_system_list): Declare a local with "const".
67814         * lib/nanosleep.c (getnow): Declare static.
67815         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
67817         dirfd: set errno upon failure
67818         * lib/dirfd.c: Include <errno.h>.
67819         Set errno to ENOTSUP when returning -1.
67820         * modules/dirfd (Depends-on): Add errno.
67821         Suggested by John Kodis <kodis@comcast.net>.
67823 2009-02-01  Bruno Haible  <bruno@clisp.org>
67825         Don't assume sizeof (long) >= sizeof (void *).
67826         * lib/memcmp.c: Include stdint.h.
67827         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
67828         srcp2 to 'const byte *'.
67829         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
67830         types to uintptr_t.
67831         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
67832         * modules/memcmp (Depends-on): Add stdint.
67833         Reported by Ozkan Sezer <sezeroz@gmail.com>.
67835 2009-01-30  Eric Blake  <ebb9@byu.net>
67837         fix more require-before-expand issues
67838         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
67839         expand, AC_PROG_AWK.
67840         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
67842 2009-01-28  Eric Blake  <ebb9@byu.net>
67844         version-etc: use consistent URL formatting
67845         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
67846         Improve formatting.  Use fputs for string without %.
67848 2009-01-28  Jim Meyering  <meyering@redhat.com>
67850         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
67851         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
67852         "underquoted definition of NAME" from autoconf-2.59.
67854 2009-01-28  Bruno Haible  <bruno@clisp.org>
67856         * doc/gnulib.texi: Add "Obsolete modules" to index.
67858 2009-01-28  Jim Meyering  <meyering@redhat.com>
67860         useless-if-before-free: recognize more variants
67861         * build-aux/useless-if-before-free: Also recognize e.g.,
67862         if (NULL != p) free (p);
67864 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
67866         test-getaddrinfo: skip (don't fail) this test when there's no network
67867         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
67868         on the presumption that it means you lack network access.
67870 2009-01-26  Jim Meyering  <meyering@redhat.com>
67872         fflush: avoid warnings on modern systems
67873         * lib/fflush.c (rpl_fflush): Move declarations of locals,
67874         pos and result, into scopes where they're used.
67876 2009-01-26  Eric Blake  <ebb9@byu.net>
67878         Silence warning reintroduced by recent extensions patch.
67879         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
67880         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
67881         autoconf.
67883         Backport improved autoconf semantics of AC_DEFUN_ONCE.
67884         * m4/00gnulib.m4: New file.
67885         * gnulib-tool (func_get_filelist): Always use it.
67886         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
67887         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
67889 2009-01-25  Bruno Haible  <bruno@clisp.org>
67891         Make test-quotearg work on MacOS X and AIX.
67892         * tests/test-quotearg.sh: New file.
67893         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
67894         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
67895         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
67896         include <libintl.h>.
67897         (fake_locale): Remove variable.
67898         (gettext, dgettext, dcgettext): Remove functions.
67899         (main): Instead of setting a fake locale, set a real locale. Call
67900         textdomain and bindtextdomain.
67901         * modules/quotearg-tests (Files): Add the new files.
67902         (Depends-on): Add gettext, setenv, unsetenv.
67903         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
67904         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
67905         Augment TESTS_ENVIRONMENT.
67907 2009-01-25  Bruno Haible  <bruno@clisp.org>
67909         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
67910         fr_FR.ISO8859-1 locale on MacOS X.
67911         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
67912         ja_JP.eucJP locale on MacOS X.
67913         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
67914         zh_CN.GB18030 locale on MacOS X.
67916 2009-01-25  Bruno Haible  <bruno@clisp.org>
67918         Avoid link errors on MacOS X 10.3.
67919         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
67920         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
67922 2009-01-25  Bruno Haible  <bruno@clisp.org>
67924         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
67925         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
67926         * modules/pipe (Files): Remove m4/posix_spawn.m4.
67927         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
67928         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
67929         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
67930         posix_spawnattr_init, posix_spawnattr_setsigmask,
67931         posix_spawnattr_setflags, posix_spawnattr_destroy.
67933         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
67934         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
67935         * modules/execute (Files): Remove m4/posix_spawn.m4.
67936         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
67937         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
67938         posix_spawnattr_init, posix_spawnattr_setsigmask,
67939         posix_spawnattr_setflags, posix_spawnattr_destroy.
67941 2009-01-25  Bruno Haible  <bruno@clisp.org>
67943         * lib/glthread/threadlib.c: Include <stdlib.h>.
67945 2009-01-25  Bruno Haible  <bruno@clisp.org>
67947         * lib/glthread/threadlib.c (dummy): New declaration.
67949 2009-01-25  Bruno Haible  <bruno@clisp.org>
67951         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
67952         multibyte characters also for the GB18030 encoding. Don't crash when
67953         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
67955 2009-01-25  Bruno Haible  <bruno@clisp.org>
67957         Avoid redefining 'struct random_data' on OSF/1 5.1.
67958         * lib/stdlib.in.h: Include <random.h> if it exists.
67959         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
67960         HAVE_RANDOM_H. Include <random.h> when testing whether
67961         'struct random_data' exists.
67962         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
67964 2009-01-25  Bruno Haible  <bruno@clisp.org>
67966         Don't install charset.alias on MacOS X >= 10.3.
67967         * lib/localcharset.c (DARWIN7): New macro.
67968         (get_charset_aliases): Hardcode the result for Darwin7.
67969         * modules/localcharset (install-exec-local): Don't install
67970         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
67972 2009-01-25  Bruno Haible  <bruno@clisp.org>
67974         Don't install charset.alias on mingw and Cygwin.
67975         * modules/localcharset (install-exec-local): Don't install
67976         charset.alias on mingw and Cygwin, if the file does not yet exist.
67977         The result for these platforms is hardcoded in localcharset.c.
67979 2009-01-25  Bruno Haible  <bruno@clisp.org>
67981         Make it possible again to use AC_GNU_SOURCE together with gnulib.
67982         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
67983         before requiring AC_USE_SYSTEM_EXTENSIONS.
67985 2009-01-25  Jim Meyering  <meyering@redhat.com>
67987         c-strtod: avoid warnings
67988         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
67989         "assignment discards qualifiers from pointer target type" warnings.
67991 2009-01-24  Bruno Haible  <bruno@clisp.org>
67993         Add support for non-UTF-8 locales on MacOS X.
67994         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
67995         canonical encodings. For Darwin 7 and newer, don't map traditional
67996         encodings to UTF-8.
67997         Reported by Vincent Lefevre <vincent@vinc17.org>
67998         at <http://savannah.gnu.org/bugs/?25235>.
68000 2009-01-24  Bruno Haible  <bruno@clisp.org>
68002         * doc/gnulib.texi (Obsolete modules): New section.
68003         Reported by Mike Frysinger <vapier@gentoo.org>.
68005 2009-01-24  Bruno Haible  <bruno@clisp.org>
68007         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
68008         (%.dvi): New rule.
68010 2009-01-24  Bruno Haible  <bruno@clisp.org>
68012         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
68013         Reported by Eric Blake.
68015 2009-01-24  Bruno Haible  <bruno@clisp.org>
68017         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
68018         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
68019         Reported by Gary V. Vaughan <gary@gnu.org>.
68021 2009-01-24  Bruno Haible  <bruno@clisp.org>
68023         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
68025 2009-01-23  Bruno Haible  <bruno@clisp.org>
68027         Make c-strtod, c-strtold usable in libraries.
68028         * lib/c-strtod.c: Include string.h instead of xalloc.h.
68029         (C_STRTOD): Call strdup instead of xstrdup.
68030         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
68031         * modules/c-strtold (Depends-on): Likewise.
68032         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
68033         * NEWS: Mention the change.
68034         Reported by Michael Gold <mgold@ncf.ca>.
68036 2009-01-23  Jim Meyering  <meyering@redhat.com>
68038         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
68039         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
68040         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
68042 2009-01-23  Simon Josefsson  <simon@josefsson.org>
68044         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
68045         GNU CoreUtils.
68046         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
68047         * modules/version-etc (Description): Update.
68049 2009-01-22  Bruno Haible  <bruno@clisp.org>
68051         Cache the C locale object.
68052         * lib/c-strtod.c (c_locale_cache): New variable.
68053         (c_locale): New function.
68054         (C_STRTOD): Use it, and don't call freelocale.
68055         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
68056         Suggested by Paolo Bonzini.
68058 2009-01-21  Bruno Haible  <bruno@clisp.org>
68060         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
68061         conditions other than overflow.
68063 2009-01-21  Bruno Haible  <bruno@clisp.org>
68065         * lib/c-strtod.c: Include errno.h.
68066         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
68067         value from STRTOD_L and STRTOD.
68069 2009-01-21  Bruno Haible  <bruno@clisp.org>
68070         and Jim Meyering  <meyering@redhat.com>
68072         nanosleep: skip configure test (fail it) for apple universal builds
68073         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
68074         universal builds, assume that nanosleep does not work.
68075         * modules/nanosleep (Depends-on): Add multiarch.
68077         mktime: skip configure test (fail it) for apple universal builds
68078         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
68079         universal builds, assume that mktime does not work.
68080         * modules/mktime (Depends-on): Add multiarch.
68082 2009-01-21  Eric Blake  <ebb9@byu.net>
68084         multiarch: avoid expand-before-require warning
68085         * modules/multiarch (configure.ac): Require, rather than expand,
68086         gl_MULTIARCH.
68087         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
68088         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
68089         enforce that all clients require it.  Partial reversion of
68090         2008-12-29 patch.
68092         error: avoid expand-before-require warning
68093         * modules/errno (configure.ac): Require, rather than expand,
68094         gl_HEADER_ERRNO_H.
68095         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
68096         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
68097         enforce that all clients require it.
68099         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
68100         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
68101         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
68102         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
68104 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
68106         Revert:
68107         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
68109         regex: do not depend on obsolete modules.
68110         * modules/regex: Remove memcmp and memmove.
68112 2009-01-20  Bruno Haible  <bruno@clisp.org>
68114         Make the 'link' module link on Windows NT 4.
68115         * lib/link.c (_WIN32_WINNT): Don't define.
68116         (CreateHardLinkFuncType): New type.
68117         (CreateHardLinkFunc, initialized): New variables.
68118         (initialize): New function.
68119         (link): Invoke CreateHardLink indirectly through the function pointer.
68121 2009-01-20  Bruno Haible  <bruno@clisp.org>
68123         Fix compilation failure on mingw.
68124         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
68126 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
68128         * doc/c-strtod.texi: Mention a couple of restrictions.
68130 2009-01-20  Jim Meyering  <meyering@redhat.com>
68132         gettimeofday: move more declarations out of functions
68133         * lib/gettimeofday.c: Move extern declarations of tzset and
68134         gmtime out of containing functions.  Prompted by Bruno Haible.
68136 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
68138         regex: do not depend on obsolete modules.
68139         * modules/regex: Remove memcmp and memmove.
68141 2009-01-19  Bruno Haible  <bruno@clisp.org>
68143         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
68144         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
68145         gl_BIGENDIAN, not AC_C_BIGENDIAN.
68146         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
68147         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
68149 2009-01-19  Bruno Haible  <bruno@clisp.org>
68151         * tests/test-link.c: Include <errno.h>.
68152         (main): Exit with code 77 when a hard link cannot be created due to
68153         the file system.
68154         * tests/test-link.sh: Skip test when a hard link cannot be created due
68155         to the file system.
68156         Suggested by Eric Blake.
68158 2009-01-19  Martin Lambers  <marlam@marlam.de>
68160         * modules/link-tests: New file.
68161         * tests/test-link.sh: New file.
68162         * tests/test-link.c: New file.
68164 2009-01-19  Eric Blake  <ebb9@byu.net>
68166         doc: mention another function added in cygwin 1.7.0
68167         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
68168         Another new function in cygwin 1.7.
68170 2009-01-19  Bruno Haible  <bruno@clisp.org>
68172         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
68173         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
68174         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
68175         gl_BIGENDIAN, not AC_C_BIGENDIAN.
68176         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
68177         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
68178         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
68179         * m4/md4.m4 (gl_MD4): Likewise.
68180         * m4/md5.m4 (gl_MD5): Likewise.
68181         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
68182         * m4/sha1.m4 (gl_SHA1): Likewise.
68183         * m4/sha256.m4 (gl_SHA256): Likewise.
68184         * m4/sha512.m4 (gl_SHA512): Likewise.
68186 2009-01-19  Bruno Haible  <bruno@clisp.org>
68188         * modules/uniname/uniname-tests (Depends-on): Add progname.
68189         * tests/uniname/test-uninames.c: Include progname.h.
68190         (main): Call set_program_name.
68192         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
68193         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
68194         (main): Call set_program_name.
68196         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
68197         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
68198         (main): Call set_program_name.
68200         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
68201         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
68202         (main): Call set_program_name.
68204         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
68205         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
68206         (main): Call set_program_name.
68208         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
68209         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
68210         (main): Call set_program_name.
68212         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
68213         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
68214         (main): Call set_program_name.
68216         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
68217         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
68218         (main): Call set_program_name.
68220         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
68221         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
68222         (main): Call set_program_name.
68224 2009-01-19  Eric Blake  <ebb9@byu.net>
68226         test-unistd: test previous patch
68227         * tests/test-unistd.c: Test *_FILENO macros.
68229         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
68230         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
68231         Guarantee a definition.
68232         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
68233         * modules/unistd-safer (Depends-on): Add dependency on unistd.
68234         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
68235         * lib/dup-safer.c (STDERR_FILENO): Likewise.
68236         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
68237         Likewise.
68238         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
68239         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
68240         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
68241         Likewise.
68242         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
68243         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
68244         (STDERR_FILENO): Likewise.
68245         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
68246         (STDERR_FILENO): Likewise.
68247         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
68248         (STDERR_FILENO): Likewise.
68249         Reported by Elbert Pol.
68251 2009-01-19  Eric Blake  <ebb9@byu.net>
68253         doc: mention more functions added in cygwin 1.7.0
68254         * doc/posix-functions/abort.texi (abort): Update wording related
68255         to cygwin.
68256         * doc/posix-functions/daylight.texi (daylight): Likewise.
68257         * doc/posix-functions/optarg.texi (optarg): Likewise.
68258         * doc/posix-functions/optarg.texi (opterr): Likewise.
68259         * doc/posix-functions/optarg.texi (optind): Likewise.
68260         * doc/posix-functions/optarg.texi (optopt): Likewise.
68261         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
68262         worked in 1.5.x, and was withdrawn in 1.7.
68263         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
68264         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
68265         cygwin versions.
68266         * doc/posix-functions/perror.texi (perror): Likewise.
68267         * doc/posix-functions/printf.texi (printf): Likewise.
68268         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
68269         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
68270         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
68271         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
68272         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
68273         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
68274         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
68275         Likewise.
68276         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
68277         Likewise.
68278         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
68279         this function.
68280         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
68281         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
68282         Likewise.
68283         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
68284         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
68285         * doc/posix-functions/confstr.texi (confstr): Likewise.
68286         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
68287         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
68288         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
68289         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
68290         * doc/posix-functions/fputws.texi (fputws): Likewise.
68291         * doc/posix-functions/fwide.texi (fwide): Likewise.
68292         * doc/posix-functions/getwc.texi (getwc): Likewise.
68293         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
68294         * doc/posix-functions/putwc.texi (putwc): Likewise.
68295         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
68296         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
68297         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
68298         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
68299         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
68300         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
68301         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
68302         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
68303         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
68304         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
68305         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
68307 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
68309         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
68310         * lib/ioctl.c: Include <sys/ioctl.h>.
68312 2009-01-19  Simon Josefsson  <simon@josefsson.org>
68314         * modules/getdate-tests (Depends-on): Add progname.
68315         * tests/test-getdate.c: Use progname module, to avoid link errors
68316         on non-glibc systems.
68318 2009-01-18  Simon Josefsson  <simon@josefsson.org>
68320         * modules/filenamecat-tests (Depends-on): Add progname.
68321         * modules/fstrcmp-tests (Depends-on): Likewise.
68323         * tests/test-filenamecat.c: Use progname module, to avoid link
68324         errors on non-glibc systems.
68325         * tests/test-fstrcmp.c: Likewise.
68327 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
68329         gettimeofday: avoid warning: nested extern declaration of 'localtime'
68330         * lib/gettimeofday.c: Move extern declaration out of function.
68332 2009-01-18  Bruno Haible  <bruno@clisp.org>
68334         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
68335         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
68336         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
68338 2009-01-18  Bruno Haible  <bruno@clisp.org>
68340         * lib/strftime.c (MEMPCPY): Remove unused macro.
68341         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
68343 2009-01-18  Martin Lambers  <marlam@marlam.de>
68345         New module 'link'.
68346         * lib/unistd.in.h (link): New declaration.
68347         * lib/link.c: New file.
68348         * m4/link.m4: New file.
68349         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
68350         HAVE_LINK.
68351         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
68352         * modules/link: New file.
68353         * doc/posix-functions/link.texi: Mention the new module.
68355 2009-01-18  Bruno Haible  <bruno@clisp.org>
68357         * tests/test-avltree_list.c (main): Call set_program_name.
68358         * tests/test-avltree_oset.c (main): Likewise.
68359         * tests/test-obstack-printf.c: Include progname.h.
68360         (main): Call set_program_name.
68361         * tests/test-quotearg.c: Include progname.h.
68362         (main): Call set_program_name.
68363         * tests/test-xmemdup0.c: Include progname.h.
68364         (main): Call set_program_name.
68366 2009-01-18  Bruno Haible  <bruno@clisp.org>
68368         New module 'alphasort'.
68369         * lib/dirent.in.h (alphasort): New declaration.
68370         * lib/alphasort.c: New file, from glibc with modifications.
68371         * m4/alphasort.m4: New file.
68372         * modules/alphasort: New file.
68373         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
68374         HAVE_ALPHASORT.
68375         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
68376         HAVE_ALPHASORT.
68377         * doc/posix-functions/alphasort.texi: Mention the new module and the
68378         portability problems.
68380 2009-01-18  Bruno Haible  <bruno@clisp.org>
68382         New module 'scandir'.
68383         * lib/dirent.in.h (scandir): New declaration.
68384         * lib/scandir.c: New file, from glibc with modifications.
68385         * m4/scandir.m4: New file.
68386         * modules/scandir: New file.
68387         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
68388         HAVE_SCANDIR.
68389         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
68390         HAVE_SCANDIR.
68391         * doc/posix-functions/scandir.texi: Mention the new module and the
68392         portability problems.
68394 2009-01-17  Bruno Haible  <bruno@clisp.org>
68396         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
68397         Update documentation.
68398         (func_remove_suffix): Escape all dots in the suffix. Update
68399         documentation.
68400         (func_filter_filelist): Update documentation.
68401         Reported by Ralf Wildenhues.
68403 2009-01-17  Bruno Haible  <bruno@clisp.org>
68405         * modules/dprintf-posix-tests: New file.
68406         * tests/test-dprintf-posix.sh: New file.
68407         * tests/test-dprintf-posix.c: New file.
68409         New modules 'dprintf', 'dprintf-posix'.
68410         * lib/stdio.in.h (dprintf): New declaration.
68411         * lib/dprintf.c: New file.
68412         * m4/dprintf.m4: New file.
68413         * m4/dprintf-posix.m4: New file.
68414         * modules/dprintf: New file.
68415         * modules/dprintf-posix: New file.
68416         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
68417         HAVE_DPRINTF, REPLACE_DPRINTF.
68418         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
68419         HAVE_DPRINTF, REPLACE_DPRINTF.
68420         * doc/posix-functions/dprintf.texi: Mention the new modules.
68422 2009-01-17  Bruno Haible  <bruno@clisp.org>
68424         * modules/vdprintf-posix-tests: New file.
68425         * tests/test-vdprintf-posix.sh: New file.
68426         * tests/test-vdprintf-posix.c: New file.
68428         New modules 'vdprintf', 'vdprintf-posix'.
68429         * lib/stdio.in.h (vdprintf): New declaration.
68430         * lib/vdprintf.c: New file.
68431         * m4/vdprintf.m4: New file.
68432         * m4/vdprintf-posix.m4: New file.
68433         * modules/vdprintf: New file.
68434         * modules/vdprintf-posix: New file.
68435         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
68436         HAVE_VDPRINTF, REPLACE_VDPRINTF.
68437         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
68438         HAVE_VDPRINTF, REPLACE_VDPRINTF.
68439         * doc/posix-functions/vdprintf.texi: Mention the new modules.
68441 2009-01-17  Bruno Haible  <bruno@clisp.org>
68443         Fix replacement of fopen on mingw.
68444         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
68445         mingw.
68447 2009-01-17  Bruno Haible  <bruno@clisp.org>
68449         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
68450         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
68452 2009-01-17  Bruno Haible  <bruno@clisp.org>
68454         Avoid test-fflush2.sh failure on mingw.
68455         * tests/test-fflush2.c: Include binary-io.h.
68456         (main): Put standard input into binary mode.
68457         * modules/fflush-tests (Depends-on): Add binary-io.
68459 2009-01-17  Bruno Haible  <bruno@clisp.org>
68461         * lib/wchar.in.h: In another particular situation, include only the
68462         system's <wchar.h> file.
68463         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
68464         Reported by Albert Chin-A-Young <china@thewrittenword.com>
68465         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
68467 2009-01-17  Bruno Haible  <bruno@clisp.org>
68469         Support for stripping executables in --enable-relocatable.
68470         * build-aux/install-reloc: Expect one more argument, or an environment
68471         variable RELOC_STRIP_PROG. If set, strip the destination program and
68472         its wrapper.
68473         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
68474         RELOC_STRIP_PROG.
68475         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
68476         to set RELOCATABLE_STRIP.
68477         * NEWS: Mention the new Makefile requirement.
68479 2009-01-17  Bruno Haible  <bruno@clisp.org>
68481         * build-aux/install-reloc: Remove debugging information left over by
68482         C compiler on MacOS X.
68484 2009-01-17  Bruno Haible  <bruno@clisp.org>
68486         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
68487         * lib/progreloc.c (find_executable): Fix type of pointer passed to
68488         _NSGetExecutablePath.
68490 2009-01-16  Jim Meyering  <meyering@redhat.com>
68492         strerror: avoid warnings about discarding "const"
68493         * lib/strerror.c (rpl_strerror): Instead of returning a const
68494         string from each and every "case", use a variable, and add a single
68495         cast after the switch.
68497 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
68499         * lib/arpa_inet.in.h: Add extern "C" block for C++.
68501 2009-01-16  Bruno Haible  <bruno@clisp.org>
68503         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
68504         array initializer syntax that also works in C++ mode.
68505         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68507 2009-01-16  Jim Meyering  <meyering@redhat.com>
68509         poll: suppress a warning
68510         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
68511         to ignore "...unsigned expression < 0 is always false" warnings.
68513 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
68515         poll: remove declarations of unused variables
68516         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
68517         sockbuf and optlen.
68519 2009-01-15  Bruno Haible  <bruno@clisp.org>
68521         Make fflush-after-ungetc POSIX compliant on BSD systems.
68522         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
68523         (clear_ungetc_buffer): Implement also for other systems.
68524         (rpl_fflush): On glibc systems, invoke
68525         clear_ungetc_buffer_preserving_position. Otherwise, invoke
68526         clear_ungetc_buffer after fetching the stream's position, not before.
68528 2009-01-15  Bruno Haible  <bruno@clisp.org>
68530         Make fflush-after-ungetc POSIX compliant on glibc systems.
68531         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
68532         after ungetc.
68533         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
68534         (rpl_fflush): On glibc systems, simply call the system's fflush
68535         function after clearing the ungetc buffer.
68536         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
68537         Instead, lseek only to the end of file, then use the system's fseeko
68538         for the rest. On glibc systems, reset the EOF indicator bit.
68540 2009-01-15  Jim Meyering  <meyering@redhat.com>
68542         openmp.m4: revert quote-adding change, for portability to older autoconf
68543         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
68544         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
68545         Simon Josefsson noticed the problem when using autoconf-2.61.
68547 2009-01-15  Bruno Haible  <bruno@clisp.org>
68549         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
68550         * tests/test-fflush2.c (ASSERT): Always fail.
68551         (main): Add two tests for fflush() after ungetc(), taking into account
68552         the Austin Group's clarification.
68553         Suggested by Eric Blake.
68555 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
68557         mktime.m4: remove K&R-style function prototypes
68558         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
68559         for the Sun C++ compiler.
68561 2009-01-14  Bruno Haible  <bruno@clisp.org>
68563         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
68564         while including <wchar.h>.
68565         * lib/wchar.in.h: In two particular situations on HP-UX, include only
68566         the system's <wchar.h> file.
68567         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68569 2009-01-14  Bruno Haible  <bruno@clisp.org>
68571         * m4/csharp.m4: Don't mention gettext on the serial number line.
68572         * m4/csharpexec.m4: Likewise.
68573         * m4/eaccess.m4: Likewise.
68574         * m4/javaexec.m4: Likewise.
68575         * m4/sig_atomic_t.m4: Likewise.
68576         * m4/tmpdir.m4: Likewise.
68577         * m4/intldir.m4: Bump gettext version.
68578         * m4/lib-ld.m4: Likewise.
68580 2009-01-14  Bruno Haible  <bruno@clisp.org>
68582         * lib/progname.c (set_program_name): Add more comments.
68583         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
68585 2009-01-14  Simon Josefsson  <simon@josefsson.org>
68587         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
68588         were sys/stat.h does not define it.
68590 2009-01-14  Jim Meyering  <meyering@redhat.com>
68592         many *.m4 files: improve m4 quoting
68593         99% of this change was performed by running the following commands:
68594         git ls-files | grep '\.m4$' | xargs perl -pi \
68595           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
68596           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
68597           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
68598           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
68599         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
68600         The remainder were to add Copyright dates, increment serial numbers,
68601         undo some changes in comments, exclude m4/intl.m4, and add quotes
68602         around the "1" in ",1" where the unusual spacing prohibited the
68603         above regexps from doing the job.  For more details, see
68604         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
68605         * m4/acl.m4: Modified.
68606         * m4/afs.m4: Likewise.
68607         * m4/alloca.m4: Likewise.
68608         * m4/argp.m4: Likewise.
68609         * m4/argz.m4: Likewise.
68610         * m4/atexit.m4: Likewise.
68611         * m4/bison-i18n.m4: Likewise.
68612         * m4/bison.m4: Likewise.
68613         * m4/byteswap.m4: Likewise.
68614         * m4/c-stack.m4: Likewise.
68615         * m4/c-strtod.m4: Likewise.
68616         * m4/calloc.m4: Likewise.
68617         * m4/canonicalize-lgpl.m4: Likewise.
68618         * m4/chown.m4: Likewise.
68619         * m4/clock_time.m4: Likewise.
68620         * m4/codeset.m4: Likewise.
68621         * m4/copy-file.m4: Likewise.
68622         * m4/csharp.m4: Likewise.
68623         * m4/csharpcomp.m4: Likewise.
68624         * m4/csharpexec.m4: Likewise.
68625         * m4/d-ino.m4: Likewise.
68626         * m4/d-type.m4: Likewise.
68627         * m4/dirfd.m4: Likewise.
68628         * m4/double-slash-root.m4: Likewise.
68629         * m4/eaccess.m4: Likewise.
68630         * m4/eealloc.m4: Likewise.
68631         * m4/environ.m4: Likewise.
68632         * m4/errno_h.m4: Likewise.
68633         * m4/euidaccess.m4: Likewise.
68634         * m4/execute.m4: Likewise.
68635         * m4/fatal-signal.m4: Likewise.
68636         * m4/fchdir.m4: Likewise.
68637         * m4/fcntl_h.m4: Likewise.
68638         * m4/fileblocks.m4: Likewise.
68639         * m4/filenamecat.m4: Likewise.
68640         * m4/findprog.m4: Likewise.
68641         * m4/flexmember.m4: Likewise.
68642         * m4/fnmatch.m4: Likewise.
68643         * m4/fopen.m4: Likewise.
68644         * m4/fpending.m4: Likewise.
68645         * m4/fprintf-posix.m4: Likewise.
68646         * m4/free.m4: Likewise.
68647         * m4/frexp.m4: Likewise.
68648         * m4/frexpl.m4: Likewise.
68649         * m4/fsusage.m4: Likewise.
68650         * m4/ftruncate.m4: Likewise.
68651         * m4/gc-camellia.m4: Likewise.
68652         * m4/gc-random.m4: Likewise.
68653         * m4/gc.m4: Likewise.
68654         * m4/getaddrinfo.m4: Likewise.
68655         * m4/getcwd-abort-bug.m4: Likewise.
68656         * m4/getcwd-path-max.m4: Likewise.
68657         * m4/getdate.m4: Likewise.
68658         * m4/getdomainname.m4: Likewise.
68659         * m4/getgroups.m4: Likewise.
68660         * m4/gethostname.m4: Likewise.
68661         * m4/gethrxtime.m4: Likewise.
68662         * m4/getline.m4: Likewise.
68663         * m4/getloadavg.m4: Likewise.
68664         * m4/getndelim2.m4: Likewise.
68665         * m4/getpass.m4: Likewise.
68666         * m4/gettext.m4: Likewise.
68667         * m4/gettime.m4: Likewise.
68668         * m4/gettimeofday.m4: Likewise.
68669         * m4/gnulib-common.m4: Likewise.
68670         * m4/group-member.m4: Likewise.
68671         * m4/host-os.m4: Likewise.
68672         * m4/iconv.m4: Likewise.
68673         * m4/iconv_open.m4: Likewise.
68674         * m4/inet_ntop.m4: Likewise.
68675         * m4/inet_pton.m4: Likewise.
68676         * m4/inline.m4: Likewise.
68677         * m4/intldir.m4: Likewise.
68678         * m4/intlmacosx.m4: Likewise.
68679         * m4/intmax.m4: Likewise.
68680         * m4/intmax_t.m4: Likewise.
68681         * m4/inttypes.m4: Likewise.
68682         * m4/inttypes_h.m4: Likewise.
68683         * m4/inttypes-pri.m4: Likewise.
68684         * m4/isapipe.m4: Likewise.
68685         * m4/isnand.m4: Likewise.
68686         * m4/isnanf.m4: Likewise.
68687         * m4/isnanl.m4: Likewise.
68688         * m4/javacomp.m4: Likewise.
68689         * m4/javaexec.m4: Likewise.
68690         * m4/jm-winsz1.m4: Likewise.
68691         * m4/jm-winsz2.m4: Likewise.
68692         * m4/lchown.m4: Likewise.
68693         * m4/lcmessage.m4: Likewise.
68694         * m4/ldexpl.m4: Likewise.
68695         * m4/lib-ld.m4: Likewise.
68696         * m4/lib-link.m4: Likewise.
68697         * m4/libsigsegv.m4: Likewise.
68698         * m4/link-follow.m4: Likewise.
68699         * m4/localcharset.m4: Likewise.
68700         * m4/locale-fr.m4: Likewise.
68701         * m4/locale-ja.m4: Likewise.
68702         * m4/locale-tr.m4: Likewise.
68703         * m4/locale-zh.m4: Likewise.
68704         * m4/lock.m4: Likewise.
68705         * m4/longlong.m4: Likewise.
68706         * m4/ls-mntd-fs.m4: Likewise.
68707         * m4/lstat.m4: Likewise.
68708         * m4/malloc.m4: Likewise.
68709         * m4/mathl.m4: Likewise.
68710         * m4/mbrtowc.m4: Likewise.
68711         * m4/mbstate_t.m4: Likewise.
68712         * m4/mbswidth.m4: Likewise.
68713         * m4/memchr.m4: Likewise.
68714         * m4/memcmp.m4: Likewise.
68715         * m4/memcpy.m4: Likewise.
68716         * m4/memmem.m4: Likewise.
68717         * m4/memmove.m4: Likewise.
68718         * m4/mempcpy.m4: Likewise.
68719         * m4/memrchr.m4: Likewise.
68720         * m4/memset.m4: Likewise.
68721         * m4/minmax.m4: Likewise.
68722         * m4/mkdir-slash.m4: Likewise.
68723         * m4/mkdtemp.m4: Likewise.
68724         * m4/mktime.m4: Likewise.
68725         * m4/mmap-anon.m4: Likewise.
68726         * m4/mountlist.m4: Likewise.
68727         * m4/nanosleep.m4: Likewise.
68728         * m4/nls.m4: Likewise.
68729         * m4/nocrash.m4: Likewise.
68730         * m4/open.m4: Likewise.
68731         * m4/openat.m4: Likewise.
68732         * m4/openmp.m4: Likewise.
68733         * m4/pathmax.m4: Likewise.
68734         * m4/perl.m4: Likewise.
68735         * m4/physmem.m4: Likewise.
68736         * m4/pipe.m4: Likewise.
68737         * m4/po.m4: Likewise.
68738         * m4/poll.m4: Likewise.
68739         * m4/posixtm.m4: Likewise.
68740         * m4/posixver.m4: Likewise.
68741         * m4/printf-frexp.m4: Likewise.
68742         * m4/printf-frexpl.m4: Likewise.
68743         * m4/printf-posix.m4: Likewise.
68744         * m4/printf-posix-rpl.m4: Likewise.
68745         * m4/printf.m4: Likewise.
68746         * m4/progtest.m4: Likewise.
68747         * m4/putenv.m4: Likewise.
68748         * m4/readline.m4: Likewise.
68749         * m4/readlink.m4: Likewise.
68750         * m4/readutmp.m4: Likewise.
68751         * m4/realloc.m4: Likewise.
68752         * m4/regex.m4: Likewise.
68753         * m4/relocatable.m4: Likewise.
68754         * m4/relocatable-lib.m4: Likewise.
68755         * m4/rename-dest-slash.m4: Likewise.
68756         * m4/rename.m4: Likewise.
68757         * m4/rmdir-errno.m4: Likewise.
68758         * m4/rmdir.m4: Likewise.
68759         * m4/roundf.m4: Likewise.
68760         * m4/roundl.m4: Likewise.
68761         * m4/rpmatch.m4: Likewise.
68762         * m4/save-cwd.m4: Likewise.
68763         * m4/selinux-selinux-h.m4: Likewise.
68764         * m4/setenv.m4: Likewise.
68765         * m4/settime.m4: Likewise.
68766         * m4/sig2str.m4: Likewise.
68767         * m4/sig_atomic_t.m4: Likewise.
68768         * m4/signalblocking.m4: Likewise.
68769         * m4/signbit.m4: Likewise.
68770         * m4/sigpipe.m4: Likewise.
68771         * m4/sockets.m4: Likewise.
68772         * m4/sockpfaf.m4: Likewise.
68773         * m4/st_dm_mode.m4: Likewise.
68774         * m4/stat-time.m4: Likewise.
68775         * m4/stdbool.m4: Likewise.
68776         * m4/stdint.m4: Likewise.
68777         * m4/stdint_h.m4: Likewise.
68778         * m4/stpcpy.m4: Likewise.
68779         * m4/stpncpy.m4: Likewise.
68780         * m4/strcase.m4: Likewise.
68781         * m4/strchrnul.m4: Likewise.
68782         * m4/strcspn.m4: Likewise.
68783         * m4/strdup.m4: Likewise.
68784         * m4/strftime.m4: Likewise.
68785         * m4/strndup.m4: Likewise.
68786         * m4/strnlen.m4: Likewise.
68787         * m4/strpbrk.m4: Likewise.
68788         * m4/strptime.m4: Likewise.
68789         * m4/strsep.m4: Likewise.
68790         * m4/strtod.m4: Likewise.
68791         * m4/strtoimax.m4: Likewise.
68792         * m4/strtok_r.m4: Likewise.
68793         * m4/strtol.m4: Likewise.
68794         * m4/strtoll.m4: Likewise.
68795         * m4/strtoul.m4: Likewise.
68796         * m4/strtoull.m4: Likewise.
68797         * m4/strtoumax.m4: Likewise.
68798         * m4/strverscmp.m4: Likewise.
68799         * m4/threadlib.m4: Likewise.
68800         * m4/timegm.m4: Likewise.
68801         * m4/tm_gmtoff.m4: Likewise.
68802         * m4/tmpdir.m4: Likewise.
68803         * m4/tmpfile.m4: Likewise.
68804         * m4/tzset.m4: Likewise.
68805         * m4/uintmax_t.m4: Likewise.
68806         * m4/unlinkdir.m4: Likewise.
68807         * m4/unlocked-io.m4: Likewise.
68808         * m4/uptime.m4: Likewise.
68809         * m4/userspec.m4: Likewise.
68810         * m4/utimbuf.m4: Likewise.
68811         * m4/utime.m4: Likewise.
68812         * m4/utimes-null.m4: Likewise.
68813         * m4/utimes.m4: Likewise.
68814         * m4/vararrays.m4: Likewise.
68815         * m4/vasnprintf.m4: Likewise.
68816         * m4/vfprintf-posix.m4: Likewise.
68817         * m4/vprintf-posix.m4: Likewise.
68818         * m4/wait-process.m4: Likewise.
68819         * m4/wchar_t.m4: Likewise.
68820         * m4/wint_t.m4: Likewise.
68821         * m4/write-any-file.m4: Likewise.
68822         * m4/yield.m4: Likewise.
68824 2009-01-13  Bruno Haible  <bruno@clisp.org>
68826         Avoid test-copy-file.sh failures when ACL support insufficient.
68827         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
68828         TESTS_ENVIRONMENT.
68829         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
68830         Reported by Jim Meyering.
68832 2009-01-13  Bruno Haible  <bruno@clisp.org>
68834         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
68835         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
68836         * modules/unistdio/u8-printf-parse (Files): Likewise.
68837         * modules/unistdio/u32-printf-parse (Files): Likewise.
68838         * modules/unistdio/ulc-printf-parse (Files): Likewise.
68840 2009-01-13  Simon Josefsson  <simon@josefsson.org>
68842         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
68843         and m4/inttypes_h.m4 too.
68845 2009-01-12  Eric Blake  <ebb9@byu.net>
68847         tests: IRIX 6.2 cc can't compile -0.0 into .data
68848         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
68849         rather than at compile-time.
68850         * tests/test-floorl.c (minus_zero): Likewise.
68851         * tests/test-frexpl.c (minus_zero): Likewise.
68852         * tests/test-isnan.c (minus_zerol): Likewise.
68853         * tests/test-isnanl.h (minus_zero): Likewise.
68854         * tests/test-ldexpl.c (minus_zero): Likewise.
68855         * tests/test-roundl.c (minus_zero): Likewise.
68856         * tests/test-signbit.c (minus_zerol): Likewise.
68857         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
68858         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
68859         * tests/test-truncl.c (minus_zero): Likewise.
68860         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
68861         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
68862         Reported by Tom G. Christensen and Nelson H. F. Beebe.
68864 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
68866         regex: fix glibc bug 9697
68867         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
68868         handling.
68870 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
68872         regex: fix glibc bug 697
68873         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
68874         being NULL also if there are no backreferences.
68876 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
68878         regex: merge glibc changes
68879         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
68880         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
68881         re_string_skip_chars, re_string_reconstruct): Likewise.
68882         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
68884 2009-01-07  Jim Meyering  <meyering@redhat.com>
68886         poll: filter through cppi
68887         * lib/poll.c: Indent cpp directives to reflect nesting.
68889 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
68891         poll: don't return uninitialized
68892         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
68894 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
68896         avoid compile failure on AIX 6.1
68897         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
68898         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
68900 2009-01-04  Jim Meyering  <meyering@redhat.com>
68902         remove duplicate inclusion of <stdio.h>
68903         * tests/test-fprintf-posix.c: Likewise.
68904         * tests/test-printf-posix.c: Likewise.
68905         * tests/test-snprintf-posix.c: Likewise.
68906         * tests/test-sprintf-posix.c: Likewise.
68907         * tests/test-vasprintf-posix.c: Likewise.
68908         * tests/test-vfprintf-posix.c: Likewise.
68909         * tests/test-vprintf-posix.c: Likewise.
68910         * tests/test-vsnprintf-posix.c: Likewise.
68911         * tests/test-vsprintf-posix.c: Likewise.
68913 2009-01-03  Jim Meyering  <meyering@redhat.com>
68915         gnulib-tool: fix sed-based filtering
68916         * gnulib-tool (func_filter_filelist): Remove extra backslash
68917         in sed_fff_filter definition.
68919 2009-01-02  Jim Meyering  <meyering@redhat.com>
68921         strftime: avoid compilation failure on Solaris 2.6
68922         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
68923         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
68924         Don't #define mbrlen or mbsinit, since now they're guaranteed to
68925         be available.  Reported by Tom G. Christensen.  Details in
68926         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
68928 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68929             Bruno Haible  <bruno@clisp.org>
68931         Speed up gnulib-tool by doing more string processing through shell
68932         built-ins.
68933         * gnulib-tool (fast_func_append): New variable.
68934         (func_remove_prefix, func_remove_suffix): New functions.
68935         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
68936         (func_filter_filelist): New function.
68937         (func_get_dependencies): Use func_remove_suffix instead of sed.
68938         (func_get_automake_snippet): Use func_filter_filelist instead of a
68939         subshell and sed invocation.
68941 2009-01-01  Bruno Haible  <bruno@clisp.org>
68943         Fix a security bug.
68944         * gnulib-tool (func_import, import, update): Don't allow the characters
68945         '"', '$', '`', '\' in macro arguments that become part of commands that
68946         are evaluated.
68948 2009-01-01  Bruno Haible  <bruno@clisp.org>
68950         * gnulib-tool (func_reset_sigpipe): Add more comments.
68952 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68954         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
68955         func_emit_tests_Makefile_am, func_import): Abort loops early if we
68956         already know the answer.
68958 2009-01-01  Jim Meyering  <meyering@redhat.com>
68960         * lib/version-etc.c (version_etc_va): Update copyright year.
68962 2008-12-30  Bruno Haible  <bruno@clisp.org>
68964         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
68965         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
68966         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
68968 2008-12-29  Eric Blake  <ebb9@byu.net>
68970         multiarch: avoid autoconf AC_REQUIRE bug
68971         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
68972         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
68973         2.63 and older.
68974         Reported by Bruno Haible, and analyzed in
68975         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
68977 2008-12-29  Bruno Haible  <bruno@clisp.org>
68979         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
68980         files in subdirectories correctly.
68981         Reported by Ralf Wildenhues.
68983 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68985         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
68986         rather than 'join FILE -', for Solaris join.
68988 2008-12-29  Bruno Haible  <bruno@clisp.org>
68990         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
68991         quoting.
68992         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
68993         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
68994         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
68995         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
68996         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
68997         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
68998         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
68999         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
69000         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
69001         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
69002         * m4/nls.m4 (AM_NLS): Likewise.
69003         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
69004         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
69005         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
69006         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
69007         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
69008         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
69009         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
69010         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
69011         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
69012         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
69013         * m4/xsize.m4 (gl_XSIZE): Likewise.
69014         Suggested by Jim Meyering.
69016 2008-11-17  Bruce Korb  <bkorb@gnu.org>
69018         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
69019         * lib/parse-duration.c: use a switch instead of cascading if's.
69021 2008-12-29  Eric Blake  <ebb9@byu.net>
69023         wchar.h: supply WEOF on Irix 5.3
69024         * lib/wchar.in.h (wint_t): Also supply WEOF.
69025         * lib/wctype.in.h (wint_t): Likewise.
69026         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
69027         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
69028         Reported by Tom G. Christensen.
69030 2008-12-26  Bruno Haible  <bruno@clisp.org>
69032         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
69033         i486, i586, i686.
69035 2008-12-26  Bruno Haible  <bruno@clisp.org>
69037         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
69039 2008-12-26  Bruno Haible  <bruno@clisp.org>
69041         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
69042         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
69043         not __STDC_CONSTANT_MACROS.
69044         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
69046 2008-12-25  Bruno Haible  <bruno@clisp.org>
69048         Add support for universal builds to vasnprintf.
69049         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
69050         universal builds, guess no.
69051         * modules/vasnprintf-posix (Depends-on): Add multiarch.
69052         * modules/vasprintf-posix (Depends-on): Likewise.
69053         * modules/fprintf-posix (Depends-on): Likewise.
69054         * modules/vfprintf-posix (Depends-on): Likewise.
69055         * modules/snprintf-posix (Depends-on): Likewise.
69056         * modules/vsnprintf-posix (Depends-on): Likewise.
69057         * modules/sprintf-posix (Depends-on): Likewise.
69058         * modules/vsprintf-posix (Depends-on): Likewise.
69059         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
69060         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
69061         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
69062         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
69063         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
69064         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
69065         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
69067         Add support for universal builds to <inttypes.h>.
69068         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
69069         _SCNu64_PREFIX): In Apple
69070         universal builds, define directly, using _LP64.
69071         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
69072         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
69073         * modules/inttypes (Depends-on): Add multiarch.
69074         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
69076         Add support for universal builds to <stdint.h>.
69077         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
69078         universal builds, define directly, using _LP64.
69079         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
69080         Apple universal builds, don't test for the size and suffix of ptrdiff_t
69081         and size_t.
69082         * modules/stdint (Depends-on): Add multiarch.
69083         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
69085         New module 'multiarch'.
69086         * modules/multiarch: New file.
69087         * m4/multiarch.m4: New file.
69089 2008-12-25  Bruno Haible  <bruno@clisp.org>
69091         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
69093 2008-12-25  Bruno Haible  <bruno@clisp.org>
69095         * modules/btowc (License): Relicense under LGPLv2+.
69096         * modules/mbsinit (License): Likewise.
69097         * modules/mbrtowc (License): Likewise.
69098         * modules/wcrtomb (License): Likewise.
69099         * modules/streq (License): Likewise.
69100         Reported by David Lutterkort <lutter@redhat.com>.
69102 2008-12-23  Bruno Haible  <bruno@clisp.org>
69104         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
69106 2008-12-23  Bruno Haible  <bruno@clisp.org>
69108         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
69109         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
69110         GETADDRINFO_LIB, not in LIBS.
69111         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
69112         * modules/canon-host (Link): Likewise.
69113         * NEWS: Mention the change.
69114         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
69115         GETADDRINFO_LIB.
69117 2008-12-22  Bruno Haible  <bruno@clisp.org>
69119         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
69120         * doc/posix-functions/iswalpha_l.texi: Likewise.
69121         * doc/posix-functions/iswblank_l.texi: Likewise.
69122         * doc/posix-functions/iswcntrl_l.texi: Likewise.
69123         * doc/posix-functions/iswctype_l.texi: Likewise.
69124         * doc/posix-functions/iswdigit_l.texi: Likewise.
69125         * doc/posix-functions/iswgraph_l.texi: Likewise.
69126         * doc/posix-functions/iswlower_l.texi: Likewise.
69127         * doc/posix-functions/iswprint_l.texi: Likewise.
69128         * doc/posix-functions/iswpunct_l.texi: Likewise.
69129         * doc/posix-functions/iswspace_l.texi: Likewise.
69130         * doc/posix-functions/iswupper_l.texi: Likewise.
69131         * doc/posix-functions/iswxdigit_l.texi: Likewise.
69132         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
69133         * doc/posix-functions/open_wmemstream.texi: Likewise.
69134         * doc/posix-functions/swscanf.texi: Likewise.
69135         * doc/posix-functions/towctrans_l.texi: Likewise.
69136         * doc/posix-functions/towlower.texi: Likewise.
69137         * doc/posix-functions/towlower_l.texi: Likewise.
69138         * doc/posix-functions/towupper.texi: Likewise.
69139         * doc/posix-functions/towupper_l.texi: Likewise.
69140         * doc/posix-functions/vfwprintf.texi: Likewise.
69141         * doc/posix-functions/vfwscanf.texi: Likewise.
69142         * doc/posix-functions/vswscanf.texi: Likewise.
69143         * doc/posix-functions/vwprintf.texi: Likewise.
69144         * doc/posix-functions/vwscanf.texi: Likewise.
69145         * doc/posix-functions/wcpcpy.texi: Likewise.
69146         * doc/posix-functions/wcpncpy.texi: Likewise.
69147         * doc/posix-functions/wcscasecmp.texi: Likewise.
69148         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
69149         * doc/posix-functions/wcscoll_l.texi: Likewise.
69150         * doc/posix-functions/wcsdup.texi: Likewise.
69151         * doc/posix-functions/wcsncasecmp.texi: Likewise.
69152         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
69153         * doc/posix-functions/wcsnlen.texi: Likewise.
69154         * doc/posix-functions/wcsnrtombs.texi: Likewise.
69155         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
69156         * doc/posix-functions/wctrans_l.texi: Likewise.
69157         * doc/posix-functions/wctype_l.texi: Likewise.
69158         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
69159         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
69160         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
69161         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
69162         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
69163         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
69164         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
69165         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
69166         * doc/glibc-functions/wcschrnul.texi: Likewise.
69167         * doc/glibc-functions/wcsftime_l.texi: Likewise.
69168         * doc/glibc-functions/wcstod_l.texi: Likewise.
69169         * doc/glibc-functions/wcstof_l.texi: Likewise.
69170         * doc/glibc-functions/wcstol_l.texi: Likewise.
69171         * doc/glibc-functions/wcstold_l.texi: Likewise.
69172         * doc/glibc-functions/wcstoll_l.texi: Likewise.
69173         * doc/glibc-functions/wcstoq.texi: Likewise.
69174         * doc/glibc-functions/wcstoul_l.texi: Likewise.
69175         * doc/glibc-functions/wcstoull_l.texi: Likewise.
69176         * doc/glibc-functions/wcstouq.texi: Likewise.
69177         * doc/glibc-functions/wmempcpy.texi: Likewise.
69179 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
69180             Eric Blake  <ebb9@byu.net>
69181             Paolo Bonzini  <bonzini@gnu.org>
69182             Bruno Haible  <bruno@clisp.org>
69184         Make c-stack work on Haiku.
69185         * lib/c-stack.c (SA_ONSTACK): Define fallback.
69186         (c_stack_action): Use SA_ONSTACK flag.
69188 2008-12-22  Bruno Haible  <bruno@clisp.org>
69190         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
69192 2008-12-22  Bruno Haible  <bruno@clisp.org>
69194         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
69195         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
69196         being overridden.
69197         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
69198         New macros.
69199         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
69200         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
69201         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
69202         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
69204 2008-12-22  Bruno Haible  <bruno@clisp.org>
69206         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
69207         from test code.
69209 2008-12-22  Eric Blake  <ebb9@byu.net>
69211         Avoid gcc warnings on cygwin.
69212         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
69213         Avoid unused variable.
69214         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
69215         Likewise.
69217 2008-12-22  Bruno Haible  <bruno@clisp.org>
69219         Remove HAVE_MBRTOWC conditionals.
69220         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
69221         (mbscasecmp): Assume mbrtowc function.
69222         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
69223         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
69224         * lib/mbschr.c: Include mbuiter.h unconditionally.
69225         (mbschr): Assume mbrtowc function.
69226         * lib/mbscspn.c: Include mbuiter.h unconditionally.
69227         (mbscspn): Assume mbrtowc function.
69228         * lib/mbslen.c: Include mbuiter.h unconditionally.
69229         (mbslen): Assume mbrtowc function.
69230         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
69231         (mbsncasecmp): Assume mbrtowc function.
69232         * lib/mbsnlen.c: Include mbiter.h unconditionally.
69233         (mbsnlen): Assume mbrtowc function.
69234         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
69235         (mbspbrk): Assume mbrtowc function.
69236         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
69237         (mbspcasecmp): Assume mbrtowc function.
69238         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
69239         (mbsrchr): Assume mbrtowc function.
69240         * lib/mbssep.c: Include mbuiter.h unconditionally.
69241         (mbssep): Assume mbrtowc function.
69242         * lib/mbsspn.c: Include mbuiter.h unconditionally.
69243         (mbsspn): Assume mbrtowc function.
69244         * lib/mbsstr.c: Include mbuiter.h unconditionally.
69245         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
69246         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
69247         (mbstok_r): Assume mbrtowc function.
69248         * lib/propername.c: Include mbuiter.h unconditionally.
69249         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
69250         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
69251         (trim2): Assume mbrtowc function.
69252         * lib/mbswidth.c (mbsinit): Remove fallback definition.
69253         (mbsnwidth): Assume mbrtowc function.
69254         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
69255         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
69256         fallback definitions.
69257         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
69259 2008-12-22  Bruno Haible  <bruno@clisp.org>
69261         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
69263 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
69265         * modules/regex: Request emulations for the mb*/wc* functions we need.
69266         * m4/regex.m4: Don't look for those functions here.
69267         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
69269 2008-12-22  Bruno Haible  <bruno@clisp.org>
69271         * modules/fnmatch (Depends-on): Remove duplicated dependency.
69273 2008-12-21  Bruno Haible  <bruno@clisp.org>
69275         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
69276         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
69277         (Include): Remove conditionalization.
69278         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
69279         (Include): Remove conditionalization.
69280         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
69281         (Include): Remove conditionalization.
69282         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
69283         * m4/mbfile.m4 (gl_MBFILE): Likewise.
69284         * NEWS: Mention the change.
69285         Reported by Alan Hourihane <alanh@fairlite.co.uk>
69286         via Sergey Poznyakoff <gray@gnu.org.ua>.
69288 2008-12-21  Bruno Haible  <bruno@clisp.org>
69290         * MODULES.html.sh (Extended multibyte and wide character utilities
69291         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
69292         wcrtomb, wcsrtombs.
69293         (Support for systems lacking POSIX:2008): Add accept, bind, close,
69294         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
69295         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
69296         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
69298 2008-12-21  Bruno Haible  <bruno@clisp.org>
69300         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
69302 2008-12-21  Bruno Haible  <bruno@clisp.org>
69304         * modules/wcsnrtombs-tests: New file.
69305         * tests/test-wcsnrtombs1.sh: New file.
69306         * tests/test-wcsnrtombs2.sh: New file.
69307         * tests/test-wcsnrtombs3.sh: New file.
69308         * tests/test-wcsnrtombs4.sh: New file.
69309         * tests/test-wcsnrtombs.c: New file.
69311         New module 'wcsnrtombs'.
69312         * lib/wchar.in.h (wcsnrtombs): New declaration.
69313         * lib/wcsnrtombs.c: New file.
69314         * lib/wcsrtombs-state.c: New file.
69315         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
69316         (internal_state): Remove variable.
69317         * m4/wcsnrtombs.m4: New file.
69318         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
69319         compilation units.
69320         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
69321         HAVE_WCSNRTOMBS.
69322         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
69323         HAVE_WCSNRTOMBS.
69324         * modules/wcsnrtombs: New file.
69325         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
69326         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
69328 2008-12-21  Bruno Haible  <bruno@clisp.org>
69330         * modules/wcsrtombs-tests: New file.
69331         * tests/test-wcsrtombs1.sh: New file.
69332         * tests/test-wcsrtombs2.sh: New file.
69333         * tests/test-wcsrtombs3.sh: New file.
69334         * tests/test-wcsrtombs4.sh: New file.
69335         * tests/test-wcsrtombs.c: New file.
69337         New module 'wcsrtombs'.
69338         * lib/wchar.in.h (wcsrtombs): New declaration.
69339         * lib/wcsrtombs.c: New file.
69340         * m4/wcsrtombs.m4: New file.
69341         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
69342         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
69343         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
69344         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
69345         * modules/wcsrtombs: New file.
69346         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
69347         bugs.
69349 2008-12-21  Bruno Haible  <bruno@clisp.org>
69351         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
69352         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
69353         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
69354         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
69355         if not correct.
69356         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
69357         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
69358         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
69359         m4/locale-zh.m4, m4/codeset.m4.
69360         * doc/posix-functions/wcrtomb.texi: Document the bug.
69362 2008-12-21  Bruno Haible  <bruno@clisp.org>
69364         Work around a btowc() bug on IRIX 6.5.
69365         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
69366         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
69367         REPLACE_WTOBC if not.
69368         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
69369         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
69370         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
69372 2008-12-21  Bruno Haible  <bruno@clisp.org>
69374         * modules/wcrtomb-tests: New file.
69375         * tests/test-wcrtomb.sh: New file.
69376         * tests/test-wcrtomb.c: New file.
69378         New module 'wcrtomb'.
69379         * lib/wchar.in.h (wcrtomb): New declaration.
69380         * lib/wcrtomb.c: New file.
69381         * m4/wcrtomb.m4: New file.
69382         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
69383         HAVE_WCRTOMB.
69384         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
69385         HAVE_WCRTOMB.
69386         * modules/wcrtomb: New file.
69387         * doc/posix-functions/wcrtomb.texi: Mention the new module.
69389 2008-12-21  Bruno Haible  <bruno@clisp.org>
69391         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
69392         * modules/mbsrtowcs (Files): Likewise.
69393         * modules/wctob (Files): Likewise.
69394         * modules/c-strcase-tests (Files): Likewise.
69395         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
69396         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
69397         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
69398         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
69399         * modules/vasnprintf-posix-tests (Files): Likewise.
69401 2008-12-21  William Pursell  <bill.pursell@gmail.com>
69403         gitlog-to-changelog: pass all command-line arguments to git-log
69404         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
69405         it is sometimes convenient to filter the commits in various ways.
69406         gitlog-to-changelog only allows --since to specify a start date,
69407         but git-log itself supports many other filtering mechanisms.
69408         At the moment, I want to filter by branch name.  Rather than
69409         adding a --branch option to gitlog-to-changelog, it seems more
69410         flexible to simply pass all options directly to git-log and let
69411         git do the work.  Notice that this effectively makes --since a
69412         redundant option for gitlog-to-changelog, but removing it would
69413         require current usage to change since calls would then require
69414         an additional '--'.
69416 2008-12-21  Bruno Haible  <bruno@clisp.org>
69418         * modules/mbsnrtowcs-tests: New file.
69419         * tests/test-mbsnrtowcs1.sh: New file.
69420         * tests/test-mbsnrtowcs2.sh: New file.
69421         * tests/test-mbsnrtowcs3.sh: New file.
69422         * tests/test-mbsnrtowcs4.sh: New file.
69423         * tests/test-mbsnrtowcs.c: New file.
69425         New module 'mbsnrtowcs'.
69426         * lib/wchar.in.h (mbsnrtowcs): New declaration.
69427         * lib/mbsnrtowcs.c: New file.
69428         * lib/mbsrtowcs-state.c: New file.
69429         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
69430         (internal_state): Remove variable.
69431         * m4/mbsnrtowcs.m4: New file.
69432         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
69433         compilation units.
69434         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
69435         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
69436         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
69437         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
69438         * modules/mbsnrtowcs: New file.
69439         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
69440         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
69441         portability problem.
69443 2008-12-21  Bruno Haible  <bruno@clisp.org>
69445         Work around mbsrtowcs bug.
69446         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
69447         (gl_FUNC_MBSRTOWCS): Invoke it.
69448         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
69449         m4/locale-zh.m4.
69450         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
69452 2008-12-21  Bruno Haible  <bruno@clisp.org>
69454         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
69456 2008-12-21  Bruno Haible  <bruno@clisp.org>
69458         Update doc for AIX.
69459         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
69460         16-bit wchar_t type.
69461         * doc/posix-functions/btowc.texi: Likewise.
69462         * doc/posix-functions/fgetwc.texi: Likewise.
69463         * doc/posix-functions/fgetws.texi: Likewise.
69464         * doc/posix-functions/fputwc.texi: Likewise.
69465         * doc/posix-functions/fputws.texi: Likewise.
69466         * doc/posix-functions/fwide.texi: Likewise.
69467         * doc/posix-functions/fwprintf.texi: Likewise.
69468         * doc/posix-functions/fwscanf.texi: Likewise.
69469         * doc/posix-functions/getwchar.texi: Likewise.
69470         * doc/posix-functions/getwc.texi: Likewise.
69471         * doc/posix-functions/iswalnum.texi: Likewise.
69472         * doc/posix-functions/iswalpha.texi: Likewise.
69473         * doc/posix-functions/iswblank.texi: Likewise.
69474         * doc/posix-functions/iswcntrl.texi: Likewise.
69475         * doc/posix-functions/iswctype.texi: Likewise.
69476         * doc/posix-functions/iswdigit.texi: Likewise.
69477         * doc/posix-functions/iswgraph.texi: Likewise.
69478         * doc/posix-functions/iswlower.texi: Likewise.
69479         * doc/posix-functions/iswprint.texi: Likewise.
69480         * doc/posix-functions/iswpunct.texi: Likewise.
69481         * doc/posix-functions/iswspace.texi: Likewise.
69482         * doc/posix-functions/iswupper.texi: Likewise.
69483         * doc/posix-functions/iswxdigit.texi: Likewise.
69484         * doc/posix-functions/mbrtowc.texi: Likewise.
69485         * doc/posix-functions/mbsrtowcs.texi: Likewise.
69486         * doc/posix-functions/mbstowcs.texi: Likewise.
69487         * doc/posix-functions/mbtowc.texi: Likewise.
69488         * doc/posix-functions/putwchar.texi: Likewise.
69489         * doc/posix-functions/putwc.texi: Likewise.
69490         * doc/posix-functions/swprintf.texi: Likewise.
69491         * doc/posix-functions/tolower.texi: Likewise.
69492         * doc/posix-functions/toupper.texi: Likewise.
69493         * doc/posix-functions/towctrans.texi: Likewise.
69494         * doc/posix-functions/ungetwc.texi: Likewise.
69495         * doc/posix-functions/vswprintf.texi: Likewise.
69496         * doc/posix-functions/wcrtomb.texi: Likewise.
69497         * doc/posix-functions/wcscat.texi: Likewise.
69498         * doc/posix-functions/wcschr.texi: Likewise.
69499         * doc/posix-functions/wcscmp.texi: Likewise.
69500         * doc/posix-functions/wcscoll.texi: Likewise.
69501         * doc/posix-functions/wcscpy.texi: Likewise.
69502         * doc/posix-functions/wcscspn.texi: Likewise.
69503         * doc/posix-functions/wcsftime.texi: Likewise.
69504         * doc/posix-functions/wcslen.texi: Likewise.
69505         * doc/posix-functions/wcsncat.texi: Likewise.
69506         * doc/posix-functions/wcsncmp.texi: Likewise.
69507         * doc/posix-functions/wcsncpy.texi: Likewise.
69508         * doc/posix-functions/wcspbrk.texi: Likewise.
69509         * doc/posix-functions/wcsrchr.texi: Likewise.
69510         * doc/posix-functions/wcsrtombs.texi: Likewise.
69511         * doc/posix-functions/wcsspn.texi: Likewise.
69512         * doc/posix-functions/wcsstr.texi: Likewise.
69513         * doc/posix-functions/wcstod.texi: Likewise.
69514         * doc/posix-functions/wcstof.texi: Likewise.
69515         * doc/posix-functions/wcstoimax.texi: Likewise.
69516         * doc/posix-functions/wcstok.texi: Likewise.
69517         * doc/posix-functions/wcstold.texi: Likewise.
69518         * doc/posix-functions/wcstoll.texi: Likewise.
69519         * doc/posix-functions/wcstol.texi: Likewise.
69520         * doc/posix-functions/wcstombs.texi: Likewise.
69521         * doc/posix-functions/wcstoull.texi: Likewise.
69522         * doc/posix-functions/wcstoul.texi: Likewise.
69523         * doc/posix-functions/wcstoumax.texi: Likewise.
69524         * doc/posix-functions/wcswidth.texi: Likewise.
69525         * doc/posix-functions/wcsxfrm.texi: Likewise.
69526         * doc/posix-functions/wctob.texi: Likewise.
69527         * doc/posix-functions/wctomb.texi: Likewise.
69528         * doc/posix-functions/wctrans.texi: Likewise.
69529         * doc/posix-functions/wctype.texi: Likewise.
69530         * doc/posix-functions/wcwidth.texi: Likewise.
69531         * doc/posix-functions/wmemchr.texi: Likewise.
69532         * doc/posix-functions/wmemcmp.texi: Likewise.
69533         * doc/posix-functions/wmemcpy.texi: Likewise.
69534         * doc/posix-functions/wmemmove.texi: Likewise.
69535         * doc/posix-functions/wmemset.texi: Likewise.
69536         * doc/posix-functions/wprintf.texi: Likewise.
69537         * doc/posix-functions/wscanf.texi: Likewise.
69539 2008-12-21  Bruno Haible  <bruno@clisp.org>
69541         Update doc for HP-UX 11.11.
69542         * doc/posix-functions/btowc.texi: Clarify that the function is missing
69543         in HP-UX version 11.00, not in all versions of HP-UX 11.
69544         * doc/posix-functions/fwide.texi: Likewise.
69545         * doc/posix-functions/fwprintf.texi: Likewise.
69546         * doc/posix-functions/fwscanf.texi: Likewise.
69547         * doc/posix-functions/inet_ntop.texi: Likewise.
69548         * doc/posix-functions/inet_pton.texi: Likewise.
69549         * doc/posix-functions/mbrlen.texi: Likewise.
69550         * doc/posix-functions/mbrtowc.texi: Likewise.
69551         * doc/posix-functions/mbsinit.texi: Likewise.
69552         * doc/posix-functions/mbsrtowcs.texi: Likewise.
69553         * doc/posix-functions/swprintf.texi: Likewise.
69554         * doc/posix-functions/swscanf.texi: Likewise.
69555         * doc/posix-functions/towctrans.texi: Likewise.
69556         * doc/posix-functions/vfwprintf.texi: Likewise.
69557         * doc/posix-functions/vswprintf.texi: Likewise.
69558         * doc/posix-functions/vwprintf.texi: Likewise.
69559         * doc/posix-functions/wcrtomb.texi: Likewise.
69560         * doc/posix-functions/wcsrtombs.texi: Likewise.
69561         * doc/posix-functions/wcsstr.texi: Likewise.
69562         * doc/posix-functions/wctob.texi: Likewise.
69563         * doc/posix-functions/wctrans.texi: Likewise.
69564         * doc/posix-functions/wmemchr.texi: Likewise.
69565         * doc/posix-functions/wmemcmp.texi: Likewise.
69566         * doc/posix-functions/wmemcpy.texi: Likewise.
69567         * doc/posix-functions/wmemmove.texi: Likewise.
69568         * doc/posix-functions/wmemset.texi: Likewise.
69569         * doc/posix-functions/wprintf.texi: Likewise.
69570         * doc/posix-functions/wscanf.texi: Likewise.
69572 2008-12-21  Bruno Haible  <bruno@clisp.org>
69574         Work around a portability problem.
69575         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
69576         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
69578 2008-12-20  Bruno Haible  <bruno@clisp.org>
69580         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
69581         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
69582         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
69583         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
69584         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
69586         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
69587         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
69588         set.
69589         (GNULIB_defined_mbstate_t): New macro.
69590         (mbsinit): Redefine if REPLACE_MBSINIT is set.
69591         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
69592         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
69593         reuses the system's mbrtowc function but works around the bugs.
69594         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
69595         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
69596         macros.
69597         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
69598         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
69599         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
69600         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
69601         REPLACE_MBSINIT if mbsinit needs to be overridden.
69602         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
69603         REPLACE_MBSINIT, REPLACE_MBRTOWC.
69604         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
69605         REPLACE_MBSINIT, REPLACE_MBRTOWC.
69606         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
69607         m4/locale-zh.m4.
69608         (Depends): Add mbsinit.
69609         * modules/mbsinit (Depends): Add mbrtowc.
69610         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
69612 2008-12-20  Bruno Haible  <bruno@clisp.org>
69614         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
69615         so that there are no conversion errors on AIX.
69616         * tests/test-mbsrtowcs.c (main): LIkewise.
69618 2008-12-20  Bruno Haible  <bruno@clisp.org>
69620         Work around wctob bug on Solaris <= 9.
69621         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
69622         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
69623         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
69624         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
69625         * modules/wctob (Files): Add m4/locale-fr.m4.
69626         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
69628 2008-12-20  Bruno Haible  <bruno@clisp.org>
69630         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
69631         /dev/null.
69632         * tests/test-select-in.sh: Likewise.
69633         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
69635 2008-12-20  Bruno Haible  <bruno@clisp.org>
69637         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
69638         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
69639         Cygwin 1.5.x.
69641 2008-12-20  Bruno Haible  <bruno@clisp.org>
69643         Ensure mbstate_t is defined on HP-UX 11.11.
69644         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
69645         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
69646         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
69647         AC_USE_SYSTEM_EXTENSIONS.
69648         * modules/fnmatch (Depends-on): Add extensions.
69649         * modules/mbrlen (Depends-on): Likewise.
69650         * modules/mbrtowc (Depends-on): Likewise.
69651         * modules/mbsinit (Depends-on): Likewise.
69652         * modules/mbsrtowcs (Depends-on): Likewise.
69653         * modules/mbswidth (Depends-on): Likewise.
69654         * modules/quotearg (Depends-on): Likewise.
69655         * modules/strftime (Depends-on): Likewise.
69657 2008-12-20  Bruno Haible  <bruno@clisp.org>
69659         Ensure wctob is declared on IRIX 6.5.
69660         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
69661         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
69662         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
69663         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
69664         of HAVE_WCTOB.
69665         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
69666         HAVE_WCTOB.
69667         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
69669 2008-12-19  Bruno Haible  <bruno@clisp.org>
69671         * modules/mbsrtowcs-tests: New file.
69672         * tests/test-mbsrtowcs1.sh: New file.
69673         * tests/test-mbsrtowcs2.sh: New file.
69674         * tests/test-mbsrtowcs3.sh: New file.
69675         * tests/test-mbsrtowcs4.sh: New file.
69676         * tests/test-mbsrtowcs.c: New file.
69678         New module 'mbsrtowcs'.
69679         * lib/wchar.in.h (mbsrtowcs): New declaration.
69680         * lib/mbsrtowcs.c: New file.
69681         * m4/mbsrtowcs.m4: New file.
69682         * modules/mbsrtowcs: New file.
69683         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
69684         HAVE_MBSRTOWCS.
69685         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
69686         HAVE_MBSRTOWCS.
69687         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
69689 2008-12-19  Bruno Haible  <bruno@clisp.org>
69691         New module 'mbrlen'.
69692         * lib/wchar.in.h (mbrlen): New declaration.
69693         * lib/mbrlen.c: New file.
69694         * m4/mbrlen.m4: New file.
69695         * modules/mbrlen: New file.
69696         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
69697         HAVE_MBRLEN.
69698         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
69699         HAVE_MBRLEN.
69700         * doc/posix-functions/mbrlen.texi: Document the new module.
69702 2008-12-19  Bruno Haible  <bruno@clisp.org>
69704         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
69705         * modules/mbrtowc (Depends-on): Add verify.
69706         Suggested by Paul Eggert.
69708 2008-12-18  Bruno Haible  <bruno@clisp.org>
69710         * modules/mbsinit-tests: New file.
69711         * tests/test-mbsinit.sh: New file.
69712         * tests/test-mbsinit.c: New file.
69714 2008-12-18  Bruno Haible  <bruno@clisp.org>
69716         * modules/mbrtowc-tests: New file.
69717         * tests/test-mbrtowc1.sh: New file.
69718         * tests/test-mbrtowc2.sh: New file.
69719         * tests/test-mbrtowc3.sh: New file.
69720         * tests/test-mbrtowc4.sh: New file.
69721         * tests/test-mbrtowc.c: New file.
69723         New module 'mbrtowc'.
69724         * lib/wchar.in.h (mbstate_t): Override when the system does not have
69725         mbsinit and mbrtowc.
69726         (mbrtowc): New declaration.
69727         * lib/mbrtowc.c: New file.
69728         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
69729         * modules/mbrtowc: New file.
69730         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
69731         HAVE_MBRTOWC.
69732         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
69733         HAVE_MBRTOWC.
69734         * doc/posix-functions/mbrtowc.texi: Document the new module.
69736 2008-12-18  Bruno Haible  <bruno@clisp.org>
69738         New module 'wctob'.
69739         * lib/wchar.in.h (wctob): New declaration.
69740         * lib/wctob.c: New file.
69741         * m4/wctob.m4: New file.
69742         * modules/wctob: New file.
69743         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
69744         HAVE_WCTOB.
69745         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
69746         * doc/posix-functions/wctob.texi: Document the new module.
69748 2008-12-18  Bruno Haible  <bruno@clisp.org>
69750         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
69751         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
69753 2008-12-18  Simon Josefsson  <simon@josefsson.org>
69755         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
69756         G. Christensen" <tgc@jupiterrise.com>.
69758         * lib/flock.c: Need to include errno.h.  Reported by "Tom
69759         G. Christensen" <tgc@jupiterrise.com>.
69761         * lib/flock.c: Need to include string.h.  Reported by "Tom
69762         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
69763         <ebb9@byu.net>.
69765 2008-12-18  Bruno Haible  <bruno@clisp.org>
69767         * m4/locale-ja.m4: New file, from GNU gettext.
69769 2008-12-17  Bruno Haible  <bruno@clisp.org>
69771         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
69772         Suggested by Eric Blake.
69774 2008-12-17  Bruno Haible  <bruno@clisp.org>
69776         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
69778 2008-12-17  Bruno Haible  <bruno@clisp.org>
69780         * lib/mbsinit.c: Include verify.h. Verify an assumption.
69781         * modules/mbsinit (Depends-on): Add verify.
69782         Suggested by Paul Eggert.
69784 2008-12-17  Bruno Haible  <bruno@clisp.org>
69786         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
69787         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
69788         gl_FUNC_MBRTOWC.
69789         * m4/mbiter.m4 (gl_MBITER): LIkewise.
69790         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
69791         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
69792         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
69793         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
69794         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
69795         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
69796         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
69797         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
69798         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
69799         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
69800         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
69801         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
69802         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
69803         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
69804         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
69805         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
69806         * modules/trim (configure.ac): Likewise.
69808 2008-12-17  Bruno Haible  <bruno@clisp.org>
69810         * modules/btowc-tests: New file.
69811         * tests/test-btowc1.sh: New file.
69812         * tests/test-btowc2.sh: New file.
69813         * tests/test-btowc.c: New file.
69815         New module 'btowc'.
69816         * lib/wchar.in.h (btowc): New declaration.
69817         * lib/btowc.c: New file.
69818         * m4/btowc.m4: New file.
69819         * modules/btowc: New file.
69820         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
69821         HAVE_BTOWC.
69822         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
69823         * doc/posix-functions/btowc.texi: Document the new module.
69825 2008-12-17  Bruno Haible  <bruno@clisp.org>
69827         New module 'mbsinit'.
69828         * lib/wchar.in.h (mbsinit): New declaration.
69829         * lib/mbsinit.c: New file.
69830         * m4/mbsinit.m4: New file.
69831         * modules/mbsinit: New file.
69832         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
69833         HAVE_MBSINIT.
69834         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
69835         HAVE_MBSINIT.
69836         * doc/posix-functions/mbsinit.texi: Document the new module.
69838 2008-12-16  Bruno Haible  <bruno@clisp.org>
69840         * lib/unistd.in.h: Add comment.
69841         * tests/test-environ.c: Don't include <stdlib.h>.
69843 2008-12-16  Bruno Haible  <bruno@clisp.org>
69845         * lib/parse-duration.h (parse_duration): Document return value
69846         convention.
69847         * lib/parse-duration.c: Include specification header first. Add
69848         comments.
69849         (_): Remove macro.
69850         (parse_year_month_day, parse_hour_minute_second): Move side effects
69851         outside of strchr call.
69852         (parse_non_iso8601): Move side effects outside of isspace call.
69853         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
69854         call.
69856 2008-12-16  Bruno Haible  <bruno@clisp.org>
69858         * tests/test-parse-duration.sh: Produce no output when the test
69859         succeeds.
69861 2008-12-16  Bruno Haible  <bruno@clisp.org>
69863         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
69864         expressions.
69866 2008-12-15  Bruno Haible  <bruno@clisp.org>
69868         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
69869         * doc/glibc-functions/flistxattr.texi: Likewise.
69870         * doc/glibc-functions/fopencookie.texi: Likewise.
69871         * doc/glibc-functions/fremovexattr.texi: Likewise.
69872         * doc/glibc-functions/fsetxattr.texi: Likewise.
69873         * doc/glibc-functions/getxattr.texi: Likewise.
69874         * doc/glibc-functions/lgetxattr.texi: Likewise.
69875         * doc/glibc-functions/listxattr.texi: Likewise.
69876         * doc/glibc-functions/llistxattr.texi: Likewise.
69877         * doc/glibc-functions/lremovexattr.texi: Likewise.
69878         * doc/glibc-functions/lsetxattr.texi: Likewise.
69879         * doc/glibc-functions/removexattr.texi: Likewise.
69880         * doc/glibc-functions/setxattr.texi: Likewise.
69881         * doc/posix-functions/open_memstream.texi: Likewise.
69883 2008-12-15  Eric Blake  <ebb9@byu.net>
69885         Update doc for cygwin 1.7.
69886         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
69887         functions.
69888         * doc/posix-functions/fchmodat.texi: Likewise.
69889         * doc/posix-functions/fchownat.texi: Likewise.
69890         * doc/posix-functions/fdopendir.texi: Likewise.
69891         * doc/posix-functions/fmemopen.texi: Likewise.
69892         * doc/posix-functions/freeaddrinfo.texi: Likewise.
69893         * doc/posix-functions/fstatat.texi: Likewise.
69894         * doc/posix-functions/futimens.texi: Likewise.
69895         * doc/posix-functions/gai_strerror.texi: Likewise.
69896         * doc/posix-functions/getaddrinfo.texi: Likewise.
69897         * doc/posix-functions/getnameinfo.texi: Likewise.
69898         * doc/posix-functions/if_freenameindex.texi: Likewise.
69899         * doc/posix-functions/if_indextoname.texi: Likewise.
69900         * doc/posix-functions/if_nameindex.texi: Likewise.
69901         * doc/posix-functions/if_nametoindex.texi: Likewise.
69902         * doc/posix-functions/insque.texi: Likewise.
69903         * doc/posix-functions/linkat.texi: Likewise.
69904         * doc/posix-functions/llrint.texi: Likewise.
69905         * doc/posix-functions/llrintf.texi: Likewise.
69906         * doc/posix-functions/llrintl.texi: Likewise.
69907         * doc/posix-functions/lockf.texi: Likewise.
69908         * doc/posix-functions/lrintl.texi: Likewise.
69909         * doc/posix-functions/mkdirat.texi: Likewise.
69910         * doc/posix-functions/mkfifoat.texi: Likewise.
69911         * doc/posix-functions/mknodat.texi: Likewise.
69912         * doc/posix-functions/mq_close.texi: Likewise.
69913         * doc/posix-functions/mq_getattr.texi: Likewise.
69914         * doc/posix-functions/mq_notify.texi: Likewise.
69915         * doc/posix-functions/mq_open.texi: Likewise.
69916         * doc/posix-functions/mq_receive.texi: Likewise.
69917         * doc/posix-functions/mq_send.texi: Likewise.
69918         * doc/posix-functions/mq_setattr.texi: Likewise.
69919         * doc/posix-functions/mq_timedreceive.texi: Likewise.
69920         * doc/posix-functions/mq_timedsend.texi: Likewise.
69921         * doc/posix-functions/mq_unlink.texi: Likewise.
69922         * doc/posix-functions/open_memstream.texi: Likewise.
69923         * doc/posix-functions/openat.texi: Likewise.
69924         * doc/posix-functions/posix_fadvise.texi: Likewise.
69925         * doc/posix-functions/posix_fallocate.texi: Likewise.
69926         * doc/posix-functions/posix_madvise.texi: Likewise.
69927         * doc/posix-functions/posix_memalign.texi: Likewise.
69928         * doc/posix-functions/posix_openpt.texi: Likewise.
69929         * doc/posix-functions/readlinkat.texi: Likewise.
69930         * doc/posix-functions/remque.texi: Likewise.
69931         * doc/posix-functions/renameat.texi: Likewise.
69932         * doc/posix-functions/rintl.texi: Likewise.
69933         * doc/posix-functions/sem_unlink.texi: Likewise.
69934         * doc/posix-functions/shm_open.texi: Likewise.
69935         * doc/posix-functions/shm_unlink.texi: Likewise.
69936         * doc/posix-functions/signgam.texi: Likewise.
69937         * doc/posix-functions/sigset.texi: Likewise.
69938         * doc/posix-functions/stpcpy.texi: Likewise.
69939         * doc/posix-functions/stpncpy.texi: Likewise.
69940         * doc/posix-functions/strerror.texi: Likewise.
69941         * doc/posix-functions/strtod.texi: Likewise.
69942         * doc/posix-functions/symlinkat.texi: Likewise.
69943         * doc/posix-functions/unlinkat.texi: Likewise.
69944         * doc/posix-functions/utimensat.texi: Likewise.
69945         * doc/glibc-functions/bindresvport.texi: Likewise.
69946         * doc/glibc-functions/dn_expand.texi: Likewise.
69947         * doc/glibc-functions/exp10.texi: Likewise.
69948         * doc/glibc-functions/exp10f.texi: Likewise.
69949         * doc/glibc-functions/fgetxattr.texi: Likewise.
69950         * doc/glibc-functions/flistxattr.texi: Likewise.
69951         * doc/glibc-functions/fopencookie.texi: Likewise.
69952         * doc/glibc-functions/freeifaddrs.texi: Likewise.
69953         * doc/glibc-functions/fremovexattr.texi: Likewise.
69954         * doc/glibc-functions/fsetxattr.texi: Likewise.
69955         * doc/glibc-functions/getifaddrs.texi: Likewise.
69956         * doc/glibc-functions/getxattr.texi: Likewise.
69957         * doc/glibc-functions/lgetxattr.texi: Likewise.
69958         * doc/glibc-functions/listxattr.texi: Likewise.
69959         * doc/glibc-functions/llistxattr.texi: Likewise.
69960         * doc/glibc-functions/lremovexattr.texi: Likewise.
69961         * doc/glibc-functions/lsetxattr.texi: Likewise.
69962         * doc/glibc-functions/pow10.texi: Likewise.
69963         * doc/glibc-functions/pow10f.texi: Likewise.
69964         * doc/glibc-functions/rcmd_af.texi: Likewise.
69965         * doc/glibc-functions/removexattr.texi: Likewise.
69966         * doc/glibc-functions/res_init.texi: Likewise.
69967         * doc/glibc-functions/res_mkquery.texi: Likewise.
69968         * doc/glibc-functions/res_query.texi: Likewise.
69969         * doc/glibc-functions/res_querydomain.texi: Likewise.
69970         * doc/glibc-functions/res_send.texi: Likewise.
69971         * doc/glibc-functions/rresvport_af.texi: Likewise.
69972         * doc/glibc-functions/setxattr.texi: Likewise.
69973         * doc/glibc-functions/strcasestr.texi: Likewise.
69975 2008-12-15  Bruno Haible  <bruno@clisp.org>
69977         Fix compilation error on OSF/1 4.0.
69978         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
69979         <sys/time.h>, simply delegate to the system header.
69980         Reported by Daniel Richard G. <oss@teragram.com>.
69982 2008-12-15  Bruno Haible  <bruno@clisp.org>
69984         * doc/posix-functions/openat.texi: Mention the 'openat' module.
69985         * doc/posix-functions/fchmodat.texi: Likewise.
69986         * doc/posix-functions/fchownat.texi: Likewise.
69987         * doc/posix-functions/fdopendir.texi: Likewise.
69988         * doc/posix-functions/fstatat.texi: Likewise.
69989         * doc/posix-functions/mkdirat.texi: Likewise.
69990         * doc/posix-functions/unlinkat.texi: Likewise.
69992 2008-12-14  Bruno Haible  <bruno@clisp.org>
69994         Update doc for POSIX:2008.
69995         * doc/posix-functions/faccessat.texi: New file.
69996         * doc/posix-functions/fchmodat.texi: New file.
69997         * doc/posix-functions/fchownat.texi: New file.
69998         * doc/posix-functions/fdopendir.texi: New file.
69999         * doc/posix-functions/fstatat.texi: New file.
70000         * doc/posix-functions/futimens.texi: New file.
70001         * doc/posix-functions/linkat.texi: New file.
70002         * doc/posix-functions/mkdirat.texi: New file.
70003         * doc/posix-functions/mkfifoat.texi: New file.
70004         * doc/posix-functions/mknodat.texi: New file.
70005         * doc/posix-functions/open_wmemstream.texi: New file.
70006         * doc/posix-functions/openat.texi: New file.
70007         * doc/posix-functions/psiginfo.texi: New file.
70008         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
70009         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
70010         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
70011         * doc/posix-functions/readlinkat.texi: New file.
70012         * doc/posix-functions/renameat.texi: New file.
70013         * doc/posix-functions/strerror_l.texi: New file.
70014         * doc/posix-functions/symlinkat.texi: New file.
70015         * doc/posix-functions/unlinkat.texi: New file.
70016         * doc/posix-functions/utimensat.texi: New file.
70017         * doc/gnulib.texi (Function Substitutes): Add these subsections.
70019 2008-12-14  Bruno Haible  <bruno@clisp.org>
70021         Update doc for POSIX:2008.
70022         * doc/posix-functions/alphasort.texi: Renamed from
70023         doc/glibc-functions/alphasort.texi.
70024         * doc/posix-functions/dirfd.texi: Renamed from
70025         doc/glibc-functions/dirfd.texi.
70026         * doc/posix-functions/dprintf.texi: Renamed from
70027         doc/glibc-functions/dprintf.texi.
70028         * doc/posix-functions/duplocale.texi: Renamed from
70029         doc/glibc-functions/duplocale.texi.
70030         * doc/posix-functions/fexecve.texi: Renamed from
70031         doc/glibc-functions/fexecve.texi.
70032         * doc/posix-functions/fmemopen.texi: Renamed from
70033         doc/glibc-functions/fmemopen.texi.
70034         * doc/posix-functions/freelocale.texi: Renamed from
70035         doc/glibc-functions/freelocale.texi.
70036         * doc/posix-functions/getdate_err.texi: Renamed from
70037         doc/glibc-functions/getdate_err.texi.
70038         * doc/posix-functions/isalnum_l.texi: Renamed from
70039         doc/glibc-functions/isalnum_l.texi.
70040         * doc/posix-functions/isalpha_l.texi: Renamed from
70041         doc/glibc-functions/isalpha_l.texi.
70042         * doc/posix-functions/isblank_l.texi: Renamed from
70043         doc/glibc-functions/isblank_l.texi.
70044         * doc/posix-functions/iscntrl_l.texi: Renamed from
70045         doc/glibc-functions/iscntrl_l.texi.
70046         * doc/posix-functions/isdigit_l.texi: Renamed from
70047         doc/glibc-functions/isdigit_l.texi.
70048         * doc/posix-functions/isgraph_l.texi: Renamed from
70049         doc/glibc-functions/isgraph_l.texi.
70050         * doc/posix-functions/islower_l.texi: Renamed from
70051         doc/glibc-functions/islower_l.texi.
70052         * doc/posix-functions/isprint_l.texi: Renamed from
70053         doc/glibc-functions/isprint_l.texi.
70054         * doc/posix-functions/ispunct_l.texi: Renamed from
70055         doc/glibc-functions/ispunct_l.texi.
70056         * doc/posix-functions/isspace_l.texi: Renamed from
70057         doc/glibc-functions/isspace_l.texi.
70058         * doc/posix-functions/isupper_l.texi: Renamed from
70059         doc/glibc-functions/isupper_l.texi.
70060         * doc/posix-functions/iswalnum_l.texi: Renamed from
70061         doc/glibc-functions/iswalnum_l.texi.
70062         * doc/posix-functions/iswalpha_l.texi: Renamed from
70063         doc/glibc-functions/iswalpha_l.texi.
70064         * doc/posix-functions/iswblank_l.texi: Renamed from
70065         doc/glibc-functions/iswblank_l.texi.
70066         * doc/posix-functions/iswcntrl_l.texi: Renamed from
70067         doc/glibc-functions/iswcntrl_l.texi.
70068         * doc/posix-functions/iswctype_l.texi: Renamed from
70069         doc/glibc-functions/iswctype_l.texi.
70070         * doc/posix-functions/iswdigit_l.texi: Renamed from
70071         doc/glibc-functions/iswdigit_l.texi.
70072         * doc/posix-functions/iswgraph_l.texi: Renamed from
70073         doc/glibc-functions/iswgraph_l.texi.
70074         * doc/posix-functions/iswlower_l.texi: Renamed from
70075         doc/glibc-functions/iswlower_l.texi.
70076         * doc/posix-functions/iswprint_l.texi: Renamed from
70077         doc/glibc-functions/iswprint_l.texi.
70078         * doc/posix-functions/iswpunct_l.texi: Renamed from
70079         doc/glibc-functions/iswpunct_l.texi.
70080         * doc/posix-functions/iswspace_l.texi: Renamed from
70081         doc/glibc-functions/iswspace_l.texi.
70082         * doc/posix-functions/iswupper_l.texi: Renamed from
70083         doc/glibc-functions/iswupper_l.texi.
70084         * doc/posix-functions/iswxdigit_l.texi: Renamed from
70085         doc/glibc-functions/iswxdigit_l.texi.
70086         * doc/posix-functions/isxdigit_l.texi: Renamed from
70087         doc/glibc-functions/isxdigit_l.texi.
70088         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
70089         doc/glibc-functions/mbsnrtowcs.texi.
70090         * doc/posix-functions/mkdtemp.texi: Renamed from
70091         doc/glibc-functions/mkdtemp.texi.
70092         * doc/posix-functions/newlocale.texi: Renamed from
70093         doc/glibc-functions/newlocale.texi.
70094         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
70095         doc/glibc-functions/nl_langinfo_l.texi.
70096         * doc/posix-functions/open_memstream.texi: Renamed from
70097         doc/glibc-functions/open_memstream.texi.
70098         * doc/posix-functions/opterr.texi: Renamed from
70099         doc/glibc-functions/opterr.texi.
70100         * doc/posix-functions/optind.texi: Renamed from
70101         doc/glibc-functions/optind.texi.
70102         * doc/posix-functions/optopt.texi: Renamed from
70103         doc/glibc-functions/optopt.texi.
70104         * doc/posix-functions/psignal.texi: Renamed from
70105         doc/glibc-functions/psignal.texi.
70106         * doc/posix-functions/scandir.texi: Renamed from
70107         doc/glibc-functions/scandir.texi.
70108         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
70109         doc/glibc-functions/sched_get_priority_min.texi.
70110         * doc/posix-functions/signgam.texi: Renamed from
70111         doc/glibc-functions/signgam.texi.
70112         * doc/posix-functions/stpcpy.texi: Renamed from
70113         doc/glibc-functions/stpcpy.texi.
70114         * doc/posix-functions/stpncpy.texi: Renamed from
70115         doc/glibc-functions/stpncpy.texi.
70116         * doc/posix-functions/strcasecmp_l.texi: Renamed from
70117         doc/glibc-functions/strcasecmp_l.texi.
70118         * doc/posix-functions/strcoll_l.texi: Renamed from
70119         doc/glibc-functions/strcoll_l.texi.
70120         * doc/posix-functions/strfmon_l.texi: Renamed from
70121         doc/glibc-functions/strfmon_l.texi.
70122         * doc/posix-functions/strftime_l.texi: Renamed from
70123         doc/glibc-functions/strftime_l.texi.
70124         * doc/posix-functions/strncasecmp_l.texi: Renamed from
70125         doc/glibc-functions/strncasecmp_l.texi.
70126         * doc/posix-functions/strndup.texi: Renamed from
70127         doc/glibc-functions/strndup.texi.
70128         * doc/posix-functions/strnlen.texi: Renamed from
70129         doc/glibc-functions/strnlen.texi.
70130         * doc/posix-functions/strsignal.texi: Renamed from
70131         doc/glibc-functions/strsignal.texi.
70132         * doc/posix-functions/strxfrm_l.texi: Renamed from
70133         doc/glibc-functions/strxfrm_l.texi.
70134         * doc/posix-functions/timer_gettime.texi: Renamed from
70135         doc/glibc-functions/timer_gettime.texi.
70136         * doc/posix-functions/tolower_l.texi: Renamed from
70137         doc/glibc-functions/tolower_l.texi.
70138         * doc/posix-functions/toupper_l.texi: Renamed from
70139         doc/glibc-functions/toupper_l.texi.
70140         * doc/posix-functions/towctrans_l.texi: Renamed from
70141         doc/glibc-functions/towctrans_l.texi.
70142         * doc/posix-functions/towlower_l.texi: Renamed from
70143         doc/glibc-functions/towlower_l.texi.
70144         * doc/posix-functions/towupper_l.texi: Renamed from
70145         doc/glibc-functions/towupper_l.texi.
70146         * doc/posix-functions/uselocale.texi: Renamed from
70147         doc/glibc-functions/uselocale.texi.
70148         * doc/posix-functions/vdprintf.texi: Renamed from
70149         doc/glibc-functions/vdprintf.texi.
70150         * doc/posix-functions/wcpcpy.texi:
70151         Renamed from doc/glibc-functions/wcpcpy.texi.
70152         * doc/posix-functions/wcpncpy.texi: Renamed from
70153         doc/glibc-functions/wcpncpy.texi.
70154         * doc/posix-functions/wcscasecmp.texi: Renamed from
70155         doc/glibc-functions/wcscasecmp.texi.
70156         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
70157         doc/glibc-functions/wcscasecmp_l.texi.
70158         * doc/posix-functions/wcscoll_l.texi: Renamed from
70159         doc/glibc-functions/wcscoll_l.texi.
70160         * doc/posix-functions/wcsdup.texi: Renamed from
70161         doc/glibc-functions/wcsdup.texi.
70162         * doc/posix-functions/wcsncasecmp.texi: Renamed from
70163         doc/glibc-functions/wcsncasecmp.texi.
70164         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
70165         doc/glibc-functions/wcsncasecmp_l.texi.
70166         * doc/posix-functions/wcsnlen.texi: Renamed from
70167         doc/glibc-functions/wcsnlen.texi.
70168         * doc/posix-functions/wcsnrtombs.texi: Renamed from
70169         doc/glibc-functions/wcsnrtombs.texi.
70170         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
70171         doc/glibc-functions/wcsxfrm_l.texi.
70172         * doc/posix-functions/wctrans_l.texi: Renamed from
70173         doc/glibc-functions/wctrans_l.texi.
70174         * doc/posix-functions/wctype_l.texi: Renamed from
70175         doc/glibc-functions/wctype_l.texi.
70176         * doc/gnulib.texi (Function Substitutes): Add these subsections.
70177         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
70178         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
70179         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
70180         these subsections.
70181         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
70182         Remove sections.
70184 2008-12-14  Bruno Haible  <bruno@clisp.org>
70186         Update doc for POSIX:2008.
70187         * doc/posix-functions/*.texi: Update URL of POSIX specification.
70189 2008-12-14  Bruno Haible  <bruno@clisp.org>
70191         Update doc for POSIX:2008.
70192         * doc/pastposix-functions/bcmp.texi: Renamed from
70193         doc/posix-functions/bcmp.texi.
70194         * doc/pastposix-functions/bcopy.texi: Renamed from
70195         doc/posix-functions/bcopy.texi.
70196         * doc/pastposix-functions/bsd_signal.texi: Renamed from
70197         doc/posix-functions/bsd_signal.texi.
70198         * doc/pastposix-functions/bzero.texi: Renamed from
70199         doc/posix-functions/bzero.texi.
70200         * doc/pastposix-functions/ecvt.texi: Renamed from
70201         doc/posix-functions/ecvt.texi.
70202         * doc/pastposix-functions/fcvt.texi: Renamed from
70203         doc/posix-functions/fcvt.texi.
70204         * doc/pastposix-functions/ftime.texi: Renamed from
70205         doc/posix-functions/ftime.texi.
70206         * doc/pastposix-functions/gcvt.texi: Renamed from
70207         doc/posix-functions/gcvt.texi.
70208         * doc/pastposix-functions/getcontext.texi: Renamed from
70209         doc/posix-functions/getcontext.texi.
70210         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
70211         doc/posix-functions/gethostbyaddr.texi.
70212         * doc/pastposix-functions/gethostbyname.texi: Renamed from
70213         doc/posix-functions/gethostbyname.texi.
70214         * doc/pastposix-functions/getwd.texi: Renamed from
70215         doc/posix-functions/getwd.texi.
70216         * doc/pastposix-functions/h_errno.texi: Renamed from
70217         doc/posix-functions/h_errno.texi.
70218         * doc/pastposix-functions/index.texi: Renamed from
70219         doc/posix-functions/index.texi.
70220         * doc/pastposix-functions/makecontext.texi: Renamed from
70221         doc/posix-functions/makecontext.texi.
70222         * doc/pastposix-functions/mktemp.texi: Renamed from
70223         doc/posix-functions/mktemp.texi.
70224         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
70225         doc/posix-functions/pthread_attr_getstackaddr.texi.
70226         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
70227         doc/posix-functions/pthread_attr_setstackaddr.texi.
70228         * doc/pastposix-functions/rindex.texi: Renamed from
70229         doc/posix-functions/rindex.texi.
70230         * doc/pastposix-functions/scalb.texi: Renamed from
70231         doc/posix-functions/scalb.texi.
70232         * doc/pastposix-functions/setcontext.texi: Renamed from
70233         doc/posix-functions/setcontext.texi.
70234         * doc/pastposix-functions/swapcontext.texi: Renamed from
70235         doc/posix-functions/swapcontext.texi.
70236         * doc/pastposix-functions/ualarm.texi: Renamed from
70237         doc/posix-functions/ualarm.texi.
70238         * doc/pastposix-functions/usleep.texi: Renamed from
70239         doc/posix-functions/usleep.texi.
70240         * doc/pastposix-functions/vfork.texi: Renamed from
70241         doc/posix-functions/vfork.texi.
70242         * doc/pastposix-functions/wcswcs.texi: Renamed from
70243         doc/posix-functions/wcswcs.texi.
70244         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
70245         (Function Substitutes): Update.
70247 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70249         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
70250         m4/strerror.m4.
70252 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70253             Bruno Haible  <bruno@clisp.org>
70255         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
70257 2008-12-13  Bruno Haible  <bruno@clisp.org>
70259         * modules/strtoull (Depends-on): Remove unistd.
70261 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70263         * modules/strtoull (Depends-on): Add stdlib.
70265 2008-12-11  Simon Josefsson  <simon@josefsson.org>
70267         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
70269 2008-12-10  Jim Meyering  <meyering@redhat.com>
70271         gl_ASSERT: don't say assertions are disabled when they're not
70272         * m4/assert.m4 (gl_ASSERT): Do not make configure report
70273         "checking whether to enable assertions... no", when they are in
70274         fact enabled.  This is solely a bug in the output of configure.
70275         In spite of saying "no", NDEBUG was not defined in that case.
70276         Also, as noted by Eric Blake, leave assertions enabled upon
70277         --enable-assert=INVALID.
70279 2008-12-10  Bruno Haible  <bruno@clisp.org>
70281         Change MODULES.html to refer to POSIX:2008 where possible.
70282         * MODULES.html.sh (POSIX2008_URL): New variable.
70283         (posix_headers): Remove sys/timeb, ucontext.
70284         (posix2001_headers): New variable.
70285         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
70286         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
70287         index, makecontext, mktemp, pthread_attr_getstackaddr,
70288         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
70289         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
70290         (posix2001_functions): New variable.
70291         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
70292         otherwise.
70294 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70296         add missing include to parse-duration.c
70297         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
70298         * modules/parse-duration (Depends-on): Add xalloc.
70300         fix sed script reading maint.mk
70301         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
70302         (syntax-check-rules): Use it.
70304 2008-12-09  Bruno Haible  <bruno@clisp.org>
70306         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
70307         MacOS X 10.4/PowerPC.
70308         Reported by Simon Josefsson.
70310 2008-12-08  Jim Meyering  <meyering@redhat.com>
70312         work around mingw's lack of some S_IF definitions
70313         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
70314         Reported by Simon Josefsson.
70316 2008-12-08  Bruno Haible  <bruno@clisp.org>
70318         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
70319         applied to variables. Needed on MacOS X 10.4/PowerPC.
70320         Reported by Simon Josefsson.
70322 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
70323         and Eric Blake  <ebb9@byu.net>
70325         assert: honor --enable-assert
70326         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
70327         order to honor --enable-assert, rather than treating it as a
70328         synonym for --disable-assert.
70330 2008-12-08  Jim Meyering  <meyering@redhat.com>
70332         * lib/posixtm.c: Remove now-useless declaration of mktime.
70334         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
70336 2008-12-07  Bruno Haible  <bruno@clisp.org>
70338         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
70339         test_once): Mark functions as static.
70340         * tests/test-tls.c (test_tls): Likewise.
70342 2008-12-07  Bruno Haible  <bruno@clisp.org>
70344         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
70345         iconv_register_autodetect.
70347 2008-12-07  Jim Meyering  <meyering@redhat.com>
70349         posixtm.c: avoid a warning
70350         * lib/posixtm.c (posixtime): Don't initialize tm0.
70351         It's no longer needed to placate gcc4's -Wuninitialized,
70352         and the attempt to placate would elicit a new warning.
70354         unicodeio.c: mark unused parameters
70355         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
70356         (fallback_failure_callback): Likewise.
70358 2008-12-07  Bruno Haible  <bruno@clisp.org>
70360         * gnulib-tool (func_create_testdir): When building the tests
70361         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
70362         Reported by Simon Josefsson.
70364 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70366         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
70368 2008-12-06  Bruno Haible  <bruno@clisp.org>
70370         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
70371         Suggested by Eric Blake.
70373 2008-12-06  Bruno Haible  <bruno@clisp.org>
70375         Fix a c-stack test failure on MacOS X.
70376         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
70377         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
70378         handler for SIGBUS as well.
70379         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
70380         install a signal handler for SIGBUS as well.
70381         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
70383 2008-12-06  Bruno Haible  <bruno@clisp.org>
70385         Advocacy documentation.
70386         * doc/gnulib-intro.texi (Benefits): New section.
70387         * doc/gnulib.texi: Update.
70389 2008-12-06  Bruno Haible  <bruno@clisp.org>
70391         Document the 'manywarnings' module.
70392         * doc/manywarnings.texi: New file.
70393         * doc/gnulib.texi: Include it.
70395 2008-12-05  Eric Blake  <ebb9@byu.net>
70397         tests: silence some gcc warnings
70398         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
70399         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
70400         type mismatches.
70402 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70403             Bruno Haible  <bruno@clisp.org>
70405         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
70407 2008-11-29  Jim Meyering  <meyering@redhat.com>
70409         unicodeio.c: mark unused parameters
70410         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
70411         (fallback_failure_callback): Likewise.
70413         fts: fix a thinko
70414         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
70415         (set_stat_type): Return S_IF*-valued "type" directly.
70416         Prompted by James Youngman's spotting a related bug.
70417         Confirmed by further testing through find.
70419         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
70420         * lib/fts.c (D_TYPE): Define.
70421         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
70422         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
70423         (s_ifmt_shift_bits): New function.
70424         (set_stat_type): New function.
70425         (fts_build): When not calling fts_stat, call set_stat_type
70426         to propagate dirent.d_type info to fts_read caller.
70427         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
70428         fts_statp->st_mode type information may be valid.
70430 2008-11-28  Simon Josefsson  <simon@josefsson.org>
70432         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
70433         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
70434         <sds@gnu.org>.
70436 2008-11-20  Bruno Haible  <bruno@clisp.org>
70438         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
70439         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
70440         INCLUDE_NEXT.
70441         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
70442         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
70443         * modules/math (Makefile.am): Substitute
70444         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
70445         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
70447 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
70448             Bruno Haible  <bruno@clisp.org>
70450         * lib/stdint.in.h: Define all type macros so that their expansion is
70451         a single typedef'ed token. Fixes a compilation failure in Boost which
70452         does "using ::int8_t;".
70454 2008-11-18  Simon Josefsson  <simon@josefsson.org>
70456         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
70457         gl_MANYWARN_ALL_GCC.
70458         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
70459         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
70460         * modules/manywarnings: New file.
70461         * MODULES.html.sh: Mention manywarnings module.
70463 2008-11-18  Bruno Haible  <bruno@clisp.org>
70465         * doc/gnulib-tool.texi (Unit tests): New section.
70467 2008-11-18  Simon Josefsson  <simon@josefsson.org>
70469         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
70470         paths like 'lib/po/foo.po'.
70472 2008-11-17  Simon Josefsson  <simon@josefsson.org>
70474         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
70475         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
70477 2008-11-17  Simon Josefsson  <simon@josefsson.org>
70479         * m4/warnings.m4: Use CPPFLAGS to really check whether the
70480         parameter works.
70482 2008-11-17  Simon Josefsson  <simon@josefsson.org>
70484         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
70486 2008-11-17  Bruce Korb  <bkorb@gnu.org>
70488         * modules/parse-duration-tests: New file.
70489         * tests/test-parse-duration.sh: New file.
70490         * tests/test-parse-duration.c: New file.
70492         New module 'parse-duration'.
70493         * lib/parse-duration.h: New file.
70494         * lib/parse-duration.c: New file.
70495         * modules/parse-duration: New file.
70497 2008-11-17  Bruno Haible  <bruno@clisp.org>
70499         * tests/test-select-out.sh: Comment out the first pipe test.
70500         Reported by Simon Josefsson.
70502 2008-11-17  Bruno Haible  <bruno@clisp.org>
70504         * modules/getaddrinfo (Depends-on): Add servent, hostent.
70505         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
70506         gl_HOSTENT.
70508 2008-11-17  Bruno Haible  <bruno@clisp.org>
70510         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
70511         -lnetwork and -lnet. Needed for Haiku and BeOS.
70513 2008-11-16  Bruno Haible  <bruno@clisp.org>
70515         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
70517 2008-11-16  Bruno Haible  <bruno@clisp.org>
70519         Avoid test failure on Haiku.
70520         * tests/test-fsync.c: Include <errno.h>.
70521         (main): Don't require that fsync (0) fails.
70523 2008-11-15  Bruno Haible  <bruno@clisp.org>
70525         New module 'hostent'.
70526         * modules/hostent: New file.
70527         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
70529 2008-11-15  Bruno Haible  <bruno@clisp.org>
70531         New module 'servent'.
70532         * modules/servent: New file.
70533         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
70535 2008-11-15  Bruno Haible  <bruno@clisp.org>
70537         Avoid generating same test program with two different rules.
70538         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
70539         test-frexp to test-frexp-nolibm.
70540         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
70541         test-frexpl to test-frexpl-nolibm.
70543 2008-11-15  Bruno Haible  <bruno@clisp.org>
70545         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
70546         $(FREXPL_LIBM).
70548 2008-11-15  Bruno Haible  <bruno@clisp.org>
70550         * lib/netdb.in.h: Activate the definitions also when the system's
70551         <netdb.h> has 'struct addrinfo'.
70552         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
70553         EAI_OVERFLOW or AI_NUMERICSERV.
70554         * doc/posix-headers/netdb.texi: Document the problem.
70556 2008-11-15  Bruno Haible  <bruno@clisp.org>
70558         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
70560         Make the 'sched' module work on platforms where <sched.h> exists but
70561         is incomplete (such as Haiku).
70562         * lib/sched.in.h; Include the system's <sched.h> if it exists.
70563         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
70564         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
70565         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
70566         HAVE_STRUCT_SCHED_PARAM.
70567         * modules/sched (Depends-on): Add include_next.
70568         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
70569         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
70570         * doc/posix-headers/sched.texi: Document the issue.
70572 2008-11-13  Jim Meyering  <meyering@redhat.com>
70574         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
70575         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
70576         test would fail due to the difference in the Report bugs to ...
70577         line.  The expected address is empty, "<>", while the actual
70578         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
70580 2008-11-12  Bruno Haible  <bruno@clisp.org>
70582         lstat: don't compile lstat.c on systems lacking lstat
70583         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
70584         which don't have lstat; this is handled by lib/sys_stat.in.h already.
70585         Reported by Daniel P. Berrange via Jim Meyering.
70587 2008-11-12  Jim Meyering  <meyering@redhat.com>
70589         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
70591 2008-11-12  Simon Josefsson  <simon@josefsson.org>
70593         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
70594         instead.
70596 2008-11-12  Bruno Haible  <bruno@clisp.org>
70598         * lib/unicodeio.c: Include unistr.h.
70599         (utf8_wctomb): Remove function.
70600         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
70602 2008-11-12  Simon Josefsson  <simon@josefsson.org>
70604         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
70605         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
70606         <bruno@clisp.org>.
70607         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
70609 2008-11-12  Simon Josefsson  <simon@josefsson.org>
70611         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
70612         * doc/gnulib.texi: Add section for warnings.
70614 2008-11-11  Bruno Haible  <bruno@clisp.org>
70616         * lib/sockets.h: Add a comment.
70618 2008-11-11  Karl Berry  <karl@gnu.org>
70620         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
70622 2008-11-11  Eric Blake  <ebb9@byu.net>
70624         fdl.texi: avoid git symlinks
70625         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
70627 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
70629         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
70631 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
70633         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
70634         (gl_WARN_ADD): Substitute $2 if literal.
70636 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
70638         * m4/warning.m4: Remove.
70640 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
70642         * m4/warnings.m4: Almost complete rewrite. :-)
70644 2008-11-10  Simon Josefsson  <simon@josefsson.org>
70646         * modules/warnings: New module.
70647         * m4/warnings.m4: New file.
70648         * MODULES.html.sh: Mention warnings module.
70649         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
70650         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70652 2008-11-10  Eric Blake  <ebb9@byu.net>
70654         fdl.texi: make a symlink to the latest version
70655         * doc/standards.texi: Revert today's earlier change.
70656         * doc/fdl-1.2.texi: Rename from old fdl.texi...
70657         * doc/fdl.texi: ...and replace this with a symlink to the newer
70658         fdl-1.3.texi.
70660 2008-11-10  Bruno Haible  <bruno@clisp.org>
70662         * tests/test-select-fd.c (main): Accept the result file name as fourth
70663         argument.
70664         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
70665         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
70667 2008-11-10  Bruno Haible  <bruno@clisp.org>
70669         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
70670         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
70671         as autoconf-substituted macros.
70672         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
70673         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
70674         gl_NETDB_H_DEFAULTS. Set these variables.
70675         * modules/netdb (Makefile.am): Substitute these variables.
70677 2008-11-10  Eric Blake  <ebb9@byu.net>
70679         standards.texi: include correct file for FDL 1.3
70680         * doc/standards.texi (GNU Free Documentation License): Change
70681         include file to pull in FDL 1.3, not 1.2.
70683         fdl.texi: revert accidental change to license
70684         * doc/fdl.texi: This is FDL 1.2, not 1.3.
70686 2008-11-10  Bruno Haible  <bruno@clisp.org>
70688         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
70689         cross-compiling guesses also when the native compile gives no result.
70691 2008-11-10  Bruno Haible  <bruno@clisp.org>
70693         * lib/spawni.c (__spawni): Force variable into the stack.
70695 2008-11-10  Bruno Haible  <bruno@clisp.org>
70697         Add support for Haiku.
70698         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
70699         glibc and BeOS, but also on Haiku.
70700         * lib/fpurge.c (fpurge): Likewise.
70701         * lib/freadable.c (freadable): Likewise.
70702         * lib/freadahead.c (freadahead): Likewise.
70703         * lib/freading.c (freading): Likewise.
70704         * lib/freadptr.c (freadptr): Likewise.
70705         * lib/freadseek.c (freadptrinc): Likewise.
70706         * lib/fseeko.c (rpl_fseeko): Likewise.
70707         * lib/fseterr.c (fseterr): Likewise.
70708         * lib/fwritable.c (fwritable): Likewise.
70709         * lib/fwriting.c (fwriting): Likewise.
70710         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
70712 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
70714         * lib/config.charset: Treat Haiku like BeOS.
70716 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
70718         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
70719         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
70721 2008-11-08  Bruno Haible  <bruno@clisp.org>
70723         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
70724         AC_CACHE_CHECK.
70726 2008-11-08  Bruno Haible  <bruno@clisp.org>
70728         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
70730 2008-11-08  Bruno Haible  <bruno@clisp.org>
70732         * tests/test-select-fd.c: New file.
70733         * tests/test-select-in.sh: New file.
70734         * tests/test-select-out.sh: New file.
70735         * tests/test-select-stdin.c: New file.
70736         * modules/select-tests (Files): Add the new files.
70737         (Depends-on): Add gettimeofday.
70738         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
70739         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
70740         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
70742 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
70743             Bruno Haible  <bruno@clisp.org>
70745         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
70747 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
70749         * build-aux/pmccabe2html: Added support for C++ source files.
70751 2008-11-05  Ben Pfaff  <blp@gnu.org>
70753         Fix lib/close.c build on Windows.
70754         * modules/close (Files): Add lib/w32sock.h.
70756 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
70758         Accept Bison's NEWS format.
70759         * build-aux/announce-gen (print_news_deltas): Tweak
70760         $re_prefix.
70762 2008-11-04  Bruno Haible  <bruno@clisp.org>
70764         * modules/random_r (Maintainer): Add glibc.
70766 2008-11-04  Simon Josefsson  <simon@josefsson.org>
70768         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
70769         by karl@freefriends.org (Karl Berry).
70770         * doc/alloca.texi: Likewise.
70771         * doc/c-ctype.texi: Likewise.
70772         * doc/c-strcase.texi: Likewise.
70773         * doc/c-strcaseeq.texi: Likewise.
70774         * doc/c-strcasestr.texi: Likewise.
70775         * doc/c-strstr.texi: Likewise.
70776         * doc/c-strtod.texi: Likewise.
70777         * doc/c-strtold.texi: Likewise.
70778         * doc/ctime.texi: Likewise.
70779         * doc/error.texi: Likewise.
70780         * doc/fdl.texi: Likewise.
70781         * doc/gcd.texi: Likewise.
70782         * doc/getdate.texi: Likewise.
70783         * doc/gnulib-intro.texi: Likewise.
70784         * doc/gnulib-tool.texi: Likewise.
70785         * doc/gnulib.texi: Likewise.
70786         * doc/inet_ntoa.texi: Likewise.
70787         * doc/maintain.texi: Likewise.
70788         * doc/make-stds.texi: Likewise.
70789         * doc/quote.texi: Likewise.
70790         * doc/regexprops-generic.texi: Likewise.
70791         * doc/standards.texi: Likewise.
70792         * doc/verify.texi: Likewise.
70793         * doc/visibility.texi: Likewise.
70794         * doc/gnulib.texi (GNU Free Documentation License): Include
70795         fdl-1.3.texi instead of fdl.texi.
70797 2008-11-04  Simon Josefsson  <simon@josefsson.org>
70799         * doc/fdl-1.3.texi: New file, from
70800         <http://www.gnu.org/licenses/fdl-1.3.texi>.
70801         * modules/fdl-1.3: Add.
70802         * MODULES.html.sh: Add fdl-1.3.
70804 2008-11-03  Bruno Haible  <bruno@clisp.org>
70806         Make determination of absolute name of header file work with AIX xlc.
70807         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
70808         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
70809         preprocessing.
70810         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
70811         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
70813 2008-11-03  Simon Josefsson  <simon@josefsson.org>
70815         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
70816         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
70817         <ludo@gnu.org>.
70819 2008-11-02  Bruno Haible  <bruno@clisp.org>
70821         Mark 'strpbrk' obsolete.
70822         * modules/strpbrk (Status, Notice): New sections.
70823         * modules/strtok_r (Depends-on): Add strpbrk.
70825 2008-11-02  Bruno Haible  <bruno@clisp.org>
70827         Mark 'strdup' obsolete.
70828         * modules/strdup (Status, Notice): New sections.
70829         * modules/findprog (Depends-on): Add strdup.
70830         * modules/getaddrinfo (Depends-on): Likewise.
70831         * modules/localename (Depends-on): Likewise.
70832         * modules/relocatable-lib (Depends-on): Likewise.
70833         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
70834         * modules/relocatable-prog (Depends-on): Likewise.
70835         * modules/trim (Depends-on): Likewise.
70836         * modules/unictype/gen-ctype (Depends-on): Likewise.
70837         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
70839 2008-11-02  Bruno Haible  <bruno@clisp.org>
70841         Mark 'strcspn' obsolete.
70842         * modules/strcspn (Status, Notice): New sections.
70844 2008-11-02  Bruno Haible  <bruno@clisp.org>
70846         Mark 'rmdir' obsolete.
70847         * modules/rmdir (Status, Notice): New sections.
70848         * modules/clean-temp (Depends-on): Add rmdir.
70849         * modules/openat (Depends-on): Likewise.
70851 2008-11-02  Bruno Haible  <bruno@clisp.org>
70853         Mark 'raise' obsolete.
70854         * modules/raise (Status, Notice): New sections.
70855         (Include): Specify <signal.h>.
70856         * modules/stdio (Depends-on): Add raise.
70857         * modules/write (Depends-on): Likewise.
70859 2008-11-02  Bruno Haible  <bruno@clisp.org>
70861         Mark 'memset' obsolete.
70862         * modules/memset (Status, Notice): New sections.
70864 2008-11-02  Bruno Haible  <bruno@clisp.org>
70866         Mark 'memmove' obsolete.
70867         * modules/memmove (Status, Notice): New sections.
70868         * modules/argp (Depends-on): Add memmove.
70869         * modules/argz (Depends-on): Likewise.
70870         * modules/canonicalize (Depends-on): Likewise.
70871         * modules/canonicalize-lgpl (Depends-on): Likewise.
70872         * modules/fts (Depends-on): Likewise.
70873         * modules/getcwd (Depends-on): Likewise.
70874         * modules/human (Depends-on): Likewise.
70875         * modules/regex (Depends-on): Likewise.
70876         * modules/striconveh (Depends-on): Likewise.
70877         * modules/trim (Depends-on): Likewise.
70878         * modules/unistr/u8-move (Depends-on): Likewise.
70879         * modules/unistr/u16-move (Depends-on): Likewise.
70880         * modules/unistr/u32-move (Depends-on): Likewise.
70882 2008-11-02  Bruno Haible  <bruno@clisp.org>
70884         Mark 'memcpy' obsolete.
70885         * modules/memcpy (Status, Notice): New sections.
70887 2008-11-02  Bruno Haible  <bruno@clisp.org>
70889         Mark 'memcmp' obsolete.
70890         * modules/memcmp (Status, Notice): New sections.
70891         * modules/argmatch (Depends-on): Add memchr.
70892         * modules/backupfile (Depends-on): Likewise.
70893         * modules/c-strcasestr (Depends-on): Likewise.
70894         * modules/crypto/des (Depends-on): Likewise.
70895         * modules/csharpcomp (Depends-on): Likewise.
70896         * modules/fnmatch (Depends-on): Likewise.
70897         * modules/git-merge-changelog (Depends-on): Likewise.
70898         * modules/isnand (Depends-on): Likewise.
70899         * modules/isnand-nolibm (Depends-on): Likewise.
70900         * modules/isnanf (Depends-on): Likewise.
70901         * modules/isnanf-nolibm (Depends-on): Likewise.
70902         * modules/isnanl (Depends-on): Likewise.
70903         * modules/isnanl-nolibm (Depends-on): Likewise.
70904         * modules/mbchar (Depends-on): Likewise.
70905         * modules/memcoll (Depends-on): Likewise.
70906         * modules/quotearg (Depends-on): Likewise.
70907         * modules/regex (Depends-on): Likewise.
70908         * modules/relocatable-prog (Depends-on): Likewise.
70909         * modules/same (Depends-on): Likewise.
70910         * modules/signbit (Depends-on): Likewise.
70911         * modules/strcasestr-simple (Depends-on): Likewise.
70912         * modules/unictype/gen-ctype (Depends-on): Likewise.
70913         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
70914         * modules/uniname/uniname (Depends-on): Likewise.
70915         * modules/unistr/u8-cmp (Depends-on): Likewise.
70917 2008-11-02  Bruno Haible  <bruno@clisp.org>
70919         Mark 'memchr' obsolete.
70920         * modules/memchr (Status, Notice): New sections.
70921         * modules/argp (Depends-on): Add memchr.
70922         * modules/base64 (Depends-on): Likewise.
70923         * modules/c-strcasestr (Depends-on): Likewise.
70924         * modules/chdir-long (Depends-on): Likewise.
70925         * modules/fnmatch (Depends-on): Likewise.
70926         * modules/getsubopt (Depends-on): Likewise.
70927         * modules/git-merge-changelog (Depends-on): Likewise.
70928         * modules/glob (Depends-on): Likewise.
70929         * modules/strcasestr-simple (Depends-on): Likewise.
70930         * modules/strnlen (Depends-on): Likewise.
70932 2008-11-02  Bruno Haible  <bruno@clisp.org>
70934         Mark 'atexit' obsolete.
70935         * modules/atexit (Status, Notice): New sections.
70936         * modules/chdir-long (Depends-on): Add atexit.
70937         * modules/wait-process (Depends-on): Likewise.
70939 2008-11-02  Bruno Haible  <bruno@clisp.org>
70941         * gnulib-tool: New option --with-obsolete.
70942         (func_usage): Document it.
70943         (func_modules_transitive_closure): Drop obsolete dependencies if
70944         incobsolete is not true.
70945         (func_import): Read and save the incobsolete variable to the cache.
70947 2008-11-02  Bruno Haible  <bruno@clisp.org>
70949         * modules/TEMPLATE-EXTENDED: New field 'Status'.
70950         * gnulib-tool: New option --extract-status.
70951         (func_usage): Document it.
70952         (sed_extract_prog): Recognize it.
70953         (func_get_status): New function.
70955 2008-10-30  Simon Josefsson  <simon@josefsson.org>
70957         * modules/sockets (License): Change from LGPL to LGPLv2+.
70959 2008-10-28  Simon Josefsson  <simon@josefsson.org>
70961         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
70963 2008-10-28  Simon Josefsson  <simon@josefsson.org>
70965         * MODULES.html.sh (Support for systems lacking POSIX:2001):
70966         Mention times and sys_times.
70967         * modules/sys_times, modules/sys_times-tests: New modules.
70968         * modules/times, modules/times-tests: Likewise
70969         * m4/sys_times_h.m4: New file.
70970         * lib/sys_times.in.h: Likewise
70971         * lib/times.c: Likewise.
70972         * tests/test-sys_times.c: Likewise.
70973         * tests/test-times.c: Likewise.
70974         * doc/posix-headers/sys_times.texi: Update.
70975         * doc/posix-functions/times.texi: Update.
70977 2008-10-28  Jim Meyering  <meyering@redhat.com>
70979         * modules/tempname (Depends-on): Add lstat.
70981         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
70983 2008-10-28  Simon Josefsson  <simon@josefsson.org>
70985         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
70986         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
70987         using idiom used elsewhere in gnulib.
70989 2008-10-27  Jim Meyering  <meyering@redhat.com>
70991         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
70993 2008-10-27  Simon Josefsson  <simon@josefsson.org>
70995         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
70996         TESTS_ENVIRONMENT, for shell scripts that needs to call built
70997         programs.
70998         * tests/test-argp-2.sh: Use $EXEEXT when needed.
71000 2008-10-27  Simon Josefsson  <simon@josefsson.org>
71002         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
71004 2008-10-27  Bruno Haible  <bruno@clisp.org>
71006         * tests/test-lstat.c: Include <stdio.h>.
71008 2008-10-27  Simon Josefsson  <simon@josefsson.org>
71010         * modules/lstat-tests: New module.
71011         * tests/test-lstat.c: New file.
71013 2008-10-26  Jim Meyering  <meyering@redhat.com>
71015         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
71017 2008-10-26  Simon Josefsson  <simon@josefsson.org>
71018             Bruno Haible  <bruno@clisp.org>
71020         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
71021         * modules/configmake (Include): Add a note that the include must come
71022         after all system headers.
71023         * lib/javaversion.c: Include configmake.h after all other includes.
71025 2008-10-26  Bruno Haible  <bruno@clisp.org>
71027         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
71028         HAVE_STRUCT_RANDOM_DATA to 1.
71029         (gl_STDLIB_H): Simplify.
71031 2008-10-26  Simon Josefsson  <simon@josefsson.org>
71033         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
71034         substitute HAVE_STRUCT_RANDOM_DATA.
71035         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
71036         random_data.
71037         * modules/stdlib (Makefile.am): Substitute
71038         HAVE_STRUCT_RANDOM_DATA.
71040 2008-10-26  Simon Josefsson  <simon@josefsson.org>
71042         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
71043         * doc/gnulib-intro.texi (Copyright): Likewise.
71045 2008-10-26  Simon Josefsson  <simon@josefsson.org>
71047         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
71048         findings.
71050 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
71051             Bruno Haible  <bruno@clisp.org>
71053         * lib/unistd.in.h: Include <winsock2.h>.
71054         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
71055         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
71056         Provide dummy declarations.
71057         (gethostname): Override.
71058         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
71059         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
71060         gl_PREREQ_SYS_H_WINSOCK2.
71061         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
71062         * doc/posix-functions/gethostname.texi: More details.
71064 2008-10-25  Bruno Haible  <bruno@clisp.org>
71066         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
71067         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
71068         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
71070         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
71071         here ...
71072         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
71073         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
71074         gl_UNISTD_H_DEFAULTS.
71076 2008-10-25  Eric Blake  <ebb9@byu.net>
71078         signbit: avoid spurious compiler failure
71079         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
71080         declarations inside function.
71082 2008-10-24  Simon Josefsson  <simon@josefsson.org>
71083             Bruno Haible  <bruno@clisp.org>
71085         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
71086         * modules/random_r (Depends-on): Add stdint.
71088 2008-10-24  Bruno Haible  <bruno@clisp.org>
71090         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
71091         Eggert.
71092         * modules/strerror (License): Likewise.
71094 2008-10-24  Jim Meyering  <meyering@redhat.com>
71096         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
71097         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
71099 2008-10-24  Eric Blake  <ebb9@byu.net>
71101         getgroups: fix compilation when getgroups is available
71102         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
71103         but with <config.h> override of getgroups disabled.
71105 2008-10-24  Simon Josefsson  <simon@josefsson.org>
71107         * doc/gnulib.texi (Header files): Add note about C++ problems.
71108         Explained by Bruno Haible <bruno@clisp.org>.
71110 2008-10-23  Bruno Haible  <bruno@clisp.org>
71112         Define a dummy SA_NODEFER macro on Interix.
71113         * lib/signal.in.h (SA_NODEFER): Define fallback.
71114         Reported by Aleksey Cheusov <cheusov@tut.by> via
71115         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
71117 2008-10-23  Bruno Haible  <bruno@clisp.org>
71119         * modules/freadahead (License): Change to LGPLv2+.
71120         Suggested by Simon Josefsson.
71122 2008-10-23  Jim Meyering  <meyering@redhat.com>
71124         random_r: new module
71125         * modules/random_r: New file.
71126         * m4/random_r.m4: New file.
71127         * lib/random_r.c: New file, from glibc.
71128         * modules/random_r-tests: New file.
71129         * tests/test-random_r.c: New file.
71130         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
71131          Declare.
71132         (RAND_MAX): Define.
71133         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
71134         * modules/stdlib: Substitute them, too.
71135         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
71136         * doc/glibc-functions/initstate_r.texi: Mention the new module.
71137         * doc/glibc-functions/random_r.texi: Likewise.
71138         * doc/glibc-functions/setstate_r.texi: Likewise.
71139         * doc/glibc-functions/srandom_r.texi: Likewise.
71140         * config/srclist.txt: Mention it.
71142 2008-10-23  David Lutterkort  <lutter@redhat.com>
71144         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
71145         link requirement
71147 2008-10-23  Jim Meyering  <meyering@redhat.com>
71149         selinux-h: mark parameters of stub functions as intentionally unused
71150         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
71151         * lib/se-context.in.h: Likewise.
71153 2008-10-22  Simon Josefsson  <simon@josefsson.org>
71155         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
71157 2008-10-22  Simon Josefsson  <simon@josefsson.org>
71159         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
71161 2008-10-22  Eric Blake  <ebb9@byu.net>
71163         glthread/thread: avoid compiler warning
71164         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
71165         Add unreachable abort to silence compiler.
71167 2008-10-22  Eric Blake  <ebb9@byu.net>
71169         netdb: also supply struct addrinfo for cygwin 1.5.x
71170         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
71171         older cygwin.
71172         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
71173         cygwin.
71174         * doc/posix-headers/netdb.texi (netdb.h): Document this.
71176 2008-10-22  Bruno Haible  <bruno@clisp.org>
71178         * users.txt: Update entry about pspp.
71180 2008-10-21  Bruno Haible  <bruno@clisp.org>
71182         Simplification.
71183         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
71184         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
71186         Simplification.
71187         * lib/ioctl.c (ioctl): Don't undefine.
71188         * lib/socket.c (socket): Don't undefine.
71190         Remove unused module indicator macros.
71191         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
71192         GNULIB_$1 as a C macro.
71194         * doc/posix-functions/close.texi: Undo last change.
71195         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
71196         Windows platforms.
71198 2008-10-21  Bruno Haible  <bruno@clisp.org>
71200         Add gethostname() declaration to <unistd.h>.
71201         * lib/unistd.in.h (gethostname): New declaration.
71202         * lib/gethostname.c: Include <unistd.h>.
71203         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
71204         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
71205         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
71206         and HAVE_GETHOSTNAME.
71207         * modules/gethostname (Depends-on): Add unistd.
71208         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71209         (Include): Specify <unistd.h>.
71210         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
71211         HAVE_GETHOSTNAME.
71212         * tests/test-gethostname.c: Include <unistd.h> first.
71214 2008-10-21  Bruno Haible  <bruno@clisp.org>
71216         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
71217         * modules/select-tests (Depends-on): Likewise.
71218         Reported by Simon Josefsson.
71220 2008-10-21  Simon Josefsson  <simon@josefsson.org>
71222         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
71223         * lib/accept.c: New file, based on winsock.c.
71224         * lib/bind.c: New file, based on winsock.c.
71225         * lib/connect.c: New file, based on winsock.c.
71226         * lib/getpeername.c: New file, based on winsock.c.
71227         * lib/getsockname.c: New file, based on winsock.c.
71228         * lib/getsockopt.c: New file, based on winsock.c.
71229         * lib/ioctl.c: New file, based on winsock.c.
71230         * lib/listen.c: New file, based on winsock.c.
71231         * lib/recv.c: New file, based on winsock.c.
71232         * lib/recvfrom.c: New file, based on winsock.c.
71233         * lib/send.c: New file, based on winsock.c.
71234         * lib/sendto.c: New file, based on winsock.c.
71235         * lib/setsockopt.c: New file, based on winsock.c.
71236         * lib/shutdown.c: New file, based on winsock.c.
71237         * lib/socket.c: New file, based on winsock.c.
71238         * lib/w32sock.h: New file, based on winsock.c.
71239         * lib/winsock.c: Remove file.
71240         * modules/accept: Likewise.
71241         * modules/bind: Likewise.
71242         * modules/connect: Likewise.
71243         * modules/getpeername: Likewise.
71244         * modules/getsockname: Likewise.
71245         * modules/getsockopt: Likewise.
71246         * modules/ioctl: Likewise.
71247         * modules/listen: Likewise.
71248         * modules/recv: Likewise.
71249         * modules/recvfrom: Likewise.
71250         * modules/send: Likewise.
71251         * modules/sendto: Likewise.
71252         * modules/setsockopt: Likewise.
71253         * modules/shutdown: Likewise.
71254         * modules/socket: Use socket.c instead of winsock.c.
71255         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
71256         * doc/posix-functions/accept.texi: Doc fix.
71257         * doc/posix-functions/bind.texi: Doc fix.
71258         * doc/posix-functions/close.texi: Doc fix.
71259         * doc/posix-functions/connect.texi: Doc fix.
71260         * doc/posix-functions/getpeername.texi: Doc fix.
71261         * doc/posix-functions/getsockname.texi: Doc fix.
71262         * doc/posix-functions/getsockopt.texi: Doc fix.
71263         * doc/posix-functions/ioctl.texi: Doc fix.
71264         * doc/posix-functions/listen.texi: Doc fix.
71265         * doc/posix-functions/recv.texi: Doc fix.
71266         * doc/posix-functions/recvfrom.texi: Doc fix.
71267         * doc/posix-functions/send.texi: Doc fix.
71268         * doc/posix-functions/sendto.texi: Doc fix.
71269         * doc/posix-functions/setsockopt.texi: Doc fix.
71270         * doc/posix-functions/shutdown.texi: Doc fix.
71271         * doc/posix-functions/socket.texi: Doc fix.
71273 2008-10-20  Bruno Haible  <bruno@clisp.org>
71275         Take into account the role of SIGABRT_COMPAT on Windows 2008.
71276         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
71277         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
71278         as an alias for SIGABRT.
71279         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
71280         (sigaction): Map it to SIGABRT.
71281         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
71283 2008-10-20  Bruno Haible  <bruno@clisp.org>
71285         * lib/fts.c: Don't include lstat.h.
71286         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
71288         Move the lstat() declaration to <sys/stat.h>.
71289         * lib/lstat.h: Remove file.
71290         * lib/sys_stat.in.h: Add special invocation convention.
71291         (lstat): New declaration.
71292         * lib/lstat.c (orig_lstat): New function.
71293         (rpl_lstat): Use orig_lstat instead of lstat.
71294         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
71295         AC_C_INLINE. Set REPLACE_LSTAT.
71296         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
71297         and REPLACE_LSTAT.
71298         * modules/lstat (Files): Remove lib/lstat.h.
71299         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
71300         (Include): Specify <sys/stat.h> instead of lstat.h.
71301         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
71302         REPLACE_LSTAT.
71303         * NEWS: Mention the change.
71305 2008-10-20  Bruno Haible  <bruno@clisp.org>
71307         * modules/posix_spawn-tests: New file.
71308         * tests/test-posix_spawn3.c: New file.
71310 2008-10-20  Bruno Haible  <bruno@clisp.org>
71312         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
71313         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
71314         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
71315         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
71316         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
71318 2008-10-20  Bruno Haible  <bruno@clisp.org>
71320         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
71321         of posix_spawn on AIX 5.3.
71323 2008-10-20  Bruno Haible  <bruno@clisp.org>
71325         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
71327 2008-10-20  Bruno Haible  <bruno@clisp.org>
71329         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
71330         of AC_LANG_PROGRAM.
71332 2008-10-20  Simon Josefsson  <simon@josefsson.org>
71334         * lib/netdb.in.h: Don't define GNU specific constants until they
71335         are supported or needed.  Reported by Bruno Haible
71336         <bruno@clisp.org>.
71338 2008-10-20  Simon Josefsson  <simon@josefsson.org>
71340         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
71342 2008-10-20  Simon Josefsson  <simon@josefsson.org>
71344         * lib/getaddrinfo.h: Remove file.
71345         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
71346         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
71347         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
71348         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
71349         * modules/netdb: Substitute GNULIB_GETADDRINFO.
71350         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
71351         * tests/test-getaddrinfo.c: Likewise.
71352         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
71353         * NEWS: Mention change.
71355 2008-10-19  Bruno Haible  <bruno@clisp.org>
71357         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
71359 2008-10-19  Bruno Haible  <bruno@clisp.org>
71361         * lib/wait-process.c: Include simply <sys/wait.h>.
71362         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
71363         WIFSTOPPED): Remove fallback definitions.
71364         * modules/wait-process (Depends-on): Add sys_wait.
71366         New module 'sys_wait'.
71367         * modules/sys_wait: New file.
71368         * lib/sys_wait.in.h: New file, partially copied from
71369         lib/wait-process.c.
71370         * m4/sys_wait_h.m4: New file.
71371         * doc/posix-headers/sys_wait.texi: Mention the new module.
71373 2008-10-19  Bruno Haible  <bruno@clisp.org>
71375         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
71377 2008-10-19  Bruno Haible  <bruno@clisp.org>
71379         Assume that waitpid() fills an 'int' status, not a 'union wait'.
71380         * lib/wait-process.c (WAIT_T): Remove type.
71381         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
71382         (wait_subprocess): Update.
71384 2008-10-19  Bruno Haible  <bruno@clisp.org>
71386         New module 'atoll'.
71387         * modules/atoll: New file.
71388         * lib/stdlib.in.h (atoll): New declaration.
71389         * lib/atoll.c: New file, from glibc with modifications.
71390         * m4/atoll.m4: New file.
71391         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
71392         HAVE_ATOLL.
71393         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
71394         * doc/posix-functions/atoll.texi: Mention the new module.
71396 2008-10-19  Bruno Haible  <bruno@clisp.org>
71398         Add strtoull() declaration to <stdlib.h>.
71399         * lib/stdlib.in.h (strtoull): New declaration.
71400         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
71401         Set HAVE_STRTOULL.
71402         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
71403         HAVE_STRTOULL.
71404         * modules/strtoull (Depends-on): Add stdlib.
71405         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71406         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
71407         HAVE_STRTOULL.
71409 2008-10-19  Bruno Haible  <bruno@clisp.org>
71411         Add strtoll() declaration to <stdlib.h>.
71412         * lib/stdlib.in.h (strtoll): New declaration.
71413         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
71414         Set HAVE_STRTOLL.
71415         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
71416         HAVE_STRTOLL.
71417         * modules/strtoll (Depends-on): Add stdlib.
71418         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71419         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
71421 2008-10-19  Bruno Haible  <bruno@clisp.org>
71423         * modules/bcopy (Depends-on): Add strings.
71424         (Include): Specify <strings.h>.
71426 2008-10-19  Bruno Haible  <bruno@clisp.org>
71428         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
71430 2008-10-19  Bruno Haible  <bruno@clisp.org>
71432         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
71433         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
71434         mingw.
71436 2008-10-19  Bruno Haible  <bruno@clisp.org>
71438         * lib/atanl.c: Don't include isnanl.h.
71439         * lib/cosl.c: Likewise.
71440         * lib/ldexpl.c: Likewise.
71441         * lib/logl.c: Likewise.
71442         * lib/sinl.c: Likewise.
71443         * lib/sqrtl.c: Likewise.
71444         * lib/tanl.c: Likewise.
71446         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
71447         * lib/isnanf.h: Remove file.
71448         * lib/isnand.h: Remove file.
71449         * lib/isnanl.h: Remove file.
71450         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
71451         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
71452         macros.
71453         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
71454         HAVE_ISNANF, don't define it as a C macro.
71455         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
71456         HAVE_ISNAND, don't define it as a C macro.
71457         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
71458         HAVE_ISNANL, don't define it as a C macro.
71459         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
71460         HAVE_ISNAN[FDL].
71461         * modules/isnanf (Files): Remove lib/isnanf.h.
71462         (Depends-on): Add math.
71463         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
71464         (Include): Specify <math.h> instead of isnanf.h.
71465         * modules/isnand (Files): Remove lib/isnand.h.
71466         (Depends-on): Add math.
71467         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
71468         (Include): Specify <math.h> instead of isnand.h.
71469         * modules/isnanl (Files): Remove lib/isnanl.h.
71470         (Depends-on): Add math.
71471         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
71472         (Include): Specify <math.h> instead of isnanl.h.
71473         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
71474         HAVE_ISNAN[FDL].
71475         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
71476         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
71477         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
71478         * NEWS: Mention the change.
71480 2008-10-18  Bruno Haible  <bruno@clisp.org>
71482         Add getusershell(), setusershell(), endusershell() declarations to
71483         <unistd.h>.
71484         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
71485         declarations.
71486         * lib/getusershell.c: Include unistd.h.
71487         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
71488         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
71489         HAVE_GETUSERSHELL.
71490         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
71491         and HAVE_GETUSERSHELL.
71492         * modules/getusershell (Depends-on): Add unistd, extensions.
71493         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71494         (Include): Specify <unistd.h>.
71495         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
71496         HAVE_GETUSERSHELL.
71498 2008-10-18  Bruno Haible  <bruno@clisp.org>
71500         Add a getloadavg() declaration to <stdlib.h>.
71501         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
71502         getloadavg declaration.
71503         (getloadavg): New declaration.
71504         * lib/getloadavg.c: Include <stdlib.h> first.
71505         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
71506         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
71507         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
71508         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
71509         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
71510         * modules/getloadavg (Depends-on): Add stdlib, extensions.
71511         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71512         (Include): Specify <stdlib.h>.
71513         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
71514         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
71516 2008-10-18  Bruno Haible  <bruno@clisp.org>
71518         * lib/dirchownmod.c: Don't include lchmod.h.
71520         Move the lchmod() declaration to <sys/stat.h>.
71521         * lib/lchmod.h: Remove file.
71522         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
71523         (lchmod): New declaration, moved here from lib/lchown.h.
71524         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
71525         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
71526         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
71527         and HAVE_LCHMOD.
71528         * modules/lchmod (Files): Remove lib/lchmod.h.
71529         (Depends-on): Add sys_stat, extensions.
71530         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
71531         (Include): Specify <sys/stat.h> instead of lchmod.h.
71532         * modules/sys_stat (Depends-on): Add link-warning.
71533         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
71534         definition of GL_LINK_WARNING.
71535         * NEWS: Mention the change.
71537 2008-10-18  Bruno Haible  <bruno@clisp.org>
71539         * lib/fchdir.c: Don't include dirfd.h.
71540         * lib/fts.c: Likewise.
71541         * lib/getcwd.c: Likewise.
71542         * lib/glob.c: Likewise.
71544         Move the dirfd() declaration to <dirent.h>.
71545         * lib/dirfd.h: Remove file.
71546         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
71547         (dirfd): New declaration.
71548         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
71549         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
71550         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
71551         HAVE_DECL_DIRFD.
71552         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
71553         HAVE_DECL_DIRFD.
71554         * modules/dirfd (Files): Remove lib/dirfd.h.
71555         (Depends-on): Add dirent, extensions.
71556         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
71557         (Include): Specify <dirent.h> instead of dirfd.h.
71558         * modules/dirent (Depends-on): Add link-warning.
71559         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
71560         definition of GL_LINK_WARNING.
71561         * NEWS: Mention the change.
71563 2008-10-18  Bruno Haible  <bruno@clisp.org>
71565         Move the euidaccess() declaration to <unistd.h>.
71566         * lib/euidaccess.h: Remove file.
71567         * lib/unistd.in.h (euidaccess): New declaration.
71568         * lib/euidaccess.c: Don't include euidaccess.h.
71569         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
71570         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
71571         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
71572         and HAVE_EUIDACCESS.
71573         * modules/euidaccess (Files): Remove lib/euidaccess.h.
71574         (Depends-on): Add unistd.
71575         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71576         (Include): Specify <unistd.h> instead of euidaccess.h.
71577         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
71578         HAVE_EUIDACCESS.
71579         * NEWS: Mention the change.
71581 2008-10-18  Bruno Haible  <bruno@clisp.org>
71583         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
71585         Move the getdomainname() declaration to <unistd.h>.
71586         * lib/getdomainname.h: Remove file.
71587         * lib/unistd.in.h (getdomainname): New declaration.
71588         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
71589         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
71590         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
71591         HAVE_GETDOMAINNAME.
71592         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
71593         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
71594         * modules/getdomainname (Files): Remove lib/getdomainname.h.
71595         (Depends-on): Add unistd, extensions.
71596         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71597         (Includes): Specify <unistd.h> instead of getdomainname.h.
71598         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
71599         HAVE_GETDOMAINNAME.
71600         * NEWS: Mention the change.
71602 2008-10-18  Bruno Haible  <bruno@clisp.org>
71604         * modules/dirent: New file.
71605         * m4/dirent_h.m4: New file.
71606         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
71607         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
71608         * modules/fchdir (Files): Remove lib/dirent.in.h.
71609         (Depends-on): Add dirent.
71610         (Makefile.am): Move rules to modules/dirent.
71611         * doc/posix-headers/dirent.texi: Mention the new module.
71613 2008-10-18  Bruno Haible  <bruno@clisp.org>
71615         Avoid -Wunused-parameter warnings in public gnulib header files.
71616         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
71617         macro.
71618         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
71620 2008-10-18  Bruno Haible  <bruno@clisp.org>
71622         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
71623         * doc/glibc-functions/error.texi: Mention the module 'error'.
71624         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
71625         * doc/glibc-functions/getdomainname.texi: Mention the module
71626         'getdomainname'.
71627         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
71628         * doc/glibc-functions/getpagesize.texi: Mention the module
71629         'getpagesize'.
71630         * doc/glibc-functions/getusershell.texi: Mention the module
71631         'getusershell'.
71632         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
71633         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
71634         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
71635         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
71636         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
71637         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
71638         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
71639         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
71640         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
71641         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
71642         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
71643         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
71644         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
71645         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
71647 2008-10-17  Bruno Haible  <bruno@clisp.org>
71649         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
71650         HP-UX and IRIX, use -0.0L.
71651         * tests/test-ceill.c (minus_zero): Likewise.
71652         * tests/test-floorl.c (minus_zero): Likewise.
71653         * tests/test-frexpl.c (minus_zero): Likewise.
71654         * tests/test-isnan.c (minus_zerol): Likewise.
71655         * tests/test-isnanl.h (minus_zero): Likewise.
71656         * tests/test-ldexpl.c (minus_zero): Likewise.
71657         * tests/test-roundl.c (minus_zero): Likewise.
71658         * tests/test-signbit.c (minus_zerol): Likewise.
71659         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
71660         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
71661         * tests/test-truncl.c (minus_zero): Likewise.
71662         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
71663         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
71664         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
71665         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
71667 2008-10-17  Bruno Haible  <bruno@clisp.org>
71669         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
71670         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
71671         that it gets activated only for gcc >= 3.0.
71672         * lib/dirent.in.h: Likewise.
71673         * lib/errno.in.h: Likewise.
71674         * lib/fcntl.in.h: Likewise.
71675         * lib/float.in.h: Likewise.
71676         * lib/iconv.in.h: Likewise.
71677         * lib/inttypes.in.h: Likewise.
71678         * lib/locale.in.h: Likewise.
71679         * lib/math.in.h: Likewise.
71680         * lib/netdb.in.h: Likewise.
71681         * lib/netinet_in.in.h: Likewise.
71682         * lib/search.in.h: Likewise.
71683         * lib/signal.in.h: Likewise.
71684         * lib/spawn.in.h: Likewise.
71685         * lib/stdarg.in.h: Likewise.
71686         * lib/stdint.in.h: Likewise.
71687         * lib/stdio.in.h: Likewise.
71688         * lib/stdlib.in.h: Likewise.
71689         * lib/string.in.h: Likewise.
71690         * lib/strings.in.h: Likewise.
71691         * lib/sys_file.in.h: Likewise.
71692         * lib/sys_ioctl.in.h: Likewise.
71693         * lib/sys_select.in.h: Likewise.
71694         * lib/sys_socket.in.h: Likewise.
71695         * lib/sys_stat.in.h: Likewise.
71696         * lib/sys_time.in.h: Likewise.
71697         * lib/sysexits.in.h: Likewise.
71698         * lib/time.in.h: Likewise.
71699         * lib/unistd.in.h: Likewise.
71700         * lib/wchar.in.h: Likewise.
71701         * lib/wctype.in.h: Likewise.
71702         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71704 2008-10-17  Jim Meyering  <meyering@redhat.com>
71706         ignore-value: don't depend on inline module
71707         * modules/ignore-value (Depends-on): Remove 'inline'.
71708         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
71709         Suggestion from Bruno Haible.
71711 2008-10-17  Bruno Haible  <bruno@clisp.org>
71713         New implementation of condition variables for Win32.
71714         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
71715         (gl_linked_waitqueue_t): New type.
71716         (gl_cond_t): Use it.
71717         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
71718         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
71719         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
71720         (glthread_cond_init_func, glthread_cond_wait_func,
71721         glthread_cond_timedwait_func, glthread_cond_signal_func,
71722         glthread_cond_broadcast_func, glthread_cond_destroy_func):
71723         Reimplemented on the basis of gl_linked_waitqueue_t.
71724         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
71725         gl_waitqueue_t.
71726         (gl_rwlock_t): Update.
71727         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
71729 2008-10-17  Simon Josefsson  <simon@josefsson.org>
71731         * modules/recvfrom (Depends-on): Add dependency on getpeername.
71732         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
71734 2008-10-17  Jim Meyering  <meyering@redhat.com>
71736         ignore-value: new module
71737         * modules/ignore-value: New file.
71738         * lib/ignore-value.h: New file.
71739         * MODULES.html.sh (Compiler warning management): New section,
71740         just for this module.  More to come.
71742 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
71744         open-safer.c: avoid 'signed and unsigned in conditional...' warning
71745         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
71746         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
71748 2008-10-16  Jim Meyering  <meyering@redhat.com>
71750         openat-die.c: avoid 'no previous prototype' warning
71751         * lib/openat-die.c: Include "openat.h".
71752         Reported by Reuben Thomas <rrt@sc3d.org>.
71754 2008-10-16  Simon Josefsson  <simon@josefsson.org>
71756         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
71757         * lib/netdb.in.h: Fix typo.
71758         Reported by Bruno Haible  <bruno@clisp.org>
71760         * lib/netdb.in.h: Include sys/socket.h for platforms without
71761         netdb.h, to get structures like hostent on MinGW.
71762         * modules/netdb (Depends-on): Add sys_socket.
71764 2008-10-15  Simon Josefsson  <simon@josefsson.org>
71766         * modules/netdb, modules/netdb-tests: New file.
71767         * m4/netdb_h.m4: New file.
71768         * lib/netdb.in.h: Add, currently just an empty file pending
71769         definitions.
71770         * tests/test-netdb.c: New file.
71771         * doc/posix-headers/netdb.texi: Mention that we replace it if
71772         needed.
71773         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71774         netdb.
71776 2008-10-15  Simon Josefsson  <simon@josefsson.org>
71778         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
71779         with code.
71781 2008-10-13  Bruno Haible  <bruno@clisp.org>
71783         * lib/glthread/cond.c (glthread_cond_wait_func,
71784         glthread_cond_timedwait_func): Add a comment.
71786 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71788         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
71789         * tests/test-select.c: Likewise,
71791 2008-10-13  Bruno Haible  <bruno@clisp.org>
71793         * lib/glthread/cond.c (glthread_cond_wait_func,
71794         glthread_cond_timedwait_func): Fix variable name.
71795         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
71797 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
71799         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
71800         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
71801         struct sockaddr.sa_len.
71802         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
71804 2008-10-13  Simon Josefsson  <simon@josefsson.org>
71806         * build-aux/pmccabe2html: Add css and css_url parameters.
71808 2008-10-12  Bruno Haible  <bruno@clisp.org>
71810         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
71811         calling aclx_get.
71812         Reported by Rainer Tammer <tammer@tammer.net>.
71814 2008-10-12  Bruno Haible  <bruno@clisp.org>
71816         Use msvcrt aware primitives for creation/termination of Win32 threads.
71817         * lib/glthread/thread.c: Include <process.h>.
71818         (glthread_create_func): Use _beginthreadex instead of CreateThread.
71819         (wrapper_func): Update signature.
71820         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
71822 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71823             Bruno Haible  <bruno@clisp.org>
71825         Provide a Win32 implementation of the 'cond' module.
71826         * lib/glthread/cond.h [USE_WIN32]: New implementation.
71827         * lib/glthread/cond.c (glthread_cond_init_func,
71828         glthread_cond_wait_func, glthread_cond_timedwait_func,
71829         glthread_cond_signal_func, glthread_cond_broadcast_func,
71830         glthread_cond_destroy_func) [USE_WIN32]: New functions.
71831         * modules/cond (Dependencies): Add gettimeofday.
71833 2008-10-11  Bruno Haible  <bruno@clisp.org>
71835         Make sleep work on older versions of mingw.
71836         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
71837         only whether it exists.
71838         * doc/posix-functions/sleep.texi: Mention the problem with older
71839         versions of mingw.
71841 2008-10-11  Bruno Haible  <bruno@clisp.org>
71843         New module 'shutdown'.
71844         * modules/shutdown: New file.
71845         * lib/sys_socket.in.h (shutdown): New declaration.
71846         * lib/winsock.c (shutdown): New function.
71847         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
71848         GNULIB_SHUTDOWN.
71849         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
71850         * doc/posix-functions/shutdown.texi: Document the new module.
71852 2008-10-11  Jim Meyering  <meyering@redhat.com>
71854         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
71856 2008-10-11  Bruno Haible  <bruno@clisp.org>
71858         New module 'fclose'.
71859         * modules/fclose: New file.
71860         * lib/stdio.in.h (fclose): New declaration.
71861         * lib/fclose.c: New file.
71862         * m4/fclose.m4: New file.
71863         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
71864         REPLACE_FCLOSE.
71865         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
71866         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
71867         REPLACE_FCLOSE.
71868         * modules/close (Depends-on): fclose.
71869         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
71871 2008-10-11  Bruno Haible  <bruno@clisp.org>
71873         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
71874         set errno and don't call _close.
71876 2008-10-10  Bruno Haible  <bruno@clisp.org>
71878         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
71879         ACL, not afterwards. Fixes test failure on Cygwin.
71881 2008-10-09  Ben Pfaff  <blp@gnu.org>
71883         * build-aux/announce-gen: Fix gnulib version related part of usage
71884         message.  Die with a useful error message if no tarballs are
71885         found.
71887 2008-10-10  Jim Meyering  <meyering@redhat.com>
71889         bootstrap: use git's --depth=N option only if it's supported
71890         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
71891         recognize the --depth option.  Reported by Pádraig Brady.
71893 2008-10-09  Bruno Haible  <bruno@clisp.org>
71895         New module 'ioctl'.
71896         * modules/ioctl: New file.
71897         * lib/sys_socket.in.h (ioctl): Remove declaration.
71898         * lib/winsock.c: Include <sys/ioctl.h>.
71899         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
71900         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
71901         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
71902         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
71903         * doc/posix-functions/ioctl.texi: Mention the new module.
71905 2008-10-09  Bruno Haible  <bruno@clisp.org>
71907         New module 'sys_ioctl'.
71908         * lib/sys_ioctl.in.h: New file.
71909         * m4/sys_ioctl_h.m4: New file.
71910         * modules/sys_ioctl: New file.
71911         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
71913 2008-10-09  Bruno Haible  <bruno@clisp.org>
71915         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
71916         * lib/winsock.c: Include <stdarg.h>.
71917         (rpl_ioctl): Change to second argument 'int' and then varargs.
71919 2008-10-09  Bruno Haible  <bruno@clisp.org>
71921         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
71922         when the sys_socket module is present and the system has <winsock2.h>.
71924 2008-10-09  Bruno Haible  <bruno@clisp.org>
71926         * doc/posix-functions/close.texi: Mention module 'close' instead of
71927         module 'sys_socket'.
71929 2008-10-09  Bruno Haible  <bruno@clisp.org>
71931         * doc/glibc-headers/sys_ioctl.texi: New file.
71932         * doc/gnulib.texi: Include it.
71934 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
71935             Bruno Haible  <bruno@clisp.org>
71937         Combine the two replacements of 'close'.
71938         * lib/sys_socket.in.h (close): Define to a reminder to include
71939         <unistd.h>.
71940         (_gl_close_fd_maybe_socket): New declaration.
71941         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
71942         * lib/winsock.c (close): Remove undefinition.
71943         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
71944         needed for the gnulib module 'close'.
71945         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
71946         define to an error symbol or to a warning, if suitable.
71947         * lib/close.c: Include <sys/socket.h>.
71948         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
71949         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
71950         UNISTD_H_HAVE_WINSOCK2_H.
71951         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
71952         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
71953         UNISTD_H_HAVE_WINSOCK2_H.
71954         * modules/sys_socket (Files): Add m4/unistd_h.m4.
71955         (configure.ac): Set a module indicator.
71956         (Makefile.am): Substitute GNULIB_CLOSE.
71957         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
71958         * modules/poll-tests (Depends-on): Add close.
71959         * modules/select-tests (Depends-on): Likewise.
71961 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
71962             Bruno Haible  <bruno@clisp.org>
71964         New module 'close'.
71965         * modules/close: New file.
71966         * lib/unistd.in.h (close): Move declaration out of the
71967         FCHDIR_REPLACEMENT scope.
71968         (_gl_unregister_fd): New declaration.
71969         * lib/close.c: New file.
71970         * lib/fchdir.c (rpl_close): Remove function.
71971         * m4/close.m4: New file.
71972         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
71973         close.
71974         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
71975         REPLACE_CLOSE.
71976         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
71977         REPLACE_CLOSE.
71978         * modules/fchdir (Depends-on): Add close.
71980 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
71981             Bruno Haible  <bruno@clisp.org>
71983         * lib/fcntl.in.h (open): Simplify conditionals.
71984         (_gl_register_fd): New declaration.
71985         * lib/fchdir.c (rpl_open): Remove function.
71986         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
71987         also.
71988         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
71989         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
71990         open.
71992 2008-10-09  Jim Meyering  <meyering@redhat.com>
71994         GNUmakefile: use the more name-space-friendly "_version"
71995         * top/GNUmakefile (_dummy): Update.
71996         (_version): Rename from "version".
71998 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
71999             Bruno Haible  <bruno@clisp.org>
72001         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
72002         rpl_close.
72003         (_gl_register_fd): New function, extracted from rpl_open.
72004         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
72005         (rpl_open, rpl_opendir): Use _gl_register_fd.
72007 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
72009         Fix organization of 'open' replacement.
72010         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
72011         (gl_FUNC_OPEN): Use it.
72012         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
72014 2008-10-08  Bruno Haible  <bruno@clisp.org>
72016         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
72018 2008-10-08  Simon Josefsson  <simon@josefsson.org>
72020         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
72021         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
72022         listen).
72024 2008-10-08  Eric Blake  <ebb9@byu.net>
72026         GNUmakefile: add 'make version' target
72027         * top/GNUmakefile (_curr-ver): Split version update rules...
72028         (version): ...into a target.
72030 2008-10-07  Bruno Haible  <bruno@clisp.org>
72032         Use a more portable replacement expression for -0.0L.
72033         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
72034         instead of -0.0L. Fix m4 quotation.
72036         * tests/test-signbit.c: Include <float.h>.
72037         (minus_zero): New variable.
72038         (test_signbitl): Use minus_zero instead of -zero.
72039         * modules/signbit-tests (Depends-on): Add float.
72041         * tests/test-ceill.c: Include <float.h>.
72042         (zero): Remove variable.
72043         (minus_zero): New variable.
72044         (main): Use minus_zero instead of -zero.
72045         * modules/ceill-tests (Depends-on): Add float.
72047         * tests/test-floorl.c: Include <float.h>.
72048         (zero): Remove variable.
72049         (minus_zero): New variable.
72050         (main): Use minus_zero instead of -zero.
72051         * modules/floorl-tests (Depends-on): Add float.
72053         * tests/test-roundl.c: Include <float.h>.
72054         (zero): Remove variable.
72055         (minus_zero): New variable.
72056         (main): Use minus_zero instead of -zero.
72057         * modules/roundl-tests (Depends-on): Add float.
72059         * tests/test-truncl.c: Include <float.h>.
72060         (zero): Remove variable.
72061         (minus_zero): New variable.
72062         (main): Use minus_zero instead of -zero.
72063         * modules/truncl-tests (Depends-on): Add float.
72065         * tests/test-frexpl.c (zero): Remove variable.
72066         (minus_zero): New variable.
72067         (main): Use minus_zero instead of -zero.
72068         * modules/frexpl-tests (Depends-on): Add float.
72070         * tests/test-isnan.c (zerol): Remove variable.
72071         (minus_zerol): New variable.
72072         (test_long_double): Use minus_zerol instead of -zerol.
72073         * modules/isnan-tests (Depends-on): Add float.
72075         * tests/test-isnanl.h (zero): Remove variable.
72076         (minus_zero): New variable.
72077         (main): Use minus_zero instead of -zero.
72078         * modules/isnanl-nolibm-tests (Depends-on): Add float.
72079         * modules/isnanl-tests (Depends-on): Add float.
72081         * tests/test-ldexpl.c (zero): Remove variable.
72082         (minus_zero): New variable.
72083         (main): Use minus_zero instead of -zero.
72084         * modules/ldexpl-tests (Depends-on): Add float.
72086         * tests/test-snprintf-posix.h (zerol): Remove variable.
72087         (minus_zerol): New variable.
72088         (test_function): Use minus_zerol instead of -zerol.
72089         * modules/snprintf-posix-tests (Depends-on): Add float.
72090         * modules/vsnprintf-posix-tests (Depends-on): Add float.
72092         * tests/test-sprintf-posix.h (zerol): Remove variable.
72093         (minus_zerol): New variable.
72094         (test_function): Use minus_zerol instead of -zerol.
72095         * modules/sprintf-posix-tests (Depends-on): Add float.
72096         * modules/vsprintf-posix-tests (Depends-on): Add float.
72098         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
72099         (minus_zerol): New variable.
72100         (test_function): Use minus_zerol instead of -zerol.
72101         * modules/vasnprintf-posix-tests (Depends-on): Add float.
72103         * tests/test-vasprintf-posix.c (zerol): Remove variable.
72104         (minus_zerol): New variable.
72105         (test_function): Use minus_zerol instead of -zerol.
72106         * modules/vasprintf-posix-tests (Depends-on): Add float.
72108 2008-10-07  Simon Josefsson  <simon@josefsson.org>
72110         * MODULES.html.sh (Support for building documentation): Mention
72111         pmccabe2html.  Sort entries.
72113         Add pmccabe2html module, from gnupdf.
72114         * build-aux/pmccabe.css: New file.
72115         * build-aux/pmccabe2html: New file.
72116         * m4/pmccabe2html.m4: New file.
72117         * modules/pmccabe2html: New file.
72119 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
72121         flock: new module
72122         * MODULES.html.sh: Add to list of modules.
72123         * lib/flock.c: flock implementation for Windows and Unix systems
72124         which have fcntl.
72125         * doc/glibc-functions/flock.texi: Update documentation.
72126         * lib/sys_file.in.h: <sys/file.h> header file.
72127         * m4/flock.m4: M4 macros.
72128         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
72129         * modules/flock: flock module.
72130         * modules/flock-tests: flock tests module.
72131         * modules/sys_file: sys/file.h module.
72132         * tests/test-flock.c: test suite for flock.
72134 2008-10-06  Jim Meyering  <meyering@redhat.com>
72136         bootstrap: check for LT_INIT more portably still ;-)
72137         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
72138         Spotted by Bruno Haible.
72140 2008-10-06  Eric Blake  <ebb9@byu.net>
72142         test-signbit: avoid tripping Irix cc bug on -0.0L
72143         * tests/test-signbit.c (minus_zerol): Delete, and replace with
72144         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
72145         entire testsuite consistent and avoids an Irix 6.2 bug.
72147 2008-10-05  Bruno Haible  <bruno@clisp.org>
72148             Jim Meyering  <jim@meyering.net>
72150         Add an option for ignoring EPIPE during close_stdout.
72151         * lib/closeout.h: Include <stdbool.h>.
72152         (close_stdout_set_ignore_EPIPE): New declaration.
72153         * lib/closeout.c: Include <stdbool.h>.
72154         (ignore_EPIPE): New variable.
72155         (close_stdout_set_ignore_EPIPE): New function.
72156         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
72157         * lib/close-stream.c (close_stream): Mention the possible EPIPE
72158         failure.
72159         * modules/closeout (Depends-on): Add stdbool.
72161 2008-10-05  Bruno Haible  <bruno@clisp.org>
72163         * modules/accept: New file.
72164         * modules/bind: New file.
72165         * modules/connect: New file.
72166         * modules/getpeername: New file.
72167         * modules/getsockname: New file.
72168         * modules/getsockopt: New file.
72169         * modules/listen: New file.
72170         * modules/recv: New file.
72171         * modules/recvfrom: New file.
72172         * modules/send: New file.
72173         * modules/sendto: New file.
72174         * modules/setsockopt: New file.
72175         * modules/socket: New file.
72176         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
72177         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
72178         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
72179         the particular module is requested. Add a link warning when the
72180         particular module is not requested.
72181         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
72182         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
72183         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
72184         the particular module is requested.
72185         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
72186         gl_SYS_SOCKET_H_DEFAULTS): New macros.
72187         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
72188         * modules/sys_socket (Depends-on): Add link-warning.
72189         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
72190         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
72191         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
72192         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
72193         GL_LINK_WARNING.
72194         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
72195         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
72196         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
72197         * doc/posix-functions/getpeername.texi: Mention the new module
72198         'getpeername'.
72199         * doc/posix-functions/getsockname.texi: Mention the new module
72200         'getsockname'.
72201         * doc/posix-functions/getsockopt.texi: Mention the new module
72202         'getsockopt'.
72203         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
72204         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
72205         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
72206         * doc/posix-functions/send.texi: Mention the new module 'send'.
72207         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
72208         * doc/posix-functions/setsockopt.texi: Mention the new module
72209         'setsockopt'.
72210         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
72211         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
72212         listen, connect, accept.
72213         * modules/select-tests (Depends-on): Likewise.
72215 2008-10-05  Bruno Haible  <bruno@clisp.org>
72217         * lib/winsock.c (strerror): Remove unused #undef.
72218         (rpl_close): Remove unused local variable.
72220         * modules/sys_socket (Depends-on); Add errno.
72222 2008-10-05  Bruno Haible  <bruno@clisp.org>
72224         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
72225         (select): Add a link warning when the 'select' module is not used.
72226         * modules/sys_select (Depends-on): Add link-warning.
72227         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
72228         Suggested by Paolo Bonzini.
72230 2008-10-05  Jim Meyering  <meyering@redhat.com>
72232         bootstrap: check for LT_INIT more portably
72233         * build-aux/bootstrap: Avoid using grep -E, since it's not
72234         portable enough.  Suggestion from Bruno Haible.
72236 2008-10-05  Bruno Haible  <bruno@clisp.org>
72238         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
72239         as being fixed by gnulib.
72241 2008-10-05  Bruno Haible  <bruno@clisp.org>
72243         * modules/select-tests: New file, mostly copied from
72244         modules/sys_select-tests.
72245         * tests/test-select.c: New file, mostly copied from
72246         tests/test-sys_select.c.
72247         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
72248         * modules/sys_select-tests (Depends-on): Remove all dependencies.
72249         (Makefile.am): Remove test_sys_select_LDADD.
72251         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
72252         to an undefined symbol, for an error message.
72253         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
72254         (gl_SYS_SELECT_H_DEFAULTS): New macro.
72255         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
72256         winsock-select.c here.
72257         * modules/sys_select (Files): Remove lib/winsock-select.c.
72258         (Depends-on): Remove alloca.
72259         (Makefile.am): Substitute GNULIB_SELECT.
72260         * modules/select: New file.
72261         * doc/posix-functions/select.texi: Update.
72263 2008-10-05  Bruno Haible  <bruno@clisp.org>
72265         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
72266         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
72267         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
72268         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
72269         getdtablesize.
72270         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
72271         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
72273 2008-10-05  Bruno Haible  <bruno@clisp.org>
72275         * modules/getdtablesize-tests: New file.
72276         * tests/test-getdtablesize.c: New file.
72278         New module 'getdtablesize'.
72279         * lib/unistd.in.h (getdtablesize): New declaration.
72280         * lib/getdtablesize.c: New file.
72281         * m4/getdtablesize.m4: New file.
72282         * modules/getdtablesize: New file.
72283         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
72284         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
72285         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
72286         HAVE_GETDTABLESIZE.
72287         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
72289 2008-10-05  Bruno Haible  <bruno@clisp.org>
72291         * modules/sched (Makefile.am): Fix typo.
72292         Reported by Simon Josefsson.
72294 2008-10-05  Jim Meyering  <meyering@redhat.com>
72296         bootstrap: check for LT_INIT, too
72297         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
72298         are deprecated.  Suggestion from Ralf Wildenhues.
72300 2008-10-05  Bruno Haible  <bruno@clisp.org>
72302         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
72303         overriding them by ours.
72304         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
72306 2008-10-05  Jim Meyering  <meyering@redhat.com>
72308         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
72309         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
72310         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
72312 2008-10-04  Bruno Haible  <bruno@clisp.org>
72314         * modules/dup2 (License): Change to LGPLv2+.
72315         * modules/sleep (License): Likewise.
72316         * modules/perror (License): Likewise.
72317         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
72318         Blake.
72319         * modules/signal (License): Likewise.
72320         * modules/sigprocmask (License): Likewise.
72321         * modules/raise (License): Change to LGPLv2+, with approval by Jim
72322         Meyering.
72324 2008-10-04  Bruno Haible  <bruno@clisp.org>
72326         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
72327         Reported by Rainer Tammer <tammer@tammer.net>.
72329 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
72330             Bruno Haible  <bruno@clisp.org>
72332         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
72333         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
72334         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
72336 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
72338         filevercmp: new module
72339         * lib/filevercmp.h: New function filevercmp comparing version strings.
72340         * lib/filevercmp.c: Implementation of filevercmp function.
72341         * modules/filevercmp: Module metadata.
72342         * tests/test-filevercmp.c: Unit test for new module.
72343         * modules/filevercmp-tests: Unit test metadata.
72344         * MODULES.html.sh: Add filevercmp module.
72346 2008-10-03  Bruno Haible  <bruno@clisp.org>
72348         * lib/c-ctype.h: Add comment.
72349         Reported by Jim Meyering.
72351 2008-10-02  Bruno Haible  <bruno@clisp.org>
72353         * modules/posix_spawn-internal (Depends-on): Add 'open'.
72355 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
72357         * build-aux/bootstrap: Allow renaming bootstrap, and change the
72358         name of bootstrap.conf accordingly.
72360 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
72362         * build-aux/bootstrap: Install git-merge-changelog configuration
72363         items into .gitconfig if needed.
72365 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
72367         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
72368         git repository, and initialize/update it accordingly.
72370 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
72372         * modules/fsync-tests: New file.
72373         * tests/test-fsync.c: New file.
72375         New module 'fsync'.
72376         * lib/fsync.c: New file.
72377         * m4/fsync.m4: New file.
72378         * modules/fsync: New file.
72379         * lib/unistd.in.h (fsync): New declaration.
72380         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
72381         GNULIB_FSYNC and HAVE_FSYNC.
72382         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
72383         * MODULES.html.sh (posix_functions): Add fsync.
72384         * doc/posix-functions/fsync.texi: Mention the new module.
72386 2008-10-02  Jim Meyering  <meyering@redhat.com>
72388         fts.c: sync with similar code from coreutils' remove.c
72389         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
72390         Guard also with "#if defined __linux__", since for now at least,
72391         this code is Linux-kernel-specific.
72393 2008-10-02  Jim Meyering  <meyering@redhat.com>
72395         fts: bug fixes
72396         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
72397         Include <sys/vfs.h>, not <sys/statfs.h>.
72399         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
72400         Include <sys/vfs.h>, not <sys/statfs.h>.
72402 2008-10-01  Bruno Haible  <bruno@clisp.org>
72404         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
72405         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
72406         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
72407         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
72408         * doc/posix-functions/posix_spawnp.texi: Likewise.
72409         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
72410         whether posix_spawn actually works.
72411         * m4/pipe.m4 (gl_PIPE): Likewise.
72412         * modules/execute (Files): Add m4/posix_spawn.m4.
72413         * modules/pipe (Files): Add m4/posix_spawn.m4.
72414         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
72416 2008-10-01  Jim Meyering  <meyering@redhat.com>
72418         remove trailing spaces
72419         * NEWS: Likewise.
72420         * lib/poll.c (poll): Likewise.
72421         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
72422         * lib/winsock.c (rpl_close): Likewise.
72423         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
72424         * modules/yield: Likewise.
72425         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
72426         * tests/test-sys_select.c (connect_to_socket): Likewise.
72428         fts.c: adjust a new interface to be more generally useful
72429         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
72430         (fts_build): Adjust caller.
72432 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72434         * modules/cond-tests: New file.
72435         * tests/test-cond.c: New file.
72437 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72438             Bruno Haible  <bruno@clisp.org>
72440         * modules/cond (Dependencies): Add errno, time.
72441         * lib/glthread/cond.h: Include <time.h>.
72442         (gl_cond_define, gl_cond_define_initialized): Use the same definition
72443         across platforms.
72445 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72446             Bruno Haible  <bruno@clisp.org>
72448         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
72450 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72451             Bruno Haible  <bruno@clisp.org>
72453         * modules/tls-tests (Depends-on): Add thread, yield.
72454         (configure.ac): Remove all checks.
72455         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
72456         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
72457         gl_thread_self): Remove definitions. Include glthread/thread.h and
72458         glthread/yield.h instead.
72459         (test_tls): Pass an additional NULL argument to gl_thread_join.
72461 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72462             Bruno Haible  <bruno@clisp.org>
72464         * modules/lock-tests (Depends-on): Add thread, yield.
72465         (configure.ac): Remove all checks.
72466         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
72467         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
72468         gl_thread_self): Remove definitions. Include glthread/thread.h and
72469         glthread/yield.h instead.
72470         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
72471         additional NULL argument to gl_thread_join.
72473 2008-09-30  Bruno Haible  <bruno@clisp.org>
72475         Fix the Win32 implementation of the 'thread' module.
72476         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
72477         pointer type.
72478         (gl_thread_self): Invoke gl_thread_self_func.
72479         (gl_thread_self_func): New declaration.
72480         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
72481         (do_init_self_key, init_self_key): New functions.
72482         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
72483         Remove some fields.
72484         (running_threads, running_lock): Remove variables.
72485         (get_current_thread_handle): New function.
72486         (gl_thread_self_func, wrapper_func, glthread_create_func,
72487         glthread_join_func, gl_thread_exit_func): Largely rewritten and
72488         simplified.
72490 2008-09-30  Bruno Haible  <bruno@clisp.org>
72492         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
72493         files.
72495 2008-09-30  Jim Meyering  <meyering@redhat.com>
72497         fts.m4: correct the test for statfs.f_type
72498         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
72499         when checking for statfs.f_type.
72501 2008-09-15  Simon Josefsson  <simon@josefsson.org>
72503         tests: avoid some compiler warnings
72504         * tests/test-memchr.c (main): Pass NULL indirectly.
72505         * tests/test-getdate.c (main): Remove unused variable 'ret'.
72507 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
72509         getdate.y: disallow countable dayshifts like "4 yesterday ago"
72510         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
72511         exactly specified dayshifts.
72512         (dayshift): New rule.
72513         (rel): Add dayshift.
72514         (relative_time_table) [tomorrow, yesterday, today, now]:
72515         Use tDAY_SHIFT in place of tDAY_UNIT.
72516         * tests/test-getdate.c: Add tests for now-disallowed countable
72517         dayshifts, e.g., "4 yesterday ago".
72519 2008-09-29  Bruno Haible  <bruno@clisp.org>
72521         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
72522         * tests/test-posix_spawn1.in.sh: Renamed from
72523         tests/test-posix_spawn.in.sh.
72524         * tests/test-posix_spawn2.c: New file.
72525         * tests/test-posix_spawn2.in.sh: New file.
72526         * modules/posix_spawnp-tests (Files): Update.
72527         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
72529 2008-09-29  Bruno Haible  <bruno@clisp.org>
72531         Propagate effects of putenv/setenv/unsetenv to child processes.
72532         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
72533         * lib/pipe.c (create_pipe): Likewise.
72535 2008-09-29  Bruno Haible  <bruno@clisp.org>
72537         Enable use of shell scripts as executables in mingw.
72538         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
72539         run the program as a shell script.
72540         * lib/pipe.c (create_pipe): Likewise.
72541         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
72542         resulting array.
72544 2008-09-29  Eric Blake  <ebb9@byu.net>
72546         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
72548 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
72550         * doc/posix-functions/accept.texi: Update mingw problems.
72551         * doc/posix-functions/bind.texi: Update mingw problems.
72552         * doc/posix-functions/close.texi: Update mingw problems.
72553         * doc/posix-functions/connect.texi: Update mingw problems.
72554         * doc/posix-functions/getpeername.texi: Update mingw problems.
72555         * doc/posix-functions/getsockname.texi: Update mingw problems.
72556         * doc/posix-functions/getsockopt.texi: Update mingw problems.
72557         * doc/posix-functions/ioctl.texi: Update mingw problems.
72558         * doc/posix-functions/listen.texi: Update mingw problems.
72559         * doc/posix-functions/recv.texi: Update mingw problems.
72560         * doc/posix-functions/recvfrom.texi: Update mingw problems.
72561         * doc/posix-functions/select.texi: Update mingw problems.
72562         * doc/posix-functions/send.texi: Update mingw problems.
72563         * doc/posix-functions/sendto.texi: Update mingw problems.
72564         * doc/posix-functions/setsockopt.texi: Update mingw problems.
72565         * doc/posix-functions/socket.texi: Update mingw problems.
72567 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
72568             Bruno Haible  <bruno@clisp.org>
72570         * lib/sys_select.in.h: Include sys/time.h.
72571         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
72572         * modules/sys_select: Depend on sys_time.
72573         * tests/test-sys_select.c: Test that sys/select.h defines struct
72574         timeval fully.
72576 2008-09-29  Bruno Haible  <bruno@clisp.org>
72578         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
72579         * lib/sys_select.in.h: Likewise.
72581 2008-09-29  Bruno Haible  <bruno@clisp.org>
72583         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
72585 2008-09-29  Bruno Haible  <bruno@clisp.org>
72587         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
72588         Set LIBSOCKET instead of augmenting LIBS.
72589         * modules/sockets (Link): New section.
72590         * modules/sockets-tests (test_sockets_LDADD): New variable.
72591         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
72592         * modules/poll-tests (test_poll_LDADD): New variable.
72593         * NEWS: Document the change.
72595 2008-09-29  Bruno Haible  <bruno@clisp.org>
72597         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
72598         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
72599         ARPA_INET_H directly.
72600         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
72602 2008-09-28  Bruno Haible  <bruno@clisp.org>
72604         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
72605         from gl_HEADER_SYS_SOCKET.
72606         (gl_HEADER_SYS_SOCKET): Invoke it.
72607         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
72609 2008-09-28  Bruno Haible  <bruno@clisp.org>
72611         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
72612         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
72613         Needed on OSF/1 4.0.
72615 2008-09-28  Bruno Haible  <bruno@clisp.org>
72617         Override open more carefully.
72618         * lib/open.c (orig_open): New function.
72619         (rpl_open): Use orig_open instead of open.
72620         * lib/fcntl.in.h: Add special invocation convention.
72621         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
72622         (gl_FUNC_OPEN): Invoke it.
72624         Override freopen more carefully.
72625         * lib/freopen.c (orig_freopen): New function.
72626         (rpl_freopen): Use orig_freopen instead of freopen.
72627         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
72628         (gl_FUNC_FREOPEN): Invoke it.
72630         Override fopen more carefully.
72631         * lib/fopen.c (orig_fopen): New function.
72632         (rpl_fopen): Use orig_fopen instead of fopen.
72633         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
72634         (gl_FUNC_FOPEN): Invoke it.
72635         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
72637 2008-09-28  Bruno Haible  <bruno@clisp.org>
72639         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
72640         SIGPIPE.
72642 2008-09-28  Bruno Haible  <bruno@clisp.org>
72644         * tests/test-sigaction.c (handler, main): Disable the check whether
72645         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
72646         glibc systems with LinuxThreads.
72648 2008-09-28  Bruno Haible  <bruno@clisp.org>
72650         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
72652         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
72653         with AIX xlc.
72654         * lib/fcntl.in.h (open): Likewise.
72655         Reported by Rainer Tammer <tammer@tammer.net>.
72657 2008-09-28  Bruno Haible  <bruno@clisp.org>
72659         * modules/posix_spawnp-tests: New file.
72660         * tests/test-posix_spawn.c: New file.
72661         * tests/test-posix_spawn.in.sh: New file.
72663         New module 'posix_spawnp'.
72664         * modules/posix_spawnp: New file.
72665         * lib/spawnp.c: New file, from GNU libc with modifications.
72666         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
72668         New module 'posix_spawn'.
72669         * modules/posix_spawn: New file.
72670         * lib/spawn.c: New file, from GNU libc with modifications.
72671         * doc/posix-functions/posix_spawn.texi: Mention the new module.
72673         New module 'posix_spawnattr_destroy'.
72674         * modules/posix_spawnattr_destroy: New file.
72675         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
72676         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
72677         module.
72679         New module 'posix_spawnattr_setsigmask'.
72680         * modules/posix_spawnattr_setsigmask: New file.
72681         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
72682         modifications.
72683         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
72684         new module.
72686         New module 'posix_spawnattr_getsigmask'.
72687         * modules/posix_spawnattr_getsigmask: New file.
72688         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
72689         modifications.
72690         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
72691         new module.
72693         New module 'posix_spawnattr_setsigdefault'.
72694         * modules/posix_spawnattr_setsigdefault: New file.
72695         * lib/spawnattr_setdefault.c: New file, from GNU libc with
72696         modifications.
72697         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
72698         new module.
72700         New module 'posix_spawnattr_getsigdefault'.
72701         * modules/posix_spawnattr_getsigdefault: New file.
72702         * lib/spawnattr_getdefault.c: New file, from GNU libc with
72703         modifications.
72704         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
72705         new module.
72707         New module 'posix_spawnattr_setschedpolicy'.
72708         * modules/posix_spawnattr_setschedpolicy: New file.
72709         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
72710         modifications.
72711         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
72712         new module.
72714         New module 'posix_spawnattr_getschedpolicy'.
72715         * modules/posix_spawnattr_getschedpolicy: New file.
72716         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
72717         modifications.
72718         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
72719         new module.
72721         New module 'posix_spawnattr_setschedparam'.
72722         * modules/posix_spawnattr_setschedparam: New file.
72723         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
72724         modifications.
72725         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
72726         new module.
72728         New module 'posix_spawnattr_getschedparam'.
72729         * modules/posix_spawnattr_getschedparam: New file.
72730         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
72731         modifications.
72732         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
72733         new module.
72735         New module 'posix_spawnattr_setpgroup'.
72736         * modules/posix_spawnattr_setpgroup: New file.
72737         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
72738         modifications.
72739         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
72740         module.
72742         New module 'posix_spawnattr_getpgroup'.
72743         * modules/posix_spawnattr_getpgroup: New file.
72744         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
72745         modifications.
72746         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
72747         module.
72749         New module 'posix_spawnattr_setflags'.
72750         * modules/posix_spawnattr_setflags: New file.
72751         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
72752         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
72753         module.
72755         New module 'posix_spawnattr_getflags'.
72756         * modules/posix_spawnattr_getflags: New file.
72757         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
72758         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
72759         module.
72761         New module 'posix_spawnattr_init'.
72762         * modules/posix_spawnattr_init: New file.
72763         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
72764         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
72765         module.
72767         New module 'posix_spawn_file_actions_destroy'.
72768         * modules/posix_spawn_file_actions_destroy: New file.
72769         * lib/spawn_faction_destroy.c: New file, from GNU libc with
72770         modifications.
72771         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
72772         the new module.
72774         New module 'posix_spawn_file_actions_addopen'.
72775         * modules/posix_spawn_file_actions_addopen: New file.
72776         * lib/spawn_faction_addopen.c: New file, from GNU libc with
72777         modifications.
72778         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
72779         the new module.
72781         New module 'posix_spawn_file_actions_adddup2'.
72782         * modules/posix_spawn_file_actions_adddup2: New file.
72783         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
72784         modifications.
72785         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
72786         the new module.
72788         New module 'posix_spawn_file_actions_addclose'.
72789         * modules/posix_spawn_file_actions_addclose: New file.
72790         * lib/spawn_faction_addclose.c: New file, from GNU libc with
72791         modifications.
72792         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
72793         the new module.
72795         New module 'posix_spawn_file_actions_init'.
72796         * modules/posix_spawn_file_actions_init: New file.
72797         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
72798         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
72799         new module.
72801         New module 'posix_spawn-internal'.
72802         * modules/posix_spawn-internal: New file.
72803         * lib/spawn_int.h: New file, from GNU libc with modifications.
72804         * lib/spawni.c: New file, from GNU libc with modifications.
72805         * m4/posix_spawn.m4: New file.
72807         New module 'spawn'.
72808         * modules/spawn: New file.
72809         * lib/spawn.in.h: New file, from GNU libc with modifications.
72810         * m4/spawn_h.m4: New file.
72811         * doc/posix-headers/spawn.texi: Mention the new module.
72813 2008-09-28  Bruno Haible  <bruno@clisp.org>
72815         * modules/sched-tests: New file.
72816         * tests/test-sched.c: New file.
72818         New module 'sched'.
72819         * modules/sched: New file.
72820         * lib/sched.in.h: New file.
72821         * m4/sched_h.m4: New file.
72822         * doc/posix-headers/sched.texi: Mention the new module.
72824 2008-09-27  Eric Blake  <ebb9@byu.net>
72826         Fix previous patch, and tweak references to $0.
72827         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
72828         (func_version, func_gnulib_dir): Don't call this program
72829         gnulib-tool.
72830         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
72831         with using $0 in function.
72832         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
72833         (func_fatal_error): Reuse the name the user invoked us with.
72835 2008-09-27  Bruno Haible  <bruno@clisp.org>
72837         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
72838         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
72839         (gl_ICONV_H): Not here.
72840         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
72841         instead of assigning ICONV_H directly.
72843         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
72844         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
72845         WCHAR_H directly.
72847 2008-09-27  Bruno Haible  <bruno@clisp.org>
72849         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
72850         * modules/arpa_inet (Depends-on): Add link-warning.
72851         (Makefile.am): Insert the definition of GL_LINK-WARNING.
72852         * modules/unistd (Makefile.am): Likewise.
72854 2008-09-26  Bruno Haible  <bruno@clisp.org>
72856         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
72857         variables.
72858         (func_version): Essentially copied from gnulib-tool.
72859         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
72860         func_readlink): Copied from gnulib-tool.
72862 2008-09-26  Bruno Haible  <bruno@clisp.org>
72864         * gnulib-tool (func_version): Change directory to $gnulib_dir before
72865         invoking git-version-gen.
72867 2008-09-26  Bruno Haible  <bruno@clisp.org>
72869         * posix-modules: Update to directory names changed on 2008-01-19.
72870         Remove commas in output before splitting into words. No more need to
72871         avoid 'ftruncate' since 2007-02-19.
72873 2008-09-26  Bruno Haible  <bruno@clisp.org>
72875         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
72877 2008-09-26  Bruno Haible  <bruno@clisp.org>
72879         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
72880         * modules/fwriteerror (Depends-on): Add errno.
72882 2008-09-26  Bruno Haible  <bruno@clisp.org>
72884         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
72885         * tests/test-vc-list-files-cvs.sh: Likewise.
72887 2008-09-26  Bruno Haible  <bruno@clisp.org>
72889         * doc/posix-headers/sys_resource.texi: Reorder items.
72891 2008-09-26  Jim Meyering  <meyering@redhat.com>
72893         fts: tweak inode comparison function
72894         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
72895         inode numbers, as documented.
72897         fts: sort dirent entries on inode number before traversing
72898         This avoids a quadratic, seek-related performance penalty when
72899         operating on a directory containing many entries (measurable at 10k;
72900         3.5 hours at 2 million entries with a cold cache) on certain types
72901         of file systems, including ext3 and ext4, but not tmpfs.
72902         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
72903         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
72904         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
72905         (fs_handles_readdir_ordered_dirents_efficiently): New function.
72906         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
72907         (fts_build): Set the stat.st_ino member from D_INO.
72908         If it is likely to be useful, sort dirent entries on inode number.
72910         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
72911         and the struct statfs.f_type member.
72912         * modules/fts (Depends-on): Add d-ino.
72914 2008-09-26  Bruno Haible  <bruno@clisp.org>
72916         * modules/sigpipe-die (Depends-on): Add sigpipe.
72918         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
72919         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
72920         and GNULIB_STDIO_H_SIGPIPE are set.
72921         * lib/stdio-write.c: New file.
72922         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
72923         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
72924         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
72925         REPLACE_STDIO_WRITE_FUNCS.
72926         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
72927         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
72928         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
72929         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
72930         * modules/stdio (Files): Add lib/stdio-write.c.
72931         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
72932         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
72933         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
72934         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
72935         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
72936         REPLACE_FPRINTF_POSIX.
72937         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
72938         REPLACE_PRINTF_POSIX.
72939         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
72940         REPLACE_VFPRINTF_POSIX.
72941         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
72942         REPLACE_VPRINTF_POSIX.
72943         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
72944         SIGPIPE issue.
72945         * doc/posix-functions/fputc.texi: Likewise.
72946         * doc/posix-functions/fputs.texi: Likewise.
72947         * doc/posix-functions/fwrite.texi: Likewise.
72948         * doc/posix-functions/printf.texi: Likewise.
72949         * doc/posix-functions/putc.texi: Likewise.
72950         * doc/posix-functions/putchar.texi: Likewise.
72951         * doc/posix-functions/puts.texi: Likewise.
72952         * doc/posix-functions/vfprintf.texi: Likewise.
72953         * doc/posix-functions/vprintf.texi: Likewise.
72955         * modules/safe-write (Depends-on): Add write.
72957         * modules/sigpipe-tests: New file.
72958         * tests/test-sigpipe.c: New file.
72959         * tests/test-sigpipe.sh: New file.
72961         * modules/write: New file.
72962         * lib/unistd.in.h: Include <sys/types.h>.
72963         (write): New declaration.
72964         * lib/write.c: New file.
72965         * m4/write.m4: New file.
72966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
72967         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
72968         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
72969         GNULIB_WRITE, REPLACE_WRITE.
72970         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
72971         and the SIGPIPE issue.
72973         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
72974         (raise): New declaration.
72975         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
72976         (ext_signal): New function.
72977         (rpl_raise): New function.
72978         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
72979         GNULIB_SIGNAL_H_SIGPIPE.
72980         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
72981         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
72983         * modules/sigpipe: New file.
72984         * m4/sigpipe.m4: New file.
72986 2008-09-25  Derek Price  <derek@ximbiot.com>
72987             Bruno Haible  <bruno@clisp.org>
72989         * gnulib-tool (func_import): Report all license incompatibilities, not
72990         just the first one.
72992 2008-09-25  Bruno Haible  <bruno@clisp.org>
72994         * gnulib-tool (func_import): When computing the edits, consider not
72995         only the Makefile.ams that exist but also those that will be generated.
72997 2008-09-25  Simon Josefsson  <simon@josefsson.org>
72999         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
73000         fixes gnulib-tool --test warning about duplicate dependency.
73002 2008-09-25  Bruno Haible  <bruno@clisp.org>
73004         * gnulib-tool: Don't ask the user to perform edits in the generated
73005         Makefile.ams.
73006         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
73007         apply to the Makefile.am being generated.
73008         (func_emit_tests_Makefile_am): Execute edits that apply to the
73009         Makefile.am being generated.
73010         (func_import): Setup list of Makefile.am edits before emitting the
73011         Makefile.ams, not at the end.
73012         (func_create_testdir): Update.
73013         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
73015 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73017         * gnulib-tool (func_import): Store the --tests-base option in the
73018         comment in gnulib-cache.m4.
73020 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
73022         * NEWS: Document increased portability that sys_select now provides.
73024         * lib/sys_select.in.h: Install select wrapper.
73025         * lib/sys_socket.in.h: Use more descriptive name when there is no
73026         select wrapper.
73027         * lib/winsock-select.c: New.
73028         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
73029         Require gl_HEADER_SYS_SOCKET.
73030         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
73031         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
73032         * tests/test-sys_select.c: Add functional tests.
73034 2008-09-24  Eric Blake  <ebb9@byu.net>
73036         open, fopen: close fd leak in last patch
73037         * lib/open.c (rpl_open): Close fd before returning error.
73038         * lib/fopen.c (rpl_fopen): Close fd before returning error.
73039         * doc/posix-functions/open.texi (open): Document that Irix also
73040         has the bug.
73041         * doc/posix-functions/fopen.texi (fopen): Likewise.
73042         Reported by Paolo Bonzini.
73044 2008-09-24  Bruno Haible  <bruno@clisp.org>
73046         Ensure that a filename ending in a slash cannot be used to access a
73047         non-directory.
73048         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
73049         to check whether it's really a directory.
73050         * lib/fopen.c: Include fcntl.h, unistd.h.
73051         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
73052         and fdopen().
73053         * modules/fopen (Depends-on): Add unistd.
73054         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
73055         * tests/test-fopen.c (main): Likewise.
73056         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
73057         * doc/posix-functions/fopen.texi: Likewise.
73058         Reported by Eric Blake.
73060 2008-09-23  Eric Blake  <ebb9@byu.net>
73062         c-stack: avoid compiler optimizations when provoking overflow
73063         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
73064         recursion harder to optimize, to ensure a stack overflow occurs.
73065         * tests/test-c-stack.c (recurse): Likewise.
73066         Borrowed from libsigsegv.
73068         c-stack: work around Irix sigaltstack bug
73069         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
73070         whether sigaltstack uses wrong end of stack_t (copied in part from
73071         libsigsegv).
73072         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
73073         Irix bug, without requiring an over-allocation.
73074         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
73075         bug.
73077         fopen: document mingw bug on directories
73078         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
73079         not allowing a stream visiting a directory, even though reading
73080         from such a stream is not portable.
73082 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
73084         * lib/poll.c: Rewrite.
73085         * modules/poll: Depend on alloca.
73087 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
73089         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
73090         instead define prototypes for a full set of wrappers.  Ensure
73091         that Cygwin does not use the compatibility code, which is only
73092         for MinGW.
73093         * lib/winsock.c: New.
73094         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
73095         * modules/sys_socket: Add lib/winsock.c.
73097         * modules/poll-tests: Add errno and perror.
73098         * tests/test-poll.c: Use ioctl, not ioctlsocket.
73100 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
73102         * tests/test-poll.c: Downgrade minimum needed Winsock version.
73104 2008-09-23  Bruno Haible  <bruno@clisp.org>
73106         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
73107         * doc/glibc-functions/*: Likewise.
73109 2008-09-23  Simon Josefsson  <simon@josefsson.org>
73111         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
73112         success.
73114 2008-09-22  Eric Blake  <ebb9@byu.net>
73115             Bruno Haible  <bruno@clisp.org>
73117         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
73118         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
73119         supply %A but mishandle pseudo-NaN.
73120         Reported by Simon Josefsson.
73122 2008-09-21  Bruno Haible  <bruno@clisp.org>
73124         * tests/test-lock.c (main): Tweak skip message.
73125         * tests/test-tls.c (main): Likewise.
73127 2008-09-21  Bruno Haible  <bruno@clisp.org>
73129         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
73130         whether 'struct sigaction' has sa_sigaction here...
73131         (gl_PREREQ_SIG_HANDLER_H): ... not here.
73132         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
73134 2008-09-21  Bruno Haible  <bruno@clisp.org>
73136         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
73137         section.
73138         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
73139         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
73140         the new section.
73141         (Support for obsolete systems lacking POSIX:2001): New section.
73142         (String handling <string.h>): Move strdup to the new section.
73143         Suggested by Simon Josefsson and Paolo Bonzini.
73145 2008-09-21  Bruno Haible  <bruno@clisp.org>
73147         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
73148         exponents in %e and %g results on 'long double'. Needed for mingw's
73149         improved *printf functions.
73150         * tests/test-vasprintf-posix.c (test_function): Likewise.
73151         * tests/test-snprintf-posix.h (test_function): Likewise.
73152         * tests/test-sprintf-posix.h (test_function): Likewise.
73153         Reported by Eric Blake.
73155 2008-09-21  Bruno Haible  <bruno@clisp.org>
73157         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
73158         * tests/test-sprintf-posix.h (test_function): Likewise.
73160 2008-09-21  Bruno Haible  <bruno@clisp.org>
73162         * modules/getpass (Depends-on): Add strdup-posix.
73164         New module 'strdup-posix'.
73165         * modules/strdup-posix: New file.
73166         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
73167         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
73168         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
73169         REPLACE_STRDUP.
73170         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
73171         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
73172         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73173         strdup-posix.
73175         * modules/strdup (Depends-on): Remove malloc-posix.
73177 2008-09-20  Bruno Haible  <bruno@clisp.org>
73179         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
73180         Wildenhues.
73182 2008-09-20  Bruno Haible  <bruno@clisp.org>
73184         Ensure that wint_t gets defined on IRIX 5.3.
73185         * lib/wchar.in.h (wint_t): Define if not defined by the system.
73186         * lib/wctype.in.h (wint_t): Likewise.
73187         (__wctype_wint_t): Remove type.
73188         (isw*): Use wint_t instead of __wctype_wint_t.
73189         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
73190         * modules/wchar (Files): Add m4/wint_t.m4.
73191         (Makefile.am): Substitute HAVE_WINT_T.
73192         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
73193         * tests/test-wctype.c: Check that wint_t is defined.
73194         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
73195         * doc/posix-headers/wctype.texi: Likewise.
73196         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
73198 2008-09-18  Bruno Haible  <bruno@clisp.org>
73200         * gnulib-tool (func_exit): Update comment.
73202 2008-09-18  Simon Josefsson  <simon@josefsson.org>
73204         * modules/getaddrinfo (Depends-on): Remove strdup, this module
73205         assumes strdup exists and does not depend on strdup to return
73206         ENOMEM on out of memory conditions.
73208 2008-09-18  Bruno Haible  <bruno@clisp.org>
73210         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
73211         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
73212         digits for the exponent.
73214 2008-09-18  Jim Meyering  <meyering@redhat.com>
73215             Bruno Haible  <bruno@clisp.org>
73217         * lib/vasnprintf.c (decimal_point_char): Define also if
73218         NEED_PRINTF_INFINITE_LONG_DOUBLE.
73220 2008-09-16  Bruno Haible  <bruno@clisp.org>
73221         and Eric Blake  <ebb9@byu.net>
73223         vasnprintf: support Irix 5.3
73224         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
73225         that mishandle long double infinity.
73226         Reported by Tom G. Christensen.
73228 2008-09-16  Bruno Haible  <bruno@clisp.org>
73230         * doc/glibc-functions/scandir.texi: Mention the function is missing on
73231         Solaris 9.
73232         * doc/glibc-functions/alphasort.texi: Likewise.
73233         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
73235 2008-09-16  Jim Meyering  <meyering@redhat.com>
73237         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
73238         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
73239         a umask modification leak out of a subshell.  Otherwise, the
73240         opensolaris /bin/sh would be accepted and thus cause unwarranted
73241         failures in the coreutils test suite.
73243 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
73245         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
73246         to succeed.
73248 2008-09-16  Jim Meyering  <meyering@redhat.com>
73250         avoid spurious test failure when library is built without ACL support
73251         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
73252         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
73253         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
73254         * tests/test-copy-acl.sh: Likewise.
73256 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73258         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
73259         based on character occurrence counts.
73261 2008-09-15  Eric Blake  <ebb9@byu.net>
73263         tests: avoid some compiler warnings
73264         * tests/test-memchr.c (main): Pass NULL indirectly.
73265         * tests/test-closein.c (main): Avoid unused variable.
73267 2008-09-15  Bruno Haible  <bruno@clisp.org>
73269         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
73270         are missing on OpenBSD 4.0 individually.
73271         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
73273 2008-09-15  Bruno Haible  <bruno@clisp.org>
73275         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
73276         * doc/posix-functions/strerror.texi: Mention also Cygwin.
73277         * doc/posix-functions/perror.texi: Likewise.
73278         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
73279         is missing.
73280         Reported by Eric Blake.
73282         * lib/errno.in.h: Use replacement values >= 2000.
73283         Reported by Eric Blake.
73285 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73287         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
73288         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
73289         limit.
73290         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
73291         compareseq was aborted.
73293 2008-09-14  Bruno Haible  <bruno@clisp.org>
73295         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
73296         yvec_edit_count.
73297         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
73298         (fstrcmp_bounded): Simplify result computation accordingly.
73300 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73302         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
73303         (fstrcmp): Define in terms of fstrcmp_bounded.
73304         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
73305         lower_bound argument.
73306         Return quickly if the result is certainly < lower_bound.
73307         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
73309 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73311         * lib/diffseq.h (EARLY_ABORT): New macro.
73312         (compareseq): Change return type to bool. Return true when EARLY_ABORT
73313         evaluates to true.
73315 2008-09-14  Bruno Haible  <bruno@clisp.org>
73317         * modules/perror-tests: New file.
73318         * tests/test-perror.sh: New file.
73319         * tests/test-perror.c: New file.
73321         New module 'perror'.
73322         * lib/stdio.in.h (perror): New declaration.
73323         * lib/perror.c: New file.
73324         * m4/perror.m4: New file.
73325         * modules/perror: New file.
73326         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
73327         * doc/posix-functions/perror.texi: Mention the perror module.
73328         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
73329         REPLACE_PERROR.
73330         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
73331         REPLACE_PERROR.
73333 2008-09-14  Bruno Haible  <bruno@clisp.org>
73335         * modules/stdio (Makefile.am): Reorder to match the order in
73336         lib/stdio.in.h.
73337         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
73339 2008-09-13  Bruno Haible  <bruno@clisp.org>
73341         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
73343 2008-09-13  Bruno Haible  <bruno@clisp.org>
73345         Extend strerror to cover the added errno values.
73346         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
73347         (rpl_strerror): Provide error messages for the added errno values and
73348         for the WSA* values.
73349         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
73350         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
73351         strerror.
73352         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
73353         * modules/strerror (Depends-on): Add errno.
73354         * doc/posix-functions/strerror.texi: Document the change.
73355         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
73356         and EOVERFLOW.
73358 2008-09-13  Bruno Haible  <bruno@clisp.org>
73360         * modules/EOVERFLOW: Remove file.
73361         * m4/eoverflow.m4: Remove file.
73362         * modules/EOVERFLOW-tests: Remove file.
73363         * tests/test-EOVERFLOW.c: Remove file.
73364         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
73365         * modules/ftell (Depends-on): Likewise.
73366         * modules/getdelim (Depends-on): Likewise.
73367         * modules/getugroups (Depends-on): Likewise.
73368         * modules/poll (Depends-on): Likewise.
73369         * modules/snprintf (Depends-on): Likewise.
73370         * modules/sprintf-posix (Depends-on): Likewise.
73371         * modules/vasnprintf (Depends-on): Likewise.
73372         * modules/vasprintf (Depends-on): Likewise.
73373         * modules/vfprintf-posix (Depends-on): Likewise.
73374         * modules/vsnprintf (Depends-on): Likewise.
73375         * modules/vsprintf-posix (Depends-on): Likewise.
73376         * modules/xvasprintf (Depends-on): Likewise.
73377         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
73378         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
73379         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
73380         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
73381         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
73382         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
73383         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
73384         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
73385         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
73386         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
73387         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
73388         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
73389         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
73390         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
73391         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
73392         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
73393         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
73394         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
73395         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
73396         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
73397         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
73398         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
73399         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
73400         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
73401         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
73402         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
73403         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
73404         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
73405         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
73406         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
73407         * MODULES.html.sh: Remove EOVERFLOW.
73408         * NEWS: Mention the change.
73410 2008-09-13  Bruno Haible  <bruno@clisp.org>
73412         * modules/errno-tests: New file.
73413         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
73415         * lib/errno.in.h: New file.
73416         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
73417         * modules/errno: New file.
73418         * doc/posix-headers/errno.texi: Update documentation.
73419         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
73421 2008-09-13  Bruno Haible  <bruno@clisp.org>
73423         * tests/test-poll.c: Use #if for native Windows, rather than testing
73424         __MSVCRT__.
73426 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73427             Bruno Haible  <bruno@clisp.org>
73429         * lib/glob.c: Don't include <pwd.h> on native Windows.
73430         (WINDOWS32): New macro.
73431         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
73433 2008-09-13  Bruno Haible  <bruno@clisp.org>
73435         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
73436         (ETIMEDOUT): Remove macro.
73437         (glthread_cond_timedwait_multithreaded): New declaration.
73438         (glthread_cond_timedwait): Use it.
73439         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
73440         (glthread_cond_timedwait_multithreaded): New function.
73442 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
73444         * modules/poll-tests: Do not check for io.h.
73445         * tests/test-poll.c: Check for __MSVCRT__ instead.
73447 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
73449         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
73450         * modules/poll-tests: Add inet_pton, stdbool, sockets.
73451         * tests/test-poll.c: Use them.  Use _pipe on Windows.
73453 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
73455         * modules/poll-tests: New.
73456         * tests/test-poll.c: New.
73458 2008-09-12  Eric Blake  <ebb9@byu.net>
73460         frexp: test for NetBSD failure on -0.0
73461         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
73462         not all, bugs from NetBSD 3.0 have been fixed.
73463         * doc/posix-functions/frexp.texi (frexp): Document bug.
73464         Reported by Thomas Klausner.
73466         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
73467         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
73468         literal -0.0.
73469         Reported by Jonathan C. Patschke <jp@centtech.com>.
73471 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73473         * lib/glthread/cond.h: Use dummy implementation also if
73474         USE_WIN32_THREADS.
73476 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73478         * modules/fnmatch-posix (License): Change to LGPLv2+.
73479         * modules/fnmatch-gnu (License): Likewise.
73481 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73483         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
73485 2008-09-11  Jim Meyering  <meyering@redhat.com>
73487         * users.txt: Add gtk-vnc.
73489 2008-09-08  Simon Josefsson  <simon@josefsson.org>
73491         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
73492         rotate amounts.
73494         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
73495         required for 16-bit and 8-bit rotates.
73496         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
73497         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
73498         UINT8_MAX instead of hard-coded constants.
73499         Suggested by Paul Eggert.
73501 2008-09-07  Bruno Haible  <bruno@clisp.org>
73503         * tests/test-striconveh.c (main): Check behaviour when converting from
73504         UTF-7.
73506         Make striconveh work better with stateful encodings.
73507         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
73508         that iconv does not increment the inptr when returning -1/EINVAL.
73510 2008-09-07  Bruno Haible  <bruno@clisp.org>
73512         * build-aux/config.rpath: Update according to libtool-2.2.6.
73513         * build-aux/config.libpath: Likewise.
73515 2008-09-06  Bruno Haible  <bruno@clisp.org>
73517         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
73518         * lib/freadptr.c (freadptr): Likewise.
73519         * lib/freadseek.c (freadptrinc): Likewise.
73520         Reported by Simon Josefsson.
73522 2008-09-06  Bruno Haible  <bruno@clisp.org>
73524         * modules/freadptr (License): Change to LGPLv2+.
73525         * modules/freadseek (License): Likewise.
73526         Suggested by Eric Blake.
73528         * modules/memchr2 (License): Change to LGPLv2+.
73529         Approved by Eric Blake.
73531 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73532             Bruno Haible  <bruno@clisp.org>
73534         Make gnulib-tool work with native 'sed' on AIX.
73535         * gnulib-tool (sed_noop): New variable.
73536         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
73537         func_add_or_update, func_create_testdir): Use it to initialize sed
73538         script variables.
73539         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
73541 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
73542             Bruno Haible  <bruno@clisp.org>
73544         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
73545         also works after #include directives.
73547 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
73549         getdate.y: reject an out-of-range timezone value
73550         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
73551         the range [-24...+24].  When specified with only one or two digits,
73552         * tests/test-getdate.c: Tests for the fix.
73553         * doc/getdate.texi: Document this change.
73555 2008-09-03  Bruno Haible  <bruno@clisp.org>
73557         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
73559 2008-09-02  Simon Josefsson  <simon@josefsson.org>
73561         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
73562         <bruce.korb@gmail.com> with ideas from Ben Pfaff
73563         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
73564         Blake <ebb9@byu.net>.
73566         * tests/test-bitrotate.c: Add more test vectors.
73568 2008-09-02  Eric Blake  <ebb9@byu.net>
73570         vasnprintf-posix: handle large precision via %.*d
73571         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
73572         when handling it ourselves.
73573         * tests/test-vasnprintf-posix.c (test_function): Add test.
73574         * tests/test-snprintf-posix.h (test_function): Likewise.
73575         * tests/test-sprintf-posix.h (test_function): Likewise.
73576         * tests/test-vasprintf-posix.c (test_function): Likewise.
73577         Reported by Alain Guibert.
73579 2008-09-01  Eric Blake  <ebb9@byu.net>
73581         c-stack: make configure-time check more robust
73582         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
73583         successful sigaction call.
73584         Reported by Tom G. Christensen.
73586 2008-09-01  Bruno Haible  <bruno@clisp.org>
73588         New module 'findprog-lgpl'.
73589         * modules/findprog-lgpl: New file.
73590         * lib/findprog-lgpl.c: New file.
73591         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
73592         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
73593         to decide whether to use strdup or xstrdup, concatenated_filename or
73594         xconcatenated_filename.
73596 2008-09-01  Bruno Haible  <bruno@clisp.org>
73598         Split module 'concat-filename' into 'concat-filename' (LGPL) and
73599         'xconcat-filename' (GPL).
73600         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
73601         (License): Change to LGPLv2+.
73602         * modules/xconcat-filename: New file.
73603         * lib/concat-filename.h (concatenated_filename): Change specification.
73604         (xconcatenated_filename): New declaration.
73605         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
73606         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
73607         memory situations.
73608         * lib/xconcat-filename.c: New file.
73609         * NEWS: Mention the change.
73610         * lib/findprog.c: Include concat-filename.h, not filename.h.
73611         (find_in_path): Use xconcatenated_filename instead of
73612         concatenated_filename.
73613         * lib/javacomp.c: Include concat-filename.h, not filename.h.
73614         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
73615         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
73616         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
73617         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
73618         instead of concatenated_filename.
73619         * lib/javaexec.c: Include concat-filename.h, not filename.h.
73620         (execute_java_class): Use xconcatenated_filename instead of
73621         concatenated_filename.
73622         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
73623         * modules/javacomp (Depends-on): Likewise.
73624         * modules/javaexec (Depends-on): Likewise.
73626 2008-09-01  Bruno Haible  <bruno@clisp.org>
73628         Split module 'filename' into 'filename' and 'concat-filename'.
73629         * modules/filename: Keep only lib/filename.h.
73630         (License): Change to LGPLv2+.
73631         * modules/concat-filename: New file, extracted from modules/filename.
73632         * lib/filename.h (concatenated_filename): Remove declaration.
73633         * lib/concat-filename.h: New file, extracted from lib/filename.h.
73634         * lib/concat-filename.c: Include concat-filename.h.
73635         * NEWS: Mention the change.
73637 2008-09-01  Simon Josefsson  <simon@josefsson.org>
73639         * lib/bitrotate.h (rotl8, rotr8): Add.
73641         * modules/bitrotate (configure.ac): Need
73642         AC_REQUIRE([AC_C_INLINE]).
73643         (Description): Mention stdint.h.  Reported by Bruno Haible
73644         <bruno@clisp.org>.
73646         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
73647         Paolo Bonzini <bonzini@gnu.org>.
73649 2008-08-31  Bruno Haible  <bruno@clisp.org>
73651         Assume Solaris specific bi-arch conventions on Solaris systems.
73652         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
73653         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
73654         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
73655         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
73656         like acl_libdirstem.
73657         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
73658         acl_libdirstem.
73659         * NEWS: Mention the change.
73660         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
73662 2008-08-31  Jim Meyering  <meyering@redhat.com>
73664         * lib/strftime.h: Add comments describing the two added arguments.
73666         remove duplicate #include directives
73667         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
73668         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
73670 2008-08-31  Bruno Haible  <bruno@clisp.org>
73672         New module 'sigpipe-die'.
73673         * modules/sigpipe-die: New file.
73674         * lib/sigpipe-die.h: New file.
73675         * lib/sigpipe-die.c: New file.
73676         * MODULES.html.sh (Signal handling): Add sigpipe-die.
73678 2008-08-31  Bruno Haible  <bruno@clisp.org>
73680         Don't override previously installed signal handlers.
73681         * lib/fatal-signal.c (saved_sigactions): New variable.
73682         (uninstall_handlers): Reset the signal to the saved handler, not
73683         to SIG_DFL (except when ignored).
73684         (install_handlers): Save the previous handlers.
73686 2008-08-30  Bruno Haible  <bruno@clisp.org>
73688         * gnulib-tool (func_reset_sigpipe): New function.
73689         (func_get_automake_snippet, func_modules_transitive_closure,
73690         func_import): Invoke it before a join command that reads from stdin,
73691         to avoid "echo: write error: Broken pipe" error messages on stderr.
73692         Reported by Sam Steingold <sds@gnu.org>.
73694 2008-08-30  Bruno Haible  <bruno@clisp.org>
73696         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
73697         Code copied from m4/open.m4.
73698         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
73699         access and the filename ends in a slash. Code copied from lib/open.c.
73700         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
73701         * tests/test-fopen.c (main): Check against bug with trailing slash.
73703 2008-08-29  Bruno Haible  <bruno@clisp.org>
73705         Avoid some "gcc -pedantic" warnings.
73706         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
73707         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
73708         * lib/dirent.in.h: Likewise.
73709         * lib/fcntl.in.h: Likewise.
73710         * lib/float.in.h: Likewise.
73711         * lib/iconv.in.h: Likewise.
73712         * lib/inttypes.in.h: Likewise.
73713         * lib/locale.in.h: Likewise.
73714         * lib/math.in.h: Likewise.
73715         * lib/netinet_in.in.h: Likewise.
73716         * lib/search.in.h: Likewise.
73717         * lib/signal.in.h: Likewise.
73718         * lib/stdarg.in.h: Likewise.
73719         * lib/stdint.in.h: Likewise.
73720         * lib/stdio.in.h: Likewise.
73721         * lib/stdlib.in.h: Likewise.
73722         * lib/string.in.h: Likewise.
73723         * lib/strings.in.h: Likewise.
73724         * lib/sys_select.in.h: Likewise.
73725         * lib/sys_socket.in.h: Likewise.
73726         * lib/sys_stat.in.h: Likewise.
73727         * lib/sys_time.in.h: Likewise.
73728         * lib/sysexits.in.h: Likewise.
73729         * lib/time.in.h: Likewise.
73730         * lib/unistd.in.h: Likewise.
73731         * lib/wchar.in.h: Likewise.
73732         * lib/wctype.in.h: Likewise.
73733         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
73734         * modules/fchdir (Makefile.am): Likewise.
73735         * modules/fcntl (Makefile.am): Likewise.
73736         * modules/float (Makefile.am): Likewise.
73737         * modules/iconv_open (Makefile.am): Likewise.
73738         * modules/inttypes (Makefile.am): Likewise.
73739         * modules/locale (Makefile.am): Likewise.
73740         * modules/math (Makefile.am): Likewise.
73741         * modules/netinet_in (Makefile.am): Likewise.
73742         * modules/search (Makefile.am): Likewise.
73743         * modules/signal (Makefile.am): Likewise.
73744         * modules/stdarg (Makefile.am): Likewise.
73745         * modules/stdint (Makefile.am): Likewise.
73746         * modules/stdio (Makefile.am): Likewise.
73747         * modules/stdlib (Makefile.am): Likewise.
73748         * modules/string (Makefile.am): Likewise.
73749         * modules/strings (Makefile.am): Likewise.
73750         * modules/sys_select (Makefile.am): Likewise.
73751         * modules/sys_socket (Makefile.am): Likewise.
73752         * modules/sys_stat (Makefile.am): Likewise.
73753         * modules/sys_time (Makefile.am): Likewise.
73754         * modules/sysexits (Makefile.am): Likewise.
73755         * modules/time (Makefile.am): Likewise.
73756         * modules/unistd (Makefile.am): Likewise.
73757         * modules/wchar (Makefile.am): Likewise.
73758         * modules/wctype (Makefile.am): Likewise.
73759         Reported by Reuben Thomas <rrt@sc3d.org>.
73761 2008-08-29  Bruno Haible  <bruno@clisp.org>
73763         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
73764         any more.
73766 2008-08-29  Simon Josefsson  <simon@josefsson.org>
73768         * MODULES.html.sh (Misc): Add bitrotate.
73770         * modules/bitrotate: New file.
73772         * lib/bitrotate.h: New file.
73774         * modules/bitrotate-tests: New file.
73776         * tests/test-bitrotate.c: New file.
73778         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
73779         on the bitrotate module.
73781         * lib/arctwo.c: Use new bitrotate module.
73783 2008-08-29  Jim Meyering  <meyering@redhat.com>
73785         bootstrap: merge changes from coreutils
73786         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
73787         of copied files.  Remove a kludge, now that this is fixed.
73788         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
73789         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
73790         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
73792 2008-08-29  Bruno Haible  <bruno@clisp.org>
73794         * MODULES.html.sh: Remove --cvs-urls option.
73796 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
73798         maint.mk: adjust to file name change
73799         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
73801 2008-08-28  Jim Meyering  <meyering@redhat.com>
73803         * modules/getndelim2 (License): Relicense to LGPLv2+.
73804         Approved by Richard Stallman for the version of 1995, and by
73805         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
73807 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
73809         * lib/getdelim.c (flockfile, funlockfile): Make all of them
73810         dummy if one is not available.  Do not touch them if
73811         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
73812         (getc_maybe_unlocked): New.
73813         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
73815 2008-08-26  Eric Blake  <ebb9@byu.net>
73817         doc/INSTALL: resync from autoconf
73818         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
73819         (INSTALL_PRELUDE): Delete; this is done more efficiently by
73820         moving...
73821         * install.texi [!autoconf]: ...here.  Resync from autoconf.
73822         * INSTALL: Regenerate.
73823         * INSTALL.ISO: New file.
73824         * INSTALL.UTF-8: Likewise.
73826 2008-08-26  Jim Meyering  <meyering@redhat.com>
73828         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
73829         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
73830         these definitions conditional, so that they may be overridden, too.
73832 2008-08-26  Bruno Haible  <bruno@clisp.org>
73834         Generate INSTALL file variants with prettier quotes.
73835         * doc/Makefile (INSTALL_PRELUDE): New macro.
73836         (INSTALL): Use it.
73837         (INSTALL.ISO, INSTALL.UTF-8): New rules.
73839 2008-08-26  Bruno Haible  <bruno@clisp.org>
73841         Run makeinfo in an English locale.
73842         * doc/Makefile (MAKEINFO): New variable.
73844 2008-08-26  Bruno Haible  <bruno@clisp.org>
73846         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
73847         Suggested by Eric Blake.
73849 2008-08-25  Bruno Haible  <bruno@clisp.org>
73851         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
73853 2008-08-25  Eric Blake  <ebb9@byu.net>
73855         c-stack: test that stack overflow can be caught
73856         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
73857         that platform allows handling stack overflow; at least OS/2 EMX
73858         has sigaltstack, but crashes before transferring control to
73859         handler on stack overflow.
73860         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
73861         check for HAVE_STACK_OVERFLOW_HANDLING.
73862         Reported by Elbert Pol.
73864 2008-08-25  Bruno Haible  <bruno@clisp.org>
73866         * doc/posix-functions/strftime.texi: Fix description of strftime
73867         module.
73869 2008-08-24  Bruno Haible  <bruno@clisp.org>
73871         * tests/uniwidth/test-uc_width2.c: New file.
73872         * tests/uniwidth/test-uc_width2.sh: New file.
73873         * modules/uniwidth/width-tests (Files): Add the new files.
73874         (TESTS): Add uniwidth/test-uc_width2.sh.
73875         (TESTS_ENVIRONMENT): New variable.
73876         (check_PROGRAMS): Add test-uc_width2.
73877         (test_uc_width2_SOURCES): New variable.
73879         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
73880         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
73881         not 0x00AB.
73882         Reported by Alexander V. Lukyanov <lav@netis.ru>.
73884 2008-08-22  Eric Blake  <ebb9@byu.net>
73886         test-lock, test-tls: mention why a test is skipped
73887         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
73888         skipped.
73889         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
73891         count-one-bits: relax license
73892         * modules/count-one-bits (License): Relicense to LGPLv2+.
73893         Suggested by Ludovic Courtès, approved by Ben Pfaff.
73895 2008-08-22  Andreas Schwab  <schwab@suse.de>
73897         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
73898         Remove spurious space in assignment.
73900 2008-08-21  Simon Josefsson  <simon@josefsson.org>
73902         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
73903         Paul Eggert <eggert@CS.UCLA.EDU>.
73905 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
73907         * modules/gettext: Add m4/threadlib.m4.
73909 2008-08-19  Eric Blake  <ebb9@byu.net>
73911         test-c-stack: fix compilation failure on FreeBSD 5.0
73912         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
73913         headers before <sys/resource.h>.
73914         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
73915         the bug.
73916         Reported by Nelson H. F. Beebe.
73918         strverscmp: migrate from "strverscmp.h" to <string.h>
73919         * modules/string (Makefile.am): Add new hooks.
73920         * modules/strverscmp (Files): Remove strverscmp.h.
73921         (Depends-on): Add string.
73922         (configure.ac): Add indicator.
73923         (Include): Mention new header.
73924         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
73925         defaults.
73926         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
73927         results.
73928         * lib/strverscmp.h: Delete.
73929         * lib/string.in.h (strverscmp): Provide declaration, when needed.
73930         * tests/test-strverscmp.c (includes): Adjust client.
73931         * lib/check-version.c (includes): Likewise.
73932         * NEWS: Document the change.
73934         strverscmp: add unit test
73935         * modules/strverscmp-tests: New file.
73936         * tests/test-strverscmp.c: Likewise.
73938 2008-08-19  Simon Josefsson  <simon@josefsson.org>
73940         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
73941         regarding Windows crypto stuff, from Mono.
73943 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
73945         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
73946         if present, for intel RND.  Return error on failures.
73948 2008-08-18  Ben Pfaff  <blp@gnu.org>
73950         gitlog-to-changelog: give better diagnostic for failed pipe-open
73951         * build-aux/gitlog-to-changelog: Improve error message: suggest
73952         that the version of Git may be too old.
73954 2008-08-18  Simon Josefsson  <simon@josefsson.org>
73956         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
73957         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
73959 2008-08-18  Bruno Haible  <bruno@clisp.org>
73961         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
73962         pthread_in_use().
73964 2008-08-18  Bruno Haible  <bruno@clisp.org>
73966         * lib/glthread/threadlib.c: Include <pthread.h>.
73968 2008-08-18  Bruno Haible  <bruno@clisp.org>
73970         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
73971         glthread_recursive_lock_* macros.
73972         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
73973         Fix syntax error.
73975 2008-08-18  Bruno Haible  <bruno@clisp.org>
73977         * lib/glthread/thread.c: Avoid forcing a context switch right after
73978         thread creation.
73980 2008-08-17  Bruno Haible  <bruno@clisp.org>
73982         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
73983         * lib/glthread/thread.h: Provide Win32 specific implementation.
73984         * modules/thread (Files): Add lib/glthread/thread.c.
73985         (Depends-on): Add lock.
73986         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
73988 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73990         New module 'yield'.
73991         * modules/yield: New file.
73992         * lib/glthread/yield.h: New file.
73993         * m4/yield.m4: New file.
73994         * MODULES.html.sh (Multithreading): Add yield.
73996 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73998         New module 'thread'.
73999         * modules/thread: New file.
74000         * lib/glthread/thread.h: New file.
74001         * m4/thread.m4: New file.
74002         * MODULES.html.sh (Multithreading): Add thread.
74004 2008-08-17  Bruno Haible  <bruno@clisp.org>
74006         * lib/glthread/lock.h: Include <stdlib.h> always.
74007         * lib/glthread/tls.h: Likewise.
74008         * lib/glthread/cond.h: Likewise.
74010 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74012         New module 'cond'.
74013         * modules/cond: New file.
74014         * lib/glthread/cond.h: New file.
74015         * lib/glthread/cond.c: New file.
74016         * m4/cond.m4: New file.
74017         * MODULES.html.sh (Multithreading): Add cond.
74019 2008-08-16  Eric Blake  <ebb9@byu.net>
74021         c-stack: fix regression on Irix 5.3 from 2008-06-21
74022         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
74023         sa_sigaction...
74024         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
74025         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
74026         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
74027         * modules/signal (Makefile.am): Use the value.
74028         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
74029         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
74030         * doc/posix-headers/signal.texi (signal.h): Document this
74031         portability issue.
74032         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
74033         Reported by Tom G. Christensen.
74035 2008-08-17  Bruno Haible  <bruno@clisp.org>
74037         New module 'threadlib'.
74038         * modules/threadlib: New file.
74039         * lib/glthread/threadlib.c: New file, extracted from
74040         lib/glthread/lock.c.
74041         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
74042         functions.
74043         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
74044         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
74045         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
74046         macros.
74047         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
74048         (gl_DISABLE_THREADS): Remove macro.
74049         * modules/lock (Files): Remove build-aux/config.rpath.
74050         (Depends-on): Remove havelib. Add threadlib.
74051         (configure.ac-early): Remove section.
74052         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
74053         * modules/tls (Depends-on): Remove lock. Add threadlib.
74054         (Link): New section, copied from threadlib.
74055         * MODULES.html.sh (Multithreading): Add threadlib.
74057 2008-08-14  Bruno Haible  <bruno@clisp.org>
74059         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
74060         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
74061         glthread_rwlock_unlock, glthread_rwlock_destroy,
74062         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
74063         glthread_recursive_lock_destroy): Define as macros always.
74064         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
74065         glthread_lock_lock.
74066         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
74067         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
74068         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
74069         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
74070         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
74071         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
74072         (glthread_recursive_lock_lock_func): Renamed from
74073         glthread_recursive_lock_lock.
74074         (glthread_recursive_lock_unlock_func): Renamed from
74075         glthread_recursive_lock_unlock.
74076         (glthread_recursive_lock_destroy_func): Renamed from
74077         glthread_recursive_lock_destroy.
74079 2008-08-14  Bruno Haible  <bruno@clisp.org>
74081         * lib/glthread/lock.h: Renamed from lib/lock.h.
74082         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
74083         * lib/glthread/tls.h: Renamed from lib/tls.h.
74084         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
74085         * lib/fstrcmp.c: Update includes.
74086         * lib/strsignal.c: Update includes.
74087         * modules/lock (Files, Makefile.am): Update.
74088         (Include): Change to "glthread/lock.h".
74089         * modules/tls (Files, Makefile.am): Update.
74090         (Include): Change to "glthread/tls.h".
74091         * tests/test-lock.c: Update includes.
74092         * tests/test-tls.c: Update includes.
74093         * NEWS: Mention the renamed header files.
74095 2008-08-11  Jim Meyering  <meyering@redhat.com>
74097         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
74099 2008-08-11  Eric Blake  <ebb9@byu.net>
74101         test-c-stack: avoid C99-ism
74102         * tests/test-c-stack.c (main): Fix whitespace, move declaration
74103         before statement.
74104         Reported by Alain Guibert.
74106 2008-08-10  Jim Meyering  <meyering@redhat.com>
74108         ensure that return value of uinttostr et al are not ignored
74109         * lib/inttostr.h (__GNUC_PREREQ): Define.
74110         (__attribute_warn_unused_result__): Define.
74111         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
74113 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
74115         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
74116         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
74118 2008-08-07  Jim Meyering  <meyering@redhat.com>
74120         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
74122         * modules/mkstemp (License): Relicense under LGPLv2+.
74123         * modules/tempname (License): Likewise.
74125 2008-08-06  Bruno Haible  <bruno@clisp.org>
74127         * lib/poll.c (poll): Further micro-optimization.
74129 2008-08-06  Jim Meyering  <meyering@redhat.com>
74131         inet_pton.c: use locale-independent tolower
74132         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
74133         (inet_pton6): Use c_tolower rather than tolower.
74134         * modules/inet_pton (Depends-on): Add c-ctype.
74136 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
74138         * lib/poll.c (poll): Avoid division when timeout is 0, cache
74139         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
74141 2008-08-06  Jim Meyering  <meyering@redhat.com>
74143         * modules/inet_pton (License): Relicense under LGPLv2+.
74145 2008-08-03  Bruno Haible  <bruno@clisp.org>
74147         Additional non-aborting API for lock and tls.
74148         * lib/lock.h: Include <errno.h>.
74149         (glthread_lock_init): New macro/function.
74150         (gl_lock_init): Define as wrapper around glthread_lock_init.
74151         (glthread_lock_lock): New macro/function.
74152         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
74153         (glthread_lock_unlock): New macro/function.
74154         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
74155         (glthread_lock_destroy): New macro/function.
74156         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
74157         (glthread_rwlock_init): New macro/function.
74158         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
74159         (glthread_rwlock_rdlock): New macro/function.
74160         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
74161         (glthread_rwlock_wrlock): New macro/function.
74162         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
74163         (glthread_rwlock_unlock): New macro/function.
74164         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
74165         (glthread_rwlock_destroy): New macro/function.
74166         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
74167         (glthread_recursive_lock_init): New macro/function.
74168         (gl_recursive_lock_init): Define as wrapper around
74169         glthread_recursive_lock_init.
74170         (glthread_recursive_lock_lock): New macro/function.
74171         (gl_recursive_lock_lock): Define as wrapper around
74172         glthread_recursive_lock_lock.
74173         (glthread_recursive_lock_unlock): New macro/function.
74174         (gl_recursive_lock_unlock): Define as wrapper around
74175         glthread_recursive_lock_unlock.
74176         (glthread_recursive_lock_destroy): New macro/function.
74177         (gl_recursive_lock_destroy): Define as wrapper around
74178         glthread_recursive_lock_destroy.
74179         (glthread_once): New macro/function.
74180         (gl_once): Define as wrapper around glthread_once.
74181         Update function declarations.
74182         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
74183         glthread_rwlock_init. Return error code.
74184         (glthread_rwlock_rdlock_multithreaded): Renamed from
74185         glthread_rwlock_rdlock. Return error code.
74186         (glthread_rwlock_wrlock_multithreaded): Renamed from
74187         glthread_rwlock_wrlock. Return error code.
74188         (glthread_rwlock_unlock_multithreaded): Renamed from
74189         glthread_rwlock_unlock. Return error code.
74190         (glthread_rwlock_destroy_multithreaded): Renamed from
74191         glthread_rwlock_destroy. Return error code.
74192         (glthread_recursive_lock_init_multithreaded): Renamed from
74193         glthread_recursive_lock_init. Return error code.
74194         (glthread_recursive_lock_lock_multithreaded): Renamed from
74195         glthread_recursive_lock_lock. Return error code.
74196         (glthread_recursive_lock_unlock_multithreaded): Renamed from
74197         glthread_recursive_lock_unlock. Return error code.
74198         (glthread_recursive_lock_destroy_multithreaded): Renamed from
74199         glthread_recursive_lock_destroy. Return error code.
74200         (glthread_once_call): Make static.
74201         (glthread_once_multithreaded): Renamed from glthread_once.
74202         * lib/tls.h: Include <errno.h>.
74203         (glthread_tls_key_init): New macro/function.
74204         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
74205         (glthread_tls_set): New macro/function.
74206         (gl_tls_set): Define as wrapper around glthread_tls_set.
74207         (glthread_tls_key_destroy): New macro/function.
74208         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
74209         Update function declarations.
74210         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
74211         glthread_tls_get.
74212         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
74214 2008-08-04  Eric Blake  <ebb9@byu.net>
74216         gnumakefile: use space, not TAB, outside of targets
74217         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
74219 2008-08-02  Jim Meyering  <meyering@redhat.com>
74221         getdate.y: avoid locale-dependent date parsing failure
74222         In Turkish locales, getdate would fail to recognize keywords
74223         containing a lowercase "i".  The solution is not to rely on
74224         locale-sensitive case-conversion.
74225         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
74226         (lookup_word): Use c_toupper in place of toupper.
74227         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
74228         Reported by Vefa Bicakci <bicave@superonline.com> in
74229         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
74230         * modules/getdate (Depends-on): Add c-ctype.
74232 2008-08-02  Bruno Haible  <bruno@clisp.org>
74234         * gnulib-tool (func_import): When updating or creating a .gitignore
74235         file, prepend each added line with a slash, and ignore leading slashes
74236         from the existing lines.
74237         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
74239 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74241         Portability fix for GNU make 3.79.1.
74242         * top/GNUmakefile: Avoid 'else COND', which older GNU make
74243         versions do not understand.
74245 2008-08-01  Bruno Haible  <bruno@clisp.org>
74247         Work around bug of HP-UX 10.20 cc with -0.0 literal.
74248         * tests/test-isnanf.h (zero): New variable.
74249         (main): Avoid literal -0.0f.
74250         * tests/test-isnand.h (zero): New variable.
74251         (main): Avoid literal -0.0.
74252         * tests/test-isnanl.h (zero): New variable.
74253         (main): Avoid literal -0.0L.
74254         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
74255         (test_float, test_double, test_long_double): Avoid literals -0.0f,
74256         -0.0, -0.0L.
74257         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
74258         (test_signbitd): Avoid literal -0.0.
74259         (test_signbitl): Avoid literal -0.0L.
74260         * tests/test-ceilf1.c (zero): New variable.
74261         (main): Avoid literal -0.0f.
74262         * tests/test-ceill.c (zero): New variable.
74263         (main): Avoid literal -0.0L.
74264         * tests/test-floorf1.c (zero): New variable.
74265         (main): Avoid literal -0.0f.
74266         * tests/test-floorl.c (zero): New variable.
74267         (main): Avoid literal -0.0L.
74268         * tests/test-roundf1.c (zero): New variable.
74269         (main): Avoid literal -0.0f.
74270         * tests/test-round1.c (zero): New variable.
74271         (main): Avoid literal -0.0.
74272         * tests/test-roundl.c (zero): New variable.
74273         (main): Avoid literal -0.0L.
74274         * tests/test-truncf1.c (zero): New variable.
74275         (main): Avoid literal -0.0f.
74276         * tests/test-trunc1.c (zero): New variable.
74277         (main): Avoid literal -0.0.
74278         * tests/test-truncl.c (zero): New variable.
74279         (main): Avoid literal -0.0L.
74280         * tests/test-frexp.c (zero): New variable.
74281         (main): Avoid literal -0.0.
74282         * tests/test-frexpl.c (zero): New variable.
74283         (main): Avoid literal -0.0L.
74284         * tests/test-ldexpl.c (zero): New variable.
74285         (main): Avoid literal -0.0L.
74286         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
74287         (zerod, zerol): New variables.
74288         (test_function): Avoid literals -0.0, -0.0L.
74289         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
74290         (zerod, zerol): New variables.
74291         (test_function): Avoid literals -0.0, -0.0L.
74292         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
74293         (zerod, zerol): New variables.
74294         (test_function): Avoid literals -0.0, -0.0L.
74295         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
74296         (zerod, zerol): New variables.
74297         (test_function): Avoid literals -0.0, -0.0L.
74298         * tests/test-strtod.c (zero): New variable.
74299         (main): Avoid literal -0.0.
74300         Reported by Jonathan C. Patschke <jp@centtech.com>.
74302 2008-07-31  Jim Meyering  <meyering@redhat.com>
74304         sha256.h: correct definition of SHA224_DIGEST_SIZE
74305         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
74306         Reported by Paulie Pena IV <paulie4@gmail.com>.
74307         Define as 224 / 8, rather than as a literal.
74308         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
74309         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
74310         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
74312 2008-07-31  Bruno Haible  <bruno@clisp.org>
74314         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
74315         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
74316         Reported by Jonathan Patschke <jp@centtech.com>.
74318 2008-07-31  Bruno Haible  <bruno@clisp.org>
74320         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
74321         Reported by Paolo Bonzini <bonzini@gnu.org>.
74323 2008-07-30  Eric Blake  <ebb9@byu.net>
74325         test-strtod: allow compilation without -lm
74326         * tests/test-strtod.c (main): Avoid link dependence on fabs.
74327         Reported by Dennis Clarke <blastwave@gmail.com>.
74329 2008-07-28  Jim Meyering  <meyering@redhat.com>
74331         bootstrap: work also when there are no .po files in po/
74332         * build-aux/bootstrap (update_po_files): Complete the change
74333         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
74335 2008-07-27  Jim Meyering  <meyering@redhat.com>
74337         * users.txt: Add zile.
74339 2008-07-26  Ben Pfaff  <blp@gnu.org>
74341         Add missing dependencies on new m4/exponent[fdl].m4 files.
74342         * modules/isnanf-nolibm: Add m4/exponentf.m4.
74343         * modules/isnand-nolibm: Add m4/exponentd.m4.
74344         * modules/isnanl-nolibm: Add m4/exponentl.m4.
74345         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
74346         m4/isnan[fdl].m4, because the macros actually used moved.
74347         Reported by Jim Meyering.
74349 2008-07-14  Ben Pfaff  <blp@gnu.org>
74351         Add isinf module.
74352         * lib/isinf.c: New file.
74353         * lib/math.in.h: Define isinf macro if we have decided to replace
74354         it.
74355         * m4/isinf.m4: New file.
74356         * m4/math_h.m4: Initialize and substitute variables for isinf
74357         module.
74358         * modules/isinf: New file.
74359         * modules/isinf-tests: New file.
74360         * modules/math: Add substitutions for new module.
74361         * tests/test-isinf.c: New file.
74362         * doc/posix-functions/isinf.texi: Mention new module.
74363         * MODULES.html.sh: Mention new module.
74365 2008-07-14  Ben Pfaff  <blp@gnu.org>
74367         Factor out some macros for use by additional modules.
74368         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
74369         exponentf.m4.
74370         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
74371         exponentd.m4.
74372         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
74373         file exponentl.m4.
74374         * m4/exponentf.m4: New file.
74375         * m4/exponentd.m4: New file.
74376         * m4/exponentl.m4: New file.
74377         * modules/isnanf: Use new file m4/exponentf.m4.
74378         * modules/isnand: Use new file m4/exponentd.m4.
74379         * modules/isnanl: Use new file m4/exponentl.m4.
74381 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
74383         mktime.c: normalize tp->tm_isdst value to -1/0/1.
74384         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
74385         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
74386         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
74388         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
74389         readlink on platforms without PATH_MAX.
74391 2008-07-21  Eric Blake  <ebb9@byu.net>
74393         Warn, not fail, on stale version.
74394         * top/GNUmakefile (_curr-ver): Tone down previous patch.
74396         Don't allow installation with stale devel version number.
74397         * top/GNUmakefile (_is-install-target): New macro.
74398         (_curr-ver): Forbid installation with stale version number.
74400 2008-07-20  Bruno Haible  <bruno@clisp.org>
74402         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
74403         TESTS_ENVIRONMENT.
74404         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
74406 2008-07-20  Bruno Haible  <bruno@clisp.org>
74408         * lib/c-stack.h (c_stack_action): Add documentation.
74409         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
74411 2008-07-20  Bruno Haible  <bruno@clisp.org>
74413         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
74414         * modules/readlink (License): Likewise.
74416 2008-07-17  Eric Blake  <ebb9@byu.net>
74418         * modules/c-stack (Link): Fix typo.
74420         Make c-stack use libsigsegv, when available.
74421         * modules/c-stack (Depends-on): Add libsigsegv.
74422         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
74423         needed.
74424         * lib/c-stack.c (SIGSTKSZ): Define fallback.
74425         (segv_handler, overflow_handler, c_stack_action)
74426         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
74427         implementation when libsigsegv is available, but only when using
74428         the library is necessary.
74429         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
74430         comment, explaining why XSI check fails on Linux.
74431         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
74432         * tests/test-c-stack2.sh: Tweak skip message.
74433         * NEWS: Document new link-time requirements.
74435 2008-07-16  Eric Blake  <ebb9@byu.net>
74437         c-stack: Expose false positives when not using libsigsegv.
74438         * modules/c-stack-tests (Files): Expand test.
74439         * tests/test-c-stack.c (main): Add means to conditionally trigger
74440         non-overflow SIGSEGV.
74441         * tests/test-c-stack2.sh: New file.
74443 2008-07-14  Bruno Haible  <bruno@clisp.org>
74445         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
74446         Reported by Eric Blake.
74448 2008-07-14  Sam Steingold  <sds@gnu.org>
74449             Bruno Haible  <bruno@clisp.org>
74451         New module libsigsegv.
74452         * modules/libsigsegv: New file.
74453         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
74454         modifications.
74455         * MODULES.html.sh (Signal handling): New section.
74457 2008-07-14  Bruno Haible  <bruno@clisp.org>
74459         * modules/unictype/ctype-* (Description): Add the word "function".
74460         Improves the resulting doc in MODULES.html.
74462 2008-07-12  Ben Pfaff  <blp@gnu.org>
74464         Add longlong module.
74465         * modules/longlong: New file.
74467 2008-07-12  Bruno Haible  <bruno@clisp.org>
74469         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
74470         to empty.
74472 2008-07-10  Ben Pfaff  <blp@gnu.org>
74474         Add isnan module.
74475         * doc/posix-functions/isnan.texi: Mention new module.
74476         * lib/math.in.h: Define isnan macro if we have decided to replace
74477         it.
74478         * m4/isnan.m4: New file.
74479         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
74480         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
74481         also.
74482         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
74483         redundancy.
74484         * m4/math_h.m4: Initialize and substitute variables for isnan
74485         module.
74486         * modules/isnan: New file.
74487         * modules/isnan-tests: New file.
74488         * modules/math: Add substitutions for new module.
74489         * tests/test-isnan.c: New file.
74490         * MODULES.html.sh: Mention new module.
74492 2008-07-10  Ben Pfaff  <blp@gnu.org>
74494         Add isnanf module.
74495         * lib/isnanf.m4: New file.
74496         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
74497         (gl_HAVE_ISNANF_IN_LIBM): New macro.
74498         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
74499         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
74500         * modules/isnanf: New file.
74501         * modules/isnanf-tests: New file.
74502         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
74503         files.
74504         * tests/test-isnanf-nolibm.c: factored most of its contents into
74505         new file tests/test-isnanf.h.
74506         * tests/test-isnanf.h: New file.
74507         * tests/test-isnanf.c: New file.
74508         * MODULES.html.sh: Mention new module.
74509         * doc/glibc-functions/isnanf.texi: Mention new module.
74511 2008-07-10  Ben Pfaff  <blp@gnu.org>
74513         Add isnand module.
74514         * lib/isnand.h: New file.
74515         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
74516         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
74517         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
74518         functionality also.
74519         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
74520         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
74521         (gl_HAVE_ISNAND_IN_LIBM): New macro.
74522         * modules/isnand: New file.
74523         * modules/isnand-tests: New file.
74524         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
74525         files.
74526         * tests/test-isnand-nolibm.c: factored most of its contents into
74527         new file tests/test-isnand.h.
74528         * tests/test-isnand.h: New file.
74529         * tests/test-isnand.c: New file.
74530         * MODULES.html.sh: Mention new module.
74532 2008-07-10  Ben Pfaff  <blp@gnu.org>
74534         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
74535         * lib/isnand.h: Rename lib/isnand-nolibm.h.
74536         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
74537         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
74538         * modules/isnanf-nolibm: Update references to renamed files.
74539         * modules/isnand-nolibm: Likewise.
74540         * modules/isnanf-nolibm-tests: Likewise.
74541         * modules/isnand-nolibm-tests: Likewise.
74542         * lib/frexp.c: Likewise.
74543         * lib/isfinite.c: Likewise.
74544         * lib/signbitd.c: Likewise.
74545         * lib/signbitf.c: Likewise.
74546         * lib/vasnprintf.c: Likewise.
74547         * tests/test-ceilf1.c: Likewise.
74548         * tests/test-ceilf2.c: Likewise.
74549         * tests/test-floorf1.c: Likewise.
74550         * tests/test-floorf2.c: Likewise.
74551         * tests/test-frexp.c: Likewise.
74552         * tests/test-round1.c: Likewise.
74553         * tests/test-round2.c: Likewise.
74554         * tests/test-roundf1.c: Likewise.
74555         * tests/test-strtod.c: Likewise.
74556         * tests/test-trunc1.c: Likewise.
74557         * tests/test-trunc2.c: Likewise.
74558         * tests/test-truncf1.c: Likewise.
74559         * tests/test-truncf2.c: Likewise.
74560         * NEWS: Mention the renamed header files.
74562 2008-07-11  Jim Meyering  <meyering@redhat.com>
74564         vc-list-files: make the last-resort awk code more portable
74565         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
74566         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
74567         does not support it.
74569 2008-07-10  Eric Blake  <ebb9@byu.net>
74571         Work with tar's bootstrap.
74572         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
74573         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
74574         an m4 comment.
74576 2008-07-09  Jim Meyering  <meyering@redhat.com>
74578         posix-shell.m4: fix typo that made this test malfunction
74579         * m4/posix-shell.m4: Remove capitalization in variable name.
74581 2008-07-08  Bruno Haible  <bruno@clisp.org>
74583         * m4/onceonly.m4: Update comments.
74584         Reported by Ben Pfaff <blp@cs.stanford.edu>.
74586 2008-07-04  Jim Meyering  <meyering@redhat.com>
74588         * users.txt: Add vc-dwim.
74589         (bison, coreutils): Use the gitweb URL.
74591 2008-07-03  Jim Meyering  <meyering@redhat.com>
74593         * users.txt: Add libffcall.  From Sam Steingold.
74595 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
74597         getdate.y: do not ignore TZ with relative day, month or year offset
74598         * lib/getdate.y (get_date): Move the tz-handling block to follow the
74599         relative-date-handling, since otherwise, the latter would clobber the
74600         sole output (an updated Start value) of the tz-handling block.
74601         * tests/test-getdate.c: Tests for the fix
74603 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74605         Recognize 'foo_LIBRARIES += libgnu.a'.
74606         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
74607         makefile snippet has already specified an installation location,
74608         also using '+='.
74610 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
74612         getdate.y: factor out common actions
74613         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
74614         Use them in place of open-coded actions.
74616 2008-07-01  Simon Josefsson  <simon@josefsson.org>
74618         Add self-test for getdate module.
74619         * modules/getdate-tests: New file.
74620         * tests/test-getdate.c: New file.
74622 2008-06-29  Bruno Haible  <bruno@clisp.org>
74624         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
74625         .gitignore.
74626         Reported by Sylvain Beucler <beuc@beuc.net>.
74628 2008-06-29  Bruno Haible  <bruno@clisp.org>
74630         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
74631         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
74633 2008-06-29  Bruno Haible  <bruno@clisp.org>
74635         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
74636         EXTRA_DIST.
74637         Reported by Sylvain Beucler <beuc@beuc.net>.
74639 2008-06-26  Jim Meyering  <meyering@redhat.com>
74641         make several modules depend on the "open" module
74642         This provides slightly increased consistency when opening-for-write
74643         the name of a non-directory spelled with a trailing slash.
74644         * modules/chdir-safer: Likewise.
74645         * modules/chown: Likewise.
74646         * modules/clean-temp: Likewise.
74647         * modules/copy-file: Likewise.
74648         * modules/fchdir: Likewise.
74649         * modules/fcntl-safer: Likewise.
74650         * modules/pipe: Likewise.
74651         * modules/utime: Likewise.
74652         Prompted by Eric Blake and Bruno Haible.
74654 2008-06-24  Andreas Schwab  <schwab@suse.de>
74656         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
74657         literals can be used as initializers for global variables.
74659 2008-06-23  Eric Blake  <ebb9@byu.net>
74661         Make gnulib-cache.m4 easier to diff.
74662         * gnulib-tool (func_import): Allow newlines when reading cached
74663         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
74665 2008-06-23  Bruno Haible  <bruno@clisp.org>
74667         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
74668         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
74669         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
74670         m4/signalblocking.m4.
74671         (gl_PREREQ_SIGACTION): Don't invoke it.
74672         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
74673         gl_PREREQ_SIG_HANDLER_H.
74674         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
74675         Don't check for sigaction here.
74677 2008-06-23  Bruno Haible  <bruno@clisp.org>
74679         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
74680         (install_handlers): Don't set the SA_RESETHAND flag.
74682 2008-06-23  Bruno Haible  <bruno@clisp.org>
74684         * m4/sigaction.m4: Comment fixes.
74685         * lib/signal.in.h: Likewise.
74687 2008-06-23  Eric Blake  <ebb9@byu.net>
74689         Fix typo.
74690         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
74692         Avoid SA_ namespace.
74693         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
74694         Reported by Ralf Wildenhues.
74696         Avoid test failure due to SA_RESTORER.
74697         * tests/test-sigaction.c (SA_MASK): New macro.
74698         (main): Avoid failing due to extension flags being set.
74699         Reported by Jim Meyering.
74701         Revert use of sig-handler.h in sigprocmask.c.
74702         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
74703         it requires the existence of struct sigaction.
74704         * lib/sigprocmask.c (handler_t): Restore typedef.
74705         (rpl_signal, old_handlers): Use local type.
74707 2008-06-22  Bruno Haible  <bruno@clisp.org>
74709         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
74710         conditionally.
74711         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
74713 2008-06-22  Bruno Haible  <bruno@clisp.org>
74715         * doc/posix-functions/siginterrupt.texi: Move note.
74717         * lib/signal.in.h (SA_RESTART): New macro.
74718         * lib/sigaction.c: Update comment.
74720         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
74722         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
74723         (gl_PREREQ_SIGPROCMASK): Invoke it.
74724         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
74726         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
74728         * lib/sigprocmask.c: Update a comment.
74730 2008-06-21  Eric Blake  <ebb9@byu.net>
74732         Use sigaction module rather than signal().
74733         * modules/c-stack (Depends-on): Add sigaction.
74734         * modules/fatal-signal (Depends-on): Likewise.
74735         * modules/nanosleep (Depends-on): Likewise.
74736         * modules/sigprocmask (Files): Add sig-handler.h.
74737         * modules/sigaction (Files): Likewise.
74738         * lib/sig-handler.h (get_handler): New file, suggested by Paul
74739         Eggert.
74740         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
74741         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
74742         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
74743         (init_fatal_signals): Likewise.
74744         * lib/nanosleep.c (rpl_nanosleep): Likewise.
74745         (siginterrupt): Delete fallback.
74746         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
74747         instead.
74748         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
74749         siginterrupt.
74751         New module sigaction, for mingw.
74752         * modules/sigaction: New module...
74753         * modules/sigaction-tests: ...and its test.
74754         * m4/sigaction.m4: New file.
74755         * lib/sigaction.c: Likewise.
74756         * tests/test-sigaction.c: Likewise.
74757         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
74758         * modules/signal (Makefile.am): Likewise.
74759         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
74760         needed.
74761         * doc/posix-headers/signal.texi (signal.h): Mention provided
74762         types.
74763         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
74764         that sigaction is preferable.
74765         * doc/posix-functions/sigaction.texi (sigaction): Mention new
74766         module.
74767         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74768         sigaction.
74770         Improve robustness of sigprocmask by overriding signal.
74771         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
74772         is in use.
74773         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
74774         (SIGKILL, SIGSTOP): Provide fallbacks.
74775         (rpl_signal): Implement.
74776         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
74777         signal can be called inside handlers.
74779         Fix nanosleep module on mingw.
74780         * modules/nanosleep (Depends-on): Add sys_select.
74781         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
74783         Fix licensing of sigprocmask.
74784         * modules/raise (License): Relicense as LGPL.
74786 2008-06-21  Bruno Haible  <bruno@clisp.org>
74788         * lib/propername.c (proper_name_utf8): Don't use the transliterated
74789         result if it contains question marks.
74790         Reported by Michael Geng <linux@michaelgeng.de>.
74792 2008-06-19  Bruno Haible  <bruno@clisp.org>
74794         Fix CVS-ism.
74795         * doc/gnulib.texi: Include updated-stamp.texi.
74796         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
74797         (updated-stamp.texi): New rule.
74798         (gnulib.info): Depend on it.
74799         * doc/.gitignore: Add updated-stamp.texi.
74800         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
74802 2008-06-19  Bruno Haible  <bruno@clisp.org>
74804         * doc/Makefile (gnulib.info): Update and simplify dependencies.
74805         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
74807 2008-06-19  Eric Blake  <ebb9@byu.net>
74809         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
74810         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
74811         Reported by Stepan Kasal.
74813 2008-06-18  Bruno Haible  <bruno@clisp.org>
74815         * lib/fatal-signal.c (init_fatal_signals): Add comment.
74816         Reported by Eric Blake.
74818 2008-06-18  Eric Blake  <ebb9@byu.net>
74820         Work around cygwin 1.5.25 strsignal bug.
74821         * tests/test-strsignal.c: Allow for const char *.
74822         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
74824 2008-06-18  Simon Josefsson  <simon@josefsson.org>
74826         * users.txt: Update URL to article and add author/date
74827         information.
74829 2008-06-17  Bruno Haible  <bruno@clisp.org>
74831         New macro gl_DISABLE_THREADS.
74832         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
74833         if the user did not pass --enable-threads or --disable-threads option.
74834         (gl_DISABLE_THREADS): New macro.
74835         Reported by Eric Blake <ebb9@byu.net>.
74837 2008-06-17  Bruno Haible  <bruno@clisp.org>
74839         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
74840         when the macro ignores it.
74841         Based on a patch by Eric Blake <ebb9@byu.net>.
74843 2008-06-17  Bruno Haible  <bruno@clisp.org>
74845         * modules/tls (License): Change to LGPLv2+.
74846         Reported by Eric Blake.
74848 2008-06-17  Eric Blake  <ebb9@byu.net>
74850         Simplify c-stack prerequisites.
74851         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
74852         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
74853         no longer requires <ucontext.h> to exist.  Optimize setrlimit
74854         check.
74855         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
74856         <sys/resource.h>.
74858         Move c-stack test into testsuite.
74859         * modules/c-stack-tests: New file.
74860         * lib/c-stack.c [DEBUG]: Move test program...
74861         * tests/test-c-stack.c: ...into this new file.  Skip rather than
74862         fail test if sigaltstack is lacking.
74863         * tests/test-c-stack.sh: New driver file.
74865 2008-06-16  Eric Blake  <ebb9@byu.net>
74867         Use raise module consistently.
74868         * modules/fatal-signal (Depends-on): Add raise.
74869         * modules/sigprocmask (Depends-on): Likewise.
74870         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
74871         * lib/sigprocmask.c (sigprocmask): Likewise.
74872         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
74873         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
74875         Fix compliance bug in sigpending.
74876         * lib/sigprocmask.c (sigpending): Return pending array via
74877         parameter, not return value.
74879 2008-06-14  Eric Blake  <ebb9@byu.net>
74881         Improve obstack-printf test code.
74882         * tests/test-obstack-printf.c (test_function): Fix comment, and
74883         simplify usage of obstack_* in macros.  Add a test for coverage.
74884         Reported by Bruno Haible.
74886 2008-06-14  Bruno Haible  <bruno@clisp.org>
74888         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
74889         array size as a constant, not as a const variable.
74890         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
74891         AC_USE_SYSTEM_EXTENSIONS.
74892         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
74893         Test whether the obstack_printf function actually exists.
74894         * modules/obstack-printf (Depends-on): Add extensions.
74895         (Include): Remove obstack.h.
74896         * modules/obstack-printf-posix (Depends-on): Add extensions.
74897         (Include): Remove obstack.h.
74899 2008-06-13  Eric Blake  <ebb9@byu.net>
74901         Add obstack-printf and obstack-printf-posix modules.
74902         * modules/obstack-printf: New file.
74903         * modules/obstack-printf-posix: Likewise.
74904         * MODULES.html.sh (Misc): Mention them.
74905         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
74906         Likewise.
74907         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
74908         Likewise.
74909         * modules/stdio (Makefile.am): Accomodate new modules.
74910         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
74911         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
74912         Declare.
74913         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
74914         functions.
74915         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
74916         (gl_REPLACE_OBSTACK_PRINTF): New macros
74917         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
74918         * tests/test-obstack-printf.c: New file.
74919         * modules/obstack-printf-tests: Likewise.
74920         * modules/obstack-printf-posix-tests: Likewise.
74922 2008-06-11  Bruno Haible  <bruno@clisp.org>
74924         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
74925         * lib/open.c: Include errno.h.
74926         (open): Fail when attempting to write to a file that has a trailing
74927         slash.
74928         * tests/test-open.c (main): Test against trailing slash bug.
74929         * doc/posix-functions/open.texi: Mention the trailing slash bug.
74931 2008-06-10  Bruno Haible  <bruno@clisp.org>
74933         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
74934         for $? to work inside the trap command, with various /bin/sh-s.
74935         * tests/test-vc-list-files-cvs.sh: Likewise.
74937 2008-06-10  Bruno Haible  <bruno@clisp.org>
74939         * lib/acl-internal.h: Don't include gettext.h here.
74940         * lib/set-mode-acl.c: Include gettext.h here.
74941         * lib/copy-acl.c: Likewise.
74943 2008-06-10  Bruno Haible  <bruno@clisp.org>
74945         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
74946         * lib/wait-process.c (wait_subprocess): Likewise.
74947         * lib/execute.h (execute): Add termsigp argument.
74948         * lib/execute.c (execute): Likewise.
74949         * lib/csharpcomp.c (compile_csharp_using_pnet,
74950         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
74951         * lib/csharpexec.c (execute_csharp_using_pnet,
74952         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
74953         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
74954         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
74955         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
74956         is_jikes_present): Update.
74957         * lib/javaexec.c (execute_java_class): Update.
74958         * lib/javaversion.c (execute_and_read_line): Update.
74959         * NEWS: Document the changes.
74960         Reported by Eric Blake.
74962 2008-06-10  Eric Blake  <ebb9@byu.net>
74964         Add missing include.
74965         * tests/test-strstr.c (includes): Add <signal.h>.
74966         * tests/test-strcasestr.c (includes): Likewise.
74967         * tests/test-memmem.c (includes): Likewise.
74969 2008-06-10  Bruno Haible  <bruno@clisp.org>
74971         * lib/wait-process.c (wait_subprocess): Add an assertion.
74973 2008-06-10  Bruno Haible  <bruno@clisp.org>
74975         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
74977 2008-06-10  Bruno Haible  <bruno@clisp.org>
74979         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
74980         using alarm().
74981         * tests/test-strcasestr.c (main): Likewise.
74982         * tests/test-strstr.c (main): Likewise.
74984 2008-06-09  Bruno Haible  <bruno@clisp.org>
74986         Work around the Solaris 10 ACE ACLs ABI change.
74987         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
74988         declare if ACL_NO_TRIVIAL is present.
74989         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
74990         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
74991         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
74992         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
74993         define if ACL_NO_TRIVIAL is present.
74994         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
74995         and use the current ABI.
74996         (file_has_acl): Use same #if condition as elsewhere.
74997         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
74998         in use, and use the current ABI.
74999         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
75000         Reported by Jim Meyering.
75002 2008-06-09  Eric Blake  <ebb9@byu.net>
75004         Work around environments that (stupidly) ignore SIGALRM.
75005         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
75006         before using alarm().
75007         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
75008         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
75009         Reported by Ian Beckwith <ianb@erislabs.net>.
75011         Produce autobuild blurb earlier in log.
75012         * modules/autobuild (configure.ac-early): Move AB_INIT here.
75014 2008-06-09  Jim Meyering  <meyering@redhat.com>
75015         and Ondřej Vašík  <ovasik@redhat.com>
75017         utimens.c: correct kernel bug work-around
75018         Ondřej Vašík found that the invalid return value of 280 indicates
75019         failure, not success, and the kernel bug we're trying to work
75020         around affects not just the utimensat call, but also the fallback
75021         futimens call.
75022         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
75023         not success.
75024         [HAVE_FUTIMENS]: Use the same work-around, here.
75026 2008-06-09  Jim Meyering  <meyering@redhat.com>
75028         add more guards around definition of ACE_-related code
75029         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
75030         ALLOW and ACE_OWNER are also defined.
75032 2008-06-08  Bruno Haible  <bruno@clisp.org>
75034         * lib/acl-internal.h: Add me as co-author.
75035         * lib/file-has-acl.c: Likewise.
75036         * lib/set-mode-acl.c: Likewise.
75037         * lib/copy-acl.c: Likewise.
75039 2008-06-08  Bruno Haible  <bruno@clisp.org>
75041         Add support for AIX ACLs.
75042         * lib/acl-internal.h (acl_nontrivial): New declaration.
75043         * lib/file-has-acl.c (acl_nontrivial): New function.
75044         (file_has_acl): Add implementation using AIX 4 ACL API.
75045         * lib/set-mode-acl.c (qset_acl): Likewise.
75046         * lib/copy-acl.c (qcopy_acl): Likewise.
75048 2008-06-08  Bruno Haible  <bruno@clisp.org>
75050         Add support for HP-UX ACLs.
75051         * lib/acl-internal.h (acl_nontrivial): New declaration.
75052         * lib/file-has-acl.c (acl_nontrivial): New function.
75053         (file_has_acl): Add implementation using HP-UX 11 ACL API.
75054         * lib/set-mode-acl.c (qset_acl): Likewise.
75055         * lib/copy-acl.c (qcopy_acl): Likewise.
75057 2008-06-08  Bruno Haible  <bruno@clisp.org>
75059         Add support for Cygwin ACLs.
75060         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
75061         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
75062         the chmod_or_fchmod call.
75063         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
75065 2008-06-08  Bruno Haible  <bruno@clisp.org>
75067         Fix bug with setuid modes in Solaris 10+ code.
75068         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
75069         succeeded, when the mode contains some special bits.
75071 2008-06-08  Bruno Haible  <bruno@clisp.org>
75073         Add support for Solaris 7..10 ACLs.
75074         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
75075         declarations.
75076         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
75077         functions.
75078         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
75079         * lib/set-mode-acl.c (qset_acl): Likewise.
75080         * lib/copy-acl.c (qcopy_acl): Likewise.
75082 2008-06-08  Bruno Haible  <bruno@clisp.org>
75084         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
75085         declaration.
75086         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
75087         (acl_access_nontrivial): Remove MacOS X case.
75088         (file_has_acl): Use acl_extended_nontrivial.
75089         * lib/copy-acl.c (qcopy_acl): Likewise.
75091 2008-06-08  Bruno Haible  <bruno@clisp.org>
75093         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
75095 2008-06-08  Jim Meyering  <meyering@redhat.com>
75097         * modules/acl (Maintainer): Add Bruno Haible.
75099 2008-06-07  Bruno Haible  <bruno@clisp.org>
75101         Improve support for Tru64 ACLs.
75102         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
75103         ACL on OSF/1.
75105 2008-06-07  Bruno Haible  <bruno@clisp.org>
75107         Add support for MacOS X ACLs.
75108         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
75109         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
75110         * lib/set-mode-acl.c (qset_acl): Likewise.
75111         * lib/copy-acl.c (qcopy_acl): Likewise.
75113 2008-06-07  Bruno Haible  <bruno@clisp.org>
75115         Fix memory leak introduced on 2008-05-22.
75116         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
75117         use.
75119 2008-06-07  Bruno Haible  <bruno@clisp.org>
75121         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
75122         to construct an empty ACL.
75124 2008-06-07  Bruno Haible  <bruno@clisp.org>
75126         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
75127         precisely.
75128         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
75130 2008-06-07  Bruno Haible  <bruno@clisp.org>
75132         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
75133         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
75135 2008-06-07  Bruno Haible  <bruno@clisp.org>
75137         * doc/posix-functions/_setjmp.texi: Explain the use of this function
75138         regardless of POSIX.
75139         * doc/posix-functions/_longjmp.texi: Likewise.
75140         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
75141         SystemV platform in this case.
75143 2008-06-06  Eric Blake  <ebb9@byu.net>
75145         Document abort() bugs.
75146         * doc/posix-functions/abort.texi (abort): Mention anomalies.
75148         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
75149         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
75150         sigsetjmp.
75151         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
75152         siglongjmp, but only as a macro.
75153         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
75154         is obsolete.
75155         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
75157         Tweak documentation to cover cygwin argz bugs.
75158         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
75159         argz bug fix; no code change needed since no cygwin releases
75160         occurred between the last fix and the bug being tested.
75161         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
75162         module and recently fixed cygwin bugs.
75163         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
75164         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
75165         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
75166         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
75167         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
75168         Likewise.
75169         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
75170         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
75171         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
75172         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
75173         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
75174         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
75175         Likewise.
75177         Avoid gcc warning on cygwin.
75178         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
75179         !ACL_NO_TRIVIAL]: Avoid unused variable.
75181 2008-06-05  Eric Blake  <ebb9@byu.net>
75183         Be tolerant of UNKNOWN version in gnulib-tool test dir.
75184         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
75185         git-version-gen fails to come up with a version.
75186         Reported by Simon Josefsson.
75188 2008-06-05  Jim Meyering  <meyering@redhat.com>
75189             Paul Eggert  <eggert@cs.ucla.edu>
75191         utimens.c: work around a probable Linux kernel bug
75192         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
75193         appears to be a kernel bug that causes utimensat to return 280
75194         instead of 0, indicating success.
75196 2008-06-04  Bruno Haible  <bruno@clisp.org>
75198         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
75199         2008-06-01 commit.
75201 2008-06-04  Bruno Haible  <bruno@clisp.org>
75203         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
75204         * lib/file-has-acl.c (acl_access_nontrivial): New function.
75205         (file_has_acl): Use it. Save errno afterwards.
75206         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
75208 2008-06-03  Bruno Haible  <bruno@clisp.org>
75210         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
75211         draft code. Simplify #ifs.
75212         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
75213         Put Solaris code after POSIX-draft code. Fix comments regarding
75214         Solaris 10, HP-UX. Mention Cygwin.
75215         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
75217 2008-06-03  Eric Blake  <ebb9@byu.net>
75219         Provide fallback for older kernels.
75220         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
75221         Provide runtime fallback if kernel lacks support.
75222         Reported by Mike Frysinger.
75224 2008-06-02  Bruno Haible  <bruno@clisp.org>
75226         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
75227         it exists.
75229 2008-06-02  Bruno Haible  <bruno@clisp.org>
75231         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
75232         * lib/copy-acl.c (qcopy_acl): Update comment.
75234 2008-06-02  Bruno Haible  <bruno@clisp.org>
75236         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
75237         like ACL APIs.
75239 2008-06-02  Bruno Haible  <bruno@clisp.org>
75241         * tests/test-file-has-acl.sh: Use different code for Cygwin.
75242         * tests/test-set-mode-acl.sh: Likewise.
75243         * tests/test-copy-acl.sh: Likewise.
75244         * tests/test-copy-file.sh: Likewise.
75246 2008-06-02  Bruno Haible  <bruno@clisp.org>
75248         * tests/test-file-has-acl.sh: Remove unused code.
75250 2008-06-01  Bruno Haible  <bruno@clisp.org>
75252         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
75253         (copy_acl): Just a wrapper around qcopy_acl that emits the error
75254         messages.
75255         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
75257 2008-06-01  Bruno Haible  <bruno@clisp.org>
75259         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
75260         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
75261         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
75262         APIs.
75263         * modules/acl-tests (configure.ac): Remove tests now contained in
75264         m4/acl.m4.
75266 2008-06-02  Jim Meyering  <meyering@redhat.com>
75268         announce-gen: use a better key-server host name
75269         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
75270         it may be more consistently reliable.  Suggested by Werner Koch
75271         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
75273 2008-06-01  Bruno Haible  <bruno@clisp.org>
75275         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
75276         Reported by Voroskoi Andras <voroskoi@gmail.com>.
75278 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
75280         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
75282 2008-06-01  Bruno Haible  <bruno@clisp.org>
75284         New ACL tests.
75285         * tests/test-file-has-acl.sh: New file.
75286         * tests/test-file-has-acl.c: New file.
75287         * tests/test-set-mode-acl.sh: New file.
75288         * tests/test-set-mode-acl.c: New file.
75289         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
75290         * tests/test-copy-acl.c: New file.
75291         * modules/acl-tests: New file, based on modules/copy-file-tests.
75292         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
75293         (Depends-on): Add acl-tests.
75294         (configure.ac): Remove checks.
75295         (Makefile.am): Don't create test-sameacls program here any more.
75297 2008-06-01  Bruno Haible  <bruno@clisp.org>
75299         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
75300         * tests/test-sameacls.c: Include progname.h.
75301         (main): Invoke set_program_name. Portability fixes for MacOS X,
75302         Solaris, HP-UX.
75304 2008-06-01  Bruno Haible  <bruno@clisp.org>
75306         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
75307         function.
75308         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
75310 2008-06-01  Bruno Haible  <bruno@clisp.org>
75312         * modules/rpmatch (Depends-on): Add strdup.
75314 2008-06-01  Bruno Haible  <bruno@clisp.org>
75316         * lib/pipe.c: Include unistd-safer.h.
75317         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
75318         * modules/pipe (Depends-on): Add unistd-safer.
75320 2008-05-30  Simon Josefsson  <simon@josefsson.org>
75322         * modules/autobuild (configure.ac): Call AB_INIT.
75324 2008-05-30  Simon Josefsson  <simon@josefsson.org>
75326         * tests/test-getaddrinfo.c: Don't print debug messages by default.
75327         Suggested by Bruno Haible <bruno@clisp.org>.
75329 2008-05-30  Simon Josefsson  <simon@josefsson.org>
75331         * tests/test-base64.c: Cast size_t to unsigned long when invoking
75332         printf.  Use %lu instead of %d.  Reported by Bruno Haible
75333         <bruno@clisp.org>.
75335 2008-05-29  Eric Blake  <ebb9@byu.net>
75337         Prefer new POSIX 200x interfaces over futimesat.
75338         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
75339         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
75340         when available.
75341         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
75343 2008-05-28  Bruno Haible  <bruno@clisp.org>
75345         * modules/stpcpy (License): Change to LGPLv2+.
75346         Requested by David Lutterkort <dlutter@redhat.com>.
75348 2008-05-27  Bruno Haible  <bruno@clisp.org>
75350         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
75351         current mingw.
75352         Reported by Jose E. Marchesi <jemarch@gnu.org>.
75354 2008-05-27  Bruno Haible  <bruno@clisp.org>
75356         * modules/iconv_open (Link): New section, from module 'iconv'.
75357         * modules/striconv (Link): Likewise.
75358         * modules/striconveh (Link): Likewise.
75359         * modules/xstriconv (Link): Likewise.
75360         * modules/unicodeio (Link): Likewise.
75361         * modules/propername (Link): Likewise.
75362         Reported by Jim Meyering.
75364 2008-05-26  Jim Meyering  <meyering@redhat.com>
75366         sha256: do not artificially restrict buffer length to be < 2^32
75367         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
75368         uint32_t to size_t.
75369         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
75370         to match.
75372         avoid unaligned access errors, e.g., on sparc
75373         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
75374         direct access through a possibly-unaligned uint64* pointer.
75375         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
75376         direct access through a possibly-unaligned uint32* pointer.
75377         Prompted by this patch from Tom "spot" Callaway:
75378         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
75380         sha512.c: fix typo in comment
75381         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
75383 2008-05-25  Bruno Haible  <bruno@clisp.org>
75385         * lib/set-mode-acl.c: Renamed from lib/acl.c.
75386         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
75387         (Makefile.am): Update lib_SOURCES.
75389 2008-05-25  Bruno Haible  <bruno@clisp.org>
75391         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
75393 2008-05-25  Jim Meyering  <meyering@redhat.com>
75395         useless-if-before-free: freed expr may have white-space differences
75396         * build-aux/useless-if-before-free: Recognize cases in which the
75397         freed expression differs from the tested one in embedded white
75398         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
75399         $1 was used, so we can't make any regexp shy.  Improved tests now
75400         detect this.
75402         useless-if-before-free: accept white space in the expression.
75403         * build-aux/useless-if-before-free: For now, any white space
75404         in the expression must be identical in the free argument.
75406         useless-if-before-free: efficiency tweak
75407         * build-aux/useless-if-before-free: Make the expression-matching
75408         regexp "shy".
75409         Make the *outer* regexp shy, not the expr-matching one.
75411         update code-in-comment to accept cast of free arg
75412         * build-aux/useless-if-before-free: Update regexp.
75414 2008-05-25  Bruno Haible  <bruno@clisp.org>
75416         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
75417         * modules/copy-file-tests (Files, Makefile.am): Update.
75418         * tests/test-copy-file.c (func_test_copy): Update.
75420 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
75422         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
75424 2008-05-23  Bruno Haible  <bruno@clisp.org>
75426         Improve support for ACLs on OSF/1.
75427         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
75428         Remove fallback for unknown flavors of ACLs.
75430 2008-05-22  Bruno Haible  <bruno@clisp.org>
75432         Add support for ACLs on OSF/1.
75433         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
75434         replacements.
75435         (acl_free_text): New macro fallback.
75436         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
75437         acl_free.
75438         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
75439         acl_free_text function. Require AC_C_INLINE.
75441 2008-05-22  Bruno Haible  <bruno@clisp.org>
75443         Make copy_acl work on MacOS X 10.5.
75444         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
75445         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
75446         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
75447         If MODE_INSIDE_ACL, don't assume that every system has the same text
75448         representation for ACLs as FreeBSD.
75449         * lib/copy-acl.c (copy_acl): Add support for platforms with
75450         !MODE_INSIDE_ACL.
75451         * lib/file-has-acl.c (file_has_acl): Likewise.
75452         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
75453         FreeBSD, MacOS X, or IRIX, respectively.
75455 2008-05-22  Bruno Haible  <bruno@clisp.org>
75457         * lib/acl.h: Don't include <sys/acl.h>.
75458         (GETACLCNT): Move fallback to lib/acl-internal.h.
75459         * lib/acl-internal.h: Include <sys/acl.h> here.
75460         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
75462 2008-05-22  Bruno Haible  <bruno@clisp.org>
75464         Split off copy_acl function to separate file.
75465         * lib/copy-acl.c: New file, extracted from lib/acl.c.
75466         * lib/acl.c (copy_acl): Moved function to separate file.
75467         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
75468         * modules/acl (Files): Add lib/copy-acl.c.
75469         (Makefiles.am): Augment lib_SOURCES.
75471 2008-05-22  Bruno Haible  <bruno@clisp.org>
75473         * modules/copy-file-tests: New file.
75474         * tests/test-copy-file.sh: New file.
75475         * tests/test-copy-file.c: New file.
75476         * tests/test-copy-file-sameacls.c: New file.
75478 2008-05-22  Eric Blake  <ebb9@byu.net>
75480         Avoid gcc warning.
75481         * tests/test-memcmp.c (main): Pass NULL indirectly.
75483 2008-05-21  Bruno Haible  <bruno@clisp.org>
75485         Add reference doc about ACLs.
75486         * doc/acl-resources.txt: New file.
75487         * doc/acl-cygwin.txt: New file.
75489 2008-05-21  Bruno Haible  <bruno@clisp.org>
75491         Avoid one more warning from gcc.
75492         * lib/vasnprintf.c (IF_LINT): Update comments.
75493         (VASNPRINTF): Use it also for the 'prefix' array initializer.
75495 2008-05-21  Jim Meyering  <meyering@redhat.com>
75497         avoid a warning from gcc
75498         * lib/vasnprintf.c (IF_LINT): Define.
75499         (scale10_round_decimal_long_double):
75500         Use it to avoid a "may be used uninitialized" warning.
75501         (scale10_round_decimal_double): Likewise.
75503 2008-05-21  Simon Josefsson  <simon@josefsson.org>
75505         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
75506         declared.
75508 2008-05-20  Bruno Haible  <bruno@clisp.org>
75510         * tests/test-memcmp.c (main): Test also the sign of the result. Test
75511         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
75513 2008-05-20  Simon Josefsson  <simon@josefsson.org>
75515         * modules/memcmp-tests: New file.
75516         * tests/test-memcmp.c: New file.
75518 2008-05-19  Bruno Haible  <bruno@clisp.org>
75520         * modules/propername (Notice, configure.ac): Put quoted "..." into
75521         --keyword option.
75522         * lib/propername.h: Update comments accordingly.
75523         Reported by Eric Blake.
75525 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
75527         * modules/getpass-gnu (Depends-on): Add fseeko.
75529 2008-05-19  Simon Josefsson  <simon@josefsson.org>
75531         * modules/base64-tests: New file.
75533 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
75535         * lib/base64.c (base64_decode_ctx): If a decode context structure
75536         was passed in use it to ignore newlines.  If a context structure
75537         was _not_ passed in, continue to treat newlines as garbage (this
75538         is the historical behavior).  Formerly base64_decode.
75539         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
75540         takes a decode context structure.
75541         * lib/base64.h (base64_decode): Macro for four-argument calls.
75542         (base64_decode_alloc): Likewise.
75543         * lib/base64.c (base64_decode_ctx): If a decode context structure
75544         was passed in use it to ignore newlines.  If a context structure
75545         was _not_ passed in, continue to treat newlines as garbage (this
75546         is the historical behavior).  Formerly base64_decode.
75547         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
75548         takes a decode context structure.
75549         * lib/base64.h (base64_decode): Macro for four-argument calls.
75550         (base64_decode_alloc): Likewise.
75552 2008-05-19  Jim Meyering  <meyering@redhat.com>
75554         avoid a warning from gcc
75555         * lib/trim.c (IF_LINT): Define.
75556         (trim2): Use it to avoid a "may be used uninitialized" warning.
75558         Fix doc typo.
75559         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
75561 2008-05-19  Bruno Haible  <bruno@clisp.org>
75563         * doc/glibc-functions/getpass.texi: Document limits of other
75564         implementations.
75566 2008-05-19  Simon Josefsson  <simon@josefsson.org>
75567             Bruno Haible <bruno@clisp.org>
75569         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
75571 2008-05-18  Bruno Haible  <bruno@clisp.org>
75573         * modules/propername: New file, from GNU gettext.
75574         * lib/propername.h: New file, from GNU gettext.
75575         * lib/propername.c: New file, from GNU gettext.
75576         * MODULES.html.sh (Internationalization functions): Add propername.
75578 2008-05-16  Jim Meyering  <meyering@redhat.com>
75579             Bruno Haible  <bruno@clisp.org>
75581         Avoid some warnings from "gcc -Wshadow".
75582         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
75584 2008-05-15  Eric Blake  <ebb9@byu.net>
75586         Extend previous patch to cygwin 1.7.0.
75587         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
75588         fast implementation in cygwin >= 1.7.0.
75589         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
75590         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
75592 2008-05-15  Bruno Haible  <bruno@clisp.org>
75594         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
75595         implementation in glibc >= 2.9.
75596         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
75597         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
75599 2008-05-15  Bruno Haible  <bruno@clisp.org>
75601         * MODULES.html.sh (Internationalization functions): Remove linebreak.
75602         (Unicode string functions): Add unilbrk/*.
75603         Reported by Karl Berry.
75605 2008-05-15  Eric Blake  <ebb9@byu.net>
75607         Fix violation of <stdbool.h> replacement in regex.
75608         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
75609         * lib/regexec.c (re_search_internal): Likewise.
75610         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
75612 2008-05-15  Jim Meyering  <meyering@redhat.com>
75614         avoid distracting test output when git or cvs is not found
75615         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
75616         * tests/test-vc-list-files-git.sh: Likewise.
75618 2008-05-15  Eric Blake  <ebb9@byu.net>
75620         Glibc finally accepted the memmem speedup code, bugzilla #5514.
75621         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
75622         glibc version.
75623         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
75624         * doc/posix-functions/strstr.texi (strstr): Likewise.
75625         * lib/str-two-way.h (MAX): Sychronize with glibc.
75627 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
75629         * lib/regcomp.c (optimize_utf8): Add a note on why we test
75630         opr.ctx_type.
75631         (calc_first): Initialize constraint field.
75632         (duplicate_node_closure): Use it instead of special casing ANCHORS.
75633         Fix grammar.
75634         (duplicate_node): Merge constraint field for all node types.
75635         (calc_eclosure_iter): Look at constraint field for all node types.
75636         * lib/regex_internal.c (create_cd_newstate): Don't look at
75637         opr.ctx_type.
75639 2008-05-14  Bruno Haible  <bruno@clisp.org>
75641         Help GCC to do better code generation.
75642         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
75643         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
75644         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
75645         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
75646         Declare with attribute 'malloc' if supported.
75648 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
75650         use "echo STR|wc -c" rather than unportable "expr length STR"
75651         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
75652         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
75654 2008-05-14  Jim Meyering  <meyering@redhat.com>
75656         use dd ibs=$n count=1 ... rather than less-portable head -c$n
75657         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
75658         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
75659         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
75660         via Collin Lasse.
75662 2008-05-14  Eric Blake  <ebb9@byu.net>
75664         Avoid quadratic growth in gl_LIBSOURCES.
75665         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
75666         Suggested by Bruno Haible.
75668         Test xmemdup0.
75669         * modules/xmemdup0-tests: New file.
75670         * tests/test-xmemdup0.c: Likewise.
75672 2008-05-13  Eric Blake  <ebb9@byu.net>
75674         Split xmemdup0 into its own module.
75675         * modules/xmemdup0: New file.
75676         * lib/xmemdup0.h: Likewise.
75677         * lib/xmemdup0.c: Likewise.
75678         * MODULES.html.sh (Memory management functions): Add xmemdup0.
75679         * lib/xalloc.h (xmemdup0): Remove.
75680         * lib/xmalloc.c (xmemdup0): Likewise.
75682 2008-05-13  Eric Blake  <ebb9@byu.net>
75683             Bruno Haible  <bruno@clisp.org>
75685         Reduce number of forks required during autoconf.
75686         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
75687         and gl_LIBSOURCES_DIR.
75688         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
75689         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
75690         m4_syscmd per file.
75691         <m4_foreach_w>: Move...
75692         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
75694 2008-05-13  Eric Blake  <ebb9@byu.net>
75696         * gnulib-tool: Fix various comment typos.
75698 2008-05-12  Bruno Haible  <bruno@clisp.org>
75700         Tailor the linebreaking algorithm.
75701         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
75703 2008-05-12  Bruno Haible  <bruno@clisp.org>
75705         Update to Unicode 5.0.0.
75706         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
75707         LBP_JV, LBP_JT. Redistribute values.
75708         (unilbrk_table): Change size.
75709         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
75710         Unicode TR#14 rev. 22.
75711         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
75712         LBP_JV, LBP_JT. Redistribute values.
75713         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
75714         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
75715         Update.
75716         * lib/unilbrk/lbrkprop1.h: Regenerated.
75717         * lib/unilbrk/lbrkprop2.h: Regenerated.
75718         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
75719         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
75720         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
75721         Likewise.
75722         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
75723         Likewise.
75724         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
75725         result.
75726         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
75727         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
75728         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
75729         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
75730         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
75731         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
75733 2008-05-11  Bruno Haible  <bruno@clisp.org>
75735         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
75737 2008-05-11  Bruno Haible  <bruno@clisp.org>
75739         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
75740         * modules/unilbrk/gen-lbrk: New file.
75742 2008-05-11  Bruno Haible  <bruno@clisp.org>
75744         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
75745         * m4/sha512.m4 (gl_SHA512): Likewise.
75747 2008-05-11  Jim Meyering  <meyering@redhat.com>
75749         New modules: crypto/sha256, crypto/sha512 (from coreutils)
75750         * modules/crypto/sha256: New file.
75751         * modules/crypto/sha512: Likewise.
75752         * lib/sha256.c: Likewise.
75753         * lib/sha256.h: Likewise.
75754         * lib/sha512.c: Likewise.
75755         * lib/sha512.h: Likewise.
75756         * lib/u64.h: Likewise.
75757         * m4/sha256.m4: Likewise.
75758         * m4/sha512.m4: Likewise.
75759         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
75761 2008-05-10  Bruno Haible  <bruno@clisp.org>
75763         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
75764         (Input/Output <stdio.h>): Add xprintf.
75765         (Signal handling <signal.h>): Add strsignal.
75766         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
75767         (Core language properties): Add func.
75768         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
75769         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
75770         strings.
75771         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
75772         (Input/output): New section.
75773         (File system functions): Add openat-die, stat-macros.
75774         (Networking functions): Add sockets.
75775         (Unicode string functions): Add unictype/*.
75776         (Support for building libraries and executables): Add gperf.
75777         (Support for building documentation): Add agpl-3.0.
75778         (Misc): Add nocrash.
75780 2008-05-10  Bruno Haible  <bruno@clisp.org>
75782         * modules/unictype/gen-ctype: New file.
75784 2008-05-10  Jim Meyering  <meyering@redhat.com>
75786         Make chdir-safer.c more efficient on a system with no symlinks.
75787         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
75788         also if ELOOP is zero.  Suggested by Bruno Haible.
75790         Make chdir-safer.c slightly safer.
75791         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
75792         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
75794         Avoid compile failure on systems without ELOOP (like mingw).
75795         * lib/chdir-safer.c (ELOOP): Define if not already defined.
75796         Reported by Bruno Haible.
75798 2008-05-10  Bruno Haible  <bruno@clisp.org>
75800         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
75801         (is_utf8_encoding): Use a case-insensitive comparison.
75802         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
75803         streq.
75805 2008-05-10  Bruno Haible  <bruno@clisp.org>
75807         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
75808         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
75809         * lib/unilbrk/ulc-common.h (iconv_string_length,
75810         iconv_string_keeping_offsets): Remove declarations.
75811         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
75812         Don't include <iconv.h>, streq.h, xsize.h.
75813         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
75814         conversion.
75815         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
75816         <iconv.h>, streq.h, xsize.h.
75817         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
75818         conversion.
75819         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
75820         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
75821         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
75822         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
75824 2008-05-10  Bruno Haible  <bruno@clisp.org>
75826         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
75827         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
75829         * modules/unilbrk/u32-width-linebreaks-tests: New file.
75830         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
75832         * modules/unilbrk/u16-width-linebreaks-tests: New file.
75833         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
75835         * modules/unilbrk/u8-width-linebreaks-tests: New file.
75836         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
75838         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
75839         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
75841         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
75842         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
75844         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
75845         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
75847         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
75848         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
75850 2008-05-10  Bruno Haible  <bruno@clisp.org>
75852         Split up 'linebreak' module.
75853         * lib/unilbrk.h: New file, based on lib/linebreak.h.
75854         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
75855         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
75856         modifications.
75857         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
75858         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
75859         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
75860         lib/linebreak.c.
75861         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
75862         lib/linebreak.c.
75863         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
75864         lib/linebreak.c.
75865         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
75866         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
75867         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
75868         lib/linebreak.c.
75869         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
75870         lib/linebreak.c.
75871         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
75872         lib/linebreak.c.
75873         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
75874         lib/linebreak.c.
75875         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
75876         lib/linebreak.c.
75877         * modules/unilbrk/base: New file.
75878         * modules/unilbrk/tables: New file.
75879         * modules/unilbrk/u8-possible-linebreaks: New file.
75880         * modules/unilbrk/u16-possible-linebreaks: New file.
75881         * modules/unilbrk/u32-possible-linebreaks: New file.
75882         * modules/unilbrk/ulc-common: New file.
75883         * modules/unilbrk/ulc-possible-linebreaks: New file.
75884         * modules/unilbrk/u8-width-linebreaks: New file.
75885         * modules/unilbrk/u16-width-linebreaks: New file.
75886         * modules/unilbrk/u32-width-linebreaks: New file.
75887         * modules/unilbrk/ulc-width-linebreaks: New file.
75888         * lib/linebreak.h: Remove file.
75889         * lib/linebreak.c: Remove file.
75890         * m4/linebreak.m4: Remove file.
75891         * modules/linebreak: Remove file.
75892         * NEWS: Mention the changes.
75894 2008-05-09  Eric Blake  <ebb9@byu.net>
75896         Add xmemdup0.
75897         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
75898         implementation.
75899         * lib/xmalloc.c (xmemdup0): New C implementation.
75901 2008-05-08  Bruno Haible  <bruno@clisp.org>
75903         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
75905 2008-05-07  Eric Blake  <ebb9@byu.net>
75907         Support cross-compilation of <wctype.h>.
75908         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
75909         AC_CACHE_CHECK.
75911 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
75913         * build-aux/vc-list-files: Add support for bzr.
75915 2008-05-03  Jim Meyering  <meyering@redhat.com>
75917         avoid failed assertion with tight malloc
75918         * tests/test-getndelim2.c: Correct an off-by-one assertion.
75920 2008-05-03  Simon Josefsson  <simon@josefsson.org>
75922         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
75923         are needed from arpa/inet.h.
75924         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
75925         Reported by Bruno Haible.
75927 2008-05-02  Jim Meyering  <meyering@redhat.com>
75929         avoid compilation error on FreeBSD 6
75930         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
75932 2008-05-01  Jim Meyering  <meyering@redhat.com>
75934         useless-if-before-free: correct --help's exit status description
75935         * build-aux/useless-if-before-free (usage): Like grep, exit 0
75936         for one or more matches, etc.  Reported by Bruno Haible.
75938         vc-list-files: make the stand-alone gnulib test work
75939         * modules/vc-list-files-tests (configure.ac):
75940         Define and AC_SUBST abs_aux_dir.
75941         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
75942         $(abs_top_srcdir) to each script and having each of them
75943         duplicate the work of setting PATH, set PATH here, using
75944         the new variable, abs_aux_dir instead.
75945         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
75946         * tests/test-vc-list-files-git.sh: Likewise.
75947         Reported by Bruno Haible.
75949 2008-05-01  Bruno Haible  <bruno@clisp.org>
75951         * lib/getndelim2.c (getndelim2): Fix newsize computation during
75952         reallocation. Rename 'done' to 'found_delimiter'.
75954 2008-05-01  Jim Meyering  <meyering@redhat.com>
75956         vc-list-files: accommodate /bin/sh like the one from Solaris 10
75957         * build-aux/vc-list-files: Use `...`, not $(...).
75959 2008-04-30  Jim Meyering  <meyering@redhat.com>
75961         add tests for vc-list-files
75962         * modules/vc-list-files-tests: New module.
75963         * tests/test-vc-list-files-cvs.sh: New file.
75964         * tests/test-vc-list-files-git.sh: New file.
75966         avoid a warning from gcc
75967         * lib/getndelim2.c (IF_LINT): Define.
75968         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
75970         vc-list-files: work properly with build-aux/cvsu, too
75971         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
75972         to all cvs-based clauses.
75974         vc-list-files: work properly in the CVS+awk case, too
75975         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
75977         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
75978         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
75979         take more than one file argument, so .  Add quotes, just in case $dir
75980         ever contains a shell meta-character.  Prompted by Soren Hansen in
75981         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
75983 2008-04-29  Eric Blake  <ebb9@byu.net>
75985         Optimize getndelim2 to use block operations when possible.
75986         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
75987         freadseek, and memchr2.
75988         * lib/getndelim2.c (getndelim2): Use them for block reads.
75990 2008-04-29  Bruno Haible  <bruno@clisp.org>
75992         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
75993         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
75994         * modules/inet_ntop (Depends-on): Add extensions.
75995         * modules/inet_pton (Depends-on): Likewise.
75996         Reported by Simon Josefsson.
75998 2008-04-29  Jim Meyering  <meyering@redhat.com>
76000         When the is more than one match in a block, match all of them.
76001         * build-aux/useless-if-before-free: Iterate through each block
76002         until there are no more matches.
76004         Fix broken useless-if-before-free script.
76005         * build-aux/useless-if-before-free: Fix typo: missing "?" after
76006         the expression to match cast of argument to free-like function.
76008 2008-04-29  Eric Blake  <ebb9@byu.net>
76010         Use new header.
76011         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
76013 2008-04-29  Jim Meyering  <meyering@redhat.com>
76015         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
76016         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
76017         by gnulib to exist and to declare e.g., inet_ntop.
76018         Don't include "inet_ntop.h", now removed.
76020         * m4/arpa_inet_h.m4: Remove trailing blanks.
76022 2008-04-29  Eric Blake  <ebb9@byu.net>
76024         Silence valgrind on safe reads beyond potential array bounds.
76025         * lib/rawmemchr.valgrind: New file.
76026         * lib/strchrnul.valgrind: Likewise.
76027         * modules/rawmemchr (Files): Distribute new file.
76028         * modules/strchrnul (Files): Likewise.
76029         Suggested by Bruno Haible.
76031 2008-04-29  Bruno Haible  <bruno@clisp.org>
76033         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
76034         (inet_ntop, inet_pton): Change portability warning's wording.
76035         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
76036         Invoke gl_CHECK_NEXT_HEADERS.
76037         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
76038         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
76039         set ARPA_INET_H.
76040         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
76041         * modules/arpa_inet (Description): No longer only for systems that
76042         lack it.
76043         (Depends-on): Add include_next.
76044         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
76045         HAVE_ARPA_INET_H.
76047 2008-04-29  Jim Meyering  <meyering@redhat.com>
76049         * modules/mkdir (License): Re-license as LGPLv2+.
76051 2008-04-29  Bruno Haible  <bruno@clisp.org>
76053         * modules/rawmemchr (Maintainer): Set to Eric.
76054         * modules/strchrnul (Maintainer): Likewise.
76056 2008-04-29  Simon Josefsson  <simon@josefsson.org>
76058         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
76059         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
76061         * modules/arpa_inet (arpa/inet.h): Use them.
76063 2008-04-28  Eric Blake  <ebb9@byu.net>
76065         Test getndelim2.
76066         * modules/getndelim2-tests: New file.
76067         * tests/test-getndelim2.c: Likewise.
76068         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
76069         stream.
76070         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
76072         * MODULES.html.sh: Document new module.
76074 2008-04-20  Bruno Haible  <bruno@clisp.org>
76076         * lib/c-stack.c (die): Use raise.
76077         * modules/c-stack (Depends-on): Add raise.
76079 2008-04-28  Bruno Haible  <bruno@clisp.org>
76081         Expect rpmatch to be declared.
76082         * lib/yesno.c (rpmatch): Remove declaration.
76084         Declare rpmatch.
76085         * lib/stdlib.in.h (rpmatch): New declaration.
76086         * lib/rpmatch.c: Include <stdlib.h> first.
76087         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
76088         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
76089         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
76090         HAVE_RPMATCH.
76091         * modules/rpmatch (Depends-on): Add stdlib, extensions.
76092         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
76093         (Include): Set to <stdlib.h>.
76094         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
76095         HAVE_RPMATCH.
76096         * NEWS: Document the change.
76098 2008-04-28  Bruno Haible  <bruno@clisp.org>
76100         Change rpmatch to use nl_langinfo when appropriate.
76101         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
76102         (N_): New macro.
76103         (localized_pattern): New function/macro.
76104         (try): Remove match, nomatch arguments. Copy the pattern into safe
76105         memory before caching it.
76106         (rpmatch): Use localized_pattern. Add translator comments.
76107         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
76108         Suggested by Eric Blake.
76109         * modules/rpmatch (Depends-on): Add stdbool.
76111 2008-04-28  Eric Blake  <ebb9@byu.net>
76113         Add rawmemchr module, matching glibc.
76114         * modules/string (Makefile.am): New indicator.
76115         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
76116         * lib/string.in.h (rawmemchr): Declare when appropriate.
76117         * modules/rawmemchr: New file.
76118         * m4/rawmemchr.m4: Likewise.
76119         * lib/rawmemchr.c: Likewise.
76120         * modules/rawmemchr-tests: Likewise.
76121         * tests/test-rawmemchr.c: Likewise.
76122         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
76123         module.
76124         * modules/strchrnul (Depends-on): Add rawmemchr.
76125         * lib/strchrnul.c (strchrnul): Optimize a corner case.
76127         Whitespace cleanup.
76128         * tests/test-strchrnul.c: Reindent.
76129         * lib/strchrnul.c: Likewise.
76131         Optimize and test strchrnul.
76132         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
76133         * modules/strchrnul-tests: New file.
76134         * tests/test-strchrnul.c: Likewise.
76136         Remove intprops dependency.
76137         * modules/memchr (Depends-on): Remove intprops.
76138         * modules/memrchr (Depends-on): Likewise.
76139         * modules/memchr2 (Depends-on): Likewise.
76140         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
76141         * lib/memrchr.c (__memrchr): Likewise.
76142         * lib/memrchr2.c (memchr2): Likewise.
76143         Reported by Simon Josefsson.
76145 2008-04-28  Simon Josefsson  <simon@josefsson.org>
76147         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
76148         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76150 2008-04-28  Simon Josefsson  <simon@josefsson.org>
76152         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
76154         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
76156         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
76158         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
76159         declarations.
76160         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
76162         * m4/inet_pton.m4: Don't check for header files.
76164         * m4/inet_ntop.m4: Don't check for header files.
76166 2008-04-28  Simon Josefsson  <simon@josefsson.org>
76168         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
76169         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
76170         trigger for cygwin).
76171         Reported by Bruno Haible  <bruno@clisp.org>.
76173 2008-04-28  Bruno Haible  <bruno@clisp.org>
76175         * doc/posix-functions/strdup.texi: Mention mingw problem.
76177 2008-04-27  Bruno Haible  <bruno@clisp.org>
76179         * modules/stat-time-tests (Depends-on): Add sleep.
76180         * tests/test-stat-time.c (force_unlink): New function.
76181         (cleanup): Use it.
76182         (test_mtime): Remove the ctime related tests.
76183         (test_ctime): New function, containing the ctime related tests.
76184         (main): Call test_ctime, except on native Windows platforms.
76186 2008-04-27  Bruno Haible  <bruno@clisp.org>
76188         * lib/rpmatch.c (rpmatch): Add some comments.
76189         Reported by James Youngman <jay@gnu.org>.
76191 2008-04-27  Bruno Haible  <bruno@clisp.org>
76193         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
76194         quiet NaNs.
76196 2008-04-27  Bruno Haible  <bruno@clisp.org>
76198         Make test-yesno.sh work on mingw.
76199         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
76200         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
76201         (main): Set stdin to binary mode.
76202         * modules/yesno-tests (Depends-on): Add binary-io.
76204 2008-04-27  Bruno Haible  <bruno@clisp.org>
76206         Fix 'isfinite' on x86, x86_64, ia64 platforms.
76207         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
76208         argument that lie outside the IEEE 854 domain.
76209         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
76210         (gl_ISFINITE): Use it.
76211         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
76213 2008-04-27  Bruno Haible  <bruno@clisp.org>
76215         Allow local renaming in config.h.
76216         * lib/memrchr.c (memrchr): Don't undefine outside libc.
76218 2008-04-27  Bruno Haible  <bruno@clisp.org>
76220         * lib/memchr.c (__memchr): Change type of 'i'.
76221         * lib/memchr2.c (memchr2): Likewise.
76223 2008-04-26  Eric Blake  <ebb9@byu.net>
76224         and Bruno Haible  <bruno@clisp.org>
76226         Optimize and test memrchr.
76227         * modules/memrchr (Depends-on): Add intprops.
76228         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
76229         * modules/memrchr-tests: New file.
76230         * tests/test-memrchr.c: New file.
76232 2008-04-26  Bruno Haible  <bruno@clisp.org>
76234         Add tentative support for DragonFly BSD.
76235         * lib/stdio-impl.h: Add macros for DragonFly BSD.
76236         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
76237         fp.
76238         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
76239         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
76240         * lib/fpurge.c (fpurge): Likewise.
76241         * lib/freadable.c (freaadable): Likewise.
76242         * lib/freadahead.c (freadahead): Likewise.
76243         * lib/freading.c (freading): Likewise.
76244         * lib/freadptr.c (freadptr): Likewise.
76245         * lib/freadseek.c (freadptrinc): Likewise.
76246         * lib/fseeko.c (fseeko): Likewise.
76247         * lib/fseterr.c (fseterr): Likewise.
76248         * lib/fwritable.c (fwritable): Likewise.
76249         * lib/fwriting.c (fwriting): Likewise.
76251 2008-04-26  Bruno Haible  <bruno@clisp.org>
76253         * lib/stdio-impl.h: New file.
76254         * lib/fbufmode.c: Include stdio-impl.h.
76255         (fbufmode): Use fp_, remove redundant #defines.
76256         * lib/fflush.c: Include stdio-impl.h.
76257         (clear_ungetc_buffer): Remove redundant #defines.
76258         * lib/fpurge.c: Include stdio-impl.h.
76259         (fpurge): Remove redundant #defines.
76260         * lib/freadable.c: Include stdio-impl.h.
76261         (freadable): Remove redundant #defines.
76262         * lib/freadahead.c: Include stdio-impl.h.
76263         (freadahead): Remove redundant #defines.
76264         * lib/freading.c: Include stdio-impl.h.
76265         (freading): Remove redundant #defines.
76266         * lib/freadptr.c: Include stdio-impl.h.
76267         (freadptr): Remove redundant #defines.
76268         * lib/freadseek.c: Include stdio-impl.h.
76269         (freadptrinc): Remove redundant #defines.
76270         * lib/fseeko.c: Include stdio-impl.h.
76271         (rpl_fseeko): Remove redundant #defines.
76272         * lib/fseterr.c: Include stdio-impl.h.
76273         (fseterr): Remove redundant #defines.
76274         * lib/fwritable.c: Include stdio-impl.h.
76275         (fwritable: Remove redundant #defines.
76276         * lib/fwriting.c: Include stdio-impl.h.
76277         (fwriting): Remove redundant #defines.
76278         * modules/fbufmode (Files): Add lib/stdio-impl.h.
76279         * modules/fflush (Files): Likewise.
76280         * modules/fpurge (Files): Likewise.
76281         * modules/freadable (Files): Likewise.
76282         * modules/freadahead (Files): Likewise.
76283         * modules/freading (Files): Likewise.
76284         * modules/freadptr (Files): Likewise.
76285         * modules/freadseek (Files): Likewise.
76286         * modules/fseeko (Files): Likewise.
76287         * modules/fseterr (Files): Likewise.
76288         * modules/fwritable (Files): Likewise.
76289         * modules/fwriting (Files): Likewise.
76291 2008-04-26  Bruno Haible  <bruno@clisp.org>
76293         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
76294         restore_seek_optimization, update_fpos_cache): New functions, extracted
76295         from rpl_fflush.
76296         (rpl_fflush): Use them.
76297         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
76298         (gl_REPLACE_FFLUSH): Use it.
76300 2008-04-26  Bruno Haible  <bruno@clisp.org>
76302         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
76303         on Solaris.
76304         * tests/test-xstrtoimax.sh: Likewise.
76305         * tests/test-xstrtoumax.sh: Likewise.
76306         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76308 2008-04-26  Bruno Haible  <bruno@clisp.org>
76310         * modules/memchr-tests: New file.
76311         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
76313 2008-04-26  Eric Blake  <ebb9@byu.net>
76314             Bruno Haible  <bruno@clisp.org>
76316         * lib/memchr.c: Include intprops.h.
76317         (__memchr): Optimize parallel detection of matching bytes. Rename local
76318         variables. Add explanatory comments.
76320 2008-04-26  Bruno Haible  <bruno@clisp.org>
76322         Fix module 'memchr', broken since 2000-10-28.
76323         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
76325 2008-04-26  Bruno Haible  <bruno@clisp.org>
76327         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
76328         comments.
76330 2008-04-25  Eric Blake  <ebb9@byu.net>
76332         Use native fstatat on cygwin 1.7.0.
76333         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
76334         first.
76336 2008-04-23  Eric Blake  <ebb9@byu.net>
76338         Improve memchr2 performance.
76339         * lib/memchr2.c (memchr2): Further optimize parallel detection of
76340         NUL bytes.
76341         * modules/memchr2 (Depends-on): Use intprops.h.
76343 2008-04-23  Simon Josefsson  <simon@josefsson.org>
76345         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
76346         an inline function instead of a CPP macro.  Patch by Ben Pfaff
76347         <blp@cs.stanford.edu>.
76349 2008-04-23  Simon Josefsson  <simon@josefsson.org>
76351         * lib/arpa_inet.in.h: New file.
76353         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
76354         (Makefile.am): Sed in substitute header file.
76356         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
76357         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
76359         * modules/inet_ntop (configure.ac): Use
76360         gl_ARPA_INET_MODULE_INDICATOR.
76362         * modules/inet_pton (configure.ac): Use
76363         gl_ARPA_INET_MODULE_INDICATOR.
76365 2008-04-22  Jim Meyering  <meyering@redhat.com>
76367         * modules/verify (License): Re-license as LGPLv2+.
76369 2008-04-22  Simon Josefsson  <simon@josefsson.org>
76371         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
76372         parameter to void* as per POSIX standard (MinGW uses char*).
76374 2008-04-21  Bruno Haible  <bruno@clisp.org>
76376         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
76377         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
76378         Define to replacements if REPLACE_ISWCNTRL is 1.
76379         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
76380         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
76381         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
76382         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
76383         what it fixes.
76384         * doc/posix-functions/iswalpha.texi: Likewise.
76385         * doc/posix-functions/iswblank.texi: Likewise.
76386         * doc/posix-functions/iswcntrl.texi: Likewise.
76387         * doc/posix-functions/iswdigit.texi: Likewise.
76388         * doc/posix-functions/iswgraph.texi: Likewise.
76389         * doc/posix-functions/iswlower.texi: Likewise.
76390         * doc/posix-functions/iswprint.texi: Likewise.
76391         * doc/posix-functions/iswpunct.texi: Likewise.
76392         * doc/posix-functions/iswspace.texi: Likewise.
76393         * doc/posix-functions/iswupper.texi: Likewise.
76394         * doc/posix-functions/iswxdigit.texi: Likewise.
76395         Reported by Alain Guibert.
76397 2008-04-21  Bruno Haible  <bruno@clisp.org>
76399         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
76400         Patch by Alain Guibert.
76402 2008-04-21  Bruno Haible  <bruno@clisp.org>
76404         Fix test failures on mingw.
76405         * tests/test-xstrtol.c (print_no_progname): New function.
76406         (main): Install it in error_print_progname hook.
76407         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
76408         * tests/test-xstrtoimax.sh: Likewise.
76409         * tests/test-xstrtoumax.sh: Likewise.
76411 2008-04-21  Bruno Haible  <bruno@clisp.org>
76413         Fix test failure on mingw.
76414         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
76416 2008-04-21  Bruno Haible  <bruno@clisp.org>
76418         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
76419         Actually assign a value.
76421 2008-04-20  Bruno Haible  <bruno@clisp.org>
76423         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
76424         take 2.
76425         * lib/canonicalize.c (canonicalize_file_name): Elide if the
76426         'canonicalize-lgpl' module is also used.
76427         * lib/canonicalize-lgpl.c: Undo last change.
76428         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
76430 2008-04-20  Bruno Haible  <bruno@clisp.org>
76432         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
76433         config.h. Provide _mkdir based fallback for mingw.
76434         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
76435         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
76436         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
76437         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
76438         rather than defining mkdir in config.h.
76439         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
76440         (gl_SYS_STAT_H_DEFAULTS): New macro.
76441         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
76442         HAVE_IO_H any more.
76443         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
76444         HAVE_DECL_MKDIR and HAVE_IO_H.
76446 2008-04-20  Bruno Haible  <bruno@clisp.org>
76448         * lib/isapipe.c: Port to native Windows platforms.
76450 2008-04-20  Bruno Haible  <bruno@clisp.org>
76452         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
76454 2008-04-21  Eric Blake  <ebb9@byu.net>
76456         Work around preprocessors that don't handle UINTMAX_MAX.
76457         * lib/memchr2.c (memchr2): Avoid embedded #if.
76458         Reported by Alain Guibert, fix suggested by Bruno Haible.
76460 2008-04-21  Simon Josefsson  <simon@josefsson.org>
76462         * doc/posix-functions/strftime.texi (strftime): Explain better
76463         Windows incompatibility.  Suggested by Micah Cowan
76464         <micah@cowan.name>.
76466 2008-04-20  Bruno Haible  <bruno@clisp.org>
76468         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
76469         unistr/u8-mblen.
76471 2008-04-20  Bruno Haible  <bruno@clisp.org>
76473         Fix test failure on platforms with non-GNU iconv.
76474         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
76475         (U_TO_U8): Use it, rather than u16_to_u8.
76476         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
76477         units at the end of the input string.
76478         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
76480 2008-04-20  Bruno Haible  <bruno@clisp.org>
76482         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
76483         when the resulting length is 0.
76484         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
76486 2008-04-20  Bruno Haible  <bruno@clisp.org>
76488         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
76489         works.
76490         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
76492 2008-04-20  Bruno Haible  <bruno@clisp.org>
76494         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
76495         * modules/tsearch-tests (configure.ac): Test for initstate function.
76497 2008-04-20  Bruno Haible  <bruno@clisp.org>
76499         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
76500         for nlink_t if missing.
76501         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
76503 2008-04-19  Bruno Haible  <bruno@clisp.org>
76505         Work around snprintf bug on Linux libc5.
76506         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
76507         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
76508         gl_SNPRINTF_SIZE1.
76509         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
76510         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
76511         that test failed.
76512         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
76513         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
76514         * modules/snprintf (Files): Add m4/printf.m4.
76515         * modules/vsnprintf (Files): Likewise.
76516         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
76517         * doc/posix-functions/vsnprintf.texi: Likewise.
76519 2008-04-19  Bruno Haible  <bruno@clisp.org>
76521         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
76522         from 0.0058 to less than 10^-7.
76524 2008-04-19  Bruno Haible  <bruno@clisp.org>
76526         Fix rounding when a precision is given.
76527         * lib/vasnprintf.c (is_borderline): New function.
76528         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
76529         9...9x.
76530         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
76531         %e, %g.
76532         * tests/test-vasprintf-posix.c (test_function): Likewise.
76533         * tests/test-snprintf-posix.h (test_function): Likewise.
76534         * tests/test-sprintf-posix.h (test_function): Likewise.
76535         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
76536         * tests/test-printf-posix.h (test_function): Likewise.
76537         * tests/test-printf-posix.output: Update.
76538         Reported by John Darrington <john@darrington.wattle.id.au> via
76539         Ben Pfaff <blp@cs.stanford.edu>.
76541 2008-04-18  Simon Josefsson  <simon@josefsson.org>
76543         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
76544         Suggested by Bruno Haible <bruno@clisp.org>.
76546 2008-04-17  Bruno Haible  <bruno@clisp.org>
76548         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
76549         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
76550         implementation.
76551         Patch by Bruce Merry <bmerry@gmail.com>.
76553 2008-04-17  Simon Josefsson  <simon@josefsson.org>
76555         * doc/posix-functions/strftime.texi (strftime): Mention that %e
76556         doesn't work under Windows.
76558 2008-04-16  Bruno Haible  <bruno@clisp.org>
76560         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
76561         New macros.
76562         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
76563         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
76564         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
76565         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
76566         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
76567         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
76568         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
76569         macros.
76570         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
76571         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
76572         Northern Sotho, Uighur.
76574 2008-04-16  Bruno Haible  <bruno@clisp.org>
76576         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
76577         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
76578         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
76579         Reported by Daniel Bergström <daniel@octocode.com>.
76581 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
76582             Bruno Haible  <bruno@clisp.org>
76584         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
76585         function.
76586         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
76587         New functions, mostly extracted from gl_locale_name_default.
76588         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
76590 2008-04-16  Eric Blake  <ebb9@byu.net>
76592         Adjust strtod detection to catch glibc 2.7 bug.
76593         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
76594         Reported by John Gatewood Ham.
76596 2008-04-16  Bruno Haible  <bruno@clisp.org>
76598         Add tentative support for Linux libc5.
76599         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
76600         * lib/fpurge.c (fpurge): Likewise.
76601         * lib/freadable.c (freadable): Likewise.
76602         * lib/freadahead.c (freadahead): Likewise.
76603         * lib/freading.c (freading): Likewise.
76604         * lib/freadptr.c (freadptr): Likewise.
76605         * lib/freadseek.c (freadptrinc): Likewise.
76606         * lib/fseeko.c (rpl_fseeko): Likewise.
76607         * lib/fseterr.c (fseterr): Likewise.
76608         * lib/fwritable.c (fwritable): Likewise.
76609         * lib/fwriting.c (fwriting): Likewise.
76610         Reported by Alain Guibert <alguibert+bts@free.fr>.
76612 2008-04-15  Bruno Haible  <bruno@clisp.org>
76614         * modules/mathl (configure.ac): Define module indicator.
76616 2008-04-15  Bruno Haible  <bruno@clisp.org>
76618         * lib/logl.c (logl): Remove unused variables.
76620 2008-04-15  Bruno Haible  <bruno@clisp.org>
76622         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
76623         fails.
76625 2008-04-15  Bruno Haible  <bruno@clisp.org>
76627         * lib/trim.c (trim2): Fix argument of isspace() macro.
76629 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
76631         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
76632         to 0.
76633         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
76635 2008-04-14  Bruno Haible  <bruno@clisp.org>
76637         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
76638         AC_LANG_PROGRAM argument.
76639         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
76640         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
76641         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
76642         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
76643         * m4/math_h.m4 (gl_MATH_H): Likewise.
76644         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
76645         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
76646         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
76647         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
76648         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
76649         * m4/regex.m4 (gl_REGEX): Likewise.
76650         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
76651         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
76652         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
76653         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
76654         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
76655         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
76656         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
76657         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
76659 2008-04-14  Jim Meyering  <meyering@redhat.com>
76661         test-strtod: fix typos: s/abs/fabs/
76662         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
76664 2008-04-13  Bruno Haible  <bruno@clisp.org>
76666         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
76667         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
76668         module is also used and while not building the reloc-wrapper.
76670 2008-04-13  Bruno Haible  <bruno@clisp.org>
76672         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
76674 2008-04-13  Bruno Haible  <bruno@clisp.org>
76676         Fix AIX compilation failure introduced on 2008-04-02.
76677         * tests/test-frexp.c (exp): Undefine before redefining.
76678         * tests/test-frexpl.c (exp): Likewise.
76680 2008-04-13  Bruno Haible  <bruno@clisp.org>
76682         Work around a HP-UX stdio bug.
76683         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
76684         * tests/test-ftello.c (main): Likewise.
76685         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
76686         * doc/posix-functions/ftello.texi: Likewise.
76688 2008-04-13  Bruno Haible  <bruno@clisp.org>
76690         Make test-signbit pass on HP-UX/hppa.
76691         * tests/test-signbit.c (minus_zerol): New variable.
76692         (test_signbitl): Use it.
76694 2008-04-13  Bruno Haible  <bruno@clisp.org>
76696         Make truncl work on OSF/1 4.0.
76697         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
76698         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
76699         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
76700         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
76701         HAVE_DECL_TRUNCL.
76702         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
76703         HAVE_DECL_TRUNCL.
76704         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
76706 2008-04-13  Bruno Haible  <bruno@clisp.org>
76708         * lib/unictype.h: Remove trailing comma from enumeration definitions.
76710 2008-04-13  Bruno Haible  <bruno@clisp.org>
76712         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
76713         expression, so as to avoid HP-UX 11 cc compiler bug.
76715 2008-04-13  Bruno Haible  <bruno@clisp.org>
76717         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
76719 2008-04-13  Bruno Haible  <bruno@clisp.org>
76721         * lib/git-merge-changelog.c: Remove empty declaration outside of
76722         functions.
76724 2008-04-13  Bruno Haible  <bruno@clisp.org>
76726         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
76728 2008-04-13  Bruno Haible  <bruno@clisp.org>
76730         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
76731         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
76732         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
76733         also if it exists but lacks definitions of the SHUT_* macros.
76734         * modules/sys_socket (Description): Update.
76735         Reported by Elbert Pol <e.pol@chello.nl>.
76737 2008-04-13  Bruno Haible  <bruno@clisp.org>
76739         * lib/localcharset.c (OS2): Don't redefine if already defined.
76740         Reported by Elbert Pol <e.pol@chello.nl>.
76742 2008-04-13  Bruno Haible  <bruno@clisp.org>
76744         * lib/binary-io.h [__EMX__]: Include <io.h>.
76745         Reported by Elbert Pol <e.pol@chello.nl>.
76747 2008-04-12  Bruno Haible  <bruno@clisp.org>
76749         * lib/fpucw.h: Enable the definitions also for x86_64.
76750         Needed for NetBSD/x86_64.
76751         Reported by Thomas Klausner <tk@giga.or.at>.
76753 2008-04-12  Bruno Haible  <bruno@clisp.org>
76755         * tests/test-strtod.c: Include isnand.h.
76756         (main): Use isnand instead of isnan.
76757         Reported by Jim Meyering.
76759 2008-04-12  Bruno Haible  <bruno@clisp.org>
76761         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
76762         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
76764 2008-04-12  Jim Meyering  <meyering@redhat.com>
76766         * m4/math_h.m4 (gl_MATH_H): Fix typos.
76768 2008-04-12  Bruno Haible  <bruno@clisp.org>
76770         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
76771         Reported by Elbert Pol <e.pol@chello.nl>.
76773 2008-04-12  Eric Blake  <ebb9@byu.net>
76775         Work around Solaris 10 math.h bug.
76776         * m4/math_h.m4 (gl_MATH_H): Check for bug.
76777         (gl_MATH_H_DEFAULTS): Set up default.
76778         * modules/math (Makefile.am): Replace new indicators.
76779         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
76780         * tests/test-math.c (main): Test this.
76781         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
76782         * doc/posix-headers/math.texi (math.h): Mention bug.
76783         Reported by Nelson H. F. Beebe and Jim Meyering.
76785 2008-04-11  Bruno Haible  <bruno@clisp.org>
76787         Adapt to future versions of Apple GCC.
76788         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
76789         Reported by Peter O'Gorman <peter@pogma.com>.
76791 2008-04-11  Bruno Haible  <bruno@clisp.org>
76793         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
76795 2008-04-11  Bruno Haible  <bruno@clisp.org>
76797         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
76799         * modules/getaddrinfo-tests (Makefile.am): Define
76800         test_getaddrinfo_LDADD.
76802 2008-04-11  Bruno Haible  <bruno@clisp.org>
76804         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
76805         (init): Fix syntax error.
76806         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
76807         is declared.
76809 2008-04-11  Bruno Haible  <bruno@clisp.org>
76811         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
76812         * modules/glob (Depends-on): Add stdbool.
76814 2008-04-11  Bruno Haible  <bruno@clisp.org>
76816         * lib/trim.c: Include <string.h>.
76818 2008-04-11  Eric Blake  <ebb9@byu.net>
76820         Avoid compile failure on OS/2.
76821         * lib/regex_internal.h (internal_function): Disable optimization
76822         on OS/2 (__EMX__), where it caused compiler error.
76823         Reported by Elbert Pol.
76825 2008-04-11  Bruno Haible  <bruno@clisp.org>
76827         Flush the standard error stream before aborting. Needed on mingw.
76828         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
76829         * tests/test-array_list.c (ASSERT): Likewise.
76830         * tests/test-array_oset.c (ASSERT): Likewise.
76831         * tests/test-avltree_list.c (ASSERT): Likewise.
76832         * tests/test-avltree_oset.c (ASSERT): Likewise.
76833         * tests/test-avltreehash_list.c (ASSERT): Likewise.
76834         * tests/test-binary-io.c (ASSERT): Likewise.
76835         * tests/test-byteswap.c (ASSERT): Likewise.
76836         * tests/test-c-ctype.c (ASSERT): Likewise.
76837         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
76838         * tests/test-c-strcasestr.c (ASSERT): Likewise.
76839         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
76840         * tests/test-c-strstr.c (ASSERT): Likewise.
76841         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
76842         * tests/test-canonicalize.c (ASSERT): Likewise.
76843         * tests/test-carray_list.c (ASSERT): Likewise.
76844         * tests/test-ceilf1.c (ASSERT): Likewise.
76845         * tests/test-ceilf2.c (ASSERT): Likewise.
76846         * tests/test-ceill.c (ASSERT): Likewise.
76847         * tests/test-count-one-bits.c (ASSERT): Likewise.
76848         * tests/test-fbufmode.c (ASSERT): Likewise.
76849         * tests/test-fflush2.c (ASSERT): Likewise.
76850         * tests/test-floorf1.c (ASSERT): Likewise.
76851         * tests/test-floorf2.c (ASSERT): Likewise.
76852         * tests/test-floorl.c (ASSERT): Likewise.
76853         * tests/test-fopen.c (ASSERT): Likewise.
76854         * tests/test-fpending.c (ASSERT): Likewise.
76855         * tests/test-fprintf-posix.c (ASSERT): Likewise.
76856         * tests/test-fpurge.c (ASSERT): Likewise.
76857         * tests/test-freadable.c (ASSERT): Likewise.
76858         * tests/test-freadahead.c (ASSERT): Likewise.
76859         * tests/test-freading.c (ASSERT): Likewise.
76860         * tests/test-freadptr.c (ASSERT): Likewise.
76861         * tests/test-freadptr2.c (ASSERT): Likewise.
76862         * tests/test-freadseek.c (ASSERT): Likewise.
76863         * tests/test-freopen.c (ASSERT): Likewise.
76864         * tests/test-frexp.c (ASSERT): Likewise.
76865         * tests/test-frexpl.c (ASSERT): Likewise.
76866         * tests/test-fseek.c (ASSERT): Likewise.
76867         * tests/test-fseeko.c (ASSERT): Likewise.
76868         * tests/test-fstrcmp.c (ASSERT): Likewise.
76869         * tests/test-ftell.c (ASSERT): Likewise.
76870         * tests/test-ftello.c (ASSERT): Likewise.
76871         * tests/test-func.c (ASSERT): Likewise.
76872         * tests/test-fwritable.c (ASSERT): Likewise.
76873         * tests/test-fwriting.c (ASSERT): Likewise.
76874         * tests/test-getdelim.c (ASSERT): Likewise.
76875         * tests/test-getline.c (ASSERT): Likewise.
76876         * tests/test-i-ring.c (ASSERT): Likewise.
76877         * tests/test-iconv-utf.c (ASSERT): Likewise.
76878         * tests/test-iconv.c (ASSERT): Likewise.
76879         * tests/test-isfinite.c (ASSERT): Likewise.
76880         * tests/test-isnand.c (ASSERT): Likewise.
76881         * tests/test-isnanf.c (ASSERT): Likewise.
76882         * tests/test-isnanl.h (ASSERT): Likewise.
76883         * tests/test-ldexpl.c (ASSERT): Likewise.
76884         * tests/test-linked_list.c (ASSERT): Likewise.
76885         * tests/test-linkedhash_list.c (ASSERT): Likewise.
76886         * tests/test-localename.c (ASSERT): Likewise.
76887         * tests/test-lseek.c (ASSERT): Likewise.
76888         * tests/test-mbscasecmp.c (ASSERT): Likewise.
76889         * tests/test-mbscasestr1.c (ASSERT): Likewise.
76890         * tests/test-mbscasestr2.c (ASSERT): Likewise.
76891         * tests/test-mbscasestr3.c (ASSERT): Likewise.
76892         * tests/test-mbscasestr4.c (ASSERT): Likewise.
76893         * tests/test-mbschr.c (ASSERT): Likewise.
76894         * tests/test-mbscspn.c (ASSERT): Likewise.
76895         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
76896         * tests/test-mbspbrk.c (ASSERT): Likewise.
76897         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
76898         * tests/test-mbsrchr.c (ASSERT): Likewise.
76899         * tests/test-mbsspn.c (ASSERT): Likewise.
76900         * tests/test-mbsstr1.c (ASSERT): Likewise.
76901         * tests/test-mbsstr2.c (ASSERT): Likewise.
76902         * tests/test-mbsstr3.c (ASSERT): Likewise.
76903         * tests/test-memchr2.c (ASSERT): Likewise.
76904         * tests/test-memmem.c (ASSERT): Likewise.
76905         * tests/test-open.c (ASSERT): Likewise.
76906         * tests/test-printf-frexp.c (ASSERT): Likewise.
76907         * tests/test-printf-frexpl.c (ASSERT): Likewise.
76908         * tests/test-printf-posix.c (ASSERT): Likewise.
76909         * tests/test-quotearg.c (ASSERT): Likewise.
76910         * tests/test-rbtree_list.c (ASSERT): Likewise.
76911         * tests/test-rbtree_oset.c (ASSERT): Likewise.
76912         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
76913         * tests/test-round1.c (ASSERT): Likewise.
76914         * tests/test-roundf1.c (ASSERT): Likewise.
76915         * tests/test-roundl.c (ASSERT): Likewise.
76916         * tests/test-signbit.c (ASSERT): Likewise.
76917         * tests/test-sleep.c (ASSERT): Likewise.
76918         * tests/test-snprintf-posix.c (ASSERT): Likewise.
76919         * tests/test-snprintf.c (ASSERT): Likewise.
76920         * tests/test-sprintf-posix.c (ASSERT): Likewise.
76921         * tests/test-stat-time.c (ASSERT): Likewise.
76922         * tests/test-strcasestr.c (ASSERT): Likewise.
76923         * tests/test-strerror.c (ASSERT): Likewise.
76924         * tests/test-striconv.c (ASSERT): Likewise.
76925         * tests/test-striconveh.c (ASSERT): Likewise.
76926         * tests/test-striconveha.c (ASSERT): Likewise.
76927         * tests/test-strsignal.c (ASSERT): Likewise.
76928         * tests/test-strstr.c (ASSERT): Likewise.
76929         * tests/test-strtod.c (ASSERT): Likewise.
76930         * tests/test-trunc1.c (ASSERT): Likewise.
76931         * tests/test-trunc2.c (ASSERT): Likewise.
76932         * tests/test-truncf1.c (ASSERT): Likewise.
76933         * tests/test-truncf2.c (ASSERT): Likewise.
76934         * tests/test-truncl.c (ASSERT): Likewise.
76935         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
76936         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
76937         * tests/test-vasnprintf.c (ASSERT): Likewise.
76938         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
76939         * tests/test-vasprintf.c (ASSERT): Likewise.
76940         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
76941         * tests/test-vprintf-posix.c (ASSERT): Likewise.
76942         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
76943         * tests/test-vsnprintf.c (ASSERT): Likewise.
76944         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
76945         * tests/test-wcwidth.c (ASSERT): Likewise.
76946         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
76947         * tests/test-xprintf-posix.c (ASSERT): Likewise.
76948         * tests/test-xvasprintf.c (ASSERT): Likewise.
76949         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
76950         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
76951         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
76952         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
76953         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
76954         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
76955         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
76956         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
76957         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
76958         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
76959         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
76960         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
76961         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
76962         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
76963         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
76964         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
76965         * tests/unictype/test-block_list.c (ASSERT): Likewise.
76966         * tests/unictype/test-block_of.c (ASSERT): Likewise.
76967         * tests/unictype/test-block_test.c (ASSERT): Likewise.
76968         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
76969         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
76970         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
76971         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
76972         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
76973         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
76974         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
76975         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
76976         * tests/unictype/test-combining.c (ASSERT): Likewise.
76977         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
76978         * tests/unictype/test-digit.c (ASSERT): Likewise.
76979         * tests/unictype/test-mirror.c (ASSERT): Likewise.
76980         * tests/unictype/test-numeric.c (ASSERT): Likewise.
76981         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
76982         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
76983         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
76984         * tests/unictype/test-scripts.c (ASSERT): Likewise.
76985         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
76986         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
76987         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
76988         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
76989         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
76990         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
76991         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
76992         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
76993         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
76994         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
76995         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
76996         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
76997         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
76998         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
76999         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
77000         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
77001         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
77002         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
77003         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
77004         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
77005         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
77006         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
77007         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
77008         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
77009         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
77010         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
77011         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
77012         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
77013         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
77014         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
77015         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
77016         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
77017         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
77018         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
77019         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
77020         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
77021         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
77022         Reported by Eric Blake.
77024 2008-04-11  Bruno Haible  <bruno@clisp.org>
77026         * lib/wchar.in.h: Tweak comment.
77028 2008-04-11  Bruno Haible  <bruno@clisp.org>
77030         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
77031         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
77032         gl_COMMON.
77033         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
77035 2008-04-11  Bruno Haible  <bruno@clisp.org>
77037         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
77039 2008-04-11  Simon Josefsson  <simon@josefsson.org>
77041         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
77042         of attempting to use non-existing /dev/*random.  Based on patch
77043         from Adam Strzelecki <ono@java.pl> in
77044         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
77046 2008-04-08  Bruno Haible  <bruno@clisp.org>
77048         Add tentative support for emx+gcc.
77049         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
77050         * lib/fpurge.c (fpurge): Likewise.
77051         * lib/freadable.c (freadable): Likewise.
77052         * lib/freadahead.c (freadahead): Likewise.
77053         * lib/freading.c (freading): Likewise.
77054         * lib/freadptr.c (freadptr): Likewise.
77055         * lib/freadseek.c (freadptrinc): Likewise.
77056         * lib/fseeko.c (rpl_fseeko): Likewise.
77057         * lib/fseterr.c (fseterr): Likewise.
77058         * lib/fwritable.c (fwritable): Likewise.
77059         * lib/fwriting.c (fwriting): Likewise.
77060         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
77062 2008-04-09  Eric Blake  <ebb9@byu.net>
77064         Avoid some autoconf warnings.
77065         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
77066         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
77067         * m4/afs.m4 (gl_AFS): Likewise.
77068         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
77069         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
77070         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
77071         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
77072         (gl_INTEGER_TYPE_SUFFIX): Likewise.
77073         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
77074         (AC_CHECK_DECLS_ONCE): Likewise.
77075         Rename file...
77076         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
77077         gnulib-tool requires autoconf 2.59 or better.
77078         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
77080 2008-04-08  Eric Blake  <ebb9@byu.net>
77082         Use 'git describe --match' if present (added in git 1.5.5).
77083         * build-aux/git-version-gen: Limit result to tags that match 'v*'
77084         if possible.
77086 2008-04-08  Bruno Haible  <bruno@clisp.org>
77088         Add tentative support for OpenServer.
77089         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
77090         _ptr, _cnt.
77091         * lib/fpurge.c (fpurge): Likewise.
77092         * lib/freadable.c (freadable): Likewise.
77093         * lib/freadahead.c (freadahead): Likewise.
77094         * lib/freading.c (freading): Likewise.
77095         * lib/freadptr.c (freadptr): Likewise.
77096         * lib/freadseek.c (freadptrinc): Likewise.
77097         * lib/fseeko.c (rpl_fseeko): Likewise.
77098         * lib/fseterr.c (fseterr): Likewise.
77099         * lib/fwritable.c (fwritable): Likewise.
77100         * lib/fwriting.c (fwriting): Likewise.
77101         Reported by Roger Cornelius <rac@tenzing.org> and
77102         Brian K. White <brian@aljex.com>.
77104 2008-04-06  Jim Meyering  <meyering@redhat.com>
77106         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
77108 2008-04-06  Bruno Haible  <bruno@clisp.org>
77110         Avoid possible error with non-ASCII bytes in UTF-8 locales.
77111         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
77112         * tests/test-printf-posix.sh: Likewise.
77113         * tests/test-vfprintf-posix.sh: Likewise.
77114         * tests/test-vprintf-posix.sh: Likewise.
77115         * tests/test-xprintf-posix.sh: Likewise.
77117 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77119         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
77120         hide error from 'ls', needed on OS/2.
77121         Report by Elbert Pol <elbert.pol@gmail.com>.
77123 2008-04-04  Eric Blake  <ebb9@byu.net>
77125         Make test-fseeko.c failures meaningful.
77126         * tests/test-fseeko.c: Print line number on failure.
77127         * tests/test-fseek.c: Likewise.
77128         Reported by Nelson H. F. Beebe.
77130         Improve strtod bug detection check.
77131         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
77132         required for Solaris 10.
77133         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
77135 2008-04-04  Bruno Haible  <bruno@clisp.org>
77137         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
77138         by m4/setenv.m4.
77140 2008-04-03  Eric Blake  <ebb9@byu.net>
77142         Ensure sane .version contents.
77143         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
77144         version string.
77145         * build-aux/git-version-gen: Improve documentation.
77147         Make GNU make output nicer.
77148         * top/GNUmakefile [!_have-Makefile]: Add dependency on
77149         MAKECMDGOALS to enforce message for all command line targets.  Set
77150         srcdir for use in maint.mk.
77152         Another maintainer tweak.
77153         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
77154         a target that regenerates version.
77156 2008-04-03  Jim Meyering  <meyering@redhat.com>
77158         vc-list-files: don't cause coreutils "make po-check" failure
77159         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
77161 2008-04-03  Eric Blake  <ebb9@byu.net>
77163         Allow VPATH usage of vc-list-files.
77164         * build-aux/vc-list-files (scriptversion): Add timestamp.
77165         (options): Add --help, --version, -C.
77166         (CVS): Support installed cvsu.
77168 2008-04-02  Bruno Haible  <bruno@clisp.org>
77170         Avoid some "statement with no effect" warnings from gcc.
77171         * tests/test-wctype.c (main): Explicitly ignore unused values.
77172         Reported by Jim Meyering.
77174 2008-04-02  Jim Meyering  <meyering@redhat.com>
77176         Avoid some warnings from "gcc -Wshadow".
77177         * tests/test-frexp.c (exp): Define to a different identifier.
77178         * tests/test-frexpl.c (exp): Likewise.
77180 2008-04-03  Jim Meyering  <meyering@redhat.com>
77182         bootstrap: remove dangling *.[ch] symlinks from lib
77183         * build-aux/bootstrap [dangling symlink removal]: Move find's
77184         -depth option to precede all others, to avoid a warning.
77185         Remove *.[ch] files too, and from "$source_base" (usually lib/).
77187 2008-04-02  Bruno Haible  <bruno@clisp.org>
77189         Avoid some warnings from "gcc -Wshadow".
77190         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
77191         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
77192         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
77193         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
77194         Reported by Jim Meyering.
77196 2008-04-01  Bruno Haible  <bruno@clisp.org>
77198         Fix test to work on IRIX 6.5 with cc.
77199         * tests/test-math.c (numeric_equal): New function.
77200         (main): Use it.
77202 2008-04-01  Bruno Haible  <bruno@clisp.org>
77204         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
77206 2008-04-01  Bruno Haible  <bruno@clisp.org>
77208         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
77209         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
77210         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
77211         (Depends-on): Remove math.
77213         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
77214         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
77215         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
77216         (Depends-on): Remove math.
77218         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
77219         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
77220         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
77221         (Depends-on): Remove math.
77222         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
77223         (Depends-on): Remove math.
77225         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
77226         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
77227         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
77228         (Depends-on): Remove math.
77229         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
77230         (Depends-on): Remove math.
77232         * tests/test-round1.c: Include nan.h.
77233         (main): Use NaNd instead of NAN.
77234         * modules/round-tests (Files): Add tests/nan.h.
77236         * tests/test-trunc1.c: Include nan.h.
77237         (main): Use NaNd instead of NAN.
77238         * modules/trunc-tests (Files): Add tests/nan.h.
77240         * tests/test-roundf1.c: Include nan.h.
77241         (main): Use NaNf instead of NAN.
77242         * modules/roundf-tests (Files): Add tests/nan.h.
77244         * tests/test-truncf1.c: Include nan.h.
77245         (main): Use NaNf instead of NAN.
77246         * modules/truncf-tests (Files): Add tests/nan.h.
77248         * tests/test-ceilf1.c: Include nan.h.
77249         (main): Use NaNf instead of NAN.
77250         * modules/ceilf-tests (Files): Add tests/nan.h.
77252         * tests/test-floorf1.c: Include nan.h.
77253         (main): Use NaNf instead of NAN.
77254         * modules/floorf-tests (Files): Add tests/nan.h.
77256         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
77257         (main): Use NaNf instead of NAN.
77258         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
77260         * tests/test-isnand.c: Include nan.h instead of <math.h>.
77261         (main): Use NaNd instead of NAN.
77262         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
77264         * tests/test-frexp.c: Include nan.h.
77265         (main): Use NaNd instead of NAN.
77266         * modules/frexp-tests (Files): Add tests/nan.h.
77268         * lib/isnan.c: Don't include <math.h>.
77269         (FUNC): Don't use NAN macro.
77270         * modules/isnand-nolibm (Depends-on): Remove math.
77271         * modules/isnanf-nolibm (Depends-on): Remove math.
77272         * modules/isnanl (Depends-on): Remove math.
77273         * modules/isnanl-nolibm (Depends-on): Remove math.
77275         * tests/nan.h: New file.
77277 2008-04-01  Eric Blake  <ebb9@byu.net>
77279         Fix typos.
77280         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
77281         values to be the right type.
77283         For now, cater to gnulib strtod inaccuracies.
77284         * tests/test-strtod.c (main): Allow 1-ulp error on expected
77285         fractional results.  While not as nice from a QoI perspective, it
77286         is a quicker patch than correctly implementing decimal to binary
77287         rounding.
77289 2008-03-31  Eric Blake  <ebb9@byu.net>
77291         Guarantee a definition of NAN.
77292         * lib/math.in.h (NAN): Define if missing.
77293         * tests/test-math.c (main): Test it.
77294         * doc/posix-headers/math.texi (math.h): Document this.
77295         * lib/isnan.c (rpl_isnand): Use it.
77296         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
77297         * tests/test-floorf1.c (NaN): Likewise.
77298         * tests/test-frexp.c (NaN): Likewise.
77299         * tests/test-isnand.c (NaN): Likewise.
77300         * tests/test-isnanf.c (NaN): Likewise.
77301         * tests/test-round1.c (NaN): Likewise.
77302         * tests/test-roundf1.c (NaN): Likewise.
77303         * tests/test-snprintf-posix.h (NaN): Likewise.
77304         * tests/test-sprintf-posix.h (NaN): Likewise.
77305         * tests/test-trunc1.c (NaN): Likewise.
77306         * tests/test-truncf1.c (NaN): Likewise.
77307         * tests/test-vasnprintf-posix.c (NaN): Likewise.
77308         * tests/test-vasprintf-posix.c (NaN): Likewise.
77309         * modules/isnand-nolibm (Depends-on): Add math.
77310         * modules/isnanf-nolibm (Depends-on): Likewise.
77311         * modules/isnanl (Depends-on): Likewise.
77312         * modules/isnanl-nolibm (Depends-on): Likewise.
77313         * modules/snprintf-posix-tests (Depends-on): Likewise.
77314         * modules/sprintf-posix-tests (Depends-on): Likewise.
77315         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
77316         * modules/vsprintf-posix-tests (Depends-on): Likewise.
77317         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
77318         * modules/vasprintf-posix-tests (Depends-on): Likewise.
77320 2008-03-31  Bruno Haible  <bruno@clisp.org>
77322         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
77323         * doc/posix-functions/strtod.texi: Likewise.
77325 2008-03-31  Bruno Haible  <bruno@clisp.org>
77327         * tests/test-strtod.c (main): Don't use C99 syntax.
77329 2008-03-31  Bruno Haible  <bruno@clisp.org>
77331         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
77332         Reported by Eric Blake.
77334 2008-03-31  Jim Meyering  <meyering@redhat.com>
77336         Don't compare actual signbit return values.
77337         * tests/test-strtod.c (main): Rather, compare only their
77338         zero/non-zero nature.
77340 2008-03-31  Eric Blake  <ebb9@byu.net>
77342         More strtod documentation.
77343         * doc/posix-functions/strtod.texi (strtod): Interpret more test
77344         failures as distinct bugs.
77346 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
77348         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
77349         Problem reported by Erik Benada in
77350         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
77352 2008-03-30  Bruno Haible  <bruno@clisp.org>
77354         * tests/test-strtod.c: Add comments about which assertion fails on which
77355         platform.
77356         * doc/posix-functions/strtod.texi: Add info about many more platforms.
77358 2008-03-30  Eric Blake  <ebb9@byu.net>
77360         Test signbit behavior on zeros.
77361         * tests/test-signbit.c (test_signbitf): Add tests for zero.
77362         (test_signbitd, test_signbitl): Likewise.
77364         More strtod touchups.
77365         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
77366         sign of negative underflow, for now.  Use .5, not .1.
77367         * doc/posix-functions/strtod.texi (strtod): Mention these
77368         limitations.
77369         Reported by Jim Meyering.
77371 2008-03-30  Bruno Haible  <bruno@clisp.org>
77373         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
77374         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
77376 2008-03-30  Bruno Haible  <bruno@clisp.org>
77378         Avoid failure when attempting to return empty iconv results on some
77379         platforms.
77380         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
77381         allocation, don't report ENOMEM when the resulting string is empty.
77383 2008-03-30  Bruno Haible  <bruno@clisp.org>
77385         Fix buffer overrun.
77386         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
77387         Don't consider the width for tmp_length. Check count against tmp_length
77388         before doing the padding. Ensure enough allocation during padding.
77390 2008-03-30  Eric Blake  <ebb9@byu.net>
77392         strtod touchups.
77393         * lib/strtod.c (strtod): Avoid compiler warnings.
77394         Reported by Jim Meyering.
77396 2008-03-30  Bruno Haible  <bruno@clisp.org>
77398         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
77399         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
77400         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
77401         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
77402         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
77403         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
77404         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
77405         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
77407         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
77408         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
77409         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
77410         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
77411         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
77412         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
77413         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
77414         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
77416         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
77417         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
77418         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
77419         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
77420         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
77421         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
77422         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
77423         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
77425         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
77426         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
77428         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
77429         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
77431         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
77432         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
77434         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
77435         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
77436         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
77438         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
77439         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
77440         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
77442         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
77443         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
77444         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
77446         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
77447         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
77448         * modules/vasprintf (Depends-on): Add EOVERFLOW.
77450         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
77451         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
77452         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
77453         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
77454         (Depends-on): Add EOVERFLOW.
77455         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
77456         (Depends-on): Add EOVERFLOW.
77457         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
77458         (Depends-on): Add EOVERFLOW.
77459         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
77460         (Depends-on): Add EOVERFLOW.
77461         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
77462         (Depends-on): Add EOVERFLOW.
77463         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
77464         (Depends-on): Add EOVERFLOW.
77465         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
77466         (Depends-on): Add EOVERFLOW.
77467         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
77468         (Depends-on): Add EOVERFLOW.
77470         * lib/sprintf.c (EOVERFLOW): Remove fallback.
77471         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
77472         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
77474         * lib/snprintf.c (EOVERFLOW): Remove fallback.
77475         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
77476         * modules/snprintf (Depends-on): Add EOVERFLOW.
77478         * lib/poll.c (EOVERFLOW): Remove fallback.
77479         * modules/poll (Depends-on): Add EOVERFLOW.
77481         * lib/getugroups.c (EOVERFLOW): Remove fallback.
77482         * modules/getugroups (Depends-on): Add EOVERFLOW.
77484         * lib/getdelim.c (EOVERFLOW): Remove fallback.
77485         * modules/getdelim (Depends-on): Add EOVERFLOW.
77487         * lib/ftell.c (EOVERFLOW): Remove fallback.
77488         * modules/ftell (Depends-on): Add EOVERFLOW.
77490         * lib/fprintf.c (EOVERFLOW): Remove fallback.
77491         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
77492         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
77494         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
77496         * modules/EOVERFLOW-tests: New file.
77497         * tests/test-EOVERFLOW.c: New file.
77499         * modules/EOVERFLOW: New file.
77500         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
77502 2008-03-30  Bruno Haible  <bruno@clisp.org>
77504         Fix bug introduced on 2007-06-10.
77505         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
77506         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
77508 2008-03-30  Bruno Haible  <bruno@clisp.org>
77510         Improve freadseek's efficiency after ungetc.
77511         * lib/freadseek.c: Include freadahead.h.
77512         (freadptrinc): New function, extracted from freadseek.
77513         (freadseek): Use it in a loop. Use freadahead to determine the number
77514         of loop iterations.
77515         * modules/freadseek (Depends-on): Add freadahead.
77516         (configure.ac): Require AC_C_INLINE.
77518 2008-03-30  Bruno Haible  <bruno@clisp.org>
77520         * lib/freadseek.c (freadseek): Don't ignore the return value of
77521         freadptr.
77523 2008-03-29  Eric Blake  <ebb9@byu.net>
77525         Add hex float support.
77526         * modules/strtod (Depends-on): Add c-ctype.
77527         (Link): Mention POW_LIB.
77528         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
77529         whitespace between 'e' and exponent.
77530         * tests/test-strtod.c (main): Enable hex float tests.
77531         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
77532         now provides.
77534         Document various strtod bugs, with some fixes.
77535         * doc/posix-functions/strtod.texi (strtod): Document bugs with
77536         "-0x", "inf", "nan", and hex constants.
77537         * doc/posix-functions/atof.texi (atof): Likewise.
77538         * modules/stdlib (Makefile.am): Support strtod.
77539         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
77540         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
77541         detect additional strtod bugs.
77542         * lib/stdlib.in.h (rpl_strtod): Add declarations.
77543         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
77544         bool where appropriate.  Parse 'inf' and 'nan'.
77545         * tests/test-strtod.c: New file.
77546         * modules/strtod (Depends-on): Add stdbool, stdlib.
77547         (configure.ac): Turn on module indicator.
77548         * modules/strtod-tests: New module.
77550 2008-03-29  Eric Blake  <ebb9@byu.net>
77552         Fix ftell on mingw.
77553         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
77554         * modules/ftell-tests (Depends-on): Add binary-io.
77555         * modules/ftello-tests (Depends-on): Likewise.
77556         * tests/test-ftell.c (main): Enhance test to cover behavior after
77557         ungetc.  Enforce binary mode.
77558         * tests/test-ftello.c (main): Likewise.
77560         Pass test-freadseek on cygwin.
77561         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
77562         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
77563         ungetc buffer.
77565         * tests/test-fflush2.c (main): Fix typo.
77567 2008-03-29  Bruno Haible  <bruno@clisp.org>
77569         * tests/test-fflush2.c (main): Temporarily disable the contents of
77570         this test.
77571         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
77572         Reported by Eric Blake.
77574 2008-03-28  Simon Josefsson  <simon@josefsson.org>
77576         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
77577         (GC_SHA224_DIGEST_SIZE): Add.
77579         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
77580         (gc_hash_digest_length): Likewise.
77581         (gc_hash_buffer): Likewise.
77583 2008-03-25  Bruno Haible  <bruno@clisp.org>
77585         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
77586         detail which gettext release to use.
77587         Reported by Simon Josefsson.
77589 2008-03-26  Jim Meyering  <meyering@redhat.com>
77591         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
77592         * modules/gnumakefile (clean-GNUmakefile): Also, use
77593         test ... && ... || : syntax rather than if-then ... fi.
77595         gnumakefile: Don't double-quote-expand $(VPATH) value.
77596         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
77598 2008-03-24  Eric Blake  <ebb9@byu.net>
77600         Alter GNUmakefile to install into top directory.
77601         * modules/maintainer-makefile: Split, and add dependency...
77602         * modules/gnumakefile: to this new module.
77603         * build-aux/GNUmakefile: Move...
77604         * top/GNUmakefile: ...here.
77605         * build-aux/maint.mk: Move...
77606         * top/maint.mk: ...here.
77607         * MODULES.html.sh (Support for maintaining...): Document new
77608         module.
77610 2008-03-23  Bruno Haible  <bruno@clisp.org>
77612         * gnulib-tool: New options --vc-files, --no-vc-files.
77613         (func_usage): Document them.
77614         (vc_files): New variable.
77615         (func_import): Consider vc_files.
77616         (func_create_testdir): Set vc_files to empty.
77617         Suggested by Jim Meyering and Karl Berry.
77619 2008-03-23  Bruno Haible  <bruno@clisp.org>
77621         Fix regex compilation error on HP-UX 11.
77622         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
77623         * modules/regex (Files): Add m4/mbstate_t.m4.
77624         Reported by Ton Voon <ton.voon@altinity.com>.
77626 2008-03-23  Bruno Haible  <bruno@clisp.org>
77628         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
77630 2008-03-23  Eric Blake  <ebb9@byu.net>
77631             Bruno Haible  <bruno@clisp.org>
77633         Install files from top/ in the destination directory.
77634         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
77635         augmentation also for the files from top/.
77636         (func_import, func_create_testdir): Rewrite file names:
77637         top/filename -> filename.
77639 2008-03-23  Bruno Haible  <bruno@clisp.org>
77641         Tweak "gnulib --version" output.
77642         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
77644 2008-03-23  Bruno Haible  <bruno@clisp.org>
77646         Tweak "gnulib --version" output.
77647         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
77648         rather than contents of ChangeLog, when possible.
77650 2008-03-21  Eric Blake  <ebb9@byu.net>
77652         More --version tweaks.
77653         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
77654         date of last ChangeLog entry.
77656 2008-03-21  Jim Meyering  <meyering@redhat.com>
77658         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
77660 2008-03-20  Eric Blake  <ebb9@byu.net>
77662         VPATH fix.
77663         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
77665 2008-03-20  Simon Josefsson  <simon@josefsson.org>
77667         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
77668         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
77670 2008-03-20  Eric Blake  <ebb9@byu.net>
77672         Sync GNUmakefile with coreutils.
77673         * build-aux/GNUmakefile (have-Makefile): Rename...
77674         (_have-Makefile): ...to this, for namespace consideration.
77675         (GNUmakefile.cfg): Include, if present.
77676         (_autoreconf): Define a default.
77677         (_is-dist-target): New rule for rebuilds to pick up intra-release
77678         version.
77679         (maint-cfg.mk): Rename...
77680         (cfg.mk): ...to this.
77682 2008-03-18  Jim Meyering  <meyering@redhat.com>
77684         New script and module: mktempd
77685         * MODULES.html.sh (maint+release support): Add mktempd.
77686         * build-aux/mktempd: New file.
77687         * modules/mktempd: New file.
77689 2008-03-15  Jim Meyering  <meyering@redhat.com>
77691         Undo last change.
77692         * lib/sha1.c, lib/md5.c: 63 != ~63.
77693         Reported by Andreas Schwab.
77695         sha1.c, md5.c: Hoist a redundant expression.
77696         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
77697         "ctx->buflen" only once, before calling *_process_block.
77698         * lib/md5.c (md5_process_bytes): Likewise.
77700 2008-03-14  Eric Blake  <ebb9@byu.net>
77702         Bump copyright year in files generated by gnulib-tool.
77703         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
77704         gnulib-tool, rather than hard-coding it.
77706         Fix 'gnulib-tool --version' output to work with git.
77707         * gnulib-tool (func_gnulib_dir): New function, extracted from...
77708         (startup): ...here.
77709         (func_version): Use it to invoke git-version-gen, rather than
77710         relying on CVS keyword expansion.  Modernize wording.
77711         (cvsdatestamp, last_checkin_date, version): Kill unused
77712         variables.
77714 2008-03-12  Jim Meyering  <meyering@redhat.com>
77716         Recognize optional cast of the argument to free.
77717         * build-aux/useless-if-before-free: Update regexps.
77719         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
77721 2008-03-11  Bruno Haible  <bruno@clisp.org>
77723         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
77724         by a single package.
77725         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
77726         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
77727         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
77728         Reported by Sam Steingold <sds@gnu.org>.
77730 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
77732         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
77733         repositories.
77735 2008-03-11  Bruno Haible  <bruno@clisp.org>
77737         Avoid conflicts between local macro definitions.
77738         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
77739         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
77741 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
77742             Bruno Haible  <bruno@clisp.org>
77744         Make va_copy work with some version of xlc on AIX 5.1.
77745         * lib/stdarg.in.h: New file.
77746         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
77747         On AIX, use a <stdarg.h> file substitute.
77748         * modules/stdarg (Files): Add lib/stdarg.in.h.
77749         (Depends-on): Add include_next.
77750         (Makefile.am): Build a stdarg.h substitute if requested.
77751         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
77753 2008-03-10  Bruno Haible  <bruno@clisp.org>
77755         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
77756         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
77757         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
77759 2008-03-10  Bruno Haible  <bruno@clisp.org>
77761         * modules/stdlib (Depends-on): Add include_next, remove
77762         absolute-header.
77764 2008-03-09  Bruno Haible  <bruno@clisp.org>
77766         * lib/freadahead.h (freadahead): Document more precisely.
77767         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
77768         the sum of both buffer sizes.
77769         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
77770         * NEWS: Document the change.
77772 2008-03-09  Bruno Haible  <bruno@clisp.org>
77774         Extend freadptr to return also the buffer size.
77775         * lib/freadptr.h (freadptr): Add sizep argument.
77776         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
77777         (freadptr): Add sizep argument. Determine buffer size like freadahead
77778         does.
77779         * tests/test-freadptr.c: Don't include freadahead.h.
77780         (main): Adapt for new calling convention of freadptr.
77781         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
77782         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
77783         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
77784         tests/test-freadptr2.sh.
77785         (Depends): Remove freadahead.
77786         (TESTS): Add test-freadptr2.sh.
77787         (check_PROGRAMS): Add test-freadptr2.
77789 2008-03-09  Bruno Haible  <bruno@clisp.org>
77791         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
77792         Report and solution by Simon Josefsson.
77794 2008-03-06  Bruno Haible  <bruno@clisp.org>
77796         Make fflush after ungetc work on BSD platforms.
77797         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
77798         * tests/test-fflush2.c: New file.
77799         * tests/test-fflush2.sh: New file.
77800         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
77801         tests/test-fflush2.c.
77802         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
77803         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
77805 2008-03-06  Eric Blake  <ebb9@byu.net>
77807         Likewise for ftello.
77808         * modules/ftello (Dependencies): Add extensions.
77809         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
77811 2008-03-06  Bruno Haible  <bruno@clisp.org>
77813         * modules/fseeko (Dependencies): Add extensions.
77814         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
77815         Needed on glibc systems.
77817 2008-03-06  Bruno Haible  <bruno@clisp.org>
77819         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
77820         email address.
77821         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
77823 2008-03-06  Bruno Haible  <bruno@clisp.org>
77825         * users.txt: Add libgnupdf.
77827 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
77829         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
77830         (Header File Substitutes, Function Substitutes,
77831         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
77832         (Build robot for gnulib): Fix typo.
77834 2008-03-06  Bruno Haible  <bruno@clisp.org>
77836         * doc/gnulib-tool.texi (VCS Issues): Small updates.
77837         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
77839 2008-03-06  Bruno Haible  <bruno@clisp.org>
77841         * doc/func.texi: New file, extracted from doc/gnulib.texi.
77842         * doc/gnulib.texi: Include it.
77844 2008-03-06  Simon Josefsson  <simon@josefsson.org>
77846         * modules/func (License): Change license to unlimited; there was
77847         no LGPL parts in the module anyway.
77849 2008-03-06  Simon Josefsson  <simon@josefsson.org>
77851         * modules/__func__: Renamed to modules/func.
77852         * modules/__func__-tests: Renamed to modules/func-tests.
77853         * tests/test-__func__.c: Renamed to tests/test-func.c.
77854         * m4/__func__.m4: Renamed to m4/func.m4.
77855         * doc/gnulib.texi (__func__): Section renamed to func.
77856         Suggested by Eric Blake <ebb9@byu.net>.
77858 2008-03-06  Simon Josefsson  <simon@josefsson.org>
77860         * doc/gnulib.texi (__func__): Use C99 terminology when talking
77861         about __func__.  Make example self-contained.  Suggested by Eric
77862         Blake <ebb9@byu.net>.
77864         * tests/test-__func__.c (main): Avoid extraneous () around __func.
77865         Suggested by Eric Blake <ebb9@byu.net>.
77867 2008-03-06  Simon Josefsson  <simon@josefsson.org>
77869         * modules/__func__: New file.
77870         * modules/__func__-tests: New file.
77871         * tests/test-__func__.c: New file.
77872         * m4/__func__.m4: New file.
77873         * doc/gnulib.texi (__func__): Document __func__ module.
77875 2008-03-05  Simon Josefsson  <simon@josefsson.org>
77877         * modules/byteswap (License): Re-license as LGPLv2+.
77879 2008-03-05  Simon Josefsson  <simon@josefsson.org>
77881         * doc/Makefile: Add pdf target.
77883 2008-03-05  Simon Josefsson  <simon@josefsson.org>
77885         * modules/inline (License): Use 'unlimited', since there are only
77886         *.m4 files in this module.
77888 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
77889             Bruno Haible  <bruno@clisp.org>
77891         Add support for HP C 7.1 on OpenVMS 8.3.
77892         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
77894 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
77896         Update VMS specifics.
77897         * lib/getopt.c [VMS]: Remove include of unixlib.h.
77899 2008-03-02  Jim Meyering  <meyering@redhat.com>
77901         Remove the last dependency on the "free" module.
77902         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
77903         Reported by Bob Proulx.
77905         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
77907         Remove useless "if" tests before free.  Deprecate "free" module.
77908         * doc/posix-functions/free.texi: Mention that this
77909         module is no longer useful.
77910         * modules/free (Notice): Say this module is obsolete.
77911         * modules/readutmp (Depends-on): Remove free.
77912         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
77913         * lib/putenv.c (putenv): Likewise.
77914         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
77915         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
77916         * tests/test-c-strcasestr.c (main): Likewise.
77917         * tests/test-c-strstr.c (main): Likewise.
77918         * tests/test-mbscasestr1.c (main): Likewise.
77919         * tests/test-mbscasestr2.c (main): Likewise.
77920         * tests/test-mbsstr1.c (main): Likewise.
77921         * tests/test-mbsstr2.c (main): Likewise.
77922         * tests/test-memmem.c (main): Likewise.
77923         * tests/test-strcasestr.c (main): Likewise.
77924         * tests/test-striconv.c (main): Likewise.
77925         * tests/test-striconveh.c (main): Likewise.
77926         * tests/test-striconveha.c (main): Likewise.
77927         * tests/test-strstr.c (main): Likewise.
77929         * build-aux/git-version-gen: Adjust a comment and the Usage string.
77931         bootstrap: sync from coreutils again
77932         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
77934 2008-03-01  Jim Meyering  <meyering@redhat.com>
77936         bootstrap: sync from coreutils
77937         * build-aux/bootstrap (update_po_files): Copy a .po file into place
77938         also when the target doesn't exist.
77940 2008-03-01  Eric Blake  <ebb9@byu.net>
77942         Fix bugs in last patch.
77943         * lib/memchr2.c (memchr2): Fix typo.
77944         * tests/test-memchr2.c: Test previous bug, and don't use GNU
77945         extension.
77946         Reported by Bruce Korb.
77948         New module 'memchr2'.
77949         * modules/memchr2: New file.
77950         * modules/memchr2-tests: Likewise.
77951         * lib/memchr2.h: Likewise.
77952         * lib/memchr2.c: Likewise, based on memchr.c.
77953         * tests/test-memchr2.c: New test.
77954         * MODULES.html.sh (String handling): Add memchr2.
77956 2008-02-29  Bruno Haible  <bruno@clisp.org>
77958         * modules/freadseek-tests: New file.
77959         * tests/test-freadseek.sh: New file.
77960         * tests/test-freadseek.c: New file.
77962         New module 'freadseek'.
77963         * modules/freadseek: New file.
77964         * lib/freadseek.h: New file.
77965         * lib/freadseek.c: New file.
77966         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
77968 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
77970         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
77971         wydawca.
77973         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
77974         program_invocation_name and program_invocation_short_name are
77975         present.
77977 2008-02-28  Bruno Haible  <bruno@clisp.org>
77979         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
77980         * tests/test-freadptr.sh: Also test non-seekable stdin.
77982 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
77984         * build-aux/bootstrap (source_base, m4_base)
77985         (doc_base, tests_base): New variables.
77986         (gnulib_tool_options): Do not hardcode base directories, use
77987         the above variables instead.
77989 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
77991         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
77993 2008-02-28  Bruno Haible  <bruno@clisp.org>
77995         * modules/freadptr-tests: New file.
77996         * tests/test-freadptr.sh: New file.
77997         * tests/test-freadptr.c: New file.
77999         New module 'freadptr'.
78000         * modules/freadptr: New file.
78001         * lib/freadptr.h: New file.
78002         * lib/freadptr.c: New file.
78003         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
78005 2008-02-26  Karl Berry  <karl@freefriends.org>
78007         Sync from Libtool:
78008         * libltdl/argz.c (argz_add, argz_count): New functions.
78009         * libltdl/argz.in.h: Declare them.
78010         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
78012 2008-02-22  Bruno Haible  <bruno@clisp.org>
78014         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
78015         is a pointer type.  Needed for HP-UX 10.
78016         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
78017         * doc/posix-functions/gmtime_r.texi: Likewise.
78018         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
78020 2008-02-24  Bruno Haible  <bruno@clisp.org>
78022         * modules/environ-tests: New file.
78023         * tests/test-environ.c: New file.
78025         New module 'environ'.
78026         * modules/environ: New file.
78027         * lib/unistd.in.h (environ): New declaration.
78028         * m4/environ.m4: New file.
78029         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
78030         after use.
78031         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
78032         HAVE_DECL_ENVIRON.
78033         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
78034         HAVE_DECL_ENVIRON.
78035         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
78036         wrong claim that 'environ' is missing on some systems.
78037         * modules/execute (Depends-on): Add environ.
78038         * lib/execute.c (environ): Remove fallback declaration.
78039         * modules/pipe (Depends-on): Add environ.
78040         * lib/pipe.c (environ): Remove fallback declaration.
78041         * modules/setenv (Depends-on): Add environ.
78042         * lib/setenv.c (environ): Remove fallback declaration.
78043         * modules/unsetenv (Depends-on): Add environ.
78044         * lib/unsetenv.c (environ): Remove fallback declaration.
78045         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
78046         m4/environ.m4.
78047         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
78048         (gl_PREREQ_UNSETENV): Likewise.
78050 2008-02-24  Bruno Haible  <bruno@clisp.org>
78052         * doc/posix-functions/environ.texi: Document the MacOS X problem.
78054 2008-02-20  Bob Proulx  <bob@proulx.com>
78056         Enable use of older two part flavor 'git describe'.
78057         * build-aux/git-version-gen: If using the older two part flavor of
78058         git version then recreate the third part now present in the
78059         newer three part flavor of git describe.
78061 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
78063         * lib/fts.c (fts_build): Typo correction to comment.
78065 2008-02-17  Bruno Haible  <bruno@clisp.org>
78067         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
78068         generating no-op conflicts.
78070 2008-02-17  Bruno Haible  <bruno@clisp.org>
78072         Speed up by 10%.
78073         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
78074         result_entries, rather than an index-based loop.
78076 2008-02-17  Bruno Haible  <bruno@clisp.org>
78078         Speed up by 25%.
78079         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
78080         'hashcode_cached'.
78081         (entry_create): New function.
78082         (entry_hashcode): Use the cached hashcode if possible.
78083         (read_changelog_file, try_split_merged_entry): Use entry_create.
78085 2008-02-17  Bruno Haible  <bruno@clisp.org>
78087         Speed up from O(n^2) to O(n) for long ChangeLog files.
78088         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
78089         (read_changelog_file): Change implementation of entries_reversed list
78090         to rbtreehash.
78091         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
78093 2008-02-17  Bruno Haible  <bruno@clisp.org>
78095         New option --split-merged-entry.
78096         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
78097         (find_paragraph_end, try_split_merged_entry): New functions.
78098         (long_options): Add option --split-merged-entry.
78099         (usage): Document option --split-merged-entry.
78100         (main): Implement option --split-merged-entry.
78101         Reported by Eric Blake.
78103 2008-02-17  Bruno Haible  <bruno@clisp.org>
78105         * lib/git-merge-changelog.c: Include c-strstr.h.
78106         (main): Support the "git pull --rebase" situation.
78107         * modules/git-merge-changelog (Depends-on): Add c-strstr.
78108         Reported by Eric Blake.
78110 2008-02-16  Eric Blake  <ebb9@byu.net>
78112         Avoid doubling \ in common case of "c-maybe" quoting style.
78113         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
78114         eliding outer quotes.
78115         * lib/quotearg.h: Document this.
78116         * tests/test-quotearg.c (result_strings, inputs, results_g)
78117         (flag_results, locale_results): Test it by adding a new string to
78118         each test group.
78119         (compare_strings): Test new string.
78121 2008-02-13  Eric Blake  <ebb9@byu.net>
78123         Avoid trigraph quoting in default output.
78124         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
78125         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
78126         unless explicitly requested.
78127         * tests/test-quotearg.c (flag_results, main): Add additional tests.
78129 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
78131         Don't rely on signed integer overflowing to negative value.
78132         * lib/getugroups.c (getugroups): Include <limits.h>.
78133         Instead, compare against INT_MAX, and increment only if the test passes.
78135 2008-02-13  Jim Meyering  <meyering@redhat.com>
78136         and Eric Blake  <ebb9@byu.net>
78138         Avoid shadowing warning and compile errors on Linux.
78139         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
78140         forwarding macros on Linux.
78141         (dcgettext): Define a stub, for Linux.
78142         (results_g, main): Avoid warnings.
78144 2008-02-12  Eric Blake  <ebb9@byu.net>
78146         Silence warning in last patch.
78147         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
78149         Quotearg part 4: add tests, fix c-maybe colon quoting.
78150         * lib/quotearg.h: Improve documentation.
78151         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
78152         escapes when adding outer quotes.  When quoting trigraphs, use
78153         valid C notation.  When quoting NUL, omit extra characters if next
78154         character is not digit.  Alter prototype.
78155         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
78156         callers.
78157         * modules/quotearg-tests: New module.
78158         * tests/test-quotearg.c: New test.
78160 2008-02-07  Eric Blake  <ebb9@byu.net>
78162         Quotearg part 3: add flag to control outer quote elision.
78163         * lib/quotearg.h (c_maybe_quoting_style): New style.
78164         (enum quoting_flags): Better documentation of flags.
78165         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
78166         c-maybe style.
78167         (quotearg_buffer_restyled): Handle new flag to elide outer
78168         quotes.
78170         Quotearg part 2: add flag that can control NUL elision.
78171         * lib/quotearg.h (set_quoting_flags): New prototype.
78172         * lib/quotearg.c (struct quoting_options): Add flag field.
78173         (set_quoting_flags): New function.
78174         (quotearg_buffer_restyled): Add flags parameter.
78175         (quotearg_alloc_mem): Set the flag if length cannot be returned.
78176         (quotearg_n_options): Set the flag, since length cannot be
78177         returned.
78178         (quoting_options_from_style): Default flags correctly.
78180         Quotearg part 1: more wrappers, restore quotearg_char state.
78181         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
78182         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
78183         (quotearg_colon_mem): New wrappers.
78184         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
78185         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
78186         functions.
78187         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
78188         (quotearg_colon_mem): New functions.
78190 2008-02-11  Bruno Haible  <bruno@clisp.org>
78192         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
78193         library in the current directory: it does not work with parallel make.
78194         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78196 2008-02-11  Bruno Haible  <bruno@clisp.org>
78198         * .gitattributes: New file.
78200 2008-02-11  Jim Meyering  <meyering@redhat.com>
78202         useless-if-before-free: Fix reversed exit values.
78203         * build-aux/useless-if-before-free: Use correct values
78204         for EXIT_MATCH and EXIT_NO_MATCH.
78206         * build-aux/useless-if-before-free: Close stdout carefully.
78208 2008-02-10  Bruno Haible  <bruno@clisp.org>
78210         New module 'git-merge-changelog'.
78211         * modules/git-merge-changelog: New file.
78212         * lib/git-merge-changelog.c: New file.
78214 2008-02-10  Jim Meyering  <meyering@redhat.com>
78216         useless-if-before-free: New option: --list (-l).
78218         useless-if-before-free: Don't exit immediately upon open failure.
78219         * build-aux/useless-if-before-free: Exit 2 for errors.
78220         Upon failure to open a file, don't exit immediately.
78221         Rather, just warn and continue with any remaining files.
78223 2008-02-10  Bruno Haible  <bruno@clisp.org>
78225         New abstract list operation 'node_set_value'.
78226         * lib/gl_list.h (gl_list_node_set_value): New function.
78227         (struct gl_list_implementation): New field node_set_value.
78228         * lib/gl_list.c (gl_list_node_set_value): New function.
78229         * lib/gl_array_list.c (gl_array_node_set_value): New function.
78230         (gl_array_list_implementation): Update.
78231         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
78232         (gl_carray_list_implementation): Update.
78233         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
78234         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
78235         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
78236         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
78237         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
78238         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
78239         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
78240         Update.
78241         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
78242         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
78243         (gl_sublist_list_implementation): Update.
78245 2008-02-10  Bruno Haible  <bruno@clisp.org>
78247         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
78248         Needed when ELEMENT is #defined to 'some_type *'.
78250 2008-02-10  Jim Meyering  <meyering@redhat.com>
78252         New script and module: useless-if-before-free
78253         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
78254         * build-aux/useless-if-before-free: New file.
78255         * modules/useless-if-before-free: New file.
78257         * build-aux/gitlog-to-changelog: Use committer date, not author date.
78259         xstrtol_error: Fix typo.
78260         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
78261         s/exit_failure/exit_status/.
78263 2008-02-09  Jim Meyering  <meyering@redhat.com>
78265         New script and module: gitlog-to-changelog
78266         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
78267         * modules/gitlog-to-changelog: New file.
78268         * build-aux/gitlog-to-changelog: New file.
78270 2008-02-08  Jim Meyering  <meyering@redhat.com>
78272         Avoid two "parameter unused" warnings.
78273         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
78274         Mark "st" as used.
78276         Use "git COMMAND", not "git-COMMAND".
78277         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
78278         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
78279         * build-aux/git-version-gen: Use "git status", not "git-status".
78281 2008-02-07  Bruno Haible  <bruno@clisp.org>
78283         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
78284         Avoids a crash on Windows Vista.
78285         Reported by Adam Strzelecki <ono@java.pl> via
78286         Simon Josefsson <simon@josefsson.org>.
78288 2008-02-06  Bruno Haible  <bruno@clisp.org>
78290         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
78291         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
78292         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
78293         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
78294         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
78295         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
78296         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
78297         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
78298         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
78299         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
78300         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
78301         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
78302         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
78303         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
78304         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
78305         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
78306         left-adjust flag.
78307         * tests/test-snprintf-posix.h (test_function): Likewise.
78308         * tests/test-sprintf-posix.h (test_function): Likewise.
78309         * tests/test-vasprintf-posix.c (test_function): Likewise.
78310         * doc/posix-functions/fprintf.texi: Update.
78311         * doc/posix-functions/printf.texi: Update.
78312         * doc/posix-functions/snprintf.texi: Update.
78313         * doc/posix-functions/sprintf.texi: Update.
78314         * doc/posix-functions/vfprintf.texi: Update.
78315         * doc/posix-functions/vprintf.texi: Update.
78316         * doc/posix-functions/vsnprintf.texi: Update.
78317         * doc/posix-functions/vsprintf.texi: Update.
78318         Reported by Peter Fales <psfales@alcatel-lucent.com>.
78320 2008-02-06  Bruno Haible  <bruno@clisp.org>
78322         Fix bug introduced on 2008-01-26.
78323         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
78325 2008-02-06  Bruno Haible  <bruno@clisp.org>
78327         Fix bug introduced on 2007-06-10.
78328         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
78329         !NEED_PRINTF_FLAG_ZERO.
78331 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
78333         getloadavg: use libperfstat on AIX5
78334         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
78336 2008-02-03  Bruno Haible  <bruno@clisp.org>
78338         * lib/diffseq.h: Add comments about required #includes.
78339         Reported by Michael Biggs <gnulib@doubleplum.net>.
78341 2008-02-01  Bruno Haible  <bruno@clisp.org>
78343         * users.txt: Add gnuit.
78345 2008-01-31  Bruno Haible  <bruno@clisp.org>
78347         * lib/md4.c (set_uint32): Mark as inline.
78348         * lib/md5.c (set_uint32): Likewise.
78349         * lib/sha1.c (set_uint32): Likewise.
78350         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
78351         * m4/md5.m4 (gl_MD5): Likewise.
78352         * m4/sha1.m4 (gl_SHA1): Likewise.
78354 2008-01-31  Jim Meyering  <meyering@redhat.com>
78356         Use "sizeof VAR", rather than a literal "4".
78357         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
78358         * lib/md4.c (md4_read_ctx): Likewise.
78359         * lib/sha1.c (sha1_read_ctx): Likewise.
78361 2008-01-31  Simon Josefsson  <simon@josefsson.org>
78363         * tests/test-sha1.c: New file, based on test-md5.c.
78365         * modules/crypto/sha1-tests: New file.
78367 2008-01-31  Simon Josefsson  <simon@josefsson.org>
78369         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
78371 2008-01-31  Jim Meyering  <meyering@redhat.com>
78373         Prefer "sizeof v" over the equivalent "4".
78374         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
78375         * lib/md5.c (set_uint32): Likewise.
78376         * lib/sha1.c (set_uint32): Likewise.
78378 2008-01-31  Simon Josefsson  <simon@josefsson.org>
78380         * lib/sha1.c (set_uint32): Mark function as static.
78382 2008-01-31  Simon Josefsson  <simon@josefsson.org>
78384         md2: clarify comments to say that alignment is not required.
78385         * lib/md2.h: Remove warning about alignment in comment.
78386         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
78387         never been required.
78389 2008-01-31  Simon Josefsson  <simon@josefsson.org>
78391         md4: adapt alignment constraint fix from sha1.
78392         * lib/md4.c (set_uint32): New function, from sha1.c
78393         (md4_read_ctx): Use it.
78394         (md4_finish_ctx): Doc fix.
78395         * lib/md4.h: Doc fix.
78397 2008-01-31  Simon Josefsson  <simon@josefsson.org>
78399         md5: adapt alignment constraint fix from sha1.
78400         * lib/md5.c (set_uint32): New function, from sha1.c
78401         (md5_read_ctx): Use it.
78402         (md5_finish_ctx): Doc fix.
78403         * lib/md5.h: Doc fix.
78405 2008-01-30  Peter Palfrader  <weasel@debian.org>
78407         sha1: remove the result buffer alignment constraint
78408         * lib/sha1.c (set_uint32): New function.
78409         (sha1_read_ctx): Rewrite to remove the result buffer alignment
78410         constraint.
78411         (sha1_finish_ctx): Remove comment warning about alignment constraint.
78412         * lib/sha1.h: Likewise.
78414 2008-01-30  Andreas Schwab  <schwab@suse.de>
78415             Bruno Haible  <bruno@clisp.org>
78417         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
78418         correct definition of LDBL_MIN_EXP.
78420 2008-01-30  Karl Berry  <karl@gnu.org>
78422         * config/srclist-update: try to preserve x bit on updates.
78423         * config/srclistvars.sh: update for karl.
78425 2008-01-29  Jim Meyering  <meyering@redhat.com>
78427         vasnprintf.c: Avoid warning about unused label
78428         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
78429         "overflow" label definition and associated code with the
78430         same cpp condition that guards the sole use of that label.
78432 2008-01-26  Bruno Haible  <bruno@clisp.org>
78434         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
78435         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
78436         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
78437         * lib/isnanl-nolibm.h (isnanl): Likewise.
78438         Reported by Paul Eggert <eggert@cs.ucla.edu>.
78440 2008-01-26  Bruno Haible  <bruno@clisp.org>
78442         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
78443         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
78445 2008-01-26  Bruno Haible  <bruno@clisp.org>
78447         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
78448         GCC >= 4.0 built-in.
78449         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
78451 2008-01-26  Bruno Haible  <bruno@clisp.org>
78453         Rename isnan, applicable to 'double' only, to isnand.
78454         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
78455         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
78456         (configure.ac): Update.
78457         (Include): Replace "isnan.h" with "isnand.h".
78458         * m4/isnand.m4: Renamed from m4/isnan.m4.
78459         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
78460         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
78461         instead of isnan.c.
78462         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
78463         instead of HAVE_ISNAN_IN_LIBC.
78464         (isnand): Renamed from isnan.
78465         * lib/isnand.c: New file.
78466         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
78467         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
78468         (Makefile.am): Update.
78469         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
78470         Include isnand.h instead of isnan.h.
78471         (main): Test isnand instead of isnan.
78472         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
78473         isnan-nolibm.
78474         * modules/frexp (Depends-on): Likewise.
78475         * modules/frexp-tests (Depends-on): Likewise.
78476         * modules/frexp-nolibm (Depends-on): Likewise.
78477         * modules/frexp-nolibm-tests (Depends-on): Likewise.
78478         * modules/isfinite (Depends-on): Likewise.
78479         * modules/round-tests (Depends-on): Likewise.
78480         * modules/signbit (Depends-on): Likewise.
78481         * modules/signbit-tests (Depends-on): Likewise.
78482         * modules/snprintf-posix (Depends-on): Likewise.
78483         * modules/sprintf-posix (Depends-on): Likewise.
78484         * modules/trunc-tests (Depends-on): Likewise.
78485         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
78486         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
78487         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
78488         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
78489         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
78490         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
78491         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
78492         * modules/vasnprintf-posix (Depends-on): Likewise.
78493         * modules/vasprintf-posix (Depends-on): Likewise.
78494         * modules/vfprintf-posix (Depends-on): Likewise.
78495         * modules/vsnprintf-posix (Depends-on): Likewise.
78496         * modules/vsprintf-posix (Depends-on): Likewise.
78497         * lib/frexp.c: Include isnand.h instead of isnan.h.
78498         (ISNAN): Set to isnand instead of isnan.
78499         * lib/isfinite.c: Include isnand.h instead of isnan.h.
78500         (gl_isfinited): Use isnand instead of isnan.
78501         * lib/signbitd.c: Include isnand.h instead of isnan.h.
78502         (gl_signbitd): Use isnand instead of isnan.
78503         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
78504         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
78505         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
78506         (main): Use isnand instead of isnan.
78507         * tests/test-round1.c: Include isnand.h.
78508         (main): Use isnand instead of isnan.
78509         * tests/test-round2.c: Include isnand.h instead of isnan.h.
78510         (ISNAN): Set to isnand instead of isnan.
78511         * tests/test-trunc1.c: Include isnand.h.
78512         (main): Use isnand instead of isnan.
78513         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
78514         (equal): Use isnand instead of isnan.
78515         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
78516         isnand-nolibm.
78517         * NEWS: Mention the change.
78519 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
78520             Bruno Haible  <bruno@clisp.org>
78522         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
78523         the GCC builtins for signbits are present and set
78524         REPLACE_SIGNBIT_USING_GCC if so.
78525         * lib/math.in.h (signbit): Define using GCC builtins if
78526         REPLACE_SIGNBIT_USING_GCC is set.
78527         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
78528         REPLACE_SIGNBIT_USING_GCC.
78529         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
78531 2008-01-25  Jim Meyering  <meyering@redhat.com>
78533         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
78534         * lib/poll.c: Include <config.h>, not "config.h".
78535         * tests/test-getaddrinfo.c: Likewise.
78537 2008-01-25  Simon Josefsson  <simon@josefsson.org>
78539         * modules/sockets-tests: New file.
78541 2008-01-24  Simon Josefsson  <simon@josefsson.org>
78543         * modules/sockets: New module, can be used to call WSA_Startup and
78544         WSA_Cleanup when needed.
78546         * lib/sockets.h, lib/sockets.c: New files.
78548         * m4/sockets.m4: New file.
78550         * tests/test-sockets.c: New file.
78552 2008-01-19  Bruno Haible  <bruno@clisp.org>
78554         * doc/posix-headers: Renamed from doc/headers.
78555         * doc/posix-functions: Renamed from doc/functions.
78556         * doc/gnulib.texi: Update.
78558 2008-01-19  Bruno Haible  <bruno@clisp.org>
78560         * doc/glibc-functions/strcasestr.texi: Include contents of
78561         doc/functions/strcasestr.texi, fixing the list of platforms.
78562         * doc/functions/strcasestr.texi: Remove file.
78564 2008-01-19  Bruno Haible  <bruno@clisp.org>
78566         * doc/glibc-functions/memmem.texi: Include contents of
78567         doc/functions/memmem.texi.
78568         * doc/functions/memmem.texi: Remove file.
78570 2008-01-18  Bruno Haible  <bruno@clisp.org>
78572         * doc/glibc-functions/*.texi: New files.
78573         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
78574         to use the new files.
78576 2008-01-17  Bruno Haible  <bruno@clisp.org>
78578         * tests/test-gethostname.c (main): Fix printf statement.
78580 2008-01-17  Simon Josefsson  <simon@josefsson.org>
78582         * modules/gethostname-tests: New file.
78584         * tests/test-gethostname.c: New file.
78586 2008-01-17  Simon Josefsson  <simon@josefsson.org>
78588         * lib/gethostname.c: Include string.h unconditionally, strncpy is
78589         used by the UNAME case.  Reported by Bruno Haible
78590         <bruno@clisp.org>.
78592 2008-01-17  Eric Blake  <ebb9@byu.net>
78594         Convert c-strcasestr to be more efficient.
78595         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
78596         (Depends-on): Add c-strcase, remove malloca, strnlen.
78597         * tests/test-c-strcasestr.c (main): Enhance test.
78598         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
78600 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
78602         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
78603         Use it in creating po/Makevars.
78605 2008-01-15  Simon Josefsson  <simon@josefsson.org>
78607         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
78608         Applications that requires it should initialize libgcrypt
78609         manually.
78611 2008-01-16  Simon Josefsson  <simon@josefsson.org>
78613         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
78615 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
78617         Fix problem with getdate on mingw32 reported by Simon Josefsson
78618         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
78619         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
78620         tzname", when deciding whether to declare tzname.
78621         * lib/strftime.c (tzname): Likewise.
78623 2008-01-15  Bruno Haible  <bruno@clisp.org>
78625         Work around a MacOS X 10.5 bug in frexpl().
78626         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
78627         * doc/functions/frexpl.texi: Document the bug.
78628         Reported by Elias Pipping <pipping@gentoo.org>.
78630 2008-01-14  Eric Blake  <ebb9@byu.net>
78632         Touch up previous patch.
78633         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
78634         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
78636         Convert strcasestr module to use Two-Way algorithm.
78637         * modules/strcasestr-simple: New module, based on the old
78638         strcasestr, but with Two-Way rather than KMP.
78639         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
78640         * lib/string.in.h (rpl_strcasestr): Declare.
78641         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
78642         performance.
78643         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
78644         * modules/string (Makefile.am): Support strcasestr.
78645         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
78646         * modules/strcasestr-tests (Depends-on): Check for alarm.
78647         * tests/test-strcasestr.c: Augment test.
78648         * lib/str-two-way.h: Clean up stray macro.
78649         * NEWS: Document new module.
78650         * MODULES.html.sh (string handling): Likewise.
78651         * doc/functions/strcasestr.texi: New file.
78652         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
78653         here, since it is not a POSIX function.
78655 2008-01-14  Colin Watson  <cjwatson@debian.org>
78656             Bruno Haible  <bruno@clisp.org>
78658         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
78659         works fine; if not, set REPLACE_STRSIGNAL.
78660         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
78661         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
78662         REPLACE_STRSIGNAL.
78663         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
78664         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
78665         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
78667 2008-01-14  Bruno Haible  <bruno@clisp.org>
78669         * modules/strsignal (Include): Change to <string.h>.
78671 2008-01-14  Colin Watson  <cjwatson@debian.org>
78673         * modules/argp (Notice): Add a notice recommending to change
78674         XGETTEXT_OPTIONS.
78675         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
78677 2008-01-13  Colin Watson  <cjwatson@debian.org>
78679         * modules/strsignal-tests: New file.
78680         * tests/test-strsignal.c: New file.
78682         * lib/strsignal.c: New file, from glibc with modifications.
78683         * lib/siglist.h: New file, from glibc with modifications.
78684         * lib/string.in.h (strsignal): New declaration.
78685         * m4/strsignal.m4: New file.
78686         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
78687         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
78688         * modules/strsignal: New file.
78689         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
78690         HAVE_DECL_STRSIGNAL.
78692 2008-01-13  Bruno Haible  <bruno@clisp.org>
78694         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
78695         locale encoding is not ASCII. Needed for OpenBSD 4.0.
78696         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
78697         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
78699 2008-01-13  Bruno Haible  <bruno@clisp.org>
78701         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
78702         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
78703         * lib/argp.h (__attribute__): Likewise.
78704         * lib/c-stack.c (__attribute__): Likewise.
78705         * lib/error.h (__attribute__): Likewise.
78706         * lib/fts.c (__attribute__): Likewise.
78707         * lib/openat.h (__attribute__): Likewise.
78708         * lib/stdio.in.h (__attribute__): Likewise.
78709         * lib/string.in.h (__attribute__): Likewise.
78710         * lib/utimens.c (__attribute__): Likewise.
78711         * lib/vasnprintf.h (__attribute__): Likewise.
78712         * lib/xalloc.h (__attribute__): Likewise.
78713         * lib/xprintf.h (__attribute__): Likewise.
78714         * lib/xstrtol.h (__attribute__): Likewise.
78715         * lib/xvasprintf.h (__attribute__): Likewise.
78717 2008-01-12  Bruno Haible  <bruno@clisp.org>
78719         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
78720         * doc/glibc-headers/a.out.texi: New file.
78721         * doc/glibc-headers/aliases.texi: New file.
78722         * doc/glibc-headers/alloca.texi: New file.
78723         * doc/glibc-headers/ar.texi: New file.
78724         * doc/glibc-headers/argp.texi: New file.
78725         * doc/glibc-headers/argz.texi: New file.
78726         * doc/glibc-headers/byteswap.texi: New file.
78727         * doc/glibc-headers/crypt.texi: New file.
78728         * doc/glibc-headers/endian.texi: New file.
78729         * doc/glibc-headers/envz.texi: New file.
78730         * doc/glibc-headers/err.texi: New file.
78731         * doc/glibc-headers/error.texi: New file.
78732         * doc/glibc-headers/execinfo.texi: New file.
78733         * doc/glibc-headers/fpu_control.texi: New file.
78734         * doc/glibc-headers/fstab.texi: New file.
78735         * doc/glibc-headers/fts.texi: New file.
78736         * doc/glibc-headers/getopt.texi: New file.
78737         * doc/glibc-headers/ieee754.texi: New file.
78738         * doc/glibc-headers/ifaddrs.texi: New file.
78739         * doc/glibc-headers/libintl.texi: New file.
78740         * doc/glibc-headers/mcheck.texi: New file.
78741         * doc/glibc-headers/mntent.texi: New file.
78742         * doc/glibc-headers/obstack.texi: New file.
78743         * doc/glibc-headers/paths.texi: New file.
78744         * doc/glibc-headers/printf.texi: New file.
78745         * doc/glibc-headers/pty.texi: New file.
78746         * doc/glibc-headers/resolv.texi: New file.
78747         * doc/glibc-headers/shadow.texi: New file.
78748         * doc/glibc-headers/sysexits.texi: New file.
78749         * doc/glibc-headers/ttyent.texi: New file.
78751 2008-01-12  Jim Meyering  <meyering@redhat.com>
78753         announce-gen: emit Gnulib's git-based version string.
78754         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
78755         New option --gnulib-version=V, where V is expected to be
78756         the output of running git describe in the gnulib directory.
78757         (get_tool_versions): Request feedback on xdelta.  I suspect it's
78758         not useful, and plan to stop publishing an xdelta file with each
78759         coreutils release.
78761         * build-aux/announce-gen: Also check for lzma-compressed files.
78763 2008-01-11  Bruno Haible  <bruno@clisp.org>
78765         * tests/test-memmem.c (main): Increase maximum allowed time.
78766         * tests/test-strstr.c (main): Likewise.
78768 2008-01-11  Bruno Haible  <bruno@clisp.org>
78770         * doc/functions/memmem.texi: Add more precisions about platforms.
78771         * doc/functions/strstr.texi: Likewise.
78773 2008-01-10  Eric Blake  <ebb9@byu.net>
78775         * m4/strstr.m4: Delete cruft from copy-n-paste.
78776         Reported by Bruno Haible.
78778 2008-01-10  Bruno Haible  <bruno@clisp.org>
78780         Make c-strstr rely on strstr.
78781         * lib/c-strstr.c: Don't include str-kmp.h.
78782         (c_strstr): Define in terms of strstr.
78783         * modules/c-strstr (Files): Remove lib/str-kmp.h.
78784         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
78786 2008-01-10  Bruno Haible  <bruno@clisp.org>
78788         * doc/gnulib.texi (String Functions in C Locale): New section.
78789         * doc/c-ctype.texi: New file.
78790         * doc/c-strcase.texi: New file.
78791         * doc/c-strcaseeq.texi: New file.
78792         * doc/c-strcasestr.texi: New file.
78793         * doc/c-strstr.texi: New file.
78794         * doc/c-strtod.texi: New file.
78795         * doc/c-strtold.texi: New file.
78797 2008-01-10  Eric Blake  <ebb9@byu.net>
78799         * lib/relocatable.h: Fix a comment.
78801 2008-01-10  Eric Blake  <ebb9@byu.net>
78803         Share two-way algorithm.
78804         * lib/str-two-way.h: New file, merged from...
78805         * lib/memmem.c: ...here...
78806         * lib/strstr.c: ...and here.
78807         * modules/memmem (Files): Use it.
78808         * modules/strstr (Files): Likewise.
78810         Avoid quadratic strstr implementations.
78811         * lib/strstr.c: New file.
78812         * m4/strstr.m4: Likewise.
78813         * modules/strstr: Likewise.
78814         * modules/strstr-tests: Likewise.
78815         * tests/test-strstr.c: Likewise.
78816         * lib/string.in.h (rpl_strstr): Declare.
78817         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
78818         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
78819         * modules/string (Makefile.am): Likewise.
78820         * MODULES.html.sh (string handling): Mention new module.
78821         * doc/functions/strstr.texi (strstr): Document the bug.
78823 2008-01-10  Bruno Haible  <bruno@clisp.org>
78825         * lib/relocatable.h (relocate): State whether result is freshly
78826         allocated or not.
78827         * lib/relocatable.c (relocate): Return a freshly allocated string
78828         instead of a pointer to a privately held string.
78829         Reported by Sylvain Beucler <beuc@gnu.org>.
78831 2008-01-10  Colin Watson  <cjwatson@debian.org>
78833         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
78834         s/S_ISNLK/S_ISLNK/.
78836 2008-01-09  Bruno Haible  <bruno@clisp.org>
78838         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
78839         and other files.
78840         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
78841         if it's only a guess.
78842         * modules/memmem: Simplify by depending on memmem-simple.
78844 2008-01-09  Bruno Haible  <bruno@clisp.org>
78846         Work around OpenBSD 4.0 tdelete() bug.
78847         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
78848         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
78849         macros and don't redefine the enum values.
78850         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
78851         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
78852         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
78854 2008-01-09  Bruno Haible  <bruno@clisp.org>
78856         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
78857         (main): Don't perform the tests if setlocale did not install a UTF-8
78858         locale. Needed on OpenBSD 4.0.
78859         * modules/wcwidth-tests (Depends-on): Add localcharset.
78861 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78863         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
78864         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
78865         * NEWS: announce this.
78866         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
78868 2008-01-09  Simon Josefsson  <simon@josefsson.org>
78869         and Eric Blake  <ebb9@byu.net>
78871         Add memmem-simple module.
78872         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
78873         (gl_FUNC_MEMMEM): Separate performance from presence checks.
78874         * modules/memmem-simple: New file.
78875         * modules/memmem (Description): Tweak.
78876         * MODULES.html.sh (string handling): Mention new module.
78877         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
78878         addressed by memmem-simple.
78879         * NEWS: Document the difference.
78881 2008-01-09  Eric Blake  <ebb9@byu.net>
78883         Give gcc some memmem optimization hints.
78884         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
78885         (strcasestr): Declare as pure.
78886         * modules/memmem (Maintainer): Claim my implementation.
78888 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78890         Support AIX 6.1 and higher.
78891         * build-aux/config.libpath: Likewise.
78892         * build-aux/config.rpath: Likewise.
78894 2008-01-08  Jim Meyering  <meyering@redhat.com>
78895             Bruno Haible  <bruno@clisp.org>
78897         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
78898         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
78899         Reported by Peter Fales in
78900         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
78902 2008-01-08  Bruno Haible  <bruno@clisp.org>
78904         * modules/unictype/category-of (Depends-on): Add
78905         unictype/category-none.
78906         * modules/unictype/category-and-tests (Depends-on): Add
78907         unictype/category-{L,N,Lu,Nd}.
78908         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
78909         * modules/unictype/category-or-tests (Depends-on): Add
78910         unictype/category-{L,N}.
78911         * modules/unictype/category-name-tests (Depends-on): Add
78912         unictype/category-{Z,Nl}.
78913         Reported by Simon Josefsson.
78915 2008-01-08  Bruno Haible  <bruno@clisp.org>
78917         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
78918         convention better.
78919         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
78920         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
78921         Reported by Peter Miller <millerp@canb.auug.org.au>.
78923 2008-01-08  Eric Blake  <ebb9@byu.net>
78925         Rewrite memmem to guarantee linear complexity without malloc.
78926         * lib/memmem.c (memmem): Use Two-Way rather than
78927         Knuth-Morris-Pratt, to allow O(1) space usage.
78928         (critical_factorization, two_way_short_needle)
78929         (two_way_long_needle): New functions.
78930         (knuth_morris_pratt): Delete.
78931         * modules/memmem (Depends-on): No longer need malloca or stdbool.
78932         Add stdint.
78933         * tests/test-memmem.c (main): Add tests for periodic needle and
78934         sublinear performance.
78935         * doc/functions/memmem.texi (memmem): Document other deficiencies
78936         in cygwin and older glibc.
78938 2008-01-08  Bruno Haible  <bruno@clisp.org>
78940         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
78941         augmentation.
78943 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
78945         Add a configure time option: --disable-acl.
78946         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
78947         AC_ARG_ENABLE(acl).
78949 2008-01-06  Simon Josefsson  <simon@josefsson.org>
78951         * tests/test-localename.c: Don't include obsolete "setenv.h".
78953         * modules/localename-tests (Depends-on): Need unsetenv.
78955 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78957         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
78959 2008-01-06  Colin Watson  <cjwatson@debian.org>
78961         * users.txt: Add man-db.
78963 2008-01-07  Bruno Haible  <bruno@clisp.org>
78965         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
78966         previous section name.
78968 2008-01-07  Bruno Haible  <bruno@clisp.org>
78970         * lib/progname.c (set_program_name): Don't strip off a leading
78971         "lt-" prefix outside a .libs directory.
78972         Suggested by Paul Eggert.
78974 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
78975             Bruno Haible  <bruno@clisp.org>
78977         Improve memory cleanup in 'relocatable' module.
78978         * lib/relocatable.h (compute_curr_prefix): Change return type to
78979         'char *'.
78980         * lib/relocatable.c (compute_curr_prefix): Change return type to
78981         'char *'. Free curr_installdir after use.
78982         (relocate): Free curr_prefix_better after use.
78983         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
78985 2008-01-01  Bruno Haible  <bruno@clisp.org>
78987         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
78988         failure on older glibc systems.
78989         Reported by Peter Fales <psfales@alcatel-lucent.com>.
78991 2008-01-05  Eric Blake  <ebb9@byu.net>
78993         Avoid quadratic system memmem.
78994         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
78995         Reported by Ralf Wildenhues.
78997         Fix memmem test for mingw.
78998         * modules/memmem-tests (configure.ac): Check for alarm.
78999         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
79000         it.
79001         * doc/functions/memmem.texi: New file.
79002         * doc/gnulib.texi (Function Substitutes): Add memmem.
79003         Reported by Bruno Haible.
79005 2008-01-04  Bruno Haible  <bruno@clisp.org>
79007         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
79008         Require gl_HEADER_STRINGS_H_DEFAULTS, not
79009         gl_HEADER_STRING_H_DEFAULTS.
79011 2008-01-04  Eric Blake  <ebb9@byu.net>
79013         Shorten duration of memmem test.
79014         * tests/test-memmem.c (main): Use alarm to declare failure if test
79015         is taking too long.
79016         Reported by Ralf Wildenhues.
79018 2007-12-21  Simon Josefsson  <simon@josefsson.org>
79020         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
79021         string, needed by strerror.
79023 2008-01-03  Colin Watson  <cjwatson@debian.org>
79024             Bruno Haible  <bruno@clisp.org>
79026         * doc/gnulib-tool.texi (Localization): New section.
79028 2008-01-02  Bruno Haible  <bruno@clisp.org>
79030         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
79031         variables to 'unsigned char *' type.
79032         Reported by Paul Eggert.
79034 2008-01-02  Jim Meyering  <jim@meyering.net>
79036         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
79038 2007-12-31  Jim Meyering  <jim@meyering.net>
79040         Avoid use of private FTS type name.
79041         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
79043 2007-12-30  Karl Berry  <karl@gnu.org>
79045         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
79046         work around defect in Texinfo and/or the standalone Info browser.
79048 2007-12-30  Bruno Haible  <bruno@clisp.org>
79050         Unify 5 copies of the KMP code.
79051         * lib/str-kmp.h: New file.
79052         * lib/c-strcasestr.c: Include str-kmp.h.
79053         (knuth_morris_pratt): Remove function.
79054         (c_strcasestr): Update.
79055         * lib/c-strstr.c: Include str-kmp.h.
79056         (knuth_morris_pratt): Remove function.
79057         (c_strcasestr): Update.
79058         * lib/mbscasestr.c: Include str-kmp.h.
79059         (knuth_morris_pratt_unibyte): Remove function.
79060         * lib/mbsstr.c: Include str-kmp.h.
79061         (knuth_morris_pratt_unibyte): Remove function.
79062         * lib/strcasestr.c: Include str-kmp.h.
79063         (knuth_morris_pratt): Remove function.
79064         (strcasestr): Update.
79065         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
79066         * modules/c-strstr (Files): Likewise.
79067         * modules/mbscasestr (Files): Likewise.
79068         * modules/mbsstr (Files): Likewise.
79069         * modules/strcasestr (Files): Likewise.
79070         Suggested by Paul Eggert.
79072 2007-12-30  Bruno Haible  <bruno@clisp.org>
79074         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
79075         defined.
79077 2007-12-30  Bruno Haible  <bruno@clisp.org>
79079         * lib/xmalloca.h: Include xalloc.h.
79080         (xnmalloca): New macro.
79082 2007-12-30  Bruno Haible  <bruno@clisp.org>
79084         * lib/malloca.h (nmalloca): New macro.
79085         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
79086         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
79087         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
79088         knuth_morris_pratt_multibyte): Likewise.
79089         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
79090         knuth_morris_pratt_multibyte): Likewise.
79091         * lib/memmem.c (knuth_morris_pratt): Likewise.
79092         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
79094 2007-12-25  Bruno Haible  <bruno@clisp.org>
79096         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
79097         * lib/glob.c: Don't include openat.h.
79098         (link_exists2_p): Add back the code that deals with the
79099         !GLOB_ALTDIRFUNC case.
79100         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
79101         let it do the filename concatenation.
79102         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
79103         * modules/glob (Depends-on): Remove openat.
79105 2007-12-31  Bruno Haible  <bruno@clisp.org>
79107         * modules/dirfd (License): Change to LGPLv2+.
79108         Approved by Jim Meyering.
79110 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
79112         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
79113         when multiplying M by sizeof (size_t).
79115 2007-12-10  Martin Lambers  <marlam@marlam.de>
79117         Override getpagesize on mingw.
79118         * lib/getpagesize.c: New file.
79119         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
79120         * modules/getpagesize (Files): Add lib/getpagesize.c.
79121         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
79122         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
79123         REPLACE_GETPAGESIZE.
79124         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
79126 2007-12-25  Bruno Haible  <bruno@clisp.org>
79128         * modules/localcharset (Notice): New field.
79129         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
79130         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
79132 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
79133             Bruno Haible  <bruno@clisp.org>
79135         Avoid using the syntax symbol() in formatted documentation.
79136         * MODULES.html.sh (func_module): When replacing symbol() with a
79137         hyperlink, remove the parentheses. Show an error if some remain.
79138         Recognize and render the '...' syntax.
79139         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
79140         Rework. Add paragraph about GCC's inlining.
79141         * doc/alloca.texi: Likewise.
79142         * doc/error.texi: Remove parentheses from symbol reference.
79143         * doc/gnulib-intro.texi: Likewise.
79144         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
79145         * modules/fnmatch (Description): Reword to say "the ... function".
79146         * modules/full-read (Description): Likewise.
79147         * modules/full-write (Description): Likewise.
79148         * modules/safe-read (Description): Likewise.
79149         * modules/safe-write (Description): Likewise.
79150         * modules/strchrnul (Description): Likewise.
79151         * modules/trim (Description): Likewise.
79152         * modules/error (Description): Remove parentheses from symbol
79153         references.
79154         * modules/verror (Description): Likewise.
79155         Reported by Karl Berry.
79157 2007-12-25  Bruno Haible  <bruno@clisp.org>
79159         Fixup after 2007-10-16 commit.
79160         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
79162 2007-12-24  Bruno Haible  <bruno@clisp.org>
79164         Make --enable-relocatable work with DESTDIR.
79165         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
79166         to compute installdir from destprog.
79167         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
79168         also set the RELOC_DESTDIR variable.
79169         Reported by Левашев Иван <octagram@bluebottle.com>.
79171 2007-12-24  Bruno Haible  <bruno@clisp.org>
79173         Fix link error due to xalloc_die().
79174         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
79175         of xreadlink.
79176         * lib/relocwrapper.c: Update comments.
79177         * build-aux/install-reloc: Remove xreadlink.c from file list.
79178         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
79179         xreadlink.c.
79180         Reported by Левашев Иван <octagram@bluebottle.com>.
79182 2007-12-24  Bruno Haible  <bruno@clisp.org>
79184         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
79185         * lib/setenv.h: Remove file.
79186         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
79187         lib/setenv.h.
79188         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
79189         (Depends-on): Add stdlib.
79190         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
79191         gl_FUNC_UNSETENV.
79192         (Include): Replace setenv.h with <stdlib.h>.
79193         * modules/unsetenv: New file.
79194         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
79195         * lib/unsetenv.c: Include <stdlib.h> first.
79196         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
79197         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
79198         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
79199         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
79200         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
79201         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
79202         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
79203         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
79204         * doc/functions/unsetenv.texi: Update.
79205         * modules/xsetenv (Depends-on): Add unsetenv.
79206         * modules/getdate (Depends-on): Likewise.
79207         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
79208         * lib/xsetenv.c: Don't include setenv.h.
79209         * lib/getdate.y: Likewise.
79210         * lib/relocwrapper.c: Likewise.
79211         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
79212         (Depends-on): Add stdlib.
79213         * NEWS: Mention the changes.
79214         Reported by Левашев Иван <octagram@bluebottle.com>.
79216 2007-12-23  Bruno Haible  <bruno@clisp.org>
79218         * lib/memmem.c (memmem): Use lowercase variable names. Tab
79219         indentation.
79221 2007-12-23  Bruno Haible  <bruno@clisp.org>
79223         * lib/c-strcasestr.c: Add more comments.
79224         * lib/c-strstr.c: Likewise.
79225         * lib/mbscasestr.c: Likewise.
79226         * lib/mbsstr.c: Likewise.
79227         * lib/strcasestr.c: Likewise.
79228         * lib/memmem.c: Likewise.
79230 2007-12-23  Bruno Haible  <bruno@clisp.org>
79232         * tests/test-memmem.c: Include <string.h> first.
79234 2007-12-22  Bruno Haible  <bruno@clisp.org>
79236         * gnulib-tool (func_create_testdir): Change $auxdir while generating
79237         the contents of $testsbase.
79238         Reported by Ralf Wildenhues.
79240 2007-12-22  Bruno Haible  <bruno@clisp.org>
79242         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
79243         two variables local_ldadd_before, local_ldadd_last.
79245 2007-12-20  Eric Blake  <ebb9@byu.net>
79247         Work around circular library issue when cross-compiling.
79248         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
79249         that progname.o does not need to pull in rpl_memcmp.
79251 2007-12-19  Eric Blake  <ebb9@byu.net>
79253         Fix memmem to avoid O(n^2) worst-case complexity.
79254         * lib/memmem.c (knuth_morris_pratt): New function.
79255         (memmem): Use it if first few naive iterations fail.
79256         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
79257         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
79258         * modules/memchr (License): Likewise.
79259         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
79260         malloca.
79261         * tests/test-memmem.c: Rewrite, borrowing ideas from
79262         test-mbsstr1.c; the old version wouldn't even compile!
79263         * modules/memmem-tests: New file.
79264         * lib/string.in.h (rpl_memmem): Add declaration.
79265         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
79266         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
79267         REPLACE_MEMMEM.
79269 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
79271         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
79272         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
79273         before any system include files, and undef after them all.  This
79274         should fix a problem on VMS reported by John E. Malmberg in
79275         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
79277 2007-12-17  Eric Blake  <ebb9@byu.net>
79279         Revert addition of verify, for BSD/OS.
79280         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
79281         can't handle large files, for the sake of obsolete platforms.
79282         * modules/fseeko (Depends-on): Remove verify.
79283         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
79284         * doc/functions/ftello.texi (ftello): Likewise.
79285         * doc/functions/fgetpos.texi (fgetpos): Likewise.
79286         Reported by Larry Jones.
79288 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
79290         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
79291         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
79293 2007-12-17  Jim Meyering  <meyering@redhat.com>
79295         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
79296         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
79297         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
79298         * modules/getcwd (Depends-on): Add openat.
79299         Reported by Petr Salinger.
79301 2007-12-17  Bruno Haible  <bruno@clisp.org>
79303         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
79304         avoid a segmentation fault of the configure test on x86_64 systems.
79306 2007-12-15  Jim Meyering  <meyering@redhat.com>
79308         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
79310 2007-12-13  Eric Blake  <ebb9@byu.net>
79312         Another fseek test.
79313         * tests/test-fseek.c (main): Also test ungetc handling.
79314         * tests/test-fseeko.c (main): Likewise.
79315         * modules/fseeko (Depends-on): Add verify.
79316         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
79317         large.
79318         Reported by Larry Jones.
79320         Fix fseeko on mingw.
79321         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
79322         seek.
79324         Beef up fseek tests.
79325         * tests/test-fseek.c (main): Also test eof handling.
79326         * tests/test-fseeko.c (main): Likewise.
79327         Reported by Larry Jones.
79329 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
79331         Fix fseeko on BSD-based platforms.
79332         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
79333         successful seek.
79335 2007-12-12  Eric Blake  <ebb9@byu.net>
79337         Allow circular dependency of separate libtests.a
79338         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
79339         when use_libtests.
79341 2007-12-11  Eric Blake  <ebb9@byu.net>
79343         Fix bug with -0.0L in previous patch.
79344         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
79345         * tests/test-isnan.c (main): Also test on zeroes.
79346         * tests/test-isnanf.c (main): Likewise.
79347         * tests/test-isnanl.h (main): Likewise.
79349         Detect pseudo-denormals on x86 even when cross-compiling.
79350         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
79351         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
79352         invalid bit patterns that happen to satisfy ==.
79354         Avoid link failures with separate libtests.a.
79355         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
79356         last, to satisfy circular dependencies.
79358 2007-12-11  Eric Blake  <ebb9@byu.net>
79359         and Bruno Haible  <bruno@clisp.org>
79361         Fix OpenBSD 4.0 <float.h> handling of long double.
79362         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
79363         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
79364         * doc/headers/float.texi (float.h): Document OpenBSD bug.
79366 2007-12-11  Jim Meyering  <meyering@redhat.com>
79368         * users.txt: Add libvirt.
79370         Support versions of autoconf prior to 2.59c.
79371         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
79372         if it is not already defined.
79374 2007-12-09  Bruno Haible  <bruno@clisp.org>
79376         Let 'gnulib-tool --import' collect sources needed for the tests in
79377         tests/ rather than in lib/.
79378         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
79379         argument. If true, add rules to generate libtests.a, and put libtests.a
79380         into $(LDADD). Consider source files in subdirectories and set
79381         uses_subdirs.
79382         (func_emit_initmacro_start, func_emit_initmacro_end,
79383         func_emit_initmacro_done): Pass all arguments explicitly.
79384         (func_import): Determine two module lists main_modules,
79385         testsrelated_modules. Determine use_libtests. Determine two variables
79386         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
79387         instead of just sed_transform_lib_file. Determine two variables
79388         main_files and testsrelated_files. Compute 'files' as the union of
79389         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
79390         func_add_or_update. In the generated gnulib-comp.m4, collect the
79391         object files for tests/ in different variables than those for lib/.
79392         Substitute LIBTESTS_LIBDEPS.
79393         (func_create_testdir): Combine the uses_subdirs results from
79394         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
79396 2007-12-09  Bruno Haible  <bruno@clisp.org>
79398         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
79399         the build-aux directory.
79401 2007-12-09  Bruno Haible  <bruno@clisp.org>
79403         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
79404         introduced on 2006-09-09.
79406 2007-12-07  Jim Meyering  <meyering@redhat.com>
79408         Let these macros work also with autoconf-2.59.
79409         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
79410         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
79411         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
79413 2007-12-06  Jim Meyering  <meyering@redhat.com>
79415         Avoid a configure-time syntax error in gl_FUNC_ACL.
79416         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
79417         function in each branch, before testing the cache variable.
79419 2007-12-04  Eric Blake  <ebb9@byu.net>
79421         Make scripts executable.
79422         * build-aux/config.guess: Add execute permissions.
79423         * build-aux/config.sub: Likewise.
79424         * build-aux/gendocs.sh: Likewise.
79426         Fix frexp on mingw.
79427         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
79428         cross-compiling.
79429         * doc/functions/frexp.texi (frexp): Document the bug.
79431         Make cygwin fseeko check more reliable.
79432         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
79433         version numbers, rather than unrelated feature check.
79434         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
79435         * doc/functions/ftello.texi (ftello): Likewise.
79436         Reported by Bruno Haible.
79438         * m4/strerror.m4: Bump version number.
79440 2007-12-03  Bruno Haible  <bruno@clisp.org>
79442         * doc/functions/mprotect.texi: Mention the mingw problem.
79444 2007-12-03  Eric Blake  <ebb9@byu.net>
79446         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
79447         REPLACE_STRERROR is initialized before this macro.
79449 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
79451         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
79452         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
79453         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
79454         put -lsec in even for programs other than 'ls'.  This fixes a problem
79455         for gettext reported by Bruno Haible in
79456         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
79457         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
79458         Add support for Solaris 10.  This isn't efficient, but should get the
79459         job done for now.
79461 2007-12-03  James Youngman  <jay@gnu.org>
79463         * doc/regexprops-generic.texi: change "an close-group" to "a
79464         close-group" and "illegal" to "not allowed".
79466 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79468         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
79469         pr_byname.h. Needed for the rare case when the maintainer has done
79470         "make maintainer-clean" in the source directory and then attempts a
79471         build outside the source directory.
79472         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
79473         scripts_byname.h.
79475 2007-12-02  Martin Lambers  <marlam@marlam.de>
79476             Bruno Haible  <bruno@clisp.org>
79478         * lib/getpagesize.h: Remove file.
79479         * lib/unistd.in.h: Include declaration of getpagesize here.
79480         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
79481         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
79482         HAVE_SYS_PARAM_H.
79483         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
79484         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
79485         * modules/getpagesize (Files): Remove lib/getpagesize.h.
79486         (Depends-on): Add unistd.
79487         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
79488         (Include): Use <unistd.h> instead of getpagesize.h.
79489         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
79490         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
79491         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
79492         gl_GETPAGESIZE invocation, already handled by module dependency.
79493         * lib/pagealign_alloc.c: Don't include getpagesize.h.
79495 2007-12-02  Bruno Haible  <bruno@clisp.org>
79497         * modules/strings-tests: New file.
79498         * tests/test-strings.c: New file.
79500         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
79501         * lib/strings.in.h: New file.
79502         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
79503         * m4/strings_h.m4: New file.
79504         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
79505         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
79506         * modules/strings: New file.
79507         * modules/string (Makefile.am): Update.
79508         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
79509         Reported by Karl Berry.
79511 2007-12-01  Eric Blake  <ebb9@byu.net>
79513         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
79514         accommodate fix in cygwin 1.5.25.
79516 2007-12-01  Jim Meyering  <meyering@redhat.com>
79518         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
79519         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
79520         that would inhibit utf8-optimization of a regexp containing line-
79521         or buffer-anchors, e.g., `^', `$'.
79523 2007-11-30  Bruno Haible  <bruno@clisp.org>
79525         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
79526         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
79527         glthread_recursive_lock_init.
79528         * lib/lock.c (glthread_recursive_lock_init)
79529         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
79530         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
79532 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
79534         New function qset_acl, like set_acl but with syscall semantics.
79535         * lib/acl.h (qset_acl): New decl.
79536         * lib/acl.c (qset_acl): New function.
79537         (set_acl): Use new function.  Use more-consistent diagnostics.
79539 2007-11-28  Jim Meyering  <meyering@redhat.com>
79541         * modules/physmem (License): Change from GPL to LGPLv2+.
79543 2007-11-26  Bruno Haible  <bruno@clisp.org>
79545         * lib/vasnprintf.c (decode_long_double): Don't abort if the
79546         'long double' type has excess precision.
79547         Reported by Jim Meyering in
79548         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
79550 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79552         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
79553         Sync from <http://gnu.org/licenses>.
79554         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
79555         with license text from same location.
79556         * doc/maintain.texi, doc/standards.texi:  Sync from
79557         <http://savannah.gnu.org/projects/gnustandards>.
79559 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
79560         and Jim Meyering  <meyering@redhat.com>
79562         Adjust getdate' grammar to accept a slightly more regular language.
79563         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
79564         Before, the former was rejected.
79565         * lib/getdate.y (digits_to_date_time): New function, factored
79566         out of ...
79567         (number): ...here.  Just call digits_to_date_time.
79568         (hybrid): New non-terminal to handle an <unsigned number,
79569         signed relative offset> sequence consistently.
79571 2007-11-18  Jim Meyering  <meyering@redhat.com>
79573         Pull my changes from coreutils:
79574         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
79575         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
79576         use of $gnulib_tool_option_extras, so that it's separated from the
79577         preceding argument.
79579         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
79580         * build-aux/bootstrap (cp_mark_as_generated): Create any required
79581         parent destination directories before copying a file into place.
79583 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
79585         bootstrap: work also with 4-argument variant of AC_INIT
79586         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
79588 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79590         Port test-getaddrinfo to Solaris.
79591         Problem reported by Bruno Haible in
79592         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
79593         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
79594         explanation of setting 'hints'.
79595         Don't reject an implementation merely because it returns EAI_SERVICE.
79596         (EAI_SERVICE): Define to 0 if not defined.
79598 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
79600         The license of gnu-make and posix-shell is now "GPLed build tool".
79601         * modules/gnu-make (License): Likewise.
79602         * modules/posix-shell (License): Likewise.
79604         New module posix-shell, for determining a POSIX shell
79605         or perhaps something that is close enough to a POSIX shell.
79606         * m4/posix-shell.m4: New file.
79607         * modules/posix-shell: New file.
79609         * MODULES.html.sh: Mention new module.
79611         New module gnu-make, for determining whether we're using GNU Make.
79612         * m4/gnu-make.m4: New file.
79613         * modules/gnu-make: New file.
79614         * MODULES.html.sh: Mention new module.
79616 2007-11-14  Jim Meyering  <meyering@redhat.com>
79618         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
79619         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
79620         use this macro to create a function _definition_.
79621         Remove useless "#undef ARGMATCH_DIE".
79623 2007-11-14  Bruno Haible  <bruno@clisp.org>
79625         * lib/config.charset: Update for OpenBSD 4.1.
79626         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
79628 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
79630         Document 64-bit #if problems in stdint.texi.
79631         * doc/headers/stdint.texi (stdint.h): Mention problems with
79632         64-bit-#if, and how to work around them.
79634         Don't insist on 'long long int' support in the preprocessor.  It
79635         breaks too many things.  For example, PRIdMAX still uses a 'long
79636         long int' format with the latest Sun compiler, even though
79637         HAVE_LONG_LONG_INT isn't defined due to that compiler's
79638         preprocessor problem.  This causes the latest coreutils to dump
79639         core on Solaris 10 sparc with the Sun C compiler.
79640         Instead, fix the 2007-10-16 problem in a different way, by evaluating
79641         the troublesome expressions at configure-time, not at #if-time.
79642         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
79643         preprocessor.
79644         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
79645         compile-time C checks, done at 'configure'-time.
79646         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
79647         * modules/inttypes (Makefile): Substitute the new symbols that
79648         gl_INTTYPES_H now generates.
79649         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
79651 2007-11-12  Bruno Haible  <bruno@clisp.org>
79653         Tests for Unicode character classification functions.
79655         * modules/unictype/bidicategory-byname-tests: New file.
79656         * modules/unictype/bidicategory-name-tests: New file.
79657         * modules/unictype/bidicategory-of-tests: New file.
79658         * modules/unictype/bidicategory-test-tests: New file.
79659         * modules/unictype/block-list-tests: New file.
79660         * modules/unictype/block-of-tests: New file.
79661         * modules/unictype/block-test-tests: New file.
79662         * modules/unictype/category-C-tests: New file.
79663         * modules/unictype/category-Cc-tests: New file.
79664         * modules/unictype/category-Cf-tests: New file.
79665         * modules/unictype/category-Cn-tests: New file.
79666         * modules/unictype/category-Co-tests: New file.
79667         * modules/unictype/category-Cs-tests: New file.
79668         * modules/unictype/category-L-tests: New file.
79669         * modules/unictype/category-Ll-tests: New file.
79670         * modules/unictype/category-Lm-tests: New file.
79671         * modules/unictype/category-Lo-tests: New file.
79672         * modules/unictype/category-Lt-tests: New file.
79673         * modules/unictype/category-Lu-tests: New file.
79674         * modules/unictype/category-M-tests: New file.
79675         * modules/unictype/category-Mc-tests: New file.
79676         * modules/unictype/category-Me-tests: New file.
79677         * modules/unictype/category-Mn-tests: New file.
79678         * modules/unictype/category-N-tests: New file.
79679         * modules/unictype/category-Nd-tests: New file.
79680         * modules/unictype/category-Nl-tests: New file.
79681         * modules/unictype/category-No-tests: New file.
79682         * modules/unictype/category-P-tests: New file.
79683         * modules/unictype/category-Pc-tests: New file.
79684         * modules/unictype/category-Pd-tests: New file.
79685         * modules/unictype/category-Pe-tests: New file.
79686         * modules/unictype/category-Pf-tests: New file.
79687         * modules/unictype/category-Pi-tests: New file.
79688         * modules/unictype/category-Po-tests: New file.
79689         * modules/unictype/category-Ps-tests: New file.
79690         * modules/unictype/category-S-tests: New file.
79691         * modules/unictype/category-Sc-tests: New file.
79692         * modules/unictype/category-Sk-tests: New file.
79693         * modules/unictype/category-Sm-tests: New file.
79694         * modules/unictype/category-So-tests: New file.
79695         * modules/unictype/category-Z-tests: New file.
79696         * modules/unictype/category-Zl-tests: New file.
79697         * modules/unictype/category-Zp-tests: New file.
79698         * modules/unictype/category-Zs-tests: New file.
79699         * modules/unictype/category-and-not-tests: New file.
79700         * modules/unictype/category-and-tests: New file.
79701         * modules/unictype/category-byname-tests: New file.
79702         * modules/unictype/category-name-tests: New file.
79703         * modules/unictype/category-none-tests: New file.
79704         * modules/unictype/category-of-tests: New file.
79705         * modules/unictype/category-or-tests: New file.
79706         * modules/unictype/category-test-withtable-tests: New file.
79707         * modules/unictype/combining-class-tests: New file.
79708         * modules/unictype/ctype-alnum-tests: New file.
79709         * modules/unictype/ctype-alpha-tests: New file.
79710         * modules/unictype/ctype-blank-tests: New file.
79711         * modules/unictype/ctype-cntrl-tests: New file.
79712         * modules/unictype/ctype-digit-tests: New file.
79713         * modules/unictype/ctype-graph-tests: New file.
79714         * modules/unictype/ctype-lower-tests: New file.
79715         * modules/unictype/ctype-print-tests: New file.
79716         * modules/unictype/ctype-punct-tests: New file.
79717         * modules/unictype/ctype-space-tests: New file.
79718         * modules/unictype/ctype-upper-tests: New file.
79719         * modules/unictype/ctype-xdigit-tests: New file.
79720         * modules/unictype/decimal-digit-tests: New file.
79721         * modules/unictype/digit-tests: New file.
79722         * modules/unictype/mirror-tests: New file.
79723         * modules/unictype/numeric-tests: New file.
79724         * modules/unictype/property-alphabetic-tests: New file.
79725         * modules/unictype/property-ascii-hex-digit-tests: New file.
79726         * modules/unictype/property-bidi-arabic-digit-tests: New file.
79727         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
79728         * modules/unictype/property-bidi-block-separator-tests: New file.
79729         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
79730         * modules/unictype/property-bidi-common-separator-tests: New file.
79731         * modules/unictype/property-bidi-control-tests: New file.
79732         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
79733         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
79734         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
79735         * modules/unictype/property-bidi-european-digit-tests: New file.
79736         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
79737         * modules/unictype/property-bidi-left-to-right-tests: New file.
79738         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
79739         * modules/unictype/property-bidi-other-neutral-tests: New file.
79740         * modules/unictype/property-bidi-pdf-tests: New file.
79741         * modules/unictype/property-bidi-segment-separator-tests: New file.
79742         * modules/unictype/property-bidi-whitespace-tests: New file.
79743         * modules/unictype/property-byname-tests: New file.
79744         * modules/unictype/property-combining-tests: New file.
79745         * modules/unictype/property-composite-tests: New file.
79746         * modules/unictype/property-currency-symbol-tests: New file.
79747         * modules/unictype/property-dash-tests: New file.
79748         * modules/unictype/property-decimal-digit-tests: New file.
79749         * modules/unictype/property-default-ignorable-code-point-tests: New file.
79750         * modules/unictype/property-deprecated-tests: New file.
79751         * modules/unictype/property-diacritic-tests: New file.
79752         * modules/unictype/property-extender-tests: New file.
79753         * modules/unictype/property-format-control-tests: New file.
79754         * modules/unictype/property-grapheme-base-tests: New file.
79755         * modules/unictype/property-grapheme-extend-tests: New file.
79756         * modules/unictype/property-grapheme-link-tests: New file.
79757         * modules/unictype/property-hex-digit-tests: New file.
79758         * modules/unictype/property-hyphen-tests: New file.
79759         * modules/unictype/property-id-continue-tests: New file.
79760         * modules/unictype/property-id-start-tests: New file.
79761         * modules/unictype/property-ideographic-tests: New file.
79762         * modules/unictype/property-ids-binary-operator-tests: New file.
79763         * modules/unictype/property-ids-trinary-operator-tests: New file.
79764         * modules/unictype/property-ignorable-control-tests: New file.
79765         * modules/unictype/property-iso-control-tests: New file.
79766         * modules/unictype/property-join-control-tests: New file.
79767         * modules/unictype/property-left-of-pair-tests: New file.
79768         * modules/unictype/property-line-separator-tests: New file.
79769         * modules/unictype/property-logical-order-exception-tests: New file.
79770         * modules/unictype/property-lowercase-tests: New file.
79771         * modules/unictype/property-math-tests: New file.
79772         * modules/unictype/property-non-break-tests: New file.
79773         * modules/unictype/property-not-a-character-tests: New file.
79774         * modules/unictype/property-numeric-tests: New file.
79775         * modules/unictype/property-other-alphabetic-tests: New file.
79776         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
79777         * modules/unictype/property-other-grapheme-extend-tests: New file.
79778         * modules/unictype/property-other-id-continue-tests: New file.
79779         * modules/unictype/property-other-id-start-tests: New file.
79780         * modules/unictype/property-other-lowercase-tests: New file.
79781         * modules/unictype/property-other-math-tests: New file.
79782         * modules/unictype/property-other-uppercase-tests: New file.
79783         * modules/unictype/property-paired-punctuation-tests: New file.
79784         * modules/unictype/property-paragraph-separator-tests: New file.
79785         * modules/unictype/property-pattern-syntax-tests: New file.
79786         * modules/unictype/property-pattern-white-space-tests: New file.
79787         * modules/unictype/property-private-use-tests: New file.
79788         * modules/unictype/property-punctuation-tests: New file.
79789         * modules/unictype/property-quotation-mark-tests: New file.
79790         * modules/unictype/property-radical-tests: New file.
79791         * modules/unictype/property-sentence-terminal-tests: New file.
79792         * modules/unictype/property-soft-dotted-tests: New file.
79793         * modules/unictype/property-space-tests: New file.
79794         * modules/unictype/property-terminal-punctuation-tests: New file.
79795         * modules/unictype/property-test-tests: New file.
79796         * modules/unictype/property-titlecase-tests: New file.
79797         * modules/unictype/property-unassigned-code-value-tests: New file.
79798         * modules/unictype/property-unified-ideograph-tests: New file.
79799         * modules/unictype/property-uppercase-tests: New file.
79800         * modules/unictype/property-variation-selector-tests: New file.
79801         * modules/unictype/property-white-space-tests: New file.
79802         * modules/unictype/property-xid-continue-tests: New file.
79803         * modules/unictype/property-xid-start-tests: New file.
79804         * modules/unictype/property-zero-width-tests: New file.
79805         * modules/unictype/scripts-tests: New file.
79806         * modules/unictype/syntax-c-ident-tests: New file.
79807         * modules/unictype/syntax-c-whitespace-tests: New file.
79808         * modules/unictype/syntax-java-ident-tests: New file.
79809         * modules/unictype/syntax-java-whitespace-tests: New file.
79810         * tests/unictype/test-bidi_byname.c: New file.
79811         * tests/unictype/test-bidi_name.c: New file.
79812         * tests/unictype/test-bidi_of.c: New file.
79813         * tests/unictype/test-bidi_test.c: New file.
79814         * tests/unictype/test-block_list.c: New file.
79815         * tests/unictype/test-block_of.c: New file.
79816         * tests/unictype/test-block_test.c: New file.
79817         * tests/unictype/test-categ_and.c: New file.
79818         * tests/unictype/test-categ_and_not.c: New file.
79819         * tests/unictype/test-categ_byname.c: New file.
79820         * tests/unictype/test-categ_name.c: New file.
79821         * tests/unictype/test-categ_none.c: New file.
79822         * tests/unictype/test-categ_of.c: New file.
79823         * tests/unictype/test-categ_or.c: New file.
79824         * tests/unictype/test-categ_test_withtable.c: New file.
79825         * tests/unictype/test-combining.c: New file.
79826         * tests/unictype/test-decdigit.c: New file.
79827         * tests/unictype/test-digit.c: New file.
79828         * tests/unictype/test-mirror.c: New file.
79829         * tests/unictype/test-numeric.c: New file.
79830         * tests/unictype/test-pr_byname.c: New file.
79831         * tests/unictype/test-pr_test.c: New file.
79832         * tests/unictype/test-predicate-part1.h: New file.
79833         * tests/unictype/test-predicate-part2.h: New file.
79834         * tests/unictype/test-scripts.c: New file.
79835         * tests/unictype/test-sy_c_ident.c: New file.
79836         * tests/unictype/test-sy_java_ident.c: New file.
79838         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
79839         for Unicode 5.0.0.
79840         * tests/unictype/test-categ_Cc.c: Likewise.
79841         * tests/unictype/test-categ_Cf.c: Likewise.
79842         * tests/unictype/test-categ_Cn.c: Likewise.
79843         * tests/unictype/test-categ_Co.c: Likewise.
79844         * tests/unictype/test-categ_Cs.c: Likewise.
79845         * tests/unictype/test-categ_L.c: Likewise.
79846         * tests/unictype/test-categ_Ll.c: Likewise.
79847         * tests/unictype/test-categ_Lm.c: Likewise.
79848         * tests/unictype/test-categ_Lo.c: Likewise.
79849         * tests/unictype/test-categ_Lt.c: Likewise.
79850         * tests/unictype/test-categ_Lu.c: Likewise.
79851         * tests/unictype/test-categ_M.c: Likewise.
79852         * tests/unictype/test-categ_Mc.c: Likewise.
79853         * tests/unictype/test-categ_Me.c: Likewise.
79854         * tests/unictype/test-categ_Mn.c: Likewise.
79855         * tests/unictype/test-categ_N.c: Likewise.
79856         * tests/unictype/test-categ_Nd.c: Likewise.
79857         * tests/unictype/test-categ_Nl.c: Likewise.
79858         * tests/unictype/test-categ_No.c: Likewise.
79859         * tests/unictype/test-categ_P.c: Likewise.
79860         * tests/unictype/test-categ_Pc.c: Likewise.
79861         * tests/unictype/test-categ_Pd.c: Likewise.
79862         * tests/unictype/test-categ_Pe.c: Likewise.
79863         * tests/unictype/test-categ_Pf.c: Likewise.
79864         * tests/unictype/test-categ_Pi.c: Likewise.
79865         * tests/unictype/test-categ_Po.c: Likewise.
79866         * tests/unictype/test-categ_Ps.c: Likewise.
79867         * tests/unictype/test-categ_S.c: Likewise.
79868         * tests/unictype/test-categ_Sc.c: Likewise.
79869         * tests/unictype/test-categ_Sk.c: Likewise.
79870         * tests/unictype/test-categ_Sm.c: Likewise.
79871         * tests/unictype/test-categ_So.c: Likewise.
79872         * tests/unictype/test-categ_Z.c: Likewise.
79873         * tests/unictype/test-categ_Zl.c: Likewise.
79874         * tests/unictype/test-categ_Zp.c: Likewise.
79875         * tests/unictype/test-categ_Zs.c: Likewise.
79876         * tests/unictype/test-ctype_alnum.c: Likewise.
79877         * tests/unictype/test-ctype_alpha.c: Likewise.
79878         * tests/unictype/test-ctype_blank.c: Likewise.
79879         * tests/unictype/test-ctype_cntrl.c: Likewise.
79880         * tests/unictype/test-ctype_digit.c: Likewise.
79881         * tests/unictype/test-ctype_graph.c: Likewise.
79882         * tests/unictype/test-ctype_lower.c: Likewise.
79883         * tests/unictype/test-ctype_print.c: Likewise.
79884         * tests/unictype/test-ctype_punct.c: Likewise.
79885         * tests/unictype/test-ctype_space.c: Likewise.
79886         * tests/unictype/test-ctype_upper.c: Likewise.
79887         * tests/unictype/test-ctype_xdigit.c: Likewise.
79888         * tests/unictype/test-decdigit.h: Likewise.
79889         * tests/unictype/test-digit.h: Likewise.
79890         * tests/unictype/test-numeric.h: Likewise.
79891         * tests/unictype/test-pr_alphabetic.c: Likewise.
79892         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
79893         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
79894         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
79895         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
79896         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
79897         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
79898         * tests/unictype/test-pr_bidi_control.c: Likewise.
79899         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
79900         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
79901         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
79902         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
79903         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
79904         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
79905         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
79906         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
79907         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
79908         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
79909         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
79910         * tests/unictype/test-pr_combining.c: Likewise.
79911         * tests/unictype/test-pr_composite.c: Likewise.
79912         * tests/unictype/test-pr_currency_symbol.c: Likewise.
79913         * tests/unictype/test-pr_dash.c: Likewise.
79914         * tests/unictype/test-pr_decimal_digit.c: Likewise.
79915         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
79916         * tests/unictype/test-pr_deprecated.c: Likewise.
79917         * tests/unictype/test-pr_diacritic.c: Likewise.
79918         * tests/unictype/test-pr_extender.c: Likewise.
79919         * tests/unictype/test-pr_format_control.c: Likewise.
79920         * tests/unictype/test-pr_grapheme_base.c: Likewise.
79921         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
79922         * tests/unictype/test-pr_grapheme_link.c: Likewise.
79923         * tests/unictype/test-pr_hex_digit.c: Likewise.
79924         * tests/unictype/test-pr_hyphen.c: Likewise.
79925         * tests/unictype/test-pr_id_continue.c: Likewise.
79926         * tests/unictype/test-pr_id_start.c: Likewise.
79927         * tests/unictype/test-pr_ideographic.c: Likewise.
79928         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
79929         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
79930         * tests/unictype/test-pr_ignorable_control.c: Likewise.
79931         * tests/unictype/test-pr_iso_control.c: Likewise.
79932         * tests/unictype/test-pr_join_control.c: Likewise.
79933         * tests/unictype/test-pr_left_of_pair.c: Likewise.
79934         * tests/unictype/test-pr_line_separator.c: Likewise.
79935         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
79936         * tests/unictype/test-pr_lowercase.c: Likewise.
79937         * tests/unictype/test-pr_math.c: Likewise.
79938         * tests/unictype/test-pr_non_break.c: Likewise.
79939         * tests/unictype/test-pr_not_a_character.c: Likewise.
79940         * tests/unictype/test-pr_numeric.c: Likewise.
79941         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
79942         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
79943         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
79944         * tests/unictype/test-pr_other_id_continue.c: Likewise.
79945         * tests/unictype/test-pr_other_id_start.c: Likewise.
79946         * tests/unictype/test-pr_other_lowercase.c: Likewise.
79947         * tests/unictype/test-pr_other_math.c: Likewise.
79948         * tests/unictype/test-pr_other_uppercase.c: Likewise.
79949         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
79950         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
79951         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
79952         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
79953         * tests/unictype/test-pr_private_use.c: Likewise.
79954         * tests/unictype/test-pr_punctuation.c: Likewise.
79955         * tests/unictype/test-pr_quotation_mark.c: Likewise.
79956         * tests/unictype/test-pr_radical.c: Likewise.
79957         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
79958         * tests/unictype/test-pr_soft_dotted.c: Likewise.
79959         * tests/unictype/test-pr_space.c: Likewise.
79960         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
79961         * tests/unictype/test-pr_titlecase.c: Likewise.
79962         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
79963         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
79964         * tests/unictype/test-pr_uppercase.c: Likewise.
79965         * tests/unictype/test-pr_variation_selector.c: Likewise.
79966         * tests/unictype/test-pr_white_space.c: Likewise.
79967         * tests/unictype/test-pr_xid_continue.c: Likewise.
79968         * tests/unictype/test-pr_xid_start.c: Likewise.
79969         * tests/unictype/test-pr_zero_width.c: Likewise.
79970         * tests/unictype/test-sy_c_whitespace.c: Likewise.
79971         * tests/unictype/test-sy_java_whitespace.c: Likewise.
79973 2007-11-12  Bruno Haible  <bruno@clisp.org>
79975         Unicode character classification functions.
79976         * lib/unictype.h: New file.
79977         * modules/unictype/base: New file.
79978         * modules/unictype/category-L: New file.
79979         * modules/unictype/category-Lu: New file.
79980         * modules/unictype/category-Ll: New file.
79981         * modules/unictype/category-Lt: New file.
79982         * modules/unictype/category-Lm: New file.
79983         * modules/unictype/category-Lo: New file.
79984         * modules/unictype/category-M: New file.
79985         * modules/unictype/category-Mn: New file.
79986         * modules/unictype/category-Mc: New file.
79987         * modules/unictype/category-Me: New file.
79988         * modules/unictype/category-N: New file.
79989         * modules/unictype/category-Nd: New file.
79990         * modules/unictype/category-Nl: New file.
79991         * modules/unictype/category-No: New file.
79992         * modules/unictype/category-P: New file.
79993         * modules/unictype/category-Pc: New file.
79994         * modules/unictype/category-Pd: New file.
79995         * modules/unictype/category-Ps: New file.
79996         * modules/unictype/category-Pe: New file.
79997         * modules/unictype/category-Pi: New file.
79998         * modules/unictype/category-Pf: New file.
79999         * modules/unictype/category-Po: New file.
80000         * modules/unictype/category-S: New file.
80001         * modules/unictype/category-Sm: New file.
80002         * modules/unictype/category-Sc: New file.
80003         * modules/unictype/category-Sk: New file.
80004         * modules/unictype/category-So: New file.
80005         * modules/unictype/category-Z: New file.
80006         * modules/unictype/category-Zs: New file.
80007         * modules/unictype/category-Zl: New file.
80008         * modules/unictype/category-Zp: New file.
80009         * modules/unictype/category-C: New file.
80010         * modules/unictype/category-Cc: New file.
80011         * modules/unictype/category-Cf: New file.
80012         * modules/unictype/category-Cs: New file.
80013         * modules/unictype/category-Co: New file.
80014         * modules/unictype/category-Cn: New file.
80015         * modules/unictype/category-or: New file.
80016         * modules/unictype/category-of: New file.
80017         * modules/unictype/category-test: New file.
80018         * modules/unictype/category-test-withtable: New file.
80019         * modules/unictype/category-byname: New file.
80020         * modules/unictype/category-none: New file.
80021         * modules/unictype/category-and: New file.
80022         * modules/unictype/category-and-not: New file.
80023         * modules/unictype/category-name: New file.
80024         * modules/unictype/combining-class: New file.
80025         * modules/unictype/category-all: New file.
80026         * modules/unictype/bidicategory-all: New file.
80027         * modules/unictype/bidicategory-byname: New file.
80028         * modules/unictype/bidicategory-name: New file.
80029         * modules/unictype/bidicategory-of: New file.
80030         * modules/unictype/bidicategory-test: New file.
80031         * modules/unictype/decimal-digit: New file.
80032         * modules/unictype/digit: New file.
80033         * modules/unictype/numeric: New file.
80034         * modules/unictype/mirror: New file.
80035         * modules/unictype/property-white-space: New file.
80036         * modules/unictype/property-alphabetic: New file.
80037         * modules/unictype/property-other-alphabetic: New file.
80038         * modules/unictype/property-not-a-character: New file.
80039         * modules/unictype/property-default-ignorable-code-point: New file.
80040         * modules/unictype/property-other-default-ignorable-code-point: New
80041         file.
80042         * modules/unictype/property-deprecated: New file.
80043         * modules/unictype/property-logical-order-exception: New file.
80044         * modules/unictype/property-variation-selector: New file.
80045         * modules/unictype/property-private-use: New file.
80046         * modules/unictype/property-unassigned-code-value: New file.
80047         * modules/unictype/property-uppercase: New file.
80048         * modules/unictype/property-other-uppercase: New file.
80049         * modules/unictype/property-lowercase: New file.
80050         * modules/unictype/property-other-lowercase: New file.
80051         * modules/unictype/property-titlecase: New file.
80052         * modules/unictype/property-soft-dotted: New file.
80053         * modules/unictype/property-id-start: New file.
80054         * modules/unictype/property-other-id-start: New file.
80055         * modules/unictype/property-id-continue: New file.
80056         * modules/unictype/property-other-id-continue: New file.
80057         * modules/unictype/property-xid-start: New file.
80058         * modules/unictype/property-xid-continue: New file.
80059         * modules/unictype/property-pattern-white-space: New file.
80060         * modules/unictype/property-pattern-syntax: New file.
80061         * modules/unictype/property-join-control: New file.
80062         * modules/unictype/property-grapheme-base: New file.
80063         * modules/unictype/property-grapheme-extend: New file.
80064         * modules/unictype/property-other-grapheme-extend: New file.
80065         * modules/unictype/property-grapheme-link: New file.
80066         * modules/unictype/property-bidi-control: New file.
80067         * modules/unictype/property-bidi-left-to-right: New file.
80068         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
80069         * modules/unictype/property-bidi-arabic-right-to-left: New file.
80070         * modules/unictype/property-bidi-european-digit: New file.
80071         * modules/unictype/property-bidi-eur-num-separator: New file.
80072         * modules/unictype/property-bidi-eur-num-terminator: New file.
80073         * modules/unictype/property-bidi-arabic-digit: New file.
80074         * modules/unictype/property-bidi-common-separator: New file.
80075         * modules/unictype/property-bidi-block-separator: New file.
80076         * modules/unictype/property-bidi-segment-separator: New file.
80077         * modules/unictype/property-bidi-whitespace: New file.
80078         * modules/unictype/property-bidi-non-spacing-mark: New file.
80079         * modules/unictype/property-bidi-boundary-neutral: New file.
80080         * modules/unictype/property-bidi-pdf: New file.
80081         * modules/unictype/property-bidi-embedding-or-override: New file.
80082         * modules/unictype/property-bidi-other-neutral: New file.
80083         * modules/unictype/property-hex-digit: New file.
80084         * modules/unictype/property-ascii-hex-digit: New file.
80085         * modules/unictype/property-ideographic: New file.
80086         * modules/unictype/property-unified-ideograph: New file.
80087         * modules/unictype/property-radical: New file.
80088         * modules/unictype/property-ids-binary-operator: New file.
80089         * modules/unictype/property-ids-trinary-operator: New file.
80090         * modules/unictype/property-zero-width: New file.
80091         * modules/unictype/property-space: New file.
80092         * modules/unictype/property-non-break: New file.
80093         * modules/unictype/property-iso-control: New file.
80094         * modules/unictype/property-format-control: New file.
80095         * modules/unictype/property-dash: New file.
80096         * modules/unictype/property-hyphen: New file.
80097         * modules/unictype/property-punctuation: New file.
80098         * modules/unictype/property-line-separator: New file.
80099         * modules/unictype/property-paragraph-separator: New file.
80100         * modules/unictype/property-quotation-mark: New file.
80101         * modules/unictype/property-sentence-terminal: New file.
80102         * modules/unictype/property-terminal-punctuation: New file.
80103         * modules/unictype/property-currency-symbol: New file.
80104         * modules/unictype/property-math: New file.
80105         * modules/unictype/property-other-math: New file.
80106         * modules/unictype/property-paired-punctuation: New file.
80107         * modules/unictype/property-left-of-pair: New file.
80108         * modules/unictype/property-combining: New file.
80109         * modules/unictype/property-composite: New file.
80110         * modules/unictype/property-decimal-digit: New file.
80111         * modules/unictype/property-numeric: New file.
80112         * modules/unictype/property-diacritic: New file.
80113         * modules/unictype/property-extender: New file.
80114         * modules/unictype/property-ignorable-control: New file.
80115         * modules/unictype/property-test: New file.
80116         * modules/unictype/property-byname: New file.
80117         * modules/unictype/property-all: New file.
80118         * modules/unictype/scripts: New file.
80119         * modules/unictype/scripts-all: New file.
80120         * modules/unictype/block-of: New file.
80121         * modules/unictype/block-test: New file.
80122         * modules/unictype/block-list: New file.
80123         * modules/unictype/block-all: New file.
80124         * modules/unictype/syntax-c-whitespace: New file.
80125         * modules/unictype/syntax-java-whitespace: New file.
80126         * modules/unictype/syntax-c-ident: New file.
80127         * modules/unictype/syntax-java-ident: New file.
80128         * modules/unictype/ctype-alnum: New file.
80129         * modules/unictype/ctype-alpha: New file.
80130         * modules/unictype/ctype-cntrl: New file.
80131         * modules/unictype/ctype-digit: New file.
80132         * modules/unictype/ctype-graph: New file.
80133         * modules/unictype/ctype-lower: New file.
80134         * modules/unictype/ctype-print: New file.
80135         * modules/unictype/ctype-punct: New file.
80136         * modules/unictype/ctype-space: New file.
80137         * modules/unictype/ctype-upper: New file.
80138         * modules/unictype/ctype-xdigit: New file.
80139         * modules/unictype/ctype-blank: New file.
80140         * lib/unictype/bidi_byname.c: New file.
80141         * lib/unictype/bidi_name.c: New file.
80142         * lib/unictype/bidi_of.c: New file.
80143         * lib/unictype/bidi_test.c: New file.
80144         * lib/unictype/bitmap.h: New file.
80145         * lib/unictype/block_test.c: New file.
80146         * lib/unictype/blocks.c: New file.
80147         * lib/unictype/categ_C.c: New file.
80148         * lib/unictype/categ_Cc.c: New file.
80149         * lib/unictype/categ_Cf.c: New file.
80150         * lib/unictype/categ_Cn.c: New file.
80151         * lib/unictype/categ_Co.c: New file.
80152         * lib/unictype/categ_Cs.c: New file.
80153         * lib/unictype/categ_L.c: New file.
80154         * lib/unictype/categ_Ll.c: New file.
80155         * lib/unictype/categ_Lm.c: New file.
80156         * lib/unictype/categ_Lo.c: New file.
80157         * lib/unictype/categ_Lt.c: New file.
80158         * lib/unictype/categ_Lu.c: New file.
80159         * lib/unictype/categ_M.c: New file.
80160         * lib/unictype/categ_Mc.c: New file.
80161         * lib/unictype/categ_Me.c: New file.
80162         * lib/unictype/categ_Mn.c: New file.
80163         * lib/unictype/categ_N.c: New file.
80164         * lib/unictype/categ_Nd.c: New file.
80165         * lib/unictype/categ_Nl.c: New file.
80166         * lib/unictype/categ_No.c: New file.
80167         * lib/unictype/categ_P.c: New file.
80168         * lib/unictype/categ_Pc.c: New file.
80169         * lib/unictype/categ_Pd.c: New file.
80170         * lib/unictype/categ_Pe.c: New file.
80171         * lib/unictype/categ_Pf.c: New file.
80172         * lib/unictype/categ_Pi.c: New file.
80173         * lib/unictype/categ_Po.c: New file.
80174         * lib/unictype/categ_Ps.c: New file.
80175         * lib/unictype/categ_S.c: New file.
80176         * lib/unictype/categ_Sc.c: New file.
80177         * lib/unictype/categ_Sk.c: New file.
80178         * lib/unictype/categ_Sm.c: New file.
80179         * lib/unictype/categ_So.c: New file.
80180         * lib/unictype/categ_Z.c: New file.
80181         * lib/unictype/categ_Zl.c: New file.
80182         * lib/unictype/categ_Zp.c: New file.
80183         * lib/unictype/categ_Zs.c: New file.
80184         * lib/unictype/categ_and.c: New file.
80185         * lib/unictype/categ_and_not.c: New file.
80186         * lib/unictype/categ_byname.c: New file.
80187         * lib/unictype/categ_name.c: New file.
80188         * lib/unictype/categ_none.c: New file.
80189         * lib/unictype/categ_of.c: New file.
80190         * lib/unictype/categ_or.c: New file.
80191         * lib/unictype/categ_test.c: New file.
80192         * lib/unictype/combining.c: New file.
80193         * lib/unictype/ctype_alnum.c: New file.
80194         * lib/unictype/ctype_alpha.c: New file.
80195         * lib/unictype/ctype_blank.c: New file.
80196         * lib/unictype/ctype_cntrl.c: New file.
80197         * lib/unictype/ctype_digit.c: New file.
80198         * lib/unictype/ctype_graph.c: New file.
80199         * lib/unictype/ctype_lower.c: New file.
80200         * lib/unictype/ctype_print.c: New file.
80201         * lib/unictype/ctype_punct.c: New file.
80202         * lib/unictype/ctype_space.c: New file.
80203         * lib/unictype/ctype_upper.c: New file.
80204         * lib/unictype/ctype_xdigit.c: New file.
80205         * lib/unictype/decdigit.c: New file.
80206         * lib/unictype/digit.c: New file.
80207         * lib/unictype/identsyntaxmap.h: New file.
80208         * lib/unictype/mirror.c: New file.
80209         * lib/unictype/numeric.c: New file.
80210         * lib/unictype/pr_alphabetic.c: New file.
80211         * lib/unictype/pr_ascii_hex_digit.c: New file.
80212         * lib/unictype/pr_bidi_arabic_digit.c: New file.
80213         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
80214         * lib/unictype/pr_bidi_block_separator.c: New file.
80215         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
80216         * lib/unictype/pr_bidi_common_separator.c: New file.
80217         * lib/unictype/pr_bidi_control.c: New file.
80218         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
80219         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
80220         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
80221         * lib/unictype/pr_bidi_european_digit.c: New file.
80222         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
80223         * lib/unictype/pr_bidi_left_to_right.c: New file.
80224         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
80225         * lib/unictype/pr_bidi_other_neutral.c: New file.
80226         * lib/unictype/pr_bidi_pdf.c: New file.
80227         * lib/unictype/pr_bidi_segment_separator.c: New file.
80228         * lib/unictype/pr_bidi_whitespace.c: New file.
80229         * lib/unictype/pr_byname.c: New file.
80230         * lib/unictype/pr_byname.gperf: New file.
80231         * lib/unictype/pr_combining.c: New file.
80232         * lib/unictype/pr_composite.c: New file.
80233         * lib/unictype/pr_currency_symbol.c: New file.
80234         * lib/unictype/pr_dash.c: New file.
80235         * lib/unictype/pr_decimal_digit.c: New file.
80236         * lib/unictype/pr_default_ignorable_code_point.c: New file.
80237         * lib/unictype/pr_deprecated.c: New file.
80238         * lib/unictype/pr_diacritic.c: New file.
80239         * lib/unictype/pr_extender.c: New file.
80240         * lib/unictype/pr_format_control.c: New file.
80241         * lib/unictype/pr_grapheme_base.c: New file.
80242         * lib/unictype/pr_grapheme_extend.c: New file.
80243         * lib/unictype/pr_grapheme_link.c: New file.
80244         * lib/unictype/pr_hex_digit.c: New file.
80245         * lib/unictype/pr_hyphen.c: New file.
80246         * lib/unictype/pr_id_continue.c: New file.
80247         * lib/unictype/pr_id_start.c: New file.
80248         * lib/unictype/pr_ideographic.c: New file.
80249         * lib/unictype/pr_ids_binary_operator.c: New file.
80250         * lib/unictype/pr_ids_trinary_operator.c: New file.
80251         * lib/unictype/pr_ignorable_control.c: New file.
80252         * lib/unictype/pr_iso_control.c: New file.
80253         * lib/unictype/pr_join_control.c: New file.
80254         * lib/unictype/pr_left_of_pair.c: New file.
80255         * lib/unictype/pr_line_separator.c: New file.
80256         * lib/unictype/pr_logical_order_exception.c: New file.
80257         * lib/unictype/pr_lowercase.c: New file.
80258         * lib/unictype/pr_math.c: New file.
80259         * lib/unictype/pr_non_break.c: New file.
80260         * lib/unictype/pr_not_a_character.c: New file.
80261         * lib/unictype/pr_numeric.c: New file.
80262         * lib/unictype/pr_other_alphabetic.c: New file.
80263         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
80264         * lib/unictype/pr_other_grapheme_extend.c: New file.
80265         * lib/unictype/pr_other_id_continue.c: New file.
80266         * lib/unictype/pr_other_id_start.c: New file.
80267         * lib/unictype/pr_other_lowercase.c: New file.
80268         * lib/unictype/pr_other_math.c: New file.
80269         * lib/unictype/pr_other_uppercase.c: New file.
80270         * lib/unictype/pr_paired_punctuation.c: New file.
80271         * lib/unictype/pr_paragraph_separator.c: New file.
80272         * lib/unictype/pr_pattern_syntax.c: New file.
80273         * lib/unictype/pr_pattern_white_space.c: New file.
80274         * lib/unictype/pr_private_use.c: New file.
80275         * lib/unictype/pr_punctuation.c: New file.
80276         * lib/unictype/pr_quotation_mark.c: New file.
80277         * lib/unictype/pr_radical.c: New file.
80278         * lib/unictype/pr_sentence_terminal.c: New file.
80279         * lib/unictype/pr_soft_dotted.c: New file.
80280         * lib/unictype/pr_space.c: New file.
80281         * lib/unictype/pr_terminal_punctuation.c: New file.
80282         * lib/unictype/pr_test.c: New file.
80283         * lib/unictype/pr_titlecase.c: New file.
80284         * lib/unictype/pr_unassigned_code_value.c: New file.
80285         * lib/unictype/pr_unified_ideograph.c: New file.
80286         * lib/unictype/pr_uppercase.c: New file.
80287         * lib/unictype/pr_variation_selector.c: New file.
80288         * lib/unictype/pr_white_space.c: New file.
80289         * lib/unictype/pr_xid_continue.c: New file.
80290         * lib/unictype/pr_xid_start.c: New file.
80291         * lib/unictype/pr_zero_width.c: New file.
80292         * lib/unictype/scripts.c: New file.
80293         * lib/unictype/sy_c_ident.c: New file.
80294         * lib/unictype/sy_c_whitespace.c: New file.
80295         * lib/unictype/sy_java_ident.c: New file.
80296         * lib/unictype/sy_java_whitespace.c: New file.
80298         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
80299         Unicode 5.0.0.
80300         * lib/unictype/blocks.h: Likewise.
80301         * lib/unictype/categ_C.h: Likewise.
80302         * lib/unictype/categ_Cc.h: Likewise.
80303         * lib/unictype/categ_Cf.h: Likewise.
80304         * lib/unictype/categ_Cn.h: Likewise.
80305         * lib/unictype/categ_Co.h: Likewise.
80306         * lib/unictype/categ_Cs.h: Likewise.
80307         * lib/unictype/categ_L.h: Likewise.
80308         * lib/unictype/categ_Ll.h: Likewise.
80309         * lib/unictype/categ_Lm.h: Likewise.
80310         * lib/unictype/categ_Lo.h: Likewise.
80311         * lib/unictype/categ_Lt.h: Likewise.
80312         * lib/unictype/categ_Lu.h: Likewise.
80313         * lib/unictype/categ_M.h: Likewise.
80314         * lib/unictype/categ_Mc.h: Likewise.
80315         * lib/unictype/categ_Me.h: Likewise.
80316         * lib/unictype/categ_Mn.h: Likewise.
80317         * lib/unictype/categ_N.h: Likewise.
80318         * lib/unictype/categ_Nd.h: Likewise.
80319         * lib/unictype/categ_Nl.h: Likewise.
80320         * lib/unictype/categ_No.h: Likewise.
80321         * lib/unictype/categ_P.h: Likewise.
80322         * lib/unictype/categ_Pc.h: Likewise.
80323         * lib/unictype/categ_Pd.h: Likewise.
80324         * lib/unictype/categ_Pe.h: Likewise.
80325         * lib/unictype/categ_Pf.h: Likewise.
80326         * lib/unictype/categ_Pi.h: Likewise.
80327         * lib/unictype/categ_Po.h: Likewise.
80328         * lib/unictype/categ_Ps.h: Likewise.
80329         * lib/unictype/categ_S.h: Likewise.
80330         * lib/unictype/categ_Sc.h: Likewise.
80331         * lib/unictype/categ_Sk.h: Likewise.
80332         * lib/unictype/categ_Sm.h: Likewise.
80333         * lib/unictype/categ_So.h: Likewise.
80334         * lib/unictype/categ_Z.h: Likewise.
80335         * lib/unictype/categ_Zl.h: Likewise.
80336         * lib/unictype/categ_Zp.h: Likewise.
80337         * lib/unictype/categ_Zs.h: Likewise.
80338         * lib/unictype/categ_of.h: Likewise.
80339         * lib/unictype/combining.h: Likewise.
80340         * lib/unictype/ctype_alnum.h: Likewise.
80341         * lib/unictype/ctype_alpha.h: Likewise.
80342         * lib/unictype/ctype_blank.h: Likewise.
80343         * lib/unictype/ctype_cntrl.h: Likewise.
80344         * lib/unictype/ctype_digit.h: Likewise.
80345         * lib/unictype/ctype_graph.h: Likewise.
80346         * lib/unictype/ctype_lower.h: Likewise.
80347         * lib/unictype/ctype_print.h: Likewise.
80348         * lib/unictype/ctype_punct.h: Likewise.
80349         * lib/unictype/ctype_space.h: Likewise.
80350         * lib/unictype/ctype_upper.h: Likewise.
80351         * lib/unictype/ctype_xdigit.h: Likewise.
80352         * lib/unictype/decdigit.h: Likewise.
80353         * lib/unictype/digit.h: Likewise.
80354         * lib/unictype/mirror.h: Likewise.
80355         * lib/unictype/numeric.h: Likewise.
80356         * lib/unictype/pr_alphabetic.h: Likewise.
80357         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
80358         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
80359         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
80360         * lib/unictype/pr_bidi_block_separator.h: Likewise.
80361         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
80362         * lib/unictype/pr_bidi_common_separator.h: Likewise.
80363         * lib/unictype/pr_bidi_control.h: Likewise.
80364         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
80365         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
80366         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
80367         * lib/unictype/pr_bidi_european_digit.h: Likewise.
80368         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
80369         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
80370         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
80371         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
80372         * lib/unictype/pr_bidi_pdf.h: Likewise.
80373         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
80374         * lib/unictype/pr_bidi_whitespace.h: Likewise.
80375         * lib/unictype/pr_combining.h: Likewise.
80376         * lib/unictype/pr_composite.h: Likewise.
80377         * lib/unictype/pr_currency_symbol.h: Likewise.
80378         * lib/unictype/pr_dash.h: Likewise.
80379         * lib/unictype/pr_decimal_digit.h: Likewise.
80380         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
80381         * lib/unictype/pr_deprecated.h: Likewise.
80382         * lib/unictype/pr_diacritic.h: Likewise.
80383         * lib/unictype/pr_extender.h: Likewise.
80384         * lib/unictype/pr_format_control.h: Likewise.
80385         * lib/unictype/pr_grapheme_base.h: Likewise.
80386         * lib/unictype/pr_grapheme_extend.h: Likewise.
80387         * lib/unictype/pr_grapheme_link.h: Likewise.
80388         * lib/unictype/pr_hex_digit.h: Likewise.
80389         * lib/unictype/pr_hyphen.h: Likewise.
80390         * lib/unictype/pr_id_continue.h: Likewise.
80391         * lib/unictype/pr_id_start.h: Likewise.
80392         * lib/unictype/pr_ideographic.h: Likewise.
80393         * lib/unictype/pr_ids_binary_operator.h: Likewise.
80394         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
80395         * lib/unictype/pr_ignorable_control.h: Likewise.
80396         * lib/unictype/pr_iso_control.h: Likewise.
80397         * lib/unictype/pr_join_control.h: Likewise.
80398         * lib/unictype/pr_left_of_pair.h: Likewise.
80399         * lib/unictype/pr_line_separator.h: Likewise.
80400         * lib/unictype/pr_logical_order_exception.h: Likewise.
80401         * lib/unictype/pr_lowercase.h: Likewise.
80402         * lib/unictype/pr_math.h: Likewise.
80403         * lib/unictype/pr_non_break.h: Likewise.
80404         * lib/unictype/pr_not_a_character.h: Likewise.
80405         * lib/unictype/pr_numeric.h: Likewise.
80406         * lib/unictype/pr_other_alphabetic.h: Likewise.
80407         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
80408         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
80409         * lib/unictype/pr_other_id_continue.h: Likewise.
80410         * lib/unictype/pr_other_id_start.h: Likewise.
80411         * lib/unictype/pr_other_lowercase.h: Likewise.
80412         * lib/unictype/pr_other_math.h: Likewise.
80413         * lib/unictype/pr_other_uppercase.h: Likewise.
80414         * lib/unictype/pr_paired_punctuation.h: Likewise.
80415         * lib/unictype/pr_paragraph_separator.h: Likewise.
80416         * lib/unictype/pr_pattern_syntax.h: Likewise.
80417         * lib/unictype/pr_pattern_white_space.h: Likewise.
80418         * lib/unictype/pr_private_use.h: Likewise.
80419         * lib/unictype/pr_punctuation.h: Likewise.
80420         * lib/unictype/pr_quotation_mark.h: Likewise.
80421         * lib/unictype/pr_radical.h: Likewise.
80422         * lib/unictype/pr_sentence_terminal.h: Likewise.
80423         * lib/unictype/pr_soft_dotted.h: Likewise.
80424         * lib/unictype/pr_space.h: Likewise.
80425         * lib/unictype/pr_terminal_punctuation.h: Likewise.
80426         * lib/unictype/pr_titlecase.h: Likewise.
80427         * lib/unictype/pr_unassigned_code_value.h: Likewise.
80428         * lib/unictype/pr_unified_ideograph.h: Likewise.
80429         * lib/unictype/pr_uppercase.h: Likewise.
80430         * lib/unictype/pr_variation_selector.h: Likewise.
80431         * lib/unictype/pr_white_space.h: Likewise.
80432         * lib/unictype/pr_xid_continue.h: Likewise.
80433         * lib/unictype/pr_xid_start.h: Likewise.
80434         * lib/unictype/pr_zero_width.h: Likewise.
80435         * lib/unictype/scripts.h: Likewise.
80436         * lib/unictype/scripts_byname.gperf: Likewise.
80437         * lib/unictype/sy_c_ident.h: Likewise.
80438         * lib/unictype/sy_c_whitespace.h: Likewise.
80439         * lib/unictype/sy_java_ident.h: Likewise.
80440         * lib/unictype/sy_java_whitespace.h: Likewise.
80442         * lib/unictype/Makefile: New file.
80443         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
80444         glibc.
80445         * lib/unictype/3level.h: New file, copied from glibc.
80446         * lib/unictype/3levelbit.h: New file.
80448 2007-11-11  Bruno Haible  <bruno@clisp.org>
80450         * modules/gperf: New file.
80451         * modules/iconv_open (Depends-on): Add it.
80452         (Makefile.am): Remove the GPERF definition.
80454 2007-11-11  Bruno Haible  <bruno@clisp.org>
80456         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
80457         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
80459 2007-11-11  Bruno Haible  <bruno@clisp.org>
80461         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
80462         (usage): Remove function.
80464 2007-11-11  Bruno Haible  <bruno@clisp.org>
80466         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
80467         gl_FUNC_CEILF_LIBS.
80468         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
80469         gl_FUNC_CEIL_LIBS.
80470         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
80471         gl_FUNC_CEILL_LIBS.
80472         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
80473         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
80474         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
80476 2007-11-11  Bruno Haible  <bruno@clisp.org>
80478         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
80479         roundf were declared but do not exist on functions.
80480         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
80481         roundl were declared but do not exist on functions.
80482         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
80483         HAVE_FLOORL_AND_CEILL, respectively.
80484         Needed for Sun C on Solaris 10.
80486 2007-11-11  Bruno Haible  <bruno@clisp.org>
80488         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
80489         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
80490         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
80491         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
80492         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
80493         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
80494         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
80495         HAVE_DECL_ROUNDF.
80496         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
80497         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
80498         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
80499         of HAVE_DECL_ROUND*.
80500         * modules/math (Makefile.am): Update.
80502 2007-11-10  Bruno Haible  <bruno@clisp.org>
80504         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
80505         ptrdiff_t as m4/intl.m4.
80507 2007-11-10  Jim Meyering  <meyering@redhat.com>
80509         Avoid link failure for the argmatch test.
80510         * tests/test-argmatch.c (usage): Define function to avoid a link
80511         failure: argmatch_die requires a usage function.
80513 2007-11-09  Bruno Haible  <bruno@clisp.org>
80515         * doc/functions/snprintf.texi: Mention BeOS deficiency.
80516         * doc/functions/vsnprintf.texi: Likewise.
80517         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
80518         with a size argument < 2.
80520 2007-11-09  Bruno Haible  <bruno@clisp.org>
80522         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
80523         buffer. Fixes an inefficiency introduced on 2007-11-03.
80525 2007-11-09  Bruno Haible  <bruno@clisp.org>
80527         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
80528         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
80530 2007-11-08  Jim Meyering  <meyering@redhat.com>
80532         Change cache variable name prefix "jm_" to "gl_" everywhere.
80533         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
80534         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
80535         * m4/uptime.m4: s/gl_/jm_/
80537 2007-11-07  Bruno Haible  <bruno@clisp.org>
80539         Update to GNU gettext 0.17.
80540         * m4/intl.m4: Update to GNU gettext 0.17.
80541         * m4/po.m4: Likewise.
80542         * modules/gettext (Files): Remove m4/ulonglong.m4.
80543         (configure.ac): Require gettext infrastructure from version 0.17.
80545 2007-11-06  Bruno Haible  <bruno@clisp.org>
80547         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
80548         symbolic values are not defined in a public header.
80549         * lib/freadable.c (freadable) [QNX]: Likewise.
80550         * lib/freadahead.c (freadahead) [QNX]: Likewise.
80551         * lib/freading.c (freading) [QNX]: Likewise.
80552         * lib/fseterr.c (fseterr) [QNX]: Likewise.
80553         * lib/fwritable.c (fwritable) [QNX]: Likewise.
80554         * lib/fwriting.c (fwriting) [QNX]: Likewise.
80555         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
80556         Reported by Alain Magloire.
80558         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
80560 2007-11-05  Bruno Haible  <bruno@clisp.org>
80562         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
80563         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
80564         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
80565         Reported by Eric Blake.
80567 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80568             Bruno Haible  <bruno@clisp.org>
80570         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
80571         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
80572         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
80573         (malloc): Undefine also before including <stdlib.h>.
80574         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
80575         Needed on OSF/1 4.0.
80577 2007-11-05  Jim Meyering  <meyering@redhat.com>
80579         git-version-gen: sync from coreutils.
80580         * build-aux/git-version-gen: Add comments.
80581         Change the first '-' to '.' in the snapshot version string,
80582         e.g., 6.9-377-08144 -> 6.9.377-08144
80583         Remove first parameter.
80584         Don't declare a version "-dirty" merely because a time
80585         stamp has changed.
80587 2007-11-04  Bruno Haible  <bruno@clisp.org>
80589         * lib/lock.h: Protect all macro definitions containing an 'if'
80590         statement through a "do { ... } while (0)".
80591         * lib/tls.h: Likewise.
80593 2007-11-04  Bruno Haible  <bruno@clisp.org>
80595         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
80597 2007-11-04  Bruno Haible  <bruno@clisp.org>
80599         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
80600         * modules/fprintf-posix (Depends-on): Add nocrash.
80601         * modules/snprintf-posix (Depends-on): Likewise.
80602         * modules/sprintf-posix (Depends-on): Likewise.
80603         * modules/vasnprintf-posix (Depends-on): Likewise.
80604         * modules/vasprintf-posix (Depends-on): Likewise.
80605         * modules/vfprintf-posix (Depends-on): Likewise.
80606         * modules/vsnprintf-posix (Depends-on): Likewise.
80607         * modules/vsprintf-posix (Depends-on): Likewise.
80608         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
80609         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
80610         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
80611         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
80612         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
80613         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
80614         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
80616 2007-11-04  Bruno Haible  <bruno@clisp.org>
80618         * modules/nocrash: New file.
80619         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
80620         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
80622 2007-11-04  Bruno Haible  <bruno@clisp.org>
80624         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
80625         precision handling.
80626         * tests/test-vasprintf-posix.c (test_function): Likewise.
80627         * tests/test-snprintf-posix.h (test_function): Likewise.
80628         * tests/test-sprintf-posix.h (test_function): Likewise.
80630         Fix *printf behaviour for large precisions on mingw and BeOS.
80631         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
80632         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
80633         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
80634         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
80635         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
80636         gl_PRINTF_PRECISION and test its result. Invoke
80637         gl_PREREQ_VASNPRINTF_PRECISION.
80638         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
80639         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
80640         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
80641         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
80642         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
80643         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
80644         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
80645         * doc/functions/fprintf.texi: Update.
80646         * doc/functions/printf.texi: Update.
80647         * doc/functions/snprintf.texi: Update.
80648         * doc/functions/sprintf.texi: Update.
80649         * doc/functions/vfprintf.texi: Update.
80650         * doc/functions/vprintf.texi: Update.
80651         * doc/functions/vsnprintf.texi: Update.
80652         * doc/functions/vsprintf.texi: Update.
80654 2007-11-04  Bruno Haible  <bruno@clisp.org>
80656         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
80658 2007-11-04  Bruno Haible  <bruno@clisp.org>
80660         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
80661         Reported by Sylvain Beucler <beuc@gnu.org>.
80663 2007-11-03  Bruno Haible  <bruno@clisp.org>
80665         * tests/test-fprintf-posix2.sh: New file.
80666         * tests/test-fprintf-posix2.c: New file.
80667         * modules/fprintf-posix-tests (Files): Add them.
80668         (TESTS): Add test-fprintf-posix2.sh.
80669         (configure.ac): Check for getrlimit and setrlimit.
80670         (check_PROGRAMS): Add test-fprintf-posix2.
80672         * tests/test-printf-posix2.sh: New file.
80673         * tests/test-printf-posix2.c: New file.
80674         * modules/printf-posix-tests (Files): Add them.
80675         (TESTS): Add test-printf-posix2.sh.
80676         (configure.ac): Check for getrlimit and setrlimit.
80677         (check_PROGRAMS): Add test-printf-posix2.
80679         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
80680         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
80681         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
80682         (decode_double): New function, copied from decode_long_double.
80683         (scale10_round_decimal_decoded): New function, extracted from
80684         scale10_round_decimal_long_double.
80685         (scale10_round_decimal_long_double): Use it.
80686         (scale10_round_decimal_double): New function.
80687         (floorlog10): New function.
80688         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
80689         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
80690         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
80691         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
80692         gl_PRINTF_ENOMEM and test its result. Invoke
80693         gl_PREREQ_VASNPRINTF_ENOMEM.
80694         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
80695         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
80696         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
80697         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
80698         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
80699         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
80700         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
80701         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
80702         * modules/snprintf-posix (Depends-on): Likewise.
80703         * modules/sprintf-posix (Depends-on): Likewise.
80704         * modules/vasnprintf-posix (Depends-on): Likewise.
80705         * modules/vasprintf-posix (Depends-on): Likewise.
80706         * modules/vfprintf-posix (Depends-on): Likewise.
80707         * modules/vsnprintf-posix (Depends-on): Likewise.
80708         * modules/vsprintf-posix (Depends-on): Likewise.
80709         * doc/functions/fprintf.texi: Update.
80710         * doc/functions/printf.texi: Update.
80711         * doc/functions/snprintf.texi: Update.
80712         * doc/functions/sprintf.texi: Update.
80713         * doc/functions/vfprintf.texi: Update.
80714         * doc/functions/vprintf.texi: Update.
80715         * doc/functions/vsnprintf.texi: Update.
80716         * doc/functions/vsprintf.texi: Update.
80718 2007-11-03  Bruno Haible  <bruno@clisp.org>
80720         * modules/frexp-nolibm-tests: New file.
80722         * modules/frexp-nolibm: New file.
80723         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
80725 2007-11-03  Bruno Haible  <bruno@clisp.org>
80727         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
80728         value is C99 compliant.
80729         Needed for OSF/1 5.1.
80731 2007-11-03  Bruno Haible  <bruno@clisp.org>
80733         Fix out-of-memory handling of vasnprintf.
80734         * lib/printf-parse.c: Include <errno.h>.
80735         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
80736         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
80737         is already set.
80739 2007-11-02  Eric Blake  <ebb9@byu.net>
80741         Fix tests on cygwin.
80742         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
80744 2007-11-01  Bruno Haible  <bruno@clisp.org>
80746         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
80747         warning.
80748         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
80749         needed for POSIX compatibility.
80751 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
80753         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
80754         for compatibility with GNU.
80756 2007-11-01  Bruno Haible  <bruno@clisp.org>
80758         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
80759         (putenv): Renamed from rpl_putenv. Change argument type from
80760         'const char *' to 'char *'.
80761         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
80762         of defining putenv in config.h, just set REPLACE_PUTENV.
80763         * modules/putenv (Depends-on): Add stdlib.
80764         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
80765         (Include): Use <stdlib.h>.
80766         * lib/stdlib.in.h (putenv): New declaration.
80767         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
80768         REPLACE_PUTENV.
80769         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
80770         REPLACE_PUTENV.
80771         Needed for MacOS X 10.5.0.
80772         Reported by Peter O'Gorman <peter@pogma.com>.
80774 2007-11-01  Jim Meyering  <meyering@redhat.com>
80776         Treat an empty date string exactly like "0".
80777         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
80778         if the remaining date string (to be parsed) is empty, use "0".
80779         Reported by Mischa Molhoek and discussed in this thread:
80780         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
80782 2007-10-31  Bruno Haible  <bruno@clisp.org>
80784         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
80785         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
80786         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
80787         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
80788         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
80789         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
80791 2007-10-31  Bruno Haible  <bruno@clisp.org>
80793         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
80794         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
80795         (AC_TYPE_LONG_LONG_INT): Use it.
80796         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
80797         it as well.
80798         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
80799         to m4/longlong.m4.
80800         * modules/stdint (Files): Remove m4/ulonglong.m4.
80801         * modules/strtoull (Files): Use m4/longlong.m4 instead of
80802         m4/ulonglong.m4.
80803         * modules/strtoumax (Files): Likewise.
80805 2007-10-30  Bruno Haible  <bruno@clisp.org>
80807         * modules/xvasprintf-posix: New file.
80808         Suggested by Eric Blake.
80810 2007-10-30  Bruno Haible  <bruno@clisp.org>
80812         * modules/xprintf-posix-tests: New file.
80813         * tests/test-xprintf-posix.sh: New file.
80814         * tests/test-xprintf-posix.c: New file.
80815         * tests/test-xfprintf-posix.c: New file.
80817         * modules/xprintf-posix: New file.
80819 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80821         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
80822         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
80823         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
80825 2007-10-29  Bruno Haible  <bruno@clisp.org>
80827         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
80828         contain the special marker '_cv_'.
80829         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
80830         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
80831         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
80832         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
80833         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
80834         Reported by Ralf Wildenhues.
80836 2007-10-29  Bruno Haible  <bruno@clisp.org>
80838         * gnulib-tool (func_import): When --lgpl is not specified, set
80839         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
80840         GPLv3.
80841         Reported by Simon Josefsson.
80843 2007-10-28  Bruno Haible  <bruno@clisp.org>
80845         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
80846         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
80847         HAVE_DECL_ISFINITE.
80848         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
80849         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
80850         HAVE_DECL_ISFINITE.
80852 2007-10-28  Bruno Haible  <bruno@clisp.org>
80854         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
80855         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
80857 2007-10-28  Bruno Haible  <bruno@clisp.org>
80859         Fix link errors with Sun C 5.0 on Solaris 10.
80860         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
80861         function is declared but not present in the compiler's libm.
80862         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
80863         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
80864         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
80865         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
80866         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
80867         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
80868         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
80869         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
80870         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
80871         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
80872         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
80873         HAVE_DECL_FLOORL.
80875 2007-10-28  Bruno Haible  <bruno@clisp.org>
80877         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
80878         gl_FUNC_FLOORL. Cache the result.
80879         (gl_FUNC_FLOORL): Use it.
80880         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
80881         gl_FUNC_CEILL. Cache the result.
80882         (gl_FUNC_CEILL): Use it.
80884         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
80885         gl_FUNC_FLOOR. Cache the result.
80886         (gl_FUNC_FLOOR): Use it.
80887         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
80888         gl_FUNC_CEIL. Cache the result.
80889         (gl_FUNC_CEIL): Use it.
80891         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
80892         gl_FUNC_FLOORF. Cache the result.
80893         (gl_FUNC_FLOORF): Use it.
80894         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
80895         gl_FUNC_CEILF. Cache the result.
80896         (gl_FUNC_CEILF): Use it.
80898 2007-10-28  Bruno Haible  <bruno@clisp.org>
80900         * gnulib-tool: Allow specifying the LGPL version number through
80901         --lgpl=2 or --lgpl=3.
80902         (func_usage): Document --lgpl with argument.
80903         Handle --lgpl=... arguments.
80904         (func_import): Recognize also gl_LGPL calls with an argument. When
80905         --lgpl=2 is used and the module's license is just LGPL, report an
80906         error. Set sed_transform_lib_file according to the lgpl variable. In
80907         the generated files, use --lgpl or gl_LGPL invocations with argument,
80908         if necessary.
80909         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
80910         an LGPv2+ license.
80911         * doc/gnulib-tool.texi (Modified imports): Update explanation of
80912         gl_LGPL macro.
80914 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80915             Bruno Haible  <bruno@clisp.org>
80917         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
80918         (u16_uctomb_aux): Likewise.
80919         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
80920         !HAVE_INLINE.
80921         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
80923 2007-10-28  Bruno Haible  <bruno@clisp.org>
80925         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
80926         Invoke AM_GETTEXT_OPTION if it exists.
80927         * modules/vasprintf: Likewise.
80928         * modules/verror: Likewise.
80929         * modules/xprintf: Likewise.
80930         * modules/xvasprintf: Likewise.
80932 2007-10-27  Ben Pfaff  <blp@gnu.org>
80934         * lib/math.in.h: Define isfinite macro and prototypes for
80935         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
80936         implementations.
80937         * m4/math_h.m4: New substitutions for isfinite module.
80938         * lib/isfinite.c: New file.
80939         * m4/isfinite.m4: New file.
80940         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
80941         * modules/isfinite: New file.
80942         * modules/isfinite-tests: New file.
80943         * tests/tests-isfinite.c: New file.
80944         * doc/functions/isfinite.texi: Mention isfinite module.
80945         * MODULES.html.sh: Mention new module.
80947 2007-10-27  Ben Pfaff  <blp@gnu.org>
80949         Ralf Wildenhues reported that Tru64 4.0D declares the round
80950         functions but does not have definitions.
80951         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
80952         cannot be found in any library, set the output variable to
80953         "missing" instead of "".
80954         * m4/round.m4: Also use our substitute if we cannot find round in
80955         any library, even if it is declared.
80956         * m4/roundf.m4: Likewise for roundf.
80957         * m4/roundl.m4: Likewise for roundl.
80958         * lib/math.in.h: Undefine roundf, round, roundl before defining
80959         their replacements, to allow for hypothetical systems where these
80960         may be defined as macros but not available in libraries.
80962 2007-10-27  Bruno Haible  <bruno@clisp.org>
80964         * doc/gnulib.texi: Invoke @firstparagraphindent.
80965         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
80966         changes in gnulib.
80967         (Source changes): New section.
80969 2007-10-26  Bruno Haible  <bruno@clisp.org>
80971         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
80972         borrowed from autoconf.
80974 2007-10-26  Bruno Haible  <bruno@clisp.org>
80976         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
80977         strerror returned the empty string. Needed on HP-UX 11.00.
80979 2007-10-24  Micah Cowan  <micah@cowan.name>
80981         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
80982         * build-aux/bootstrap: Remove support for now-unnecessary option,
80983         --cvs-user, and envvars CVS_USER, CVS_RSH.
80985 2007-10-24  Jim Meyering  <meyering@redhat.com>
80987         Avoid diagnostics from sha1sum when there is no cached checksum.
80988         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
80989         if the po.s1 file hasn't been created yet.
80991         * build-aux/bootstrap: Sync from coreutils:
80992         2007-10-24  Jim Meyering  <meyering@redhat.com>
80993         Get gnulib from the git repository, not from an obsolete cvs one.
80994         * build-aux/bootstrap: Suggestion from Micah Cowan.
80995         2007-10-04  Jim Meyering  <jim@meyering.net>
80996         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
80997         (update_po_files): Work also when there are no .po files in po/.
80999 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
81001         * README: Append ".git" to git and cg examples.
81002         Problem reported by Benoit Sigoure.
81004 2007-10-23  Micah Cowan  <micah@cowan.name>
81006         * users.txt: Add wget.
81008 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81010         Fix linking of some unistdio tests on FreeBSD.
81011         * modules/unistdio/u16-vsnprintf-tests
81012         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
81013         * modules/unistdio/u16-vsprintf-tests
81014         (test_u16_vsnprintf1_LDADD): Likewise.
81015         * modules/unistdio/u32-vsnprintf-tests
81016         (test_u32_vsnprintf1_LDADD): Likewise.
81017         * modules/unistdio/u32-vsprintf-tests
81018         (test_u32_vsprintf1_LDADD): Likewise.
81019         * modules/unistdio/u8-vsnprintf-tests
81020         (test_u8_vsnprintf1_LDADD): Likewise.
81021         * modules/unistdio/u8-vsprintf-tests
81022         (test_u8_vsprintf1_LDADD): Likewise.
81023         * modules/unistdio/ulc-vsnprintf-tests
81024         (test_ulc_vsnprintf1_LDADD): Likewise.
81025         * modules/unistdio/ulc-vsprintf-tests
81026         (test_ulc_vsprintf1_LDADD): Likewise.
81028         Fix linking of some uniconv tests on FreeBSD.
81029         * modules/uniconv/u16-conv-from-enc-tests
81030         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
81031         * modules/uniconv/u16-conv-to-enc-tests
81032         (test_u16_conv_to_enc_LDADD): Likewise.
81033         * modules/uniconv/u16-strconv-from-enc-tests
81034         (test_u16_strconv_from_enc_LDADD): Likewise.
81035         * modules/uniconv/u16-strconv-to-enc-tests
81036         (test_u16_strconv_to_enc_LDADD): Likewise.
81037         * modules/uniconv/u32-conv-from-enc-tests
81038         (test_u32_conv_from_enc_LDADD): Likewise.
81039         * modules/uniconv/u32-conv-to-enc-tests
81040         (test_u32_conv_to_enc_LDADD): Likewise.
81041         * modules/uniconv/u32-strconv-from-enc-tests
81042         (test_u32_strconv_from_enc_LDADD): Likewise.
81043         * modules/uniconv/u32-strconv-to-enc-tests
81044         (test_u32_strconv_to_enc_LDADD): Likewise.
81045         * modules/uniconv/u8-conv-from-enc-tests
81046         (test_u8_conv_from_enc_LDADD): Likewise.
81047         * modules/uniconv/u8-conv-to-enc-tests
81048         (test_u8_conv_to_enc_LDADD): Likewise.
81049         * modules/uniconv/u8-strconv-from-enc-tests
81050         (test_u8_strconv_from_enc_LDADD): Likewise.
81051         * modules/uniconv/u8-strconv-to-enc-tests
81052         (test_u8_strconv_to_enc_LDADD): Likewise.
81054 2007-10-22  Bruno Haible  <bruno@clisp.org>
81056         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
81057         size.
81059 2007-10-22  Eric Blake  <ebb9@byu.net>
81061         Tweak x*printf documentation.
81062         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
81063         variable name and comments.
81064         Suggested by Bruno Haible.
81066 2007-10-22  Bruno Haible  <bruno@clisp.org>
81068         * lib/acl.c (copy_acl): Fix file name in comment.
81070 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
81072         Fix Tru64 problem with stdbool.h.
81073         * lib/stdbool.in.h (false, true):
81074         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
81075         Don't declare as an enum in this situation; it runs afoul of Tru64.
81076         Problem reported by Steven M. Schweda in
81077         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
81079 2007-10-22  Eric Blake  <ebb9@byu.net>
81081         Also wrap vf?printf.
81082         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
81083         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
81084         (xvprintf, xvfprintf): New functions.
81086 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81088         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
81089         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
81091         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
81092         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
81094 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
81096         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
81097         by Bruno Haible.
81099 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81101         * lib/getloadavg.c
81102         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
81103         Undef `sys' after including sys/table.h, for Tru64 4.0D.
81105         * tests/test-i-ring.c: Work for C89.
81107 2007-10-22  Bruno Haible  <bruno@clisp.org>
81109         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
81110         -1u, in preprocessor expression, so that we don't test for the bug
81111         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
81112         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
81114 2007-10-22  Eric Blake  <ebb9@byu.net>
81116         * tests/test-yesno.sh: Silence stderr during test.
81118 2007-10-22  Simon Josefsson  <simon@josefsson.org>
81120         * modules/crypto/gc-camellia: New file.
81122         * m4/gc-camellia.m4: New file.
81124         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
81126         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
81128 2007-10-22  Simon Josefsson  <simon@josefsson.org>
81130         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
81131         --help to stdout.  Reported by sms@antinode.org (Steven
81132         M. Schweda).
81134 2007-10-22  Simon Josefsson  <simon@josefsson.org>
81136         * users.txt: Fix link to libksba.
81138 2007-10-21  Ben Pfaff  <blp@gnu.org>
81140         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
81141         round.c roundf implementation that depends on floorf and ceilf to
81142         be tested unconditionally.
81144 2007-10-21  Ben Pfaff  <blp@gnu.org>
81146         * m4/check-libm-func.m4: Removed.
81147         * m4/check-math-lib.m4: New file.
81148         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
81149         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
81150         definition and lack of AC_LIBOBJ([roundf]).
81151         * m4/roundl.m4: Ditto, and similarly for roundl.
81152         * modules/round: Reference new m4 file.
81153         * modules/roundf: Ditto.
81154         * modules/roundl: Ditto.
81155         * tests/test-round2.c (main): Use ROUND instead of round.
81156         Bug report from Bruno Haible.
81158 2007-10-21  Bruno Haible  <bruno@clisp.org>
81160         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
81161         context.
81163 2007-10-21  Bruno Haible  <bruno@clisp.org>
81165         * tests/test-wcwidth.c (main): Allow negative result for some control
81166         characters.
81168         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
81169         Needed on OSF/1 5.1.
81171 2007-10-21  Bruno Haible  <bruno@clisp.org>
81173         * tests/test-floorf1.c: Include isnanf.h.
81174         (main): Use isnanf() instead of isnan().
81175         * tests/test-ceilf1.c: Include isnanf.h.
81176         (main): Use isnanf() instead of isnan().
81177         * tests/test-truncf1.c: Include isnanf.h.
81178         (main): Use isnanf() instead of isnan().
81179         * tests/test-roundf1.c: Include isnanf.h.
81180         (main): Use isnanf() instead of isnan().
81182 2007-10-21  Eric Blake  <ebb9@byu.net>
81184         * users.txt: Update URL for m4.
81186 2007-10-21  Bruno Haible  <bruno@clisp.org>
81188         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
81190 2007-10-21  Bruno Haible  <bruno@clisp.org>
81192         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
81193         Git's management files if the CVS files are not present.
81195 2007-10-20  Bruno Haible  <bruno@clisp.org>
81197         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
81198         gcc-3.4.x.
81200 2007-10-20  Ben Pfaff  <blp@gnu.org>
81202         * lib/math.in.h: Declare round, roundf, roundl if we are providing
81203         implementations.
81204         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
81205         * lib/round.c: New file.
81206         * lib/roundf.c: New file.
81207         * lib/roundl.c: New file.
81208         * m4/round.m4: New file.
81209         * m4/roundf.m4: New file.
81210         * m4/roundl.m4: New file.
81211         * m4/check-libm-func-m4: New file.
81212         * modules/math: Replace round, roundf, roundl related @VARS@ in
81213         math.in.h.
81214         * modules/round: New file.
81215         * modules/round-tests: New file.
81216         * modules/roundf: New file.
81217         * modules/roundf-tests: New file.
81218         * modules/roundl: New file.
81219         * modules/roundl-tests: New file.
81220         * tests/test-round1.c: New file.
81221         * tests/test-round2.c: New file.
81222         * tests/test-roundf1.c: New file.
81223         * tests/test-roundf2.c: New file.
81224         * tests/test-roundl.c: New file.
81225         * doc/functions/round.texi: Mention round module.
81226         * doc/functions/roundf.texi: Mention roundf module.
81227         * doc/functions/roundl.texi: Mention roundl module.
81228         * MODULES.html.sh: Mention new modules.
81229         Thanks to Bruno Haible for suggestions.
81231 2007-10-20  Jim Meyering  <meyering@redhat.com>
81233         * lib/xprintf.c: Include <config.h> unconditionally.
81235         Change xprintf's license to GPL.
81236         * modules/xprintf (License): s/LGPL/GPL/, since this module
81237         depends on modules (exit and exitfail) which are GPL.
81238         Suggestion from Bruno Haible.
81240         xprintf fixes.
81241         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
81242         Use a clearer diagnostic.
81243         Patch from Bruno Haible.
81245 2007-10-20  Bruno Haible  <bruno@clisp.org>
81247         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
81248         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
81249         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81251 2007-10-20  Bruno Haible  <bruno@clisp.org>
81253         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
81254         precision in the comparison result > x - 1 or similar.
81255         * tests/test-ceilf2.c (correct_result_p): Likewise.
81256         * tests/test-truncf2.c (correct_result_p): Likewise.
81257         * tests/test-trunc2.c (correct_result_p): Likewise.
81258         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81260 2007-10-20  Bruno Haible  <bruno@clisp.org>
81262         * modules/ceil: New file.
81263         * m4/ceil.m4: New file.
81264         * doc/functions/ceil.texi: Mention the 'ceil' module.
81266 2007-10-20  Bruno Haible  <bruno@clisp.org>
81268         * modules/floor: New file.
81269         * m4/floor.m4: New file.
81270         * doc/functions/floor.texi: Mention the 'floor' module.
81272 2007-10-20  Bruno Haible  <bruno@clisp.org>
81274         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
81275         of %a.
81276         * modules/floorf-tests (Depends-on): Likewise.
81277         * modules/truncf-tests (Depends-on): Likewise.
81278         * modules/trunc-tests (Depends-on): Likewise.
81279         Reported by Ben Pfaff.
81281 2007-10-19  Jim Meyering  <meyering@redhat.com>
81283         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
81284         Don't bother testing specific errno values.  Just test ferror.
81286         New module: xprintf
81287         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
81289 2007-10-19  Bruno Haible  <bruno@clisp.org>
81291         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
81292         syntax.
81293         * modules/javaexec (Makefile.am): Likewise.
81294         * modules/relocatable-prog (Makefile.am): Likewise.
81295         Suggested by Jim Meyering.
81297 2007-10-18  Bruno Haible  <bruno@clisp.org>
81299         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
81300         Reported by Jim Meyering.
81302 2007-10-18  Eric Blake  <ebb9@byu.net>
81304         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
81306 2007-10-18  Bruno Haible  <bruno@clisp.org>
81308         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
81309         the format string into writable memory. Needed in Fortify conditions.
81311 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
81312             Bruno Haible  <bruno@clisp.org>
81314         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
81315         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
81316         * modules/trim (Depends-on): Add mbchar.
81317         (configure.ac): Add gl_FUNC_MBRTOWC.
81318         (Makefile.am): Augment lib_SOURCES.
81320 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
81322         Modify glob.c to use fstatat and dirfd, to simplify it.
81323         Suggested by Eric Blake.
81324         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
81325         Don't include <stdbool.h>; not used.
81326         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
81327         (link_exists_p): Simplify implementation, since we can now assume
81328         dirfd and fstatat.
81329         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
81331 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81333         * gnulib-tool (func_get_dependencies): Fix sed script to
81334         match only tests.
81336 2007-10-17  Bruno Haible  <bruno@clisp.org>
81338         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
81339         allow locale names without encoding suffix.
81340         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
81341         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
81343 2007-10-16  Bruno Haible  <bruno@clisp.org>
81345         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
81346         * lib/getgroups.c (getgroups): Likewise.
81347         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
81349 2007-10-16  Bruno Haible  <bruno@clisp.org>
81351         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
81352         * modules/malloc-posix (License): Likewise.
81353         * modules/realloc-posix (License): Likewise.
81354         * modules/calloc-posix (License): Likewise.
81355         * modules/intprops (License): Change from GPL to LGPL, with
81356         Paul Eggert's approval.
81358 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
81360         Merge glibc changes into lib/glob.c.
81362         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
81363         2007-10-15 04:59:03 UTC.  Here are the changes:
81365         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
81367         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
81369         * lib/glob.c: Add some branch prediction throughout.
81371         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
81373         [BZ #5103]
81374         * lib/glob.c (glob): Recognize patterns starting \/.
81376         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
81378         [BZ #3996]
81379         * lib/glob.c (attribute_hidden): Define if not defined.
81380         (glob): Unescape dirname, filename or username when needed and not
81381         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
81382         is NULL.  Handle unescaped [ in pattern without closing ].
81383         Don't pass GLOB_CHECK down to recursive glob for directories.
81384         (__glob_pattern_type): New function.
81385         (__glob_pattern_p): Implement using __glob_pattern_type.
81386         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
81387         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
81388         Remove unreachable code.
81390         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
81392         * lib/glob.c (glob_in_dir): Add some comments and asserts to
81393         explain why there are no leaks.
81395         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
81397         [BZ #3253]
81398         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
81399         time, rather allocate increasingly bigger arrays of pointers, if
81400         possible with alloca, if too large with malloc.
81402 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
81404         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
81405         Problem reported by H.Merijn Brand in
81406         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
81407         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
81408         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
81410 2007-10-15  Bruno Haible  <bruno@clisp.org>
81412         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
81413         with explicit rpl_ prefix.
81414         * lib/fopen.c (fopen): Likewise.
81415         * lib/freopen.c (freopen): Likewise.
81416         * lib/iconv.c (iconv): Likewise.
81417         * lib/iconv_close.c (iconv_close): Likewise.
81419 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81421         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
81423 2007-10-15  Bruno Haible  <bruno@clisp.org>
81425         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
81426         <stddef.h> instead of <stdlib.h> since we only need NULL.
81427         Reported by Ben Pfaff <blp@cs.stanford.edu>.
81429 2007-10-15  Bruno Haible  <bruno@clisp.org>
81431         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
81432         Replace paragraph talking about LIBOBJS.
81433         Reported by Colin Watson <cjwatson@debian.org>.
81435 2007-10-15  Bruno Haible  <bruno@clisp.org>
81437         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
81438         <stdlib.h> before using NULL.
81440 2007-10-15  Simon Josefsson  <simon@josefsson.org>
81442         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
81443         Reported by Albert Chin <china@thewrittenword.com>.
81445 2007-10-14  Bruno Haible  <bruno@clisp.org>
81447         * modules/iconv_open-utf-tests: New file.
81448         * tests/test-iconv-utf.c: New file.
81450         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
81451         * modules/iconv_open-utf: New file.
81452         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
81453         (iconv, iconv_close): New declarations.
81454         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
81455         be defined.
81456         (iconv_open): Add special handling of conversion between UTF-8 and
81457         UTF-{16,32}{BE,LE}.
81458         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
81459         * lib/iconv_close.c: New file.
81460         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
81461         gl_FUNC_ICONV_OPEN.
81462         (gl_FUNC_ICONV_OPEN): Use it.
81463         (gl_FUNC_ICONV_OPEN_UTF): New macro.
81464         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
81465         and REPLACE_ICONV_UTF.
81466         * modules/iconv_open (Depends-on): Add c-strcase.
81467         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
81468         ICONV_CONST.
81469         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
81471 2007-10-13  Albert Chin  <china@thewrittenword.com>
81472             Bruno Haible  <bruno@clisp.org>
81474         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
81475         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
81477 2007-10-13  Bruno Haible  <bruno@clisp.org>
81479         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
81480         defined, use the ISO C99 inline semantics.
81481         * lib/argp.h (ARGP_EI): Likewise.
81483 2007-10-13  Bruno Haible  <bruno@clisp.org>
81485         Handle 'inline' change in gcc 4.3.0.
81486         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
81487         argp_fmtstream_write, argp_fmtstream_set_lmargin,
81488         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
81489         argp_fmtstream_point): Disable 'extern' declaration if the function
81490         definition is going to be provided inline.
81491         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
81492         semantics, not the ISO C99 inline semantics.
81493         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
81494         'extern' declaration if the function definition is going to be provided
81495         inline.
81496         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
81497         the GNU C inline semantics, not the ISO C99 inline semantics. With
81498         GCC 4.2, avoid a warning.
81500 2007-10-13  Bruno Haible  <bruno@clisp.org>
81502         * lib/freading.h (freading): Enable the use of __freading for
81503         glibc >= 2.7.
81504         * lib/freading.c (freading): Likewise.
81506 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
81508         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
81509         "warning: C99 inline functions are not supported; using GNU89".
81511 2007-10-12  Bruno Haible  <bruno@clisp.org>
81513         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
81514         of 2.
81515         * tests/test-ceilf2.c: New file.
81516         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
81518         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
81519         * modules/ceilf-tests: Update.
81521 2007-10-12  Bruno Haible  <bruno@clisp.org>
81523         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
81524         of 2.
81525         * tests/test-floorf2.c: New file.
81526         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
81528         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
81529         * modules/floorf-tests: Update.
81531 2007-10-12  Bruno Haible  <bruno@clisp.org>
81533         * tests/test-trunc2.c: New file.
81534         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
81536         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
81537         * modules/trunc-tests: Update.
81539 2007-10-12  Bruno Haible  <bruno@clisp.org>
81541         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
81542         of 2.
81543         * tests/test-truncf2.c: New file.
81544         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
81546         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
81547         * modules/truncf-tests: Update.
81549 2007-10-11  Eric Blake  <ebb9@byu.net>
81551         Don't claim strerror is broken on Interix.
81552         * doc/functions/strerror.texi (strerror): Known broken systems are
81553         now Solaris 8, and not Interix.
81554         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
81555         Interix on cross-compile.
81556         Reported by Martin Koeppe in
81557         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
81559 2007-10-11  Bruno Haible  <bruno@clisp.org>
81561         * modules/i-ring-tests: New file.
81562         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
81563         instead of assert.
81565 2007-10-11  Bruno Haible  <bruno@clisp.org>
81567         * modules/filenamecat-tests: New file.
81568         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
81569         * lib/filenamecat.c: Remove test code.
81571 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
81573         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
81575         * lib/strerror.c: Include <string.h> always, to test interface,
81576         and to remove the need for the dummy.
81577         Include intprops.h to compute width instead of doing it ourselves
81578         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
81579         (strerror): Define it to return NULL if there's no system strerror.
81580         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
81581         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
81582         ancient pre-strerror Unix systems well any more.  Saying "unknown
81583         system error" is enough.
81584         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
81585         simpler strerror.c implementation.
81586         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
81587         Simplify the tests to reflect the simpler strerror implementation.
81588         * modules/strerror (Depends-on): Add intprops.
81590 2007-10-09  Eric Blake  <ebb9@byu.net>
81592         Silence test-fpending.
81593         * modules/fpending-tests (Files): Add wrapper script.
81594         * tests/test-fpending.sh: New file.
81596 2007-10-09  Bruno Haible  <bruno@clisp.org>
81598         * MODULES.html.sh (func_module): Don't create a hyperlink for
81599         function names like 'printf_frexp'.
81600         (Misc): Add crc, memxor.
81601         (Characteristics of floating types): New section.
81602         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
81603         isnanf-nolibm, signbit, trunc, truncf, truncl.
81604         (Enhancements for ISO C 99 functions): New subsection Input/output.
81605         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
81606         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
81607         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
81608         (Compatibility checks for POSIX:2001 functions): Add clock-time.
81609         (Enhancements for POSIX:2001 functions): Add chdir-long.
81610         (File system functions): Add areadlink, chdir-safer, read-file.
81611         Remove cycle-check.
81612         (File system as inode set): New section.
81613         (Date and time): Add gethrxtime.
81614         (Multithreading): Add openmp.
81615         (Internationalization functions): Add localename.
81616         (Unicode string functions): Add unistr/u*-mbsnlen.
81617         (Support for maintaining and releasing projects): Add git-version-gen.
81618         (Lone files): Remove directories.
81620 2007-10-08  Ben Pfaff  <blp@gnu.org>
81622         * lib/xmalloca.h: Fix typo in comment.
81624 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
81626         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
81627         when avoiding problems with integer overflow.  Use a portable test
81628         instead.
81630 2007-10-08  Simon Josefsson  <simon@josefsson.org>
81632         * modules/dummy (License): Change to LGPLv2+.
81633         * modules/float (License): Likewise
81634         * modules/realloc (License): Likewise
81635         * modules/stdlib (License): Likewise
81637 2007-10-07  Bruno Haible  <bruno@clisp.org>
81639         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
81640         * floor.c (TWO_MANT_DIG): Likewise.
81641         * ceil.c (TWO_MANT_DIG): Likewise.
81642         Reported by Ben Pfaff.
81644 2007-10-07  Bruno Haible  <bruno@clisp.org>
81646         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
81647         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
81648         * lib/frexp.c (FUNC): Likewise.
81649         * lib/printf-frexp.h (printf_frexp): Likewise.
81650         * lib/printf-frexpl.h (printf_frexpl): Likewise.
81651         * lib/printf-frexp.c (FUNC): Likewise.
81652         Suggested by Jim Meyering.
81654 2007-10-07  Jim Meyering  <meyering@redhat.com>
81656         Make xnanosleep's integer overflow test more robust.
81657         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
81658         so that gcc-4.3.0 doesn't optimize away this test for overflow.
81660 2007-10-07  Bruno Haible  <bruno@clisp.org>
81662         * NEWS: Mention the license change.
81664         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
81665         abbreviations in the modules files.
81667         Change copyright notice from GPLv2+ to GPLv3+.
81668         * README: Change copyright notice.
81669         * MODULES.html.sh: Likewise.
81670         * build-aux/bootstrap.conf: Likewise.
81671         * build-aux/config.libpath: Likewise.
81672         * build-aux/csharpcomp.sh.in: Likewise.
81673         * build-aux/csharpexec.sh.in: Likewise.
81674         * build-aux/install-reloc: Likewise.
81675         * build-aux/javacomp.sh.in: Likewise.
81676         * build-aux/javaexec.sh.in: Likewise.
81677         * build-aux/ldd.sh.in: Likewise.
81678         * build-aux/reloc-ldflags: Likewise.
81679         * build-aux/relocatable.sh.in: Likewise.
81680         * build-aux/x-to-1.in: Likewise.
81681         * check-module: Likewise.
81682         * config/srclistvars.sh: Likewise.
81683         * gnulib-tool: Likewise.
81684         * lib/acl-internal.h: Likewise.
81685         * lib/acl.c: Likewise.
81686         * lib/acl.h: Likewise.
81687         * lib/acl_entries.c: Likewise.
81688         * lib/areadlink-with-size.c: Likewise.
81689         * lib/areadlink.c: Likewise.
81690         * lib/areadlink.h: Likewise.
81691         * lib/argmatch.c: Likewise.
81692         * lib/argmatch.h: Likewise.
81693         * lib/argp-ba.c: Likewise.
81694         * lib/argp-eexst.c: Likewise.
81695         * lib/argp-fmtstream.c: Likewise.
81696         * lib/argp-fmtstream.h: Likewise.
81697         * lib/argp-fs-xinl.c: Likewise.
81698         * lib/argp-help.c: Likewise.
81699         * lib/argp-namefrob.h: Likewise.
81700         * lib/argp-parse.c: Likewise.
81701         * lib/argp-pin.c: Likewise.
81702         * lib/argp-pv.c: Likewise.
81703         * lib/argp-pvh.c: Likewise.
81704         * lib/argp-xinl.c: Likewise.
81705         * lib/argp.h: Likewise.
81706         * lib/at-func.c: Likewise.
81707         * lib/atanl.c: Likewise.
81708         * lib/backupfile.c: Likewise.
81709         * lib/backupfile.h: Likewise.
81710         * lib/basename.c: Likewise.
81711         * lib/binary-io.h: Likewise.
81712         * lib/byteswap.in.h: Likewise.
81713         * lib/c-stack.c: Likewise.
81714         * lib/c-stack.h: Likewise.
81715         * lib/c-strcasestr.c: Likewise.
81716         * lib/c-strcasestr.h: Likewise.
81717         * lib/c-strstr.c: Likewise.
81718         * lib/c-strstr.h: Likewise.
81719         * lib/c-strtod.c: Likewise.
81720         * lib/calloc.c: Likewise.
81721         * lib/canon-host.c: Likewise.
81722         * lib/canon-host.h: Likewise.
81723         * lib/canonicalize-lgpl.c: Likewise.
81724         * lib/canonicalize.c: Likewise.
81725         * lib/canonicalize.h: Likewise.
81726         * lib/ceil.c: Likewise.
81727         * lib/ceilf.c: Likewise.
81728         * lib/ceill.c: Likewise.
81729         * lib/chdir-long.c: Likewise.
81730         * lib/chdir-long.h: Likewise.
81731         * lib/chdir-safer.c: Likewise.
81732         * lib/chdir-safer.h: Likewise.
81733         * lib/chown.c: Likewise.
81734         * lib/classpath.c: Likewise.
81735         * lib/classpath.h: Likewise.
81736         * lib/clean-temp.c: Likewise.
81737         * lib/clean-temp.h: Likewise.
81738         * lib/cloexec.c: Likewise.
81739         * lib/close-stream.c: Likewise.
81740         * lib/closein.c: Likewise.
81741         * lib/closein.h: Likewise.
81742         * lib/closeout.c: Likewise.
81743         * lib/closeout.h: Likewise.
81744         * lib/concat-filename.c: Likewise.
81745         * lib/copy-file.c: Likewise.
81746         * lib/copy-file.h: Likewise.
81747         * lib/count-one-bits.h: Likewise.
81748         * lib/crc.c: Likewise.
81749         * lib/crc.h: Likewise.
81750         * lib/creat-safer.c: Likewise.
81751         * lib/csharpcomp.c: Likewise.
81752         * lib/csharpcomp.h: Likewise.
81753         * lib/csharpexec.c: Likewise.
81754         * lib/csharpexec.h: Likewise.
81755         * lib/cycle-check.c: Likewise.
81756         * lib/cycle-check.h: Likewise.
81757         * lib/diacrit.c: Likewise.
81758         * lib/diacrit.h: Likewise.
81759         * lib/diffseq.h: Likewise.
81760         * lib/dirchownmod.c: Likewise.
81761         * lib/dirent.in.h: Likewise.
81762         * lib/dirfd.c: Likewise.
81763         * lib/dirfd.h: Likewise.
81764         * lib/dirname.c: Likewise.
81765         * lib/dirname.h: Likewise.
81766         * lib/dummy.c: Likewise.
81767         * lib/dup-safer.c: Likewise.
81768         * lib/dup2.c: Likewise.
81769         * lib/eealloc.h: Likewise.
81770         * lib/error.c: Likewise.
81771         * lib/error.h: Likewise.
81772         * lib/euidaccess.c: Likewise.
81773         * lib/exclude.c: Likewise.
81774         * lib/exclude.h: Likewise.
81775         * lib/execute.c: Likewise.
81776         * lib/execute.h: Likewise.
81777         * lib/exitfail.c: Likewise.
81778         * lib/exitfail.h: Likewise.
81779         * lib/expl.c: Likewise.
81780         * lib/fatal-signal.c: Likewise.
81781         * lib/fatal-signal.h: Likewise.
81782         * lib/fbufmode.c: Likewise.
81783         * lib/fbufmode.h: Likewise.
81784         * lib/fchdir.c: Likewise.
81785         * lib/fchmodat.c: Likewise.
81786         * lib/fchownat.c: Likewise.
81787         * lib/fcntl--.h: Likewise.
81788         * lib/fcntl-safer.h: Likewise.
81789         * lib/fcntl.in.h: Likewise.
81790         * lib/fd-safer.c: Likewise.
81791         * lib/fflush.c: Likewise.
81792         * lib/file-has-acl.c: Likewise.
81793         * lib/file-set.c: Likewise.
81794         * lib/file-type.c: Likewise.
81795         * lib/file-type.h: Likewise.
81796         * lib/fileblocks.c: Likewise.
81797         * lib/filemode.c: Likewise.
81798         * lib/filemode.h: Likewise.
81799         * lib/filename.h: Likewise.
81800         * lib/filenamecat.c: Likewise.
81801         * lib/filenamecat.h: Likewise.
81802         * lib/findprog.c: Likewise.
81803         * lib/findprog.h: Likewise.
81804         * lib/float.in.h: Likewise.
81805         * lib/floor.c: Likewise.
81806         * lib/floorf.c: Likewise.
81807         * lib/floorl.c: Likewise.
81808         * lib/fopen-safer.c: Likewise.
81809         * lib/fopen.c: Likewise.
81810         * lib/fpending.c: Likewise.
81811         * lib/fpending.h: Likewise.
81812         * lib/fprintf.c: Likewise.
81813         * lib/fprintftime.h: Likewise.
81814         * lib/fpucw.h: Likewise.
81815         * lib/fpurge.c: Likewise.
81816         * lib/fpurge.h: Likewise.
81817         * lib/freadable.c: Likewise.
81818         * lib/freadable.h: Likewise.
81819         * lib/freadahead.c: Likewise.
81820         * lib/freadahead.h: Likewise.
81821         * lib/freading.c: Likewise.
81822         * lib/freading.h: Likewise.
81823         * lib/free.c: Likewise.
81824         * lib/freopen.c: Likewise.
81825         * lib/frexp.c: Likewise.
81826         * lib/frexpl.c: Likewise.
81827         * lib/fseek.c: Likewise.
81828         * lib/fseterr.c: Likewise.
81829         * lib/fseterr.h: Likewise.
81830         * lib/fstatat.c: Likewise.
81831         * lib/fstrcmp.c: Likewise.
81832         * lib/fstrcmp.h: Likewise.
81833         * lib/fsusage.c: Likewise.
81834         * lib/fsusage.h: Likewise.
81835         * lib/ftell.c: Likewise.
81836         * lib/ftello.c: Likewise.
81837         * lib/fts-cycle.c: Likewise.
81838         * lib/fts.c: Likewise.
81839         * lib/fts_.h: Likewise.
81840         * lib/full-read.c: Likewise.
81841         * lib/full-read.h: Likewise.
81842         * lib/full-write.c: Likewise.
81843         * lib/full-write.h: Likewise.
81844         * lib/fwritable.c: Likewise.
81845         * lib/fwritable.h: Likewise.
81846         * lib/fwriteerror.c: Likewise.
81847         * lib/fwriteerror.h: Likewise.
81848         * lib/fwriting.c: Likewise.
81849         * lib/fwriting.h: Likewise.
81850         * lib/gcd.c: Likewise.
81851         * lib/gcd.h: Likewise.
81852         * lib/getcwd.c: Likewise.
81853         * lib/getdate.h: Likewise.
81854         * lib/getdate.y: Likewise.
81855         * lib/getdomainname.c: Likewise.
81856         * lib/getdomainname.h: Likewise.
81857         * lib/getgroups.c: Likewise.
81858         * lib/gethostname.c: Likewise.
81859         * lib/gethrxtime.c: Likewise.
81860         * lib/gethrxtime.h: Likewise.
81861         * lib/getloadavg.c: Likewise.
81862         * lib/getndelim2.c: Likewise.
81863         * lib/getndelim2.h: Likewise.
81864         * lib/getnline.c: Likewise.
81865         * lib/getnline.h: Likewise.
81866         * lib/getopt.c: Likewise.
81867         * lib/getopt.in.h: Likewise.
81868         * lib/getopt1.c: Likewise.
81869         * lib/getopt_int.h: Likewise.
81870         * lib/getpagesize.h: Likewise.
81871         * lib/getsubopt.c: Likewise.
81872         * lib/gettime.c: Likewise.
81873         * lib/getugroups.c: Likewise.
81874         * lib/getugroups.h: Likewise.
81875         * lib/getusershell.c: Likewise.
81876         * lib/gl_anyavltree_list1.h: Likewise.
81877         * lib/gl_anyavltree_list2.h: Likewise.
81878         * lib/gl_anyhash_list1.h: Likewise.
81879         * lib/gl_anyhash_list2.h: Likewise.
81880         * lib/gl_anylinked_list1.h: Likewise.
81881         * lib/gl_anylinked_list2.h: Likewise.
81882         * lib/gl_anyrbtree_list1.h: Likewise.
81883         * lib/gl_anyrbtree_list2.h: Likewise.
81884         * lib/gl_anytree_list1.h: Likewise.
81885         * lib/gl_anytree_list2.h: Likewise.
81886         * lib/gl_anytree_oset.h: Likewise.
81887         * lib/gl_anytreehash_list1.h: Likewise.
81888         * lib/gl_anytreehash_list2.h: Likewise.
81889         * lib/gl_array_list.c: Likewise.
81890         * lib/gl_array_list.h: Likewise.
81891         * lib/gl_array_oset.c: Likewise.
81892         * lib/gl_array_oset.h: Likewise.
81893         * lib/gl_avltree_list.c: Likewise.
81894         * lib/gl_avltree_list.h: Likewise.
81895         * lib/gl_avltree_oset.c: Likewise.
81896         * lib/gl_avltree_oset.h: Likewise.
81897         * lib/gl_avltreehash_list.c: Likewise.
81898         * lib/gl_avltreehash_list.h: Likewise.
81899         * lib/gl_carray_list.c: Likewise.
81900         * lib/gl_carray_list.h: Likewise.
81901         * lib/gl_linked_list.c: Likewise.
81902         * lib/gl_linked_list.h: Likewise.
81903         * lib/gl_linkedhash_list.c: Likewise.
81904         * lib/gl_linkedhash_list.h: Likewise.
81905         * lib/gl_list.c: Likewise.
81906         * lib/gl_list.h: Likewise.
81907         * lib/gl_oset.c: Likewise.
81908         * lib/gl_oset.h: Likewise.
81909         * lib/gl_rbtree_list.c: Likewise.
81910         * lib/gl_rbtree_list.h: Likewise.
81911         * lib/gl_rbtree_oset.c: Likewise.
81912         * lib/gl_rbtree_oset.h: Likewise.
81913         * lib/gl_rbtreehash_list.c: Likewise.
81914         * lib/gl_rbtreehash_list.h: Likewise.
81915         * lib/gl_sublist.c: Likewise.
81916         * lib/gl_sublist.h: Likewise.
81917         * lib/group-member.c: Likewise.
81918         * lib/group-member.h: Likewise.
81919         * lib/hard-locale.c: Likewise.
81920         * lib/hard-locale.h: Likewise.
81921         * lib/hash-pjw.c: Likewise.
81922         * lib/hash-pjw.h: Likewise.
81923         * lib/hash-triple.c: Likewise.
81924         * lib/hash.c: Likewise.
81925         * lib/hash.h: Likewise.
81926         * lib/human.c: Likewise.
81927         * lib/human.h: Likewise.
81928         * lib/i-ring.c: Likewise.
81929         * lib/i-ring.h: Likewise.
81930         * lib/idcache.c: Likewise.
81931         * lib/imaxabs.c: Likewise.
81932         * lib/imaxdiv.c: Likewise.
81933         * lib/inet_pton.c: Likewise.
81934         * lib/inet_pton.h: Likewise.
81935         * lib/intprops.h: Likewise.
81936         * lib/inttostr.c: Likewise.
81937         * lib/inttostr.h: Likewise.
81938         * lib/inttypes.in.h: Likewise.
81939         * lib/isapipe.c: Likewise.
81940         * lib/isdir.c: Likewise.
81941         * lib/isnan.c: Likewise.
81942         * lib/isnan.h: Likewise.
81943         * lib/isnanf.c: Likewise.
81944         * lib/isnanf.h: Likewise.
81945         * lib/isnanl-nolibm.h: Likewise.
81946         * lib/isnanl.c: Likewise.
81947         * lib/isnanl.h: Likewise.
81948         * lib/javacomp.c: Likewise.
81949         * lib/javacomp.h: Likewise.
81950         * lib/javaexec.c: Likewise.
81951         * lib/javaexec.h: Likewise.
81952         * lib/javaversion.c: Likewise.
81953         * lib/javaversion.h: Likewise.
81954         * lib/javaversion.java: Likewise.
81955         * lib/lbrkprop.h: Likewise.
81956         * lib/lchmod.h: Likewise.
81957         * lib/lchown.c: Likewise.
81958         * lib/ldexpl.c: Likewise.
81959         * lib/linebreak.c: Likewise.
81960         * lib/linebreak.h: Likewise.
81961         * lib/linebuffer.c: Likewise.
81962         * lib/linebuffer.h: Likewise.
81963         * lib/locale.in.h: Likewise.
81964         * lib/logl.c: Likewise.
81965         * lib/long-options.c: Likewise.
81966         * lib/long-options.h: Likewise.
81967         * lib/lstat.c: Likewise.
81968         * lib/lstat.h: Likewise.
81969         * lib/math.in.h: Likewise.
81970         * lib/mbchar.c: Likewise.
81971         * lib/mbchar.h: Likewise.
81972         * lib/mbfile.h: Likewise.
81973         * lib/mbiter.h: Likewise.
81974         * lib/mbscasecmp.c: Likewise.
81975         * lib/mbscasestr.c: Likewise.
81976         * lib/mbschr.c: Likewise.
81977         * lib/mbscspn.c: Likewise.
81978         * lib/mbslen.c: Likewise.
81979         * lib/mbsncasecmp.c: Likewise.
81980         * lib/mbsnlen.c: Likewise.
81981         * lib/mbspbrk.c: Likewise.
81982         * lib/mbspcasecmp.c: Likewise.
81983         * lib/mbsrchr.c: Likewise.
81984         * lib/mbssep.c: Likewise.
81985         * lib/mbsspn.c: Likewise.
81986         * lib/mbsstr.c: Likewise.
81987         * lib/mbstok_r.c: Likewise.
81988         * lib/mbswidth.c: Likewise.
81989         * lib/mbswidth.h: Likewise.
81990         * lib/mbuiter.h: Likewise.
81991         * lib/memcasecmp.c: Likewise.
81992         * lib/memcasecmp.h: Likewise.
81993         * lib/memchr.c: Likewise.
81994         * lib/memcmp.c: Likewise.
81995         * lib/memcoll.c: Likewise.
81996         * lib/memcoll.h: Likewise.
81997         * lib/memcpy.c: Likewise.
81998         * lib/memrchr.c: Likewise.
81999         * lib/mkancesdirs.c: Likewise.
82000         * lib/mkdir-p.c: Likewise.
82001         * lib/mkdir-p.h: Likewise.
82002         * lib/mkdir.c: Likewise.
82003         * lib/mkdirat.c: Likewise.
82004         * lib/mkdtemp.c: Likewise.
82005         * lib/mkstemp-safer.c: Likewise.
82006         * lib/mkstemp.c: Likewise.
82007         * lib/modechange.c: Likewise.
82008         * lib/modechange.h: Likewise.
82009         * lib/mountlist.c: Likewise.
82010         * lib/mountlist.h: Likewise.
82011         * lib/mpsort.c: Likewise.
82012         * lib/nanosleep.c: Likewise.
82013         * lib/obstack.c: Likewise.
82014         * lib/obstack.h: Likewise.
82015         * lib/open-safer.c: Likewise.
82016         * lib/open.c: Likewise.
82017         * lib/openat-die.c: Likewise.
82018         * lib/openat-priv.h: Likewise.
82019         * lib/openat-proc.c: Likewise.
82020         * lib/openat.c: Likewise.
82021         * lib/openat.h: Likewise.
82022         * lib/pagealign_alloc.c: Likewise.
82023         * lib/pagealign_alloc.h: Likewise.
82024         * lib/physmem.c: Likewise.
82025         * lib/physmem.h: Likewise.
82026         * lib/pipe-safer.c: Likewise.
82027         * lib/pipe.c: Likewise.
82028         * lib/pipe.h: Likewise.
82029         * lib/posixtm.c: Likewise.
82030         * lib/posixtm.h: Likewise.
82031         * lib/posixver.c: Likewise.
82032         * lib/printf-frexp.c: Likewise.
82033         * lib/printf-frexp.h: Likewise.
82034         * lib/printf-frexpl.c: Likewise.
82035         * lib/printf-frexpl.h: Likewise.
82036         * lib/printf.c: Likewise.
82037         * lib/progname.c: Likewise.
82038         * lib/progname.h: Likewise.
82039         * lib/progreloc.c: Likewise.
82040         * lib/putenv.c: Likewise.
82041         * lib/quote.c: Likewise.
82042         * lib/quote.h: Likewise.
82043         * lib/quotearg.c: Likewise.
82044         * lib/quotearg.h: Likewise.
82045         * lib/raise.c: Likewise.
82046         * lib/readline.c: Likewise.
82047         * lib/readline.h: Likewise.
82048         * lib/readlink.c: Likewise.
82049         * lib/readtokens.c: Likewise.
82050         * lib/readtokens.h: Likewise.
82051         * lib/readtokens0.c: Likewise.
82052         * lib/readtokens0.h: Likewise.
82053         * lib/readutmp.c: Likewise.
82054         * lib/readutmp.h: Likewise.
82055         * lib/realloc.c: Likewise.
82056         * lib/relocwrapper.c: Likewise.
82057         * lib/rename-dest-slash.c: Likewise.
82058         * lib/rename.c: Likewise.
82059         * lib/rmdir.c: Likewise.
82060         * lib/rpmatch.c: Likewise.
82061         * lib/safe-read.c: Likewise.
82062         * lib/safe-read.h: Likewise.
82063         * lib/safe-write.c: Likewise.
82064         * lib/safe-write.h: Likewise.
82065         * lib/same-inode.h: Likewise.
82066         * lib/same.c: Likewise.
82067         * lib/same.h: Likewise.
82068         * lib/save-cwd.c: Likewise.
82069         * lib/save-cwd.h: Likewise.
82070         * lib/savedir.c: Likewise.
82071         * lib/savedir.h: Likewise.
82072         * lib/savewd.c: Likewise.
82073         * lib/savewd.h: Likewise.
82074         * lib/search.in.h: Likewise.
82075         * lib/setenv.c: Likewise.
82076         * lib/setenv.h: Likewise.
82077         * lib/settime.c: Likewise.
82078         * lib/sh-quote.c: Likewise.
82079         * lib/sh-quote.h: Likewise.
82080         * lib/sig2str.c: Likewise.
82081         * lib/sig2str.h: Likewise.
82082         * lib/signal.in.h: Likewise.
82083         * lib/signbitd.c: Likewise.
82084         * lib/signbitf.c: Likewise.
82085         * lib/signbitl.c: Likewise.
82086         * lib/sigprocmask.c: Likewise.
82087         * lib/sincosl.c: Likewise.
82088         * lib/sleep.c: Likewise.
82089         * lib/sprintf.c: Likewise.
82090         * lib/sqrtl.c: Likewise.
82091         * lib/stat-time.h: Likewise.
82092         * lib/stdio--.h: Likewise.
82093         * lib/stdio-safer.h: Likewise.
82094         * lib/stdlib--.h: Likewise.
82095         * lib/stdlib-safer.h: Likewise.
82096         * lib/stdlib.in.h: Likewise.
82097         * lib/stpcpy.c: Likewise.
82098         * lib/stpncpy.c: Likewise.
82099         * lib/strchrnul.c: Likewise.
82100         * lib/strcspn.c: Likewise.
82101         * lib/strerror.c: Likewise.
82102         * lib/strftime.c: Likewise.
82103         * lib/strftime.h: Likewise.
82104         * lib/striconveh.c: Likewise.
82105         * lib/striconveh.h: Likewise.
82106         * lib/striconveha.c: Likewise.
82107         * lib/striconveha.h: Likewise.
82108         * lib/stripslash.c: Likewise.
82109         * lib/strnlen1.c: Likewise.
82110         * lib/strnlen1.h: Likewise.
82111         * lib/strtod.c: Likewise.
82112         * lib/strtoimax.c: Likewise.
82113         * lib/strtok_r.c: Likewise.
82114         * lib/strtol.c: Likewise.
82115         * lib/strtoll.c: Likewise.
82116         * lib/strtoul.c: Likewise.
82117         * lib/strtoull.c: Likewise.
82118         * lib/sysexits.in.h: Likewise.
82119         * lib/tempname.c: Likewise.
82120         * lib/tempname.h: Likewise.
82121         * lib/timespec.h: Likewise.
82122         * lib/tls.c: Likewise.
82123         * lib/tls.h: Likewise.
82124         * lib/tmpdir.c: Likewise.
82125         * lib/tmpdir.h: Likewise.
82126         * lib/tmpfile-safer.c: Likewise.
82127         * lib/tmpfile.c: Likewise.
82128         * lib/trigl.c: Likewise.
82129         * lib/trigl.h: Likewise.
82130         * lib/trim.c: Likewise.
82131         * lib/trim.h: Likewise.
82132         * lib/trunc.c: Likewise.
82133         * lib/truncf.c: Likewise.
82134         * lib/truncl.c: Likewise.
82135         * lib/tsearch.c: Likewise.
82136         * lib/unicodeio.c: Likewise.
82137         * lib/unicodeio.h: Likewise.
82138         * lib/unistd--.h: Likewise.
82139         * lib/unistd-safer.h: Likewise.
82140         * lib/unistdio/ulc-fprintf.c: Likewise.
82141         * lib/unistdio/ulc-vfprintf.c: Likewise.
82142         * lib/unlinkdir.c: Likewise.
82143         * lib/unlinkdir.h: Likewise.
82144         * lib/unlocked-io.h: Likewise.
82145         * lib/unsetenv.c: Likewise.
82146         * lib/userspec.c: Likewise.
82147         * lib/utime.c: Likewise.
82148         * lib/utimecmp.c: Likewise.
82149         * lib/utimecmp.h: Likewise.
82150         * lib/utimens.c: Likewise.
82151         * lib/verify.h: Likewise.
82152         * lib/verror.c: Likewise.
82153         * lib/verror.h: Likewise.
82154         * lib/version-etc-fsf.c: Likewise.
82155         * lib/version-etc.c: Likewise.
82156         * lib/version-etc.h: Likewise.
82157         * lib/vfprintf.c: Likewise.
82158         * lib/vprintf.c: Likewise.
82159         * lib/vsprintf.c: Likewise.
82160         * lib/w32spawn.h: Likewise.
82161         * lib/wait-process.c: Likewise.
82162         * lib/wait-process.h: Likewise.
82163         * lib/wcwidth.c: Likewise.
82164         * lib/write-any-file.c: Likewise.
82165         * lib/xalloc-die.c: Likewise.
82166         * lib/xalloc.h: Likewise.
82167         * lib/xasprintf.c: Likewise.
82168         * lib/xgetcwd.c: Likewise.
82169         * lib/xgetcwd.h: Likewise.
82170         * lib/xgetdomainname.c: Likewise.
82171         * lib/xgetdomainname.h: Likewise.
82172         * lib/xgethostname.c: Likewise.
82173         * lib/xmalloc.c: Likewise.
82174         * lib/xmalloca.c: Likewise.
82175         * lib/xmalloca.h: Likewise.
82176         * lib/xmemcoll.c: Likewise.
82177         * lib/xnanosleep.c: Likewise.
82178         * lib/xreadlink.c: Likewise.
82179         * lib/xreadlink.h: Likewise.
82180         * lib/xsetenv.c: Likewise.
82181         * lib/xsetenv.h: Likewise.
82182         * lib/xstriconv.c: Likewise.
82183         * lib/xstriconv.h: Likewise.
82184         * lib/xstrndup.c: Likewise.
82185         * lib/xstrndup.h: Likewise.
82186         * lib/xstrtod.c: Likewise.
82187         * lib/xstrtod.h: Likewise.
82188         * lib/xstrtol-error.c: Likewise.
82189         * lib/xstrtol.c: Likewise.
82190         * lib/xstrtol.h: Likewise.
82191         * lib/xtime.h: Likewise.
82192         * lib/xvasprintf.c: Likewise.
82193         * lib/xvasprintf.h: Likewise.
82194         * lib/yesno.c: Likewise.
82195         * lib/yesno.h: Likewise.
82196         * posix-modules: Likewise.
82197         * tests/test-alloca-opt.c: Likewise.
82198         * tests/test-arcfour.c: Likewise.
82199         * tests/test-arctwo.c: Likewise.
82200         * tests/test-argmatch.c: Likewise.
82201         * tests/test-argp-2.sh: Likewise.
82202         * tests/test-argp.c: Likewise.
82203         * tests/test-arpa_inet.c: Likewise.
82204         * tests/test-array_list.c: Likewise.
82205         * tests/test-array_oset.c: Likewise.
82206         * tests/test-atexit.c: Likewise.
82207         * tests/test-avltree_list.c: Likewise.
82208         * tests/test-avltree_oset.c: Likewise.
82209         * tests/test-avltreehash_list.c: Likewise.
82210         * tests/test-base64.c: Likewise.
82211         * tests/test-binary-io.c: Likewise.
82212         * tests/test-byteswap.c: Likewise.
82213         * tests/test-c-ctype.c: Likewise.
82214         * tests/test-c-strcasecmp.c: Likewise.
82215         * tests/test-c-strcasestr.c: Likewise.
82216         * tests/test-c-strncasecmp.c: Likewise.
82217         * tests/test-c-strstr.c: Likewise.
82218         * tests/test-canonicalize-lgpl.c: Likewise.
82219         * tests/test-canonicalize.c: Likewise.
82220         * tests/test-carray_list.c: Likewise.
82221         * tests/test-ceilf.c: Likewise.
82222         * tests/test-ceill.c: Likewise.
82223         * tests/test-count-one-bits.c: Likewise.
82224         * tests/test-crc.c: Likewise.
82225         * tests/test-dirname.c: Likewise.
82226         * tests/test-fbufmode.c: Likewise.
82227         * tests/test-fcntl.c: Likewise.
82228         * tests/test-fflush.c: Likewise.
82229         * tests/test-floorf.c: Likewise.
82230         * tests/test-floorl.c: Likewise.
82231         * tests/test-fopen.c: Likewise.
82232         * tests/test-fprintf-posix.c: Likewise.
82233         * tests/test-fprintf-posix.h: Likewise.
82234         * tests/test-fpurge.c: Likewise.
82235         * tests/test-freadable.c: Likewise.
82236         * tests/test-freadahead.c: Likewise.
82237         * tests/test-freading.c: Likewise.
82238         * tests/test-freopen.c: Likewise.
82239         * tests/test-frexp.c: Likewise.
82240         * tests/test-frexpl.c: Likewise.
82241         * tests/test-fseek.c: Likewise.
82242         * tests/test-fseeko.c: Likewise.
82243         * tests/test-fseterr.c: Likewise.
82244         * tests/test-fstrcmp.c: Likewise.
82245         * tests/test-ftell.c: Likewise.
82246         * tests/test-ftello.c: Likewise.
82247         * tests/test-fwritable.c: Likewise.
82248         * tests/test-fwriting.c: Likewise.
82249         * tests/test-getaddrinfo.c: Likewise.
82250         * tests/test-getpass.c: Likewise.
82251         * tests/test-gettimeofday.c: Likewise.
82252         * tests/test-hmac-md5.c: Likewise.
82253         * tests/test-hmac-sha1.c: Likewise.
82254         * tests/test-iconv.c: Likewise.
82255         * tests/test-iconvme.c: Likewise.
82256         * tests/test-inttypes.c: Likewise.
82257         * tests/test-isnan.c: Likewise.
82258         * tests/test-isnanf.c: Likewise.
82259         * tests/test-isnanl-nolibm.c: Likewise.
82260         * tests/test-isnanl.c: Likewise.
82261         * tests/test-isnanl.h: Likewise.
82262         * tests/test-ldexpl.c: Likewise.
82263         * tests/test-linked_list.c: Likewise.
82264         * tests/test-linkedhash_list.c: Likewise.
82265         * tests/test-locale.c: Likewise.
82266         * tests/test-localename.c: Likewise.
82267         * tests/test-lock.c: Likewise.
82268         * tests/test-lseek.c: Likewise.
82269         * tests/test-malloca.c: Likewise.
82270         * tests/test-math.c: Likewise.
82271         * tests/test-mbscasecmp.c: Likewise.
82272         * tests/test-mbscasestr1.c: Likewise.
82273         * tests/test-mbscasestr2.c: Likewise.
82274         * tests/test-mbscasestr3.c: Likewise.
82275         * tests/test-mbscasestr4.c: Likewise.
82276         * tests/test-mbschr.c: Likewise.
82277         * tests/test-mbscspn.c: Likewise.
82278         * tests/test-mbsncasecmp.c: Likewise.
82279         * tests/test-mbspbrk.c: Likewise.
82280         * tests/test-mbspcasecmp.c: Likewise.
82281         * tests/test-mbsrchr.c: Likewise.
82282         * tests/test-mbsspn.c: Likewise.
82283         * tests/test-mbsstr1.c: Likewise.
82284         * tests/test-mbsstr2.c: Likewise.
82285         * tests/test-mbsstr3.c: Likewise.
82286         * tests/test-md5.c: Likewise.
82287         * tests/test-memmem.c: Likewise.
82288         * tests/test-netinet_in.c: Likewise.
82289         * tests/test-open.c: Likewise.
82290         * tests/test-printf-frexp.c: Likewise.
82291         * tests/test-printf-frexpl.c: Likewise.
82292         * tests/test-printf-posix.c: Likewise.
82293         * tests/test-printf-posix.h: Likewise.
82294         * tests/test-rbtree_list.c: Likewise.
82295         * tests/test-rbtree_oset.c: Likewise.
82296         * tests/test-rbtreehash_list.c: Likewise.
82297         * tests/test-read-file.c: Likewise.
82298         * tests/test-rijndael.c: Likewise.
82299         * tests/test-search.c: Likewise.
82300         * tests/test-signbit.c: Likewise.
82301         * tests/test-sleep.c: Likewise.
82302         * tests/test-snprintf-posix.c: Likewise.
82303         * tests/test-snprintf-posix.h: Likewise.
82304         * tests/test-snprintf.c: Likewise.
82305         * tests/test-sprintf-posix.c: Likewise.
82306         * tests/test-sprintf-posix.h: Likewise.
82307         * tests/test-stat-time.c: Likewise.
82308         * tests/test-stdbool.c: Likewise.
82309         * tests/test-stdint.c: Likewise.
82310         * tests/test-stdio.c: Likewise.
82311         * tests/test-stdlib.c: Likewise.
82312         * tests/test-stpncpy.c: Likewise.
82313         * tests/test-strcasestr.c: Likewise.
82314         * tests/test-striconv.c: Likewise.
82315         * tests/test-striconveh.c: Likewise.
82316         * tests/test-striconveha.c: Likewise.
82317         * tests/test-string.c: Likewise.
82318         * tests/test-sys_select.c: Likewise.
82319         * tests/test-sys_socket.c: Likewise.
82320         * tests/test-sys_stat.c: Likewise.
82321         * tests/test-sys_time.c: Likewise.
82322         * tests/test-sysexits.c: Likewise.
82323         * tests/test-time.c: Likewise.
82324         * tests/test-tls.c: Likewise.
82325         * tests/test-trunc.c: Likewise.
82326         * tests/test-truncf.c: Likewise.
82327         * tests/test-truncl.c: Likewise.
82328         * tests/test-unistd.c: Likewise.
82329         * tests/test-vasnprintf-posix.c: Likewise.
82330         * tests/test-vasnprintf-posix2.c: Likewise.
82331         * tests/test-vasnprintf.c: Likewise.
82332         * tests/test-vasprintf-posix.c: Likewise.
82333         * tests/test-vasprintf.c: Likewise.
82334         * tests/test-verify.c: Likewise.
82335         * tests/test-vfprintf-posix.c: Likewise.
82336         * tests/test-vprintf-posix.c: Likewise.
82337         * tests/test-vsnprintf-posix.c: Likewise.
82338         * tests/test-vsnprintf.c: Likewise.
82339         * tests/test-vsprintf-posix.c: Likewise.
82340         * tests/test-wchar.c: Likewise.
82341         * tests/test-wctype.c: Likewise.
82342         * tests/test-wcwidth.c: Likewise.
82343         * tests/test-xstrtol.c: Likewise.
82344         * tests/test-xvasprintf.c: Likewise.
82345         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
82346         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
82347         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
82348         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
82349         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
82350         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
82351         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
82352         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
82353         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
82354         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
82355         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
82356         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
82357         * tests/uniname/test-uninames.c: Likewise.
82358         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
82359         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
82360         * tests/unistdio/test-u16-printf1.h: Likewise.
82361         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
82362         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
82363         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
82364         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
82365         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
82366         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
82367         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
82368         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
82369         * tests/unistdio/test-u32-printf1.h: Likewise.
82370         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
82371         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
82372         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
82373         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
82374         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
82375         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
82376         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
82377         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
82378         * tests/unistdio/test-u8-printf1.h: Likewise.
82379         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
82380         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
82381         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
82382         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
82383         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
82384         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
82385         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
82386         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
82387         * tests/unistdio/test-ulc-printf1.h: Likewise.
82388         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
82389         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
82390         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
82391         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
82392         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
82393         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
82394         * tests/uniwidth/test-u16-strwidth.c: Likewise.
82395         * tests/uniwidth/test-u16-width.c: Likewise.
82396         * tests/uniwidth/test-u32-strwidth.c: Likewise.
82397         * tests/uniwidth/test-u32-width.c: Likewise.
82398         * tests/uniwidth/test-u8-strwidth.c: Likewise.
82399         * tests/uniwidth/test-u8-width.c: Likewise.
82400         * tests/uniwidth/test-uc_width.c: Likewise.
82401         * config/srclist-update: Likewise.
82402         (fixlicense): Update to GPLv3+.
82404         Change copyright notice from LGPLv2.1+ to LGPLv3+.
82405         * tests/test-tsearch.c: Change copyright notice.
82407         Change copyright notice from LGPLv2.0+ to LGPLv3+.
82408         * lib/c-strcaseeq.h: Change copyright notice.
82409         * lib/streq.h: Likewise.
82410         * lib/uniconv.h: Likewise.
82411         * lib/uniconv/u-conv-from-enc.h: Likewise.
82412         * lib/uniconv/u-conv-to-enc.h: Likewise.
82413         * lib/uniconv/u-strconv-from-enc.h: Likewise.
82414         * lib/uniconv/u-strconv-to-enc.h: Likewise.
82415         * lib/uniconv/u16-conv-from-enc.c: Likewise.
82416         * lib/uniconv/u16-conv-to-enc.c: Likewise.
82417         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
82418         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
82419         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
82420         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
82421         * lib/uniconv/u32-conv-from-enc.c: Likewise.
82422         * lib/uniconv/u32-conv-to-enc.c: Likewise.
82423         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
82424         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
82425         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
82426         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
82427         * lib/uniconv/u8-conv-from-enc.c: Likewise.
82428         * lib/uniconv/u8-conv-to-enc.c: Likewise.
82429         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
82430         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
82431         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
82432         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
82433         * lib/uniname.h: Likewise.
82434         * lib/uniname/uniname.c: Likewise.
82435         * lib/unistdio.h: Likewise.
82436         * lib/unistdio/u-asnprintf.h: Likewise.
82437         * lib/unistdio/u-asprintf.h: Likewise.
82438         * lib/unistdio/u-printf-args.c: Likewise.
82439         * lib/unistdio/u-printf-args.h: Likewise.
82440         * lib/unistdio/u-printf-parse.h: Likewise.
82441         * lib/unistdio/u-snprintf.h: Likewise.
82442         * lib/unistdio/u-sprintf.h: Likewise.
82443         * lib/unistdio/u-vasprintf.h: Likewise.
82444         * lib/unistdio/u-vsnprintf.h: Likewise.
82445         * lib/unistdio/u-vsprintf.h: Likewise.
82446         * lib/unistdio/u16-asnprintf.c: Likewise.
82447         * lib/unistdio/u16-asprintf.c: Likewise.
82448         * lib/unistdio/u16-printf-parse.c: Likewise.
82449         * lib/unistdio/u16-snprintf.c: Likewise.
82450         * lib/unistdio/u16-sprintf.c: Likewise.
82451         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
82452         * lib/unistdio/u16-u16-asprintf.c: Likewise.
82453         * lib/unistdio/u16-u16-snprintf.c: Likewise.
82454         * lib/unistdio/u16-u16-sprintf.c: Likewise.
82455         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
82456         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
82457         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
82458         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
82459         * lib/unistdio/u16-vasnprintf.c: Likewise.
82460         * lib/unistdio/u16-vasprintf.c: Likewise.
82461         * lib/unistdio/u16-vsnprintf.c: Likewise.
82462         * lib/unistdio/u16-vsprintf.c: Likewise.
82463         * lib/unistdio/u32-asnprintf.c: Likewise.
82464         * lib/unistdio/u32-asprintf.c: Likewise.
82465         * lib/unistdio/u32-printf-parse.c: Likewise.
82466         * lib/unistdio/u32-snprintf.c: Likewise.
82467         * lib/unistdio/u32-sprintf.c: Likewise.
82468         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
82469         * lib/unistdio/u32-u32-asprintf.c: Likewise.
82470         * lib/unistdio/u32-u32-snprintf.c: Likewise.
82471         * lib/unistdio/u32-u32-sprintf.c: Likewise.
82472         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
82473         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
82474         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
82475         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
82476         * lib/unistdio/u32-vasnprintf.c: Likewise.
82477         * lib/unistdio/u32-vasprintf.c: Likewise.
82478         * lib/unistdio/u32-vsnprintf.c: Likewise.
82479         * lib/unistdio/u32-vsprintf.c: Likewise.
82480         * lib/unistdio/u8-asnprintf.c: Likewise.
82481         * lib/unistdio/u8-asprintf.c: Likewise.
82482         * lib/unistdio/u8-printf-parse.c: Likewise.
82483         * lib/unistdio/u8-snprintf.c: Likewise.
82484         * lib/unistdio/u8-sprintf.c: Likewise.
82485         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
82486         * lib/unistdio/u8-u8-asprintf.c: Likewise.
82487         * lib/unistdio/u8-u8-snprintf.c: Likewise.
82488         * lib/unistdio/u8-u8-sprintf.c: Likewise.
82489         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
82490         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
82491         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
82492         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
82493         * lib/unistdio/u8-vasnprintf.c: Likewise.
82494         * lib/unistdio/u8-vasprintf.c: Likewise.
82495         * lib/unistdio/u8-vsnprintf.c: Likewise.
82496         * lib/unistdio/u8-vsprintf.c: Likewise.
82497         * lib/unistdio/ulc-asnprintf.c: Likewise.
82498         * lib/unistdio/ulc-asprintf.c: Likewise.
82499         * lib/unistdio/ulc-printf-parse.c: Likewise.
82500         * lib/unistdio/ulc-snprintf.c: Likewise.
82501         * lib/unistdio/ulc-sprintf.c: Likewise.
82502         * lib/unistdio/ulc-vasnprintf.c: Likewise.
82503         * lib/unistdio/ulc-vasprintf.c: Likewise.
82504         * lib/unistdio/ulc-vsnprintf.c: Likewise.
82505         * lib/unistdio/ulc-vsprintf.c: Likewise.
82506         * lib/unistr.h: Likewise.
82507         * lib/unistr/u-cpy-alloc.h: Likewise.
82508         * lib/unistr/u-cpy.h: Likewise.
82509         * lib/unistr/u-endswith.h: Likewise.
82510         * lib/unistr/u-move.h: Likewise.
82511         * lib/unistr/u-set.h: Likewise.
82512         * lib/unistr/u-startswith.h: Likewise.
82513         * lib/unistr/u-stpcpy.h: Likewise.
82514         * lib/unistr/u-stpncpy.h: Likewise.
82515         * lib/unistr/u-strcat.h: Likewise.
82516         * lib/unistr/u-strcpy.h: Likewise.
82517         * lib/unistr/u-strcspn.h: Likewise.
82518         * lib/unistr/u-strdup.h: Likewise.
82519         * lib/unistr/u-strlen.h: Likewise.
82520         * lib/unistr/u-strncat.h: Likewise.
82521         * lib/unistr/u-strncpy.h: Likewise.
82522         * lib/unistr/u-strnlen.h: Likewise.
82523         * lib/unistr/u-strpbrk.h: Likewise.
82524         * lib/unistr/u-strspn.h: Likewise.
82525         * lib/unistr/u-strstr.h: Likewise.
82526         * lib/unistr/u-strtok.h: Likewise.
82527         * lib/unistr/u16-check.c: Likewise.
82528         * lib/unistr/u16-chr.c: Likewise.
82529         * lib/unistr/u16-cmp.c: Likewise.
82530         * lib/unistr/u16-cpy-alloc.c: Likewise.
82531         * lib/unistr/u16-cpy.c: Likewise.
82532         * lib/unistr/u16-endswith.c: Likewise.
82533         * lib/unistr/u16-mblen.c: Likewise.
82534         * lib/unistr/u16-mbsnlen.c: Likewise.
82535         * lib/unistr/u16-mbtouc-aux.c: Likewise.
82536         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
82537         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
82538         * lib/unistr/u16-mbtouc.c: Likewise.
82539         * lib/unistr/u16-mbtoucr.c: Likewise.
82540         * lib/unistr/u16-move.c: Likewise.
82541         * lib/unistr/u16-next.c: Likewise.
82542         * lib/unistr/u16-prev.c: Likewise.
82543         * lib/unistr/u16-set.c: Likewise.
82544         * lib/unistr/u16-startswith.c: Likewise.
82545         * lib/unistr/u16-stpcpy.c: Likewise.
82546         * lib/unistr/u16-stpncpy.c: Likewise.
82547         * lib/unistr/u16-strcat.c: Likewise.
82548         * lib/unistr/u16-strchr.c: Likewise.
82549         * lib/unistr/u16-strcmp.c: Likewise.
82550         * lib/unistr/u16-strcpy.c: Likewise.
82551         * lib/unistr/u16-strcspn.c: Likewise.
82552         * lib/unistr/u16-strdup.c: Likewise.
82553         * lib/unistr/u16-strlen.c: Likewise.
82554         * lib/unistr/u16-strmblen.c: Likewise.
82555         * lib/unistr/u16-strmbtouc.c: Likewise.
82556         * lib/unistr/u16-strncat.c: Likewise.
82557         * lib/unistr/u16-strncmp.c: Likewise.
82558         * lib/unistr/u16-strncpy.c: Likewise.
82559         * lib/unistr/u16-strnlen.c: Likewise.
82560         * lib/unistr/u16-strpbrk.c: Likewise.
82561         * lib/unistr/u16-strrchr.c: Likewise.
82562         * lib/unistr/u16-strspn.c: Likewise.
82563         * lib/unistr/u16-strstr.c: Likewise.
82564         * lib/unistr/u16-strtok.c: Likewise.
82565         * lib/unistr/u16-to-u32.c: Likewise.
82566         * lib/unistr/u16-to-u8.c: Likewise.
82567         * lib/unistr/u16-uctomb-aux.c: Likewise.
82568         * lib/unistr/u16-uctomb.c: Likewise.
82569         * lib/unistr/u32-check.c: Likewise.
82570         * lib/unistr/u32-chr.c: Likewise.
82571         * lib/unistr/u32-cmp.c: Likewise.
82572         * lib/unistr/u32-cpy-alloc.c: Likewise.
82573         * lib/unistr/u32-cpy.c: Likewise.
82574         * lib/unistr/u32-endswith.c: Likewise.
82575         * lib/unistr/u32-mblen.c: Likewise.
82576         * lib/unistr/u32-mbsnlen.c: Likewise.
82577         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
82578         * lib/unistr/u32-mbtouc.c: Likewise.
82579         * lib/unistr/u32-mbtoucr.c: Likewise.
82580         * lib/unistr/u32-move.c: Likewise.
82581         * lib/unistr/u32-next.c: Likewise.
82582         * lib/unistr/u32-prev.c: Likewise.
82583         * lib/unistr/u32-set.c: Likewise.
82584         * lib/unistr/u32-startswith.c: Likewise.
82585         * lib/unistr/u32-stpcpy.c: Likewise.
82586         * lib/unistr/u32-stpncpy.c: Likewise.
82587         * lib/unistr/u32-strcat.c: Likewise.
82588         * lib/unistr/u32-strchr.c: Likewise.
82589         * lib/unistr/u32-strcmp.c: Likewise.
82590         * lib/unistr/u32-strcpy.c: Likewise.
82591         * lib/unistr/u32-strcspn.c: Likewise.
82592         * lib/unistr/u32-strdup.c: Likewise.
82593         * lib/unistr/u32-strlen.c: Likewise.
82594         * lib/unistr/u32-strmblen.c: Likewise.
82595         * lib/unistr/u32-strmbtouc.c: Likewise.
82596         * lib/unistr/u32-strncat.c: Likewise.
82597         * lib/unistr/u32-strncmp.c: Likewise.
82598         * lib/unistr/u32-strncpy.c: Likewise.
82599         * lib/unistr/u32-strnlen.c: Likewise.
82600         * lib/unistr/u32-strpbrk.c: Likewise.
82601         * lib/unistr/u32-strrchr.c: Likewise.
82602         * lib/unistr/u32-strspn.c: Likewise.
82603         * lib/unistr/u32-strstr.c: Likewise.
82604         * lib/unistr/u32-strtok.c: Likewise.
82605         * lib/unistr/u32-to-u16.c: Likewise.
82606         * lib/unistr/u32-to-u8.c: Likewise.
82607         * lib/unistr/u32-uctomb.c: Likewise.
82608         * lib/unistr/u8-check.c: Likewise.
82609         * lib/unistr/u8-chr.c: Likewise.
82610         * lib/unistr/u8-cmp.c: Likewise.
82611         * lib/unistr/u8-cpy-alloc.c: Likewise.
82612         * lib/unistr/u8-cpy.c: Likewise.
82613         * lib/unistr/u8-endswith.c: Likewise.
82614         * lib/unistr/u8-mblen.c: Likewise.
82615         * lib/unistr/u8-mbsnlen.c: Likewise.
82616         * lib/unistr/u8-mbtouc-aux.c: Likewise.
82617         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
82618         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
82619         * lib/unistr/u8-mbtouc.c: Likewise.
82620         * lib/unistr/u8-mbtoucr.c: Likewise.
82621         * lib/unistr/u8-move.c: Likewise.
82622         * lib/unistr/u8-next.c: Likewise.
82623         * lib/unistr/u8-prev.c: Likewise.
82624         * lib/unistr/u8-set.c: Likewise.
82625         * lib/unistr/u8-startswith.c: Likewise.
82626         * lib/unistr/u8-stpcpy.c: Likewise.
82627         * lib/unistr/u8-stpncpy.c: Likewise.
82628         * lib/unistr/u8-strcat.c: Likewise.
82629         * lib/unistr/u8-strchr.c: Likewise.
82630         * lib/unistr/u8-strcmp.c: Likewise.
82631         * lib/unistr/u8-strcpy.c: Likewise.
82632         * lib/unistr/u8-strcspn.c: Likewise.
82633         * lib/unistr/u8-strdup.c: Likewise.
82634         * lib/unistr/u8-strlen.c: Likewise.
82635         * lib/unistr/u8-strmblen.c: Likewise.
82636         * lib/unistr/u8-strmbtouc.c: Likewise.
82637         * lib/unistr/u8-strncat.c: Likewise.
82638         * lib/unistr/u8-strncmp.c: Likewise.
82639         * lib/unistr/u8-strncpy.c: Likewise.
82640         * lib/unistr/u8-strnlen.c: Likewise.
82641         * lib/unistr/u8-strpbrk.c: Likewise.
82642         * lib/unistr/u8-strrchr.c: Likewise.
82643         * lib/unistr/u8-strspn.c: Likewise.
82644         * lib/unistr/u8-strstr.c: Likewise.
82645         * lib/unistr/u8-strtok.c: Likewise.
82646         * lib/unistr/u8-to-u16.c: Likewise.
82647         * lib/unistr/u8-to-u32.c: Likewise.
82648         * lib/unistr/u8-uctomb-aux.c: Likewise.
82649         * lib/unistr/u8-uctomb.c: Likewise.
82650         * lib/unitypes.h: Likewise.
82651         * lib/uniwidth.h: Likewise.
82652         * lib/uniwidth/cjk.h: Likewise.
82653         * lib/uniwidth/u16-strwidth.c: Likewise.
82654         * lib/uniwidth/u16-width.c: Likewise.
82655         * lib/uniwidth/u32-strwidth.c: Likewise.
82656         * lib/uniwidth/u32-width.c: Likewise.
82657         * lib/uniwidth/u8-strwidth.c: Likewise.
82658         * lib/uniwidth/u8-width.c: Likewise.
82659         * lib/uniwidth/width.c: Likewise.
82661 2007-10-07  Bruno Haible  <bruno@clisp.org>
82663         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
82664         The file is still under LGPL (see modules/inttypes).
82666 2007-10-06  Bruno Haible  <bruno@clisp.org>
82668         * modules/trunc (Dependencies): Add 'extensions'.
82669         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
82670         Reported by Ben Pfaff <blp@gnu.org>.
82672 2007-10-06  Bruno Haible  <bruno@clisp.org>
82674         * modules/freopen-tests: New file.
82675         * tests/test-freopen.c: New file.
82677         * modules/fopen-tests: New file.
82678         * tests/test-fopen.c: New file.
82680         * modules/fopen: New file.
82681         * lib/fopen.c: New file.
82682         * m4/fopen.m4: New file.
82683         * modules/freopen: New file.
82684         * lib/freopen.c: New file.
82685         * m4/freopen.m4: New file.
82686         * lib/stdio.in.h (fopen, freopen): New declarations.
82687         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
82688         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
82689         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
82690         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
82691         * doc/functions/fopen.texi: Mention the 'fopen' module.
82692         * doc/functions/freopen.texi: Mention the 'freopen' module.
82694 2007-10-06  Bruno Haible  <bruno@clisp.org>
82696         * modules/open-tests: New file.
82697         * tests/test-open.c: New file.
82699         * modules/open: New file.
82700         * lib/open.c: New file.
82701         * m4/open.m4: New file.
82702         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
82703         lib/open.c does.
82704         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
82705         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
82706         macros.
82707         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
82708         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
82709         REPLACE_OPEN.
82710         * doc/functions/open.texi: Mention the 'open' module.
82712 2007-10-04  Bruno Haible  <bruno@clisp.org>
82714         * modules/ceill-tests: New file.
82715         * tests/test-ceill.c: New file.
82717         * modules/ceill: New file.
82718         * lib/ceill.c: Replace entire file.
82719         * m4/ceill.m4: New file.
82720         * lib/math.in.h (ceill): Replace declaration.
82721         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
82722         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
82723         * doc/functions/ceill.texi: Mention the 'ceill' module.
82724         * modules/mathl (Files): Remove lib/ceill.c.
82725         (Depends-on): Add ceill.
82727 2007-10-04  Bruno Haible  <bruno@clisp.org>
82729         * modules/ceilf-tests: New file.
82730         * tests/test-ceilf.c: New file.
82732         * modules/ceilf: New file.
82733         * lib/ceil.c: New file.
82734         * lib/ceilf.c: New file.
82735         * m4/ceilf.m4: New file.
82736         * lib/math.in.h (ceilf): New declaration.
82737         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
82738         HAVE_DECL_CEILF.
82739         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
82740         HAVE_DECL_CEILF.
82741         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
82743 2007-10-04  Bruno Haible  <bruno@clisp.org>
82745         * modules/floorl-tests: New file.
82746         * tests/test-floorl.c: New file.
82748         * modules/floorl: New file.
82749         * lib/floorl.c: Replace entire file.
82750         * m4/floorl.m4: New file.
82751         * lib/math.in.h (floorl): Replace declaration.
82752         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
82753         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
82754         * doc/functions/floorl.texi: Mention the 'floorl' module.
82755         * modules/mathl (Files): Remove lib/floorl.c.
82756         (Depends-on): Add floorl.
82758 2007-10-04  Bruno Haible  <bruno@clisp.org>
82760         * modules/floorf-tests: New file.
82761         * tests/test-floorf.c: New file.
82763         * modules/floorf: New file.
82764         * lib/floor.c: New file.
82765         * lib/floorf.c: New file.
82766         * m4/floorf.m4: New file.
82767         * lib/math.in.h (floorf): New declaration.
82768         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
82769         HAVE_DECL_FLOORF.
82770         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
82771         HAVE_DECL_FLOORF.
82772         * doc/functions/floorf.texi: Mention the 'floorf' module.
82774 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
82775             Bruno Haible  <bruno@clisp.org>
82777         Advertise for the Git server instead of the CVS server.
82778         * doc/gnulib-intro.texi (Steady Development): Mention the Git
82779         repository instead of the CVS one.
82780         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
82781         about all VCS systems generically.
82782         * doc/gnulib.texi (Introduction): Capitalize `Git'.
82784 2007-10-04  Bruno Haible  <bruno@clisp.org>
82786         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
82787         means.
82788         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
82790 2007-10-04  Bruno Haible  <bruno@clisp.org>
82792         * modules/truncl-tests: New file.
82793         * tests/test-truncl.c: New file.
82795         * modules/truncl: New file.
82796         * lib/truncl.c: New file.
82797         * m4/truncl.m4: New file.
82798         * lib/math.in.h (truncl): New declaration.
82799         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
82800         HAVE_DECL_TRUNCL.
82801         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
82802         HAVE_DECL_TRUNCL.
82803         * doc/functions/truncl.texi: Mention the 'truncl' module.
82805 2007-10-04  Bruno Haible  <bruno@clisp.org>
82807         * modules/truncf-tests: New file.
82808         * tests/test-truncf.c: New file.
82810         * modules/truncf: New file.
82811         * lib/trunc.c: Make paramerizable through USE_* macros.
82812         * lib/truncf.c: New file.
82813         * m4/truncf.m4: New file.
82814         * lib/math.in.h (truncf): New declaration.
82815         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
82816         HAVE_DECL_TRUNCF.
82817         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
82818         HAVE_DECL_TRUNCF.
82819         * doc/functions/truncf.texi: Mention the 'truncf' module.
82821 2007-10-03  Bruno Haible  <bruno@clisp.org>
82823         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
82824         augmentation also for tests modules.
82825         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
82826         * modules/atexit-tests (Makefile.am): Likewise.
82827         * modules/binary-io-tests (Makefile.am): Likewise.
82828         * modules/c-strcase-tests (Makefile.am): Likewise.
82829         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
82830         * modules/canonicalize-tests (Makefile.am): Likewise.
82831         * modules/closein-tests (Makefile.am): Likewise.
82832         * modules/fprintf-posix-tests (Makefile.am): Likewise.
82833         * modules/freadahead-tests (Makefile.am): Likewise.
82834         * modules/fseek-tests (Makefile.am): Likewise.
82835         * modules/fseeko-tests (Makefile.am): Likewise.
82836         * modules/ftell-tests (Makefile.am): Likewise.
82837         * modules/ftello-tests (Makefile.am): Likewise.
82838         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
82839         * modules/isnanl-tests (Makefile.am): Likewise.
82840         * modules/lseek-tests (Makefile.am): Likewise.
82841         * modules/mbscasecmp-tests (Makefile.am): Likewise.
82842         * modules/mbscasestr-tests (Makefile.am): Likewise.
82843         * modules/mbschr-tests (Makefile.am): Likewise.
82844         * modules/mbscspn-tests (Makefile.am): Likewise.
82845         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
82846         * modules/mbspbrk-tests (Makefile.am): Likewise.
82847         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
82848         * modules/mbsrchr-tests (Makefile.am): Likewise.
82849         * modules/mbsspn-tests (Makefile.am): Likewise.
82850         * modules/mbsstr-tests (Makefile.am): Likewise.
82851         * modules/printf-posix-tests (Makefile.am): Likewise.
82852         * modules/snprintf-posix-tests (Makefile.am): Likewise.
82853         * modules/sprintf-posix-tests (Makefile.am): Likewise.
82854         * modules/tsearch-tests (Makefile.am): Likewise.
82855         * modules/uniname/uniname-tests (Makefile.am): Likewise.
82856         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
82857         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
82858         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
82859         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
82860         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
82861         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
82862         * modules/vprintf-posix-tests (Makefile.am): Likewise.
82863         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
82864         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
82865         * modules/xstrtoimax-tests (Makefile.am): Likewise.
82866         * modules/xstrtol-tests (Makefile.am): Likewise.
82867         * modules/xstrtoumax-tests (Makefile.am): Likewise.
82868         * modules/yesno-tests (Makefile.am): Likewise.
82870 2007-10-03  Bruno Haible  <bruno@clisp.org>
82872         * modules/trunc-tests: New file.
82873         * tests/test-trunc.c: New file.
82875         * modules/trunc: New file.
82876         * lib/trunc.c: New file.
82877         * m4/trunc.m4: New file.
82878         * lib/math.in.h (trunc): New declaration.
82879         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
82880         HAVE_DECL_TRUNC.
82881         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
82882         HAVE_DECL_TRUNC.
82883         * doc/functions/trunc.texi: Mention the 'trunc' module.
82885 2007-10-03  Bruno Haible  <bruno@clisp.org>
82887         * tests/test-fpending.c: New file, mostly copied
82888         from coreutils/lib/t-fpending.c.
82889         * modules/fpending-tests: New file.
82891 2007-10-03  Bruno Haible  <bruno@clisp.org>
82893         Port the stdio extensions to QNX (untested).
82894         * lib/fseterr.c (fseterr): Add support for QNX.
82895         * lib/fbufmode.c (fbufmode): Likewise.
82896         * lib/freadable.c (freadable): Likewise.
82897         * lib/fwritable.c (fwritable): Likewise.
82898         * lib/freading.c (freading): Likewise.
82899         * lib/fwriting.c (fwriting): Likewise.
82900         * lib/freadahead.c (freadahed): Likewise.
82901         * lib/fpurge.c (fpurge): Likewise.
82902         * lib/fseeko.c (rpl_fseeko): Likewise.
82904 2007-10-03  Bruno Haible  <bruno@clisp.org>
82905             Jim Meyering  <jim@meyering.net>
82906             Eric Blake  <ebb9@byu.net>
82908         * doc/relocatable.texi: Use @command instead of @program.
82910 2007-10-02  Jim Meyering  <jim@meyering.net>
82912         Perform one more "_.h" -> ".in.h" substitution.
82913         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
82914         instead of unistd_.h here, too.
82916 2007-10-01  Bruno Haible  <bruno@clisp.org>
82918         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
82919         Needed for the alloca-opt module.
82921 2007-09-30  Bruno Haible  <bruno@clisp.org>
82923         * lib/alloca.in.h: Renamed from lib/alloca_.h.
82924         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
82925         alloca_.h.
82926         * lib/argz.in.h: Renamed from lib/argz_.h.
82927         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
82928         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
82929         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
82930         byteswap_.h.
82931         * lib/dirent.in.h: Renamed from lib/dirent_.h.
82932         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
82933         dirent_.h.
82934         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
82935         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
82936         fcntl_.h.
82937         * lib/float.in.h: Renamed from lib/float_.h.
82938         * modules/float (Files, Makefile.am): Use float.in.h instead of
82939         float_.h.
82940         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
82941         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
82942         fnmatch_.h.
82943         * lib/getopt.in.h: Renamed from lib/getopt_.h.
82944         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
82945         getopt_.h.
82946         * lib/glob.in.h: Renamed from lib/glob_.h.
82947         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
82948         * lib/iconv.in.h: Renamed from lib/iconv_.h.
82949         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
82950         iconv_.h.
82951         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
82952         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
82953         inttypes_.h.
82954         * lib/locale.in.h: Renamed from lib/locale_.h.
82955         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
82956         locale_.h.
82957         * lib/math.in.h: Renamed from lib/math_.h.
82958         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
82959         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
82960         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
82961         of netinet_in_.h. Add dependency.
82962         * lib/poll.in.h: Renamed from lib/poll_.h.
82963         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
82964         * lib/search.in.h: Renamed from lib/search_.h.
82965         * modules/search (Files, Makefile.am): Use search.in.h instead of
82966         search_.h.
82967         * lib/signal.in.h: Renamed from lib/signal_.h.
82968         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
82969         _signal.h.
82970         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
82971         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
82972         stdbool_.h.
82973         * lib/stdint.in.h: Renamed from lib/stdint_.h.
82974         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
82975         stdint_.h.
82976         * lib/stdio.in.h: Renamed from lib/stdio_.h.
82977         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
82978         stdio_.h.
82979         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
82980         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
82981         stdlib_.h.
82982         * lib/string.in.h: Renamed from lib/string_.h.
82983         * modules/string (Files, Makefile.am): Use string.in.h instead of
82984         string_.h.
82985         * doc/gnulib-tool.texi (Initial import): Update.
82986         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
82987         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
82988         of sys_select_.h. Add dependency.
82989         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
82990         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
82991         of sys_socket_.h.
82992         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
82993         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
82994         sys_stat_.h.
82995         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
82996         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
82997         sys_time_.h.
82998         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
82999         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
83000         sysexits_.h.
83001         * lib/time.in.h: Renamed from lib/time_.h.
83002         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
83003         * lib/unistd.in.h: Renamed from lib/unistd_.h.
83004         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
83005         unistd_.h.
83006         * lib/wchar.in.h: Renamed from lib/wchar_.h.
83007         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
83008         wchar_.h.
83009         * lib/wctype.in.h: Renamed from lib/wctype_.h.
83010         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
83011         wctype_.h.
83012         * build-aux/bootstrap (slurp): Update.
83013         * lib/.cppi-disable: Update.
83015 2007-09-30  Bruno Haible  <bruno@clisp.org>
83017         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
83018         Needed on BeOS.
83020 2007-09-30  Bruno Haible  <bruno@clisp.org>
83022         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
83024 2007-09-29  Bruno Haible  <bruno@clisp.org>
83026         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
83028 2007-09-29  Bruno Haible  <bruno@clisp.org>
83030         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
83031         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
83032         * build-aux/install-reloc: Compile also areadlink.c.
83033         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
83035 2007-09-29  Bruno Haible  <bruno@clisp.org>
83037         * gnulib-tool (func_emit_initmacro_done): Indentation.
83039 2007-09-29  Bruno Haible  <bruno@clisp.org>
83041         * README: Add CVS checkout update instructions.
83042         Info from Bob Proulx <bob@proulx.com>.
83044 2007-09-28  Eric Blake  <ebb9@byu.net>
83046         Provide move-if-change.
83047         * build-aux/move-if-change: New file, based on best practice
83048         rather than any canonical upstream location.
83050 2007-09-28  Jim Meyering  <jim@meyering.net>
83052         Fix canonicalize loop-detection corner case.
83053         Do not attempt to stat the symlink values stored via seen_triple.
83054         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
83055         on linux-2.6.18, (but not 2.6.22).
83056         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
83057         triple_compare.  The former compares dev,ino,filename, while the latter
83058         would actually stat dirname(filename) when dev and ino were equal.
83059         * lib/hash-triple.c: Install <string.h>.
83060         (STREQ): Define.
83061         (triple_compare_ino_str): New function.
83062         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
83064 2007-09-28  Eric Blake  <ebb9@byu.net>
83066         Enforce that AC_REPLACE_FUNCS files exist.
83067         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
83068         override check for typos.
83070         Fix test-closein on Solaris 10.
83071         * tests/test-closein.c (main): Don't assume stdin can be inherited
83072         closed on all systems.
83073         * tests/test-closein.sh: Likewise.
83074         Reported by Piotr Tarnowski.
83076 2007-09-28  Jim Meyering  <jim@meyering.net>
83078         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
83080 2007-09-27  Jim Meyering  <jim@meyering.net>
83082         canonicalize: Avoid a false-positive cycle failure.
83083         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
83084         Sort.  Remove cycle-check.
83085         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
83086         not cycle-check.h.
83087         (seen_triple): New function.
83088         (canonicalize_filename_mode): Use it instead of cycle-check.
83089         * tests/test-canonicalize.c: Add a test for this bug.
83090         * tests/test-canonicalize.sh: Set up and run the test.
83092         New module, file-set, from coreutils.
83093         * modules/file-set: Define it.
83094         * lib/file-set.c, lib/file-set.h: Implement.
83096         New module, hash-triple, from coreutils.
83097         * modules/hash-triple: Define it.
83098         * lib/hash-triple.c, lib/hash-triple.h: Implement.
83100 2007-09-25  Eric Blake  <ebb9@byu.net>
83102         Fix strerror on Interix.
83103         * lib/string_.h (strerror): Declare replacement.
83104         * doc/functions/strerror.texi (strerror): Document the Interix
83105         shortcoming.
83106         * modules/string (Makefile.am): Support new hooks.
83107         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
83108         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
83109         gl_FUNC_STRERROR_SEPARATE.
83110         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
83111         * lib/strerror.c (rpl_strerror): Provide replacement.
83112         * modules/strerror (Depends-on): Add string.
83113         (configure.ac): Detect use of module.
83114         * tests/test-strerror.c: New file.
83115         * modules/strerror-tests: New test module.
83116         * modules/argp (Depends-on): Add strerror.
83117         * modules/error (Depends-on): Likewise.
83118         Reported by Martin Koeppe.
83120 2007-09-24  Bruno Haible  <bruno@clisp.org>
83122         * README: Update git instructions.
83124 2007-09-24  Eric Blake  <ebb9@byu.net>
83126         Revert fpending breakage from 2007-09-08.
83127         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
83128         __fpending.c.
83130 2007-09-24  Jim Meyering  <jim@meyering.net>
83132         filenamecat.c: Add a test.
83133         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
83134         showing how the function works when DIR is the empty string.
83136 2007-09-21  Simon Josefsson  <simon@josefsson.org>
83138         * tests/test-canonicalize.sh: Turn on executable bit.
83140 2007-09-19  Eric Blake  <ebb9@byu.net>
83142         * README: Update CVS instructions.
83144 2007-09-18  Bruno Haible  <bruno@clisp.org>
83146         * modules/areadlink: New file.
83147         * lib/areadlink.h (areadlink): New declaration.
83148         * lib/areadlink.c: New file, based on lib/xreadlink.c.
83150 2007-09-17  Jim Meyering  <jim@meyering.net>
83152         * lib/savewd.c (ESTALE) [!defined]: Define.
83153         Reported to be required on Interix by Martin Koeppe.
83155 2007-09-17  Bruno Haible  <bruno@clisp.org>
83157         * gnulib-tool (func_version): Use $version.
83159 2007-09-16  Bruno Haible  <bruno@clisp.org>
83161         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
83162         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
83163         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
83164         Reported by Greg Schafer <gschafer@zip.com.au>.
83166 2007-09-15  Bruno Haible  <bruno@clisp.org>
83168         * gnulib-tool (sed): Try a little harder to make bash understand the
83169         alias.
83170         Reported by Bruce Korb <bruce.korb@gmail.com>.
83172 2007-09-13  Eric Blake  <ebb9@byu.net>
83174         * ChangeLog: Remove conflict markers.
83176 2007-09-13  Simon Josefsson  <simon@josefsson.org>
83178         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
83179         Reported by Bruno Haible <bruno@clisp.org>.
83181 2007-09-12  Bruno Haible  <bruno@clisp.org>
83183         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
83184         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
83185         is not defined.
83187 2007-09-12  Eric Blake  <ebb9@byu.net>
83189         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
83190         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
83191         Autoconf definition.
83192         * modules/euidaccess (Depends-on): Add extensions, for
83193         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
83194         * modules/fnmatch (Depends-on): Likewise.
83195         * modules/getaddrinfo (Depends-on): Likewise.
83196         * modules/getdelim (Depends-on): Likewise.
83197         * modules/getline (Depends-on): Likewise.
83198         * modules/getsubopt (Depends-on): Likewise.
83199         * modules/gettext (Depends-on): Likewise.
83200         * modules/group-member (Depends-on): Likewise.
83201         * modules/mbchar (Depends-on): Likewise.
83202         * modules/memmem (Depends-on): Likewise.
83203         * modules/mempcpy (Depends-on): Likewise.
83204         * modules/memrchr (Depends-on): Likewise.
83205         * modules/pagealign_alloc (Depends-on): Likewise.
83206         * modules/readutmp (Depends-on): Likewise.
83207         * modules/stpcpy (Depends-on): Likewise.
83208         * modules/stpncpy (Depends-on): Likewise.
83209         * modules/strchrnul (Depends-on): Likewise.
83210         * modules/strndup (Depends-on): Likewise.
83211         * modules/strsep (Depends-on): Likewise.
83212         * modules/strverscmp (Depends-on): Likewise.
83213         * modules/vasprintf (Depends-on): Likewise.
83214         * modules/wcwidth (Depends-on): Likewise.
83215         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
83216         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
83217         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
83218         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
83219         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
83220         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
83221         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
83222         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
83223         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
83224         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
83225         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
83226         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
83227         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
83228         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
83229         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
83230         * m4/readutmp.m4 (gl_READUTMP): Likewise.
83231         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
83232         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
83233         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
83234         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
83235         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
83236         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
83237         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
83238         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
83239         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
83240         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
83241         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
83242         so that lock.m4 can be used in gettext without extensions module.
83244 2007-09-11  Bruno Haible  <bruno@clisp.org>
83246         * m4/isc-posix.m4: Remove file.
83247         Suggested by Eric Blake.
83249 2007-09-11  Eric Blake  <ebb9@byu.net>
83251         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
83253 2007-09-10  Bruno Haible  <bruno@clisp.org>
83255         * posix-modules: Fix typo in error message.
83256         Reported by Matt <mkraai@beckman.com>.
83258 2007-09-09  Bruno Haible  <bruno@clisp.org>
83260         * doc/functions/getdelim.texi: Update list of platforms lacking the
83261         function.
83262         * doc/functions/getline.texi: Likewise.
83264 2007-09-09  Jim Meyering  <jim@meyering.net>
83266         * lib/hash.c (hash_initialize): Detect calloc failure.
83267         Reported by Bruno Haible.
83269 2007-09-09  Bruno Haible  <bruno@clisp.org>
83271         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
83272         malloc or realloc fails.
83274 2007-09-09  Bruno Haible  <bruno@clisp.org>
83276         * modules/getcwd (Depends-on): Add malloc-posix.
83277         * modules/glob (Depends-on): Likewise.
83278         * modules/putenv (Depends-on): Likewise.
83279         * modules/strdup (Depends-on): Likewise.
83280         * modules/getdelim (Depends-on): Add realloc-posix.
83281         * modules/read-file (Depends-on): Likewise.
83283 2007-09-09  Bruno Haible  <bruno@clisp.org>
83285         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
83286         (gl_FUNC_MALLOC_POSIX): Require it.
83287         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
83288         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
83289         * modules/realloc (Files): Add m4/malloc.m4.
83290         * modules/calloc (Files): Likewise.
83292 2007-09-09  Bruno Haible  <bruno@clisp.org>
83294         * modules/malloc-posix: New file.
83295         * modules/malloc (Depends-on): Add malloc-posix.
83296         * lib/malloc.c: Include errno.h.
83297         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
83298         and a POSIX-compatible malloc into a single function. Set ENOMEM
83299         when returning NULL.
83300         * m4/malloc.m4: New file.
83301         * doc/functions/malloc.texi: Mention the malloc-posix module.
83302         * lib/stdlib_.h (malloc): New declaration.
83303         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
83304         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
83305         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
83306         and HAVE_MALLOC_POSIX.
83308 2007-09-09  Bruno Haible  <bruno@clisp.org>
83310         * modules/realloc-posix: New file.
83311         * modules/realloc (Depends-on): Add realloc-posix.
83312         * lib/realloc.c: Include errno.h.
83313         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
83314         and a POSIX-compatible realloc into a single function. Set ENOMEM
83315         when returning NULL.
83316         * m4/realloc.m4: New file.
83317         * doc/functions/realloc.texi: Mention the realloc-posix module.
83318         * lib/stdlib_.h (realloc): New declaration.
83319         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
83320         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
83321         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
83322         and HAVE_REALLOC_POSIX.
83324 2007-09-09  Bruno Haible  <bruno@clisp.org>
83326         * modules/calloc-posix: New file.
83327         * modules/calloc (Depends-on): Add calloc-posix.
83328         * lib/calloc.c: Include errno.h.
83329         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
83330         and a POSIX-compatible calloc into a single function. Set ENOMEM
83331         when returning NULL.
83332         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
83333         * doc/functions/calloc.texi: Mention the calloc-posix module.
83334         * lib/stdlib_.h (calloc): New declaration.
83335         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
83336         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
83337         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
83338         and HAVE_CALLOC_POSIX.
83340 2007-09-09  Bruno Haible  <bruno@clisp.org>
83342         Allow for modules to show an arbitrary notice.
83343         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
83344         * gnulib-tool: New option --extract-notice.
83345         (func_usage): Document it.
83346         (sed_extract_prog): Update.
83347         (func_get_notice): New function.
83348         (func_modules_notice): New function.
83349         (func_import, func_create_testdir): Invoke it.
83350         Suggested by Jim Meyering.
83352 2007-09-09  Bruno Haible  <bruno@clisp.org>
83354         * gnulib-tool: New options --verbose, --quiet.
83355         (func_usage): Document them.
83356         (verbose): New variable.
83357         (func_execute_command): New function.
83358         (func_import): Don't show the module list and the file list if
83359         $verbose < 0.
83360         (func_create_testdir): Likewise. Use func_execute_command.
83361         (func_create_megatestdir): Use func_execute_command.
83363 2007-09-08  Bruno Haible  <bruno@clisp.org>
83365         * gnulib-tool (func_import): Prefer rsync over wget when available,
83366         for fetching the PO files.
83368 2007-09-08  Bruno Haible  <bruno@clisp.org>
83370         * posix-modules: New file. Portions copied from gnulib-tool.
83371         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
83373 2007-09-08  Jim Meyering  <jim@meyering.net>
83375         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
83376         * lib/fpending.h: Rename from __fpending.h.
83377         * lib/fpending.c: Rename from __fpending.c.
83378         Include "fpending.h", not "__fpending.h".
83379         * lib/__fpending.h, lib/__fpending.c: Remove files.
83380         * modules/fpending (Files): Reflect new file names.
83381         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
83383 2007-09-08  Bruno Haible  <bruno@clisp.org>
83385         * m4/inttypes-h.m4: Remove stub file.
83387 2007-09-07  Simon Josefsson  <simon@josefsson.org>
83389         * doc/headers/stdint.texi: Discuss #include_next issue.
83391 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83393         * build-aux/bootstrap: Remove obsolete comment about wget --help.
83395 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83397         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
83398         in variable name.
83400 2007-09-03  Jim Meyering  <jim@meyering.net>
83402         New module: git-version-gen.
83403         * modules/git-version-gen: New file.
83405         Import changes from coreutils for bootstrap script.
83407         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
83409         bootstrap: uses rsync to download the .po files
83410         * build-aux/bootstrap (po_download_command_format): New global.
83411         (download_po_files): Use rsync.
83412         (update_po_files): Don't remove .po files after download,
83413         so future rsync runs can take advantage of the copies.
83415         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
83417         Solve the unnecessary-.po-file-regeneration problem once and for all.
83418         * build-aux/bootstrap (download_po_files): New function, renamed from
83419         get_translations.  Now, downloads, but doesn't update LINGUAS.
83420         (update_po_files): New function.
83422         bootstrap: Ignore more.
83423         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
83424         uniwidth to e.g., lib/.gitignore.
83425         (slurp): Handle the sys_stat_.h -> sys mapping, too.
83427         * build-aux/bootstrap: New setting: vc_ignore.
83428         (insert_sorted_if_absent): Create $file if absent.
83429         Adapt to new, possibly empty, list: $vc_ignore.
83431         bootstrap: generate more ignorable names
83432         * build-aux/bootstrap (slurp): When generating ignorable names,
83433         also map .sin to .sed, .gperf to .c, and .y to .c.
83435 2007-09-03  Jim Meyering  <jim@meyering.net>
83437         * build-aux/git-version-gen: New file, from coreutils.  For details, see
83438         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
83440 2007-09-02  Bruno Haible  <bruno@clisp.org>
83442         Fix mis-recognition of 'mcs' on QNX 6.
83443         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
83444         output contains the string "Mono".
83445         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
83446         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
83448 2007-09-01  Bruno Haible  <bruno@clisp.org>
83450         Fix collision between uniwidth/* and linebreak modules.
83451         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
83452         u32_width): Remove declarations.
83453         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
83454         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
83455         streq3, streq2, streq1, streq0): Remove functions.
83456         (STREQ): Remove macro.
83457         (is_cjk_encoding): Remove function.
83458         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
83459         (uc_width, u8_width, u16_width, u32_width): Remove functions.
83460         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
83461         * NEWS: Document the change.
83463 2007-09-01  Bruno Haible  <bruno@clisp.org>
83465         * lib/streq.h: Add double-inclusion guard.
83467 2007-09-01  Karl Berry  <karl@gnu.org>
83469         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
83471 2007-08-28  Jim Meyering  <jim@meyering.net>
83473         Rename mreadlink_with_size to areadlink_with_size.
83474         * NEWS: Document the change.
83475         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
83476         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
83477         * lib/mreadlink.h: Rename this to...
83478         * lib/areadlink.h: ...this.
83479         * modules/mreadlink-with-size: Rename this to...
83480         * modules/areadlink-with-size: ...this.
83481         * lib/canonicalize.c: Reflect the renaming.
83482         * modules/canonicalize: Likewise.
83484 2007-08-26  Bruno Haible  <bruno@clisp.org>
83486         * gnulib-tool (func_import): When deciding which files to remove,
83487         consider also dangling symbolic links.
83488         Reported by Eric Blake.
83490 2007-08-26  Bruno Haible  <bruno@clisp.org>
83492         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
83494 2007-08-23  Simon Josefsson  <simon@josefsson.org>
83496         * lib/readline.c: Don't include getline.h, the prototype is now
83497         found in stdio.h.
83499 2007-08-23  Jim Meyering  <jim@meyering.net>
83501         Getdelim touchup.
83502         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
83503         around the funlockfile call, since funlockfile never sets errno.
83504         Don't set errno upon failed realloc.
83506 2007-08-22  Eric Blake  <ebb9@byu.net>
83508         Getline touchups.
83509         * lib/getdelim.c (getdelim): Revert regression that required *n to
83510         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
83511         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
83512         getdelim, rather than whether implementation is missing.
83513         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
83514         * lib/stdio_.h (getline): Also declare if replacement is
83515         required.
83516         * doc/functions/getdelim.texi: New file.
83517         * doc/functions/getline.texi: Likewise.
83518         * doc/gnulib.texi (Function Substitutes): Add new files.
83519         Reported by Bruno Haible.
83521 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
83523         * users.txt: Add Guile.
83525 2007-08-22  Eric Blake  <ebb9@byu.net>
83527         * tests/test-getdelim.c (main): Use remove, not unlink.
83528         * tests/test-getline.c (main): Likewise.
83530         Move getline and getdelim into stdio.h, per POSIX 200x.
83531         * modules/getline (Files): Remove getline.h.
83532         (Depends-on): Add stdio.
83533         (configure.ac): Add module indicator.
83534         * modules/getdelim (Files): Remove getdelim.h.
83535         (Depends-on): Add stdio.
83536         (configure.ac): Add module indicator.
83537         * modules/stdio (Makefile.am): Work with new indicators.
83538         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
83539         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
83540         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
83541         * lib/getdelim.h: Delete.
83542         * lib/getline.h: Delete.
83543         * lib/stdio_.h (getdelim, getline): Declare.
83544         * modules/getdelim-tests: New module.
83545         * modules/getline-tests: Likewise.
83546         * tests/test-getdelim.c: New file.
83547         * tests/test-getline.c: Likewise.
83548         * NEWS: Document the change.
83549         * lib/getline.c: Update choice of header.
83550         * lib/csharpcomp.c: Likewise.
83551         * lib/getpass.c: Likewise.
83552         * lib/javacomp.c: Likewise.
83553         * lib/javaversion.c: Likewise.
83554         * lib/yesno.c: Likewise.
83555         * lib/getdelim.c: Likewise.
83556         (getdelim): Set errno on failure, and avoid memory leak.
83558 2007-08-19  Bruno Haible  <bruno@clisp.org>
83560         * modules/closein (Depends-on): Add freadahead.
83561         * lib/closein.c: Include freadahead.h.
83562         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
83563         is zero.
83565 2007-08-19  Bruno Haible  <bruno@clisp.org>
83567         * modules/freadahead-tests: New file.
83568         * tests/test-freadahead.sh: New file.
83569         * tests/test-freadahead.c: New file.
83571         * modules/freadahead: New file.
83572         * lib/freadahead.h: New file.
83573         * lib/freadahead.c: New file.
83574         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
83575         fbufmode, fpurge, freadable, fwritable.
83577 2007-08-19  Eric Blake  <ebb9@byu.net>
83579         Test yesno in combination with closein.
83580         * lib/yesno.c (yesno): Document use of stdin.
83581         * modules/yesno-tests (Files): New module.
83582         * tests/test-yesno.c (main): New file.
83583         * tests/test-yesno.sh: Likewise.
83585 2007-08-19  Bruno Haible  <bruno@clisp.org>
83587         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
83588         * lib/fseeko.c (rpl_fseeko): Likewise.
83589         * lib/fseterr.c (fseterr): Likewise.
83591 2007-08-19  Bruno Haible  <bruno@clisp.org>
83593         * tests/test-lseek.c (main): Disable a test for BeOS.
83594         * doc/functions/lseek.texi: Document the BeOS bug.
83596 2007-08-19  Bruno Haible  <bruno@clisp.org>
83597             Eric Blake  <ebb9@byu.net>
83599         * lib/lseek.c: Include <sys/stat.h>.
83600         (rpl_lseek): Add workaround code also for Unix platforms.
83601         Needed for BeOS.
83602         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
83603         * doc/functions/lseek.texi: Document BeOS definiency.
83605 2007-08-18  Bruno Haible  <bruno@clisp.org>
83607         * modules/fstrcmp-tests: New file.
83608         * tests/test-fstrcmp.c: New file.
83610 2007-08-18  Bruno Haible  <bruno@clisp.org>
83612         * modules/fstrcmp: New file, from GNU gettext with modifications.
83613         * lib/fstrcmp.h: New file, from GNU gettext.
83614         * lib/fstrcmp.c: New file, from GNU gettext.
83615         * MODULES.html.sh (String handling): Add fstrcmp.
83617 2007-08-18  Bruno Haible  <bruno@clisp.org>
83619         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
83620         'bool'.
83621         (diag, compareseq): Remove const from the ctxt argument.
83622         (USE_HEURISTIC): Undefine at the end.
83624 2007-08-18  Jim Meyering  <jim@meyering.net>
83626         New file: lib/idcache.h
83627         * NEWS: Mention the addition.
83628         * modules/idcache (Files): Add lib/idcache.h
83629         * lib/idcache.c: Include "idcache.h".
83630         Don't include <sys/types.h>.
83631         Add a FIXME comment.
83632         Move file-scoped "static" declarations to the top.
83633         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
83635 2007-08-17  Bruno Haible  <bruno@clisp.org>
83636         and Paul Eggert  <eggert@cs.ucla.edu>
83638         * MODULES.html.sh: Add diffseq.
83639         * modules/diffseq: New file.
83640         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
83641         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
83643 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
83645         Import changes from coreutils for bootstrap script.
83647         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
83649         * build-aux/bootstrap (slurp): Work even in environments where
83650         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
83651         current code does not slurp files whose names start with ".", and
83652         this looks like it might be a troublesome area.
83654         2007-07-11  Jim Meyering  <jim@meyering.net>
83656         If there's a GPL vN copyright comment, require that N == 3.
83658         2007-07-08  Jim Meyering  <jim@meyering.net>
83660         Run the coreutils-specific code only if tests/Makefile.am.in exists.
83661         * build-aux/bootstrap (mam_template): Move definition out of loop.
83663         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
83665         * build-aux/bootstrap (symlink_to_dir): Rename function from
83666         symlink_to_gnulib.  Add a directory parameter.  Update all
83667         callers.
83668         (cp_mark_as_generated): Also check for -- and link to -- files in
83669         gl/.
83671         2007-07-08  Jim Meyering  <jim@meyering.net>
83673         Adapt to deeper hierarchy in gnulib.
83674         * build-aux/bootstrap (symlink_to_dir): If the destination
83675         directory doesn't exist, create it. This is required at least for
83676         "lib/uniwidth/cjk.h".
83678         2007-05-15  Jim Meyering  <jim@meyering.net>
83680         * build-aux/bootstrap: Now that generated Makefile.am files
83681         are no longer under version control, they must be created at
83682         bootstrap time.
83684 2007-08-14  Ben Pfaff  <blp@gnu.org>
83686         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
83688 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
83690         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
83691         given the changes below.
83692         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
83693         even on hosts that have padding bits beyond the supported 64.
83695 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
83697         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
83698         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
83699         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
83700         depends on it.
83701         (xstrtol_error): Remove.
83702         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
83703         but with a different signature.
83704         (ATTRIBUTE_NORETURN, __attribute__): New macros.
83705         * lib/xstrtol-error.c: Include exitfail.h.
83706         (xstrtol_fatal): New function, with a different signature from the
83707         old xstrtol_error, so that the caller need not worry about passing
83708         in an exit status, or about storage management of the option argument.
83709         (xstrtol_error): Now a static function.  Redo signature to
83710         implement xstrtol_fatal.  Output the correct number of hyphens in
83711         front of the option so that the caller need not worry about
83712         storage management.
83713         (N_): New macro.
83714         (_): Remove; not used now.
83715         * modules/xstrtol: Depend on getopt.
83716         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
83717         of old STRTOL_FATAL_ERROR macro.
83718         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
83719         of test program.
83720         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
83721         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
83723 2007-08-08  Eric Blake  <ebb9@byu.net>
83725         * lib/xstrtol-error.c: Add missing include.
83727         Move xstrtol messages into gnulib domain, when --pobase is used.
83728         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
83729         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
83730         * modules/xstrtol (Files): Distribute new file.
83731         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
83732         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
83733         * tests/test-xstrtol.c: ...into new file.
83734         * tests/test-xstrtoul.c: Also test xstrtoul.
83735         * tests/test-xstrtoimax.c: Also test xstrtoimax.
83736         * tests/test-xstrtoumax.c: Also test xstrtoumax.
83737         * tests/test-xstrtol.sh: Drive the tests.
83738         * tests/test-xstrtoimax.sh: Likewise.
83739         * tests/test-xstrtoumax.sh: Likewise.
83740         * modules/xstrtol-tests: New module.
83741         * modules/xstrtoimax-tests: Likewise.
83742         * modules/xstrtoumax-tests: Likewise.
83744 2007-08-08  Jim Meyering  <jim@meyering.net>
83746         New function: mfile_name_concat.
83747         * lib/filenamecat.c (mfile_name_concat): New function, just like
83748         file_name_concat, but return NULL upon failure rather than exiting
83749         with a diagnostic.
83750         * lib/filenamecat.h: Declare it.
83752 2007-08-07  Bruno Haible  <bruno@clisp.org>
83754         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
83755         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
83756         warning from gcc.
83757         Reported by Eric Blake.
83759 2007-08-07  Simon Josefsson  <simon@josefsson.org>
83761         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
83762         * modules/crypto/arcfour (License): Likewise.
83763         * modules/crypto/des-tests (License): Likewise.
83764         * modules/crypto/gc-arctwo-tests (License): Likewise.
83765         * modules/crypto/gc-des-tests (License): Likewise.
83766         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
83767         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
83768         * modules/crypto/gc-md2-tests (License): Likewise.
83769         * modules/crypto/gc-md4-tests (License): Likewise.
83770         * modules/crypto/gc-md5-tests (License): Likewise.
83771         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
83772         * modules/crypto/gc-rijndael-tests (License): Likewise.
83773         * modules/crypto/gc-sha1-tests (License): Likewise.
83774         * modules/crypto/gc-tests (License): Likewise.
83775         * modules/crypto/hmac-md5 (License): Likewise.
83776         * modules/crypto/hmac-sha1 (License): Likewise.
83777         * modules/crypto/md2-tests (License): Likewise.
83778         * modules/crypto/md4-tests (License): Likewise.
83779         * modules/crypto/md5 (License): Likewise.
83780         * modules/crypto/rijndael (License): Likewise.
83781         * modules/crypto/sha1 (License): Likewise.
83782         * modules/memxor (License): Likewise.
83784 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
83785         and Bruno Haible  <bruno@clisp.org>
83787         * NEWS: Describe interface changes to human, xstrtol.
83788         * lib/human.h: Include <xstrtol.h>.
83789         (human_options): Return enum strtol_error, not int.  Remove
83790         bool arg; take int * instead.
83791         * lib/human.c: Don't include "gettext.h".
83792         (_): Remove; no longer used.
83793         Don't include <xstrtol.h>, since human.h does it.
83794         (human_options): Adjust to abovementioned interface changes.
83795         Do not report error to stderr; that's now the caller's
83796         responsibility.
83797         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
83798         interface change.
83799         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
83800         Str, Argument_type_string.  All uses changed.  Put " argument"
83801         in diagnostics to make them clearer.  Change wording of suffix
83802         message for clarity.
83803         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
83804         Argument_type_string.
83805         (STRTOL_FATAL_WARN): Remove; no longer used.
83806         * modules/human (Depends-on): Remove gettext-h.
83808 2007-08-06  Simon Josefsson  <simon@josefsson.org>
83810         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
83812 2007-07-31  Bruno Haible  <bruno@clisp.org>
83814         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
83815         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
83816         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
83818 2007-07-31  Bruno Haible  <bruno@clisp.org>
83820         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
83821         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
83823 2007-07-30  Bruno Haible  <bruno@clisp.org>
83825         * modules/base64 (License): Use the synonymous term "LGPLv2+".
83826         * modules/c-ctype (License): Likewise.
83827         * modules/c-strcase (License): Likewise.
83828         * modules/check-version (License): Likewise.
83829         * modules/iconv (License): Likewise.
83830         * modules/iconv_open (License): Likewise.
83831         * modules/read-file (License): Likewise.
83832         * modules/striconv (License): Likewise.
83833         * modules/strverscmp (License): Likewise.
83834         * modules/vasprintf (License): Likewise.
83835         * modules/crypto/des (License): Likewise.
83836         * modules/crypto/gc (License): Likewise.
83837         * modules/crypto/gc-arcfour (License): Likewise.
83838         * modules/crypto/gc-arctwo (License): Likewise.
83839         * modules/crypto/gc-des (License): Likewise.
83840         * modules/crypto/gc-hmac-md5 (License): Likewise.
83841         * modules/crypto/gc-hmac-sha1 (License): Likewise.
83842         * modules/crypto/gc-md2 (License): Likewise.
83843         * modules/crypto/gc-md4 (License): Likewise.
83844         * modules/crypto/gc-md5 (License): Likewise.
83845         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
83846         * modules/crypto/gc-random (License): Likewise.
83847         * modules/crypto/gc-rijndael (License): Likewise.
83848         * modules/crypto/gc-sha1 (License): Likewise.
83849         * modules/crypto/md2 (License): Likewise.
83850         * modules/crypto/md4 (License): Likewise.
83852 2007-07-30  Jim Meyering  <jim@meyering.net>
83854         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
83855         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
83856         it has valid stat data.  This bug would cause du not to count the
83857         sizes of inaccessible directories.
83858         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
83859         in <http://bugzilla.redhat.com/250077>.
83861 2007-07-25  Peter O'Gorman  <peter@pogma.com>
83862             Bruno Haible  <bruno@clisp.org>
83864         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
83865         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
83866         #include_next, gives a diagnostic about it, but reports no error in
83867         the exit code.
83868         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
83870 2007-07-24  Ben Pfaff  <blp@gnu.org>
83872         Improve name: "count-one-bits" is better than "popcount".
83873         * MODULES.html.sh: Update name.
83874         * lib/popcount.h: Renamed lib/count-one-bits.h.
83875         (popcount): Renamed count_one_bits.
83876         (popcountl): Renamed count_one_bits_l.
83877         (popcountll): Renamed count_one_bits_ll.
83878         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
83879         * modules/popcount: Renamed module/count-one-bits.
83880         * modules/popcount-tests: Renamed module/count-one-bits-tests.
83881         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
83883 2007-07-23  Ben Pfaff  <blp@gnu.org>
83885         * lib/popcount.h (popcount32): Reduce size of constants, to allow
83886         better code generation, and add U to large constants to avoid
83887         warnings, in non-GCC case.
83888         Suggested by Bruno Haible.
83890 2007-07-23  Ben Pfaff  <blp@gnu.org>
83892         * lib/popcount.h: Use verify_true instead of if...abort.
83893         * modules/popcount: Depend on verify module.
83894         Suggested by Jim Meyering.
83896 2007-07-23  Bruno Haible  <bruno@clisp.org>
83898         * gnulib-tool (func_import): Create a .cvsignore file also when the
83899         directory is not yet in CVS but the toplevel directory is. When
83900         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
83901         Reported by Karl Berry.
83903 2007-07-22  Ben Pfaff  <blp@gnu.org>
83905         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
83906         case.
83907         Suggested by Eric Blake.
83909 2007-07-22  Ben Pfaff  <blp@gnu.org>
83911         New module: popcount.
83912         * MODULES.html.sh: Add popcount.
83913         * modules/popcount: New file.
83914         * modules/popcount-tests: New file.
83915         * tests/test-popcount.c: New file.
83916         * lib/popcount.h: New file.
83917         * m4/popcount.m4: New file.
83919 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
83921         * build-aux/announce-gen: Update to GPLv3.
83923         * build-aux/config.guess: Update from config.
83925 2007-07-21  Bruno Haible  <bruno@clisp.org>
83927         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
83928         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
83930 2007-07-20  Jim Meyering  <jim@meyering.net>
83932         * check-module: Diagnose a self-dependency.
83934 2007-07-19  Bruno Haible  <bruno@clisp.org>
83936         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
83937         empty.
83938         Reported by Eric Blake.
83940 2007-07-18  Bruno Haible  <bruno@clisp.org>
83942         * gnulib-tool: New options --po-base, --po-domain.
83943         (func_usage): Document them.
83944         (pobase, po_domain): New variables.
83945         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
83946         DEFAULT_TEXT_DOMAIN.
83947         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
83948         (func_import): Consider pobase and po_domain. Create a po/ directory.
83949         (func_create_testdir): Set pobase and po_domain to empty.
83950         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
83951         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
83953 2007-07-18  Bruno Haible  <bruno@clisp.org>
83955         * gnulib-tool (func_get_automake_snippet): Synthesize also an
83956         EXTRA_DIST augmentation for files in build-aux/.
83958 2007-07-16  Bruno Haible  <bruno@clisp.org>
83960         * modules/lseek (License): Use the synonymous term "LGPLv2+".
83961         * modules/getdelim (License): Likewise.
83963 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83965         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
83966         * modules/d-type (License): Likewise.
83967         * modules/extensions (License): Likewise.
83968         * modules/fnmatch (License): Likewise.
83969         * modules/fseeko (License): Likewise.
83970         * modules/getaddrinfo (License): Likewise.
83971         * modules/getline (License): Likewise.
83972         * modules/getlogin_r (License): Likewise.
83973         * modules/getpass (License): Likewise.
83974         * modules/gettimeofday (License): Likewise.
83975         * modules/glob (License): Likewise.
83976         * modules/inet_ntop (License): Likewise.
83977         * modules/malloc (License): Likewise.
83978         * modules/malloca (License): Likewise.
83979         * modules/memmem (License): Likewise.
83980         * modules/mempcpy (License): Likewise.
83981         * modules/memset (License): Likewise.
83982         * modules/minmax (License): Likewise.
83983         * modules/mktime (License): Likewise.
83984         * modules/netinet_in (License): Likewise.
83985         * modules/pathmax (License): Likewise.
83986         * modules/poll (License): Likewise.
83987         * modules/regex (License): Likewise.
83988         * modules/snprintf (License): Likewise.
83989         * modules/stdbool (License): Likewise.
83990         * modules/stdint (License): Likewise.
83991         * modules/stdio (License): Likewise.
83992         * modules/strcase (License): Likewise.
83993         * modules/strcasestr (License): Likewise.
83994         * modules/strdup (License): Likewise.
83995         * modules/string (License): Likewise.
83996         * modules/strndup (License): Likewise.
83997         * modules/strnlen (License): Likewise.
83998         * modules/strpbrk (License): Likewise.
83999         * modules/strptime (License): Likewise.
84000         * modules/strsep (License): Likewise.
84001         * modules/sys_select (License): Likewise.
84002         * modules/sys_socket (License): Likewise.
84003         * modules/sys_stat (License): Likewise.
84004         * modules/sys_time (License): Likewise.
84005         * modules/time (License): Likewise.
84006         * modules/time_r (License): Likewise.
84007         * modules/timegm (License): Likewise.
84008         * modules/unistd (License): Likewise.
84009         * modules/vsnprintf (License): Likewise.
84010         * modules/wctype (License): Likewise.
84012 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84014         * modules/argz (License): LGPLv2+.
84016 2007-07-15  Karl Berry  <karl@gnu.org>
84018         * doc/gnulib.texi: revise node structure per new fdl.texi.
84020 2007-07-14  Bruno Haible  <bruno@clisp.org>
84022         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
84023         the output file.
84024         * lib/uniname/uninames.h: Regenerated.
84026 2007-07-14  Karl Berry  <karl@gnu.org>
84028         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
84029         omitting sectioning and index commands.
84031 2007-07-13  Bruno Haible  <bruno@clisp.org>
84033         New gnulib-tool option --more-symlinks.
84034         * gnulib-tool (func_usage): Document --more-symlinks.
84035         (do_copyrights): New variable.
84036         Recognize option --more-symlinks.
84037         (func_import): Don't add a copyright notice transform to
84038         sed_transform_lib_file if do_copyrights is empty.
84040 2007-07-13  Bruno Haible  <bruno@clisp.org>
84042         * lib/vasnprintf.c (decimal_point_char): Define also if
84043         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
84044         && !NEED_PRINTF_DIRECTIVE_A.
84045         Reported by Clemens Koller <clemens.koller@anagramm.de> via
84046         Gary V. Vaughan <gary@gnu.org>.
84048 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
84050         * lib/inttypes_.h: Undo previous change, since it was fixed
84051         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
84053 2007-07-13  Bruno Haible  <bruno@clisp.org>
84055         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
84056         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
84058 2007-07-13  Jim Meyering  <jim@meyering.net>
84060         df: Don't fail for Tru64's "file-on-file mount".
84061         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
84062         so we fall through and use statfs instead.  Details here:
84063         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
84064         Reported by Albert Chin.
84066 2007-07-13  Bruno Haible  <bruno@clisp.org>
84068         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
84069         * modules/configmake (License): Likewise.
84070         * modules/gettext (License): Likewise.
84071         * modules/gettext-h (License): Likewise.
84072         * modules/include_next (License): Likewise.
84073         * modules/link-warning (License): Likewise.
84074         * modules/localcharset (License): Likewise.
84075         * modules/localename (License): Likewise.
84076         * modules/lock (License): Likewise.
84077         * modules/relocatable-lib-lgpl (License): Likewise.
84078         * modules/size_max (License): Likewise.
84079         * modules/vasnprintf (License): Likewise.
84080         * modules/wchar (License): Likewise.
84081         * modules/xsize (License): Likewise.
84083 2007-07-13  Bruno Haible  <bruno@clisp.org>
84085         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
84086         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
84088 2007-07-12  Bruno Haible  <bruno@clisp.org>
84090         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
84091         in the modules files.
84093 2007-07-11  Karl Berry  <karl@gnu.org>
84095         * MODULES.html.sh (func_module): use
84096          sed -e '\|^'"${includefile}"'$|d'
84097          instead of /.../d, to avoid errors on $includefile's containing /.
84099 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
84101         * gnulib-tool (func_import): Avoid duplication of --avoid
84102         statements
84103         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
84104         names to `_' in variable names.
84106 2007-07-10  Eric Blake  <ebb9@byu.net>
84108         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
84109         * NEWS: Document this change.
84111 2007-07-08  Bruno Haible  <bruno@clisp.org>
84113         Update to Unicode 5.0.
84114         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
84115         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
84116         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
84117         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
84118         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
84119         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
84120         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
84121         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
84122         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
84123         U+10A3F, U+1D242..U+1D244.
84124         (nonspacing_table_ind): Update.
84125         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
84126         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
84128 2007-07-08  Bruno Haible  <bruno@clisp.org>
84130         Update to Unicode 5.0.
84131         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
84132         code transform. Extend the name index field of unicode_name_to_code and
84133         unicode_code_to_name from 16 to 24 bits.
84134         * lib/uniname/uniname.c (unicode_character_name,
84135         unicode_name_character): Add the range 0x12xxx to the code transform.
84136         * lib/uniname/uninames.h: Regenerated.
84137         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
84139 2007-07-07  Bruno Haible  <bruno@clisp.org>
84141         * modules/wcwidth-tests: New file.
84142         * tests/test-wcwidth.c: New file.
84144         Work around MacOS X wcwidth() bug.
84145         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
84146         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
84147         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
84148         original wcwidth in non-UTF-8 locales.
84149         * modules/wcwidth (Depends-on): Add localcharset, streq,
84150         uniwidth/width.
84151         * doc/functions/wcwidth.texi: Update.
84153 2007-07-07  Bruno Haible  <bruno@clisp.org>
84155         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
84156         (wcwidth): New declaration.
84157         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
84158         macros.
84159         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
84160         here. Prepare for creating <wchar.h> unconditionally.
84161         * modules/wchar (Depends-on): Add link-warning.
84162         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
84163         REPLACE_WCWIDTH, and GL_LINK_WARNING.
84164         * lib/wcwidth.h: Remove file.
84165         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
84166         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
84167         * modules/wcwidth (Files): Remove lib/wcwidth.h.
84168         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
84169         (Include): Replace wcwidth.h with <wchar.h>.
84170         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
84171         * lib/mbchar.h: Don't include wcwidth.h.
84172         * lib/mbswidth.c: Likewise.
84173         * NEWS: Mention the change.
84175 2007-07-07  Bruno Haible  <bruno@clisp.org>
84177         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
84178         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
84179         definition with an external declaration.
84180         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
84181         defined as a function. Remove AC_C_INLINE requirement.
84182         * modules/wcwidth (Files): Add lib/wcwidth.c.
84183         (Makefile.am): Remove redundant statement.
84185 2007-07-07  Bruno Haible  <bruno@clisp.org>
84187         * MODULES.html.sh (Unicode string functions): Add the new modules.
84189         * tests/uniwidth/test-u32-strwidth.c: New file.
84190         * modules/uniwidth/u32-strwidth-tests: New file.
84192         * lib/uniwidth/u32-strwidth.c: New file.
84193         * modules/uniwidth/u32-strwidth: New file.
84195         * tests/uniwidth/test-u16-strwidth.c: New file.
84196         * modules/uniwidth/u16-strwidth-tests: New file.
84198         * lib/uniwidth/u16-strwidth.c: New file.
84199         * modules/uniwidth/u16-strwidth: New file.
84201         * tests/uniwidth/test-u8-strwidth.c: New file.
84202         * modules/uniwidth/u8-strwidth-tests: New file.
84204         * lib/uniwidth/u8-strwidth.c: New file.
84205         * modules/uniwidth/u8-strwidth: New file.
84207         * tests/uniwidth/test-u32-width.c: New file.
84208         * modules/uniwidth/u32-width-tests: New file.
84210         * lib/uniwidth/u32-width.c: New file.
84211         * modules/uniwidth/u32-width: New file.
84213         * tests/uniwidth/test-u16-width.c: New file.
84214         * modules/uniwidth/u16-width-tests: New file.
84216         * lib/uniwidth/u16-width.c: New file.
84217         * modules/uniwidth/u16-width: New file.
84219         * tests/uniwidth/test-u8-width.c: New file.
84220         * modules/uniwidth/u8-width-tests: New file.
84222         * lib/uniwidth/u8-width.c: New file.
84223         * modules/uniwidth/u8-width: New file.
84225         * tests/uniwidth/test-uc_width.c: New file.
84226         * modules/uniwidth/width-tests: New file.
84228         * lib/uniwidth/width.c: New file, from GNU libiconv.
84229         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
84230         * modules/uniwidth/width: New file.
84232         * lib/uniwidth.h: New file, from GNU libiconv.
84233         * modules/uniwidth/base: New file.
84235 2007-07-07  Bruno Haible  <bruno@clisp.org>
84237         * lib/uniname.h: New file, from GNU gettext.
84238         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
84239         * lib/uniname/uninames.h: New file, from GNU gettext.
84240         * lib/uniname/uniname.c: New file, from GNU gettext.
84241         * tests/uniname/test-uninames.sh: New file.
84242         * tests/uniname/test-uninames.c: New file, from GNU gettext.
84243         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
84244         * modules/uniname/base: New file.
84245         * modules/uniname/uniname: New file.
84246         * modules/uniname/uniname-tests: New file.
84247         * MODULES.html.sh (Unicode string functions): Add the new modules.
84249 2007-07-06  Bruno Haible  <bruno@clisp.org>
84251         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
84253 2007-07-06  Bruno Haible  <bruno@clisp.org>
84255         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
84256         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
84257         includes <cygwin/sys_time.h> which includes <sys/select.h> which
84258         include <sys/time.h>.
84259         Reported by Eric Blake.
84261 2007-07-06  Eric Blake  <ebb9@byu.net>
84263         Fix testing canonicalize on cygwin.
84264         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
84265         Revert patch from 2007-06-19.
84266         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
84267         canonicalize module is also in use.
84268         * tests/test-canonicalize.c: New file.
84269         * tests/test-canonicalize.sh: Likewise.
84270         * modules/canonicalize-tests: Likewise.
84272 2007-07-06  Jim Meyering  <jim@meyering.net>
84274         * lib/getugroups.c (getugroups): Detect getgrent failure.
84275         Adjust comment to reflect reality: this function may return -1.
84277 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
84279         * build-aux/bootstrap (TP_URL,get_translations): Update to use
84280         the new TP address.
84281         (usage): Fix typo
84282         (gnulib_mk): New variable.
84284 2007-07-05  Jim Meyering  <jim@meyering.net>
84286         Don't let endgrent clobber errno, no matter how improbable.
84287         * lib/getugroups.c (getugroups): Save and restore errno around
84288         endgrent call.
84290         Close the group DB even when failing with 2^31 or more members.
84291         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
84293 2007-07-04  Jim Meyering  <jim@meyering.net>
84295         * lib/getugroups.h: New file.
84296         * lib/getugroups.c: Include "getugroups.h".
84297         Remove uses of "register" keyword.
84298         Move local variable, "cp", down into scope where used.
84299         Give "username" parameter the "const" attribute.
84300         * modules/getugroups (Files): Add lib/getugroups.h
84302 2007-07-04  Karl Berry  <karl@gnu.org>
84304         * MODULES.html.sh (func_all_modules): Complete rename of
84305         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
84307 2007-07-02  Bruno Haible  <bruno@clisp.org>
84309         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
84310         mode, when inttypes.h comes from gnulib.
84311         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
84313 2007-07-02  Simon Josefsson  <simon@josefsson.org>
84315         * NEWS: Mention lgpl module name change.
84317         * modules/lgpl-2.1: Renamed from lgpl.
84319         * NEWS: Mention gpl module name change.
84321         * modules/gpl-3.0: New file, based on gpl-2.0.
84323         * modules/gpl-2.0: Renamed from gpl.
84325         * modules/gpl: Fix filename, doc/gpl.texi is now found at
84326         doc/gpl-2.0.texi.
84328 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
84330         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
84331         #define __STDC_LIMIT_MACROS temporarily while including
84332         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
84333         Problem reported by Joel E. Denny in
84334         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
84336 2007-07-01  Bruno Haible  <bruno@clisp.org>
84338         * lib/unistdio.h: New file.
84339         * lib/unistdio/u-asnprintf.h: New file.
84340         * lib/unistdio/u-asprintf.h: New file.
84341         * lib/unistdio/u-printf-args.c: New file.
84342         * lib/unistdio/u-printf-args.h: New file.
84343         * lib/unistdio/u-printf-parse.h: New file.
84344         * lib/unistdio/u-snprintf.h: New file.
84345         * lib/unistdio/u-sprintf.h: New file.
84346         * lib/unistdio/u-vasprintf.h: New file.
84347         * lib/unistdio/u-vsnprintf.h: New file.
84348         * lib/unistdio/u-vsprintf.h: New file.
84349         * lib/unistdio/ulc-asnprintf.c: New file.
84350         * lib/unistdio/ulc-asprintf.c: New file.
84351         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
84352         * lib/unistdio/ulc-printf-parse.c: New file.
84353         * lib/unistdio/ulc-snprintf.c: New file.
84354         * lib/unistdio/ulc-sprintf.c: New file.
84355         * lib/unistdio/ulc-vasnprintf.c: New file.
84356         * lib/unistdio/ulc-vasprintf.c: New file.
84357         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
84358         * lib/unistdio/ulc-vsnprintf.c: New file.
84359         * lib/unistdio/ulc-vsprintf.c: New file.
84360         * lib/unistdio/u8-asnprintf.c: New file.
84361         * lib/unistdio/u8-asprintf.c: New file.
84362         * lib/unistdio/u8-printf-parse.c: New file.
84363         * lib/unistdio/u8-snprintf.c: New file.
84364         * lib/unistdio/u8-sprintf.c: New file.
84365         * lib/unistdio/u8-vasnprintf.c: New file.
84366         * lib/unistdio/u8-vasprintf.c: New file.
84367         * lib/unistdio/u8-vsnprintf.c: New file.
84368         * lib/unistdio/u8-vsprintf.c: New file.
84369         * lib/unistdio/u8-u8-asnprintf.c: New file.
84370         * lib/unistdio/u8-u8-asprintf.c: New file.
84371         * lib/unistdio/u8-u8-snprintf.c: New file.
84372         * lib/unistdio/u8-u8-sprintf.c: New file.
84373         * lib/unistdio/u8-u8-vasnprintf.c: New file.
84374         * lib/unistdio/u8-u8-vasprintf.c: New file.
84375         * lib/unistdio/u8-u8-vsnprintf.c: New file.
84376         * lib/unistdio/u8-u8-vsprintf.c: New file.
84377         * lib/unistdio/u16-asnprintf.c: New file.
84378         * lib/unistdio/u16-asprintf.c: New file.
84379         * lib/unistdio/u16-printf-parse.c: New file.
84380         * lib/unistdio/u16-snprintf.c: New file.
84381         * lib/unistdio/u16-sprintf.c: New file.
84382         * lib/unistdio/u16-vasnprintf.c: New file.
84383         * lib/unistdio/u16-vasprintf.c: New file.
84384         * lib/unistdio/u16-vsnprintf.c: New file.
84385         * lib/unistdio/u16-vsprintf.c: New file.
84386         * lib/unistdio/u16-u16-asnprintf.c: New file.
84387         * lib/unistdio/u16-u16-asprintf.c: New file.
84388         * lib/unistdio/u16-u16-snprintf.c: New file.
84389         * lib/unistdio/u16-u16-sprintf.c: New file.
84390         * lib/unistdio/u16-u16-vasnprintf.c: New file.
84391         * lib/unistdio/u16-u16-vasprintf.c: New file.
84392         * lib/unistdio/u16-u16-vsnprintf.c: New file.
84393         * lib/unistdio/u16-u16-vsprintf.c: New file.
84394         * lib/unistdio/u32-asnprintf.c: New file.
84395         * lib/unistdio/u32-asprintf.c: New file.
84396         * lib/unistdio/u32-printf-parse.c: New file.
84397         * lib/unistdio/u32-snprintf.c: New file.
84398         * lib/unistdio/u32-sprintf.c: New file.
84399         * lib/unistdio/u32-vasnprintf.c: New file.
84400         * lib/unistdio/u32-vasprintf.c: New file.
84401         * lib/unistdio/u32-vsnprintf.c: New file.
84402         * lib/unistdio/u32-vsprintf.c: New file.
84403         * lib/unistdio/u32-u32-asnprintf.c: New file.
84404         * lib/unistdio/u32-u32-asprintf.c: New file.
84405         * lib/unistdio/u32-u32-snprintf.c: New file.
84406         * lib/unistdio/u32-u32-sprintf.c: New file.
84407         * lib/unistdio/u32-u32-vasnprintf.c: New file.
84408         * lib/unistdio/u32-u32-vasprintf.c: New file.
84409         * lib/unistdio/u32-u32-vsnprintf.c: New file.
84410         * lib/unistdio/u32-u32-vsprintf.c: New file.
84411         * tests/unistdio/test-ulc-asnprintf1.c: New file.
84412         * tests/unistdio/test-ulc-asnprintf1.h: New file.
84413         * tests/unistdio/test-ulc-printf1.h: New file.
84414         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
84415         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
84416         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
84417         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
84418         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
84419         * tests/unistdio/test-ulc-vasprintf1.c: New file.
84420         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
84421         * tests/unistdio/test-ulc-vsprintf1.c: New file.
84422         * tests/unistdio/test-u8-asnprintf1.c: New file.
84423         * tests/unistdio/test-u8-asnprintf1.h: New file.
84424         * tests/unistdio/test-u8-printf1.h: New file.
84425         * tests/unistdio/test-u8-vasnprintf1.c: New file.
84426         * tests/unistdio/test-u8-vasnprintf2.c: New file.
84427         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
84428         * tests/unistdio/test-u8-vasnprintf3.c: New file.
84429         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
84430         * tests/unistdio/test-u8-vasprintf1.c: New file.
84431         * tests/unistdio/test-u8-vsnprintf1.c: New file.
84432         * tests/unistdio/test-u8-vsprintf1.c: New file.
84433         * tests/unistdio/test-u16-asnprintf1.c: New file.
84434         * tests/unistdio/test-u16-asnprintf1.h: New file.
84435         * tests/unistdio/test-u16-printf1.h: New file.
84436         * tests/unistdio/test-u16-vasnprintf1.c: New file.
84437         * tests/unistdio/test-u16-vasnprintf2.c: New file.
84438         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
84439         * tests/unistdio/test-u16-vasnprintf3.c: New file.
84440         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
84441         * tests/unistdio/test-u16-vasprintf1.c: New file.
84442         * tests/unistdio/test-u16-vsnprintf1.c: New file.
84443         * tests/unistdio/test-u16-vsprintf1.c: New file.
84444         * tests/unistdio/test-u32-asnprintf1.c: New file.
84445         * tests/unistdio/test-u32-asnprintf1.h: New file.
84446         * tests/unistdio/test-u32-printf1.h: New file.
84447         * tests/unistdio/test-u32-vasnprintf1.c: New file.
84448         * tests/unistdio/test-u32-vasnprintf2.c: New file.
84449         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
84450         * tests/unistdio/test-u32-vasnprintf3.c: New file.
84451         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
84452         * tests/unistdio/test-u32-vasprintf1.c: New file.
84453         * tests/unistdio/test-u32-vsnprintf1.c: New file.
84454         * tests/unistdio/test-u32-vsprintf1.c: New file.
84455         * modules/unistdio/base: New file.
84456         * modules/unistdio/u-printf-args: New file.
84457         * modules/unistdio/ulc-asnprintf: New file.
84458         * modules/unistdio/ulc-asprintf: New file.
84459         * modules/unistdio/ulc-fprintf: New file.
84460         * modules/unistdio/ulc-printf-parse: New file.
84461         * modules/unistdio/ulc-snprintf: New file.
84462         * modules/unistdio/ulc-sprintf: New file.
84463         * modules/unistdio/ulc-vasnprintf: New file.
84464         * modules/unistdio/ulc-vasprintf: New file.
84465         * modules/unistdio/ulc-vfprintf: New file.
84466         * modules/unistdio/ulc-vsnprintf: New file.
84467         * modules/unistdio/ulc-vsprintf: New file.
84468         * modules/unistdio/u8-asnprintf: New file.
84469         * modules/unistdio/u8-asprintf: New file.
84470         * modules/unistdio/u8-printf-parse: New file.
84471         * modules/unistdio/u8-snprintf: New file.
84472         * modules/unistdio/u8-sprintf: New file.
84473         * modules/unistdio/u8-vasnprintf: New file.
84474         * modules/unistdio/u8-vasprintf: New file.
84475         * modules/unistdio/u8-vsnprintf: New file.
84476         * modules/unistdio/u8-vsprintf: New file.
84477         * modules/unistdio/u8-u8-asnprintf: New file.
84478         * modules/unistdio/u8-u8-asprintf: New file.
84479         * modules/unistdio/u8-u8-snprintf: New file.
84480         * modules/unistdio/u8-u8-sprintf: New file.
84481         * modules/unistdio/u8-u8-vasnprintf: New file.
84482         * modules/unistdio/u8-u8-vasprintf: New file.
84483         * modules/unistdio/u8-u8-vsnprintf: New file.
84484         * modules/unistdio/u8-u8-vsprintf: New file.
84485         * modules/unistdio/u16-asnprintf: New file.
84486         * modules/unistdio/u16-asprintf: New file.
84487         * modules/unistdio/u16-printf-parse: New file.
84488         * modules/unistdio/u16-snprintf: New file.
84489         * modules/unistdio/u16-sprintf: New file.
84490         * modules/unistdio/u16-vasnprintf: New file.
84491         * modules/unistdio/u16-vasprintf: New file.
84492         * modules/unistdio/u16-vsnprintf: New file.
84493         * modules/unistdio/u16-vsprintf: New file.
84494         * modules/unistdio/u16-u16-asnprintf: New file.
84495         * modules/unistdio/u16-u16-asprintf: New file.
84496         * modules/unistdio/u16-u16-snprintf: New file.
84497         * modules/unistdio/u16-u16-sprintf: New file.
84498         * modules/unistdio/u16-u16-vasnprintf: New file.
84499         * modules/unistdio/u16-u16-vasprintf: New file.
84500         * modules/unistdio/u16-u16-vsnprintf: New file.
84501         * modules/unistdio/u16-u16-vsprintf: New file.
84502         * modules/unistdio/u32-asnprintf: New file.
84503         * modules/unistdio/u32-asprintf: New file.
84504         * modules/unistdio/u32-printf-parse: New file.
84505         * modules/unistdio/u32-snprintf: New file.
84506         * modules/unistdio/u32-sprintf: New file.
84507         * modules/unistdio/u32-vasnprintf: New file.
84508         * modules/unistdio/u32-vasprintf: New file.
84509         * modules/unistdio/u32-vsnprintf: New file.
84510         * modules/unistdio/u32-vsprintf: New file.
84511         * modules/unistdio/u32-u32-asnprintf: New file.
84512         * modules/unistdio/u32-u32-asprintf: New file.
84513         * modules/unistdio/u32-u32-snprintf: New file.
84514         * modules/unistdio/u32-u32-sprintf: New file.
84515         * modules/unistdio/u32-u32-vasnprintf: New file.
84516         * modules/unistdio/u32-u32-vasprintf: New file.
84517         * modules/unistdio/u32-u32-vsnprintf: New file.
84518         * modules/unistdio/u32-u32-vsprintf: New file.
84519         * modules/unistdio/ulc-asnprintf-tests: New file.
84520         * modules/unistdio/ulc-vasnprintf-tests: New file.
84521         * modules/unistdio/ulc-vasprintf-tests: New file.
84522         * modules/unistdio/ulc-vsnprintf-tests: New file.
84523         * modules/unistdio/ulc-vsprintf-tests: New file.
84524         * modules/unistdio/u8-asnprintf-tests: New file.
84525         * modules/unistdio/u8-vasnprintf-tests: New file.
84526         * modules/unistdio/u8-vasprintf-tests: New file.
84527         * modules/unistdio/u8-vsnprintf-tests: New file.
84528         * modules/unistdio/u8-vsprintf-tests: New file.
84529         * modules/unistdio/u16-asnprintf-tests: New file.
84530         * modules/unistdio/u16-vasnprintf-tests: New file.
84531         * modules/unistdio/u16-vasprintf-tests: New file.
84532         * modules/unistdio/u16-vsnprintf-tests: New file.
84533         * modules/unistdio/u16-vsprintf-tests: New file.
84534         * modules/unistdio/u32-asnprintf-tests: New file.
84535         * modules/unistdio/u32-vasnprintf-tests: New file.
84536         * modules/unistdio/u32-vasprintf-tests: New file.
84537         * modules/unistdio/u32-vsnprintf-tests: New file.
84538         * modules/unistdio/u32-vsprintf-tests: New file.
84539         * MODULES.html.sh (Unicode string functions): Add the new modules.
84541 2007-07-01  Bruno Haible  <bruno@clisp.org>
84543         * lib/sprintf.c (sprintf): Limit the available length estimation,
84544         to avoid address wraparound.
84545         * lib/vsprintf.c (vsprintf): Likewise.
84546         * modules/sprintf-posix (Dependencies): Add stdint.
84547         * modules/vsprintf-posix (Dependencies): Likewise.
84549 2007-07-01  Bruno Haible  <bruno@clisp.org>
84551         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
84552         Windows PATH as well. Conservative double-quoting. Comments.
84554 2007-07-01  Bruno Haible  <bruno@clisp.org>
84555             Eric Blake  <ebb9@byu.net>
84556             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84558         * gnulib-tool (self_abspathname): Fix algorithm to cope with
84559         empty components in $PATH, denoting '.'.
84561 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84563         * gnulib-tool: Fix indentation.
84564         (func_create_megatestdir): Likewise.
84565         Report by Bruno Haible.
84567 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84569         Sync from Automake.
84570         * build-aux/gnupload: Fix shell portability issues with for loops.
84571         Report by Karl Berry.
84573 2007-06-29  Simon Josefsson  <simon@josefsson.org>
84575         * build-aux/maint.mk (POURL): Use translationproject.org.
84577 2007-06-27  Simon Josefsson  <simon@josefsson.org>
84578             Bruno Haible  <bruno@clisp.org>
84580         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
84581         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
84582         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
84583         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
84584         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
84586 2007-06-27  Bruno Haible  <bruno@clisp.org>
84588         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
84589         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
84591 2007-06-26  Karl Berry  <karl@gnu.org>
84593         * MODULES.html.sh: remove xreadlink-with-size.
84595 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
84597         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
84598         method that I hope also handles the double-include problem noted
84599         by Bruno Haible in
84600         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
84602 2007-06-23  Bruno Haible  <bruno@clisp.org>
84604         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
84605         Don't let the 'mostlyclean' target fail if the last subdirectory could
84606         not be removed.
84607         Reported by Karl Berry.
84609 2007-06-23  Bruno Haible  <bruno@clisp.org>
84611         * gnulib-tool (echo): Add a speedier workaround for ksh.
84612         * tests/test-echo.sh: Likewise.
84614 2007-06-23  Bruno Haible  <bruno@clisp.org>
84616         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
84617         * tests/test-echo.sh: Likewise.
84619 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84621         * gnulib-tool (IFS): Initialize early, so we don't set it to
84622         empty later.
84623         (self_abspathname): Rewrite algorithm to set it, reindent.
84624         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
84625         (func_create_megatestdir): Merge some sed scripts.
84627 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
84629         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
84630         exposed by Sun Studio 11 cc on Solaris 8.
84632 2007-06-22  Bruno Haible  <bruno@clisp.org>
84634         * gnulib-tool (echo): Ensure the echo primitive does not interpret
84635         backslashes.
84636         * tests/test-echo.sh: New file.
84638 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84640         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
84641         simplify `sed_replace_build_aux' scripts, they are portable but
84642         echoing them with `echo' is not.
84643         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
84645 2007-06-21  Karl Berry  <karl@gnu.org>
84647         * config/srclist.txt: guess we can't handle the licenses via
84648         srclist at the moment.
84650 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
84652         * MODULES.html.sh: Add include_next.
84653         * modules/include_next: New file.
84655 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
84657         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
84658         INCLUDE_NEXT.
84659         (gl_CHECK_NEXT_HEADERS): New macro.
84660         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
84661         the obsolescent gl_ABSOLUTE_HEADER.
84662         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
84663         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
84664         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
84665         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
84666         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
84667         * m4/math_h.m4 (gl_MATH_H): Likewise.
84668         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
84669         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
84670         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
84671         * m4/stdint.m4 (gl_STDINT_H): Likewise.
84672         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
84673         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
84674         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
84675         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
84676         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
84677         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
84678         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
84679         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
84680         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
84681         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
84682         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
84683         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
84684         * m4/inttypes.m4 (gl_INTTYPES_H): Define
84685         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
84686         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
84687         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
84688         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
84689         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
84690         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
84691         * lib/float_.h: Likewise.
84692         * lib/inttypes_.h: Likewise.
84693         * lib/math_.h: Likewise.
84694         * lib/search_.h: Likewise.
84695         * lib/signal_.h: Likewise.
84696         * lib/stdint_.h: Likewise.
84697         * lib/stdio_.h: Likewise.
84698         * lib/stdlib_.h: Likewise.
84699         * lib/string_.h: Likewise.
84700         * lib/sys_stat_.h: Likewise.
84701         * lib/sys_time_.h: Likewise.
84702         * lib/time_.h: Likewise.
84703         * lib/unistd_.h: Likewise.
84704         * lib/wchar_.h: Likewise.
84705         * lib/wctype_.h: Likewise.
84706         * lib/dirent_.h: Likewise.
84707         * lib/iconv_.h: Likewise.
84708         * lib/locale_.h: Likewise.
84709         * lib/netinet_in_.h: Likewise.
84710         * lib/sys_select_.h: Likewise.
84711         * lib/sys_socket_.h: Likewise.
84712         * lib/sysexits_.h: Likewise.
84713         * modules/fcntl (Depends-on): Depend on include_next, not
84714         absolute_header.
84715         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
84716         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
84717         * modules/fchdir: Likewise.
84718         * modules/float: Likewise.
84719         * modules/iconv_open: Likewise.
84720         * modules/inttypes: Likewise.
84721         * modules/locale: Likewise.
84722         * modules/math: Likewise.
84723         * modules/netinet_in: Likewise.
84724         * modules/search: Likewise.
84725         * modules/signal: Likewise.
84726         * modules/stdint: Likewise.
84727         * modules/stdio: Likewise.
84728         * modules/stdlib: Likewise.
84729         * modules/string: Likewise.
84730         * modules/sys_select: Likewise.
84731         * modules/sys_socket: Likewise.
84732         * modules/sys_stat: Likewise.
84733         * modules/sys_time: Likewise.
84734         * modules/sysexits: Likewise.
84735         * modules/time: Likewise.
84736         * modules/unistd: Likewise.
84737         * modules/wchar: Likewise.
84738         * modules/wctype: Likewise.
84739         * modules/sys_stat: Change maintainer to "all".
84740         * modules/unistd: Likewise.
84742 2007-06-20  Karl Berry  <karl@gnu.org>
84744         * config/srclist.txt: track www changes in license files.
84746 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
84748         * build-aux/bootstrap: Remove stray dot.
84749         Make sure build_aux settings are honored when linking
84750         gnulib_extra_files.
84752 2007-06-19  Eric Blake  <ebb9@byu.net>
84754         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
84755         Allow compilation on cygwin.
84757 2007-06-19  Jim Meyering  <jim@meyering.net>
84759         xreadlink-with-size: Remove module.  No longer used.
84760         Ex-callers now use xreadlink or mreadlink-with-size.
84761         * modules/xreadlink-with-size: Remove module.
84762         * lib/xreadlink-with-size.c: Remove file.
84763         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
84764         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
84765         just before the function definition *is* accurate.
84767         Eliminate one way canonicalize_filename_mode could exit.
84768         * lib/canonicalize.c (canonicalize_filename_mode):
84769         Use mreadlink_with_size, not xreadlink_with_size.
84771 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
84773         Detect porting problems to FreeBSD/arm, which has time_t wider than
84774         long int.  Original problem reported for GNU diff by Xin Li in
84775         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
84776         * modules/getdate (Depends-on): Add intprops, verify.
84777         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
84778         is an integer type no wider than long int.
84780 2007-06-18  Jim Meyering  <jim@meyering.net>
84782         New module: mreadlink-with-size.
84783         * MODULES.html.sh: Add mreadlink-with-size.
84784         * modules/mreadlink-with-size: New module
84785         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
84786         not xreadlink-with-size.
84787         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
84789 2007-06-16  Bruno Haible  <bruno@clisp.org>
84791         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
84792         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
84793         Reported by Gary V. Vaughan <gary@gnu.org>.
84795 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
84797         Revamp lchown so that it lives in unistd.h where it belongs.
84798         * lib/lchown.h: Remove.
84799         * lib/dirchownmod.c: Don't include lib/lchown.h.
84800         * lib/fchownat.c: Likewise.
84801         * lib/openat.c: Likewise.
84802         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
84803         does not follow symlinks.
84804         (EOPNOTSUPP): Define if not defined.
84805         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
84806         is defined to 0.
84807         (lchown): New decl.
84808         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
84809         Do not check for lchown decl.
84810         Set REPLACE_LCHOWN.
84811         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
84812         REPLACE_LCHOWN.
84813         * modules/chown: Make it clear it follows symlinks.
84814         * modules/lchown: Make it clear it doesn't follow symlinks.
84815         (Files): Remove lib/lchown.h
84816         (Depends-on): Add unistd.
84817         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
84818         (Include): Include <unistd.h>, not "lchown.h".
84819         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
84820         REPLACE_LCHOWN.
84822 2007-06-15  Jim Meyering  <jim@meyering.net>
84824         Change license (GPL to LGPL) of fsusage and dependents.
84825         * modules/fsusage (License): Change to LGPL.
84826         * modules/full-read (License): Likewise.
84827         * modules/full-write (License): Likewise.
84828         * modules/safe-read (License): Likewise.
84829         * modules/safe-write (License): Likewise.
84831 2007-06-14  Ben Pfaff  <blp@gnu.org>
84833         Missing part of allocsa -> malloca transition.
84834         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
84835         gl_MALLOCA.
84837 2007-06-12  Bruno Haible  <bruno@clisp.org>
84839         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
84840         to ia64, x86_64, i386.
84841         Reported by Eric Blake.
84843 2007-06-12  Bruno Haible  <bruno@clisp.org>
84845         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
84846         cross-compiling to x86_64.
84848 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
84850         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
84851         glitch reported by Ralf Wildenhues in
84852         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
84854         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
84855         Vin Shelton.
84857 2007-06-11  Bruno Haible  <bruno@clisp.org>
84859         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
84860         replacement string.
84861         Reported by Eric Blake.
84863 2007-06-10  Bruno Haible  <bruno@clisp.org>
84865         Prepare vasnprintf code for use with Unicode strings.
84866         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
84867         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
84868         TYPE_U32_STRING.
84869         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
84870         a_u32_string variants.
84871         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
84872         * lib/printf-args.c: Don't include config.h and the specification
84873         header if PRINTF_FETCHARGS is already defined.
84874         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
84875         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
84876         TYPE_U16_STRING, TYPE_U32_STRING.
84877         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
84878         u16_directive, u16_directives, u32_directive, u32_directives): New
84879         types.
84880         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
84881         New declarations.
84882         * lib/printf-parse.c: Don't include config.h and the specification
84883         header if PRINTF_PARSE is already defined. Eliminate the set of
84884         parameters for WIDE_CHAR_VERSION; the user of this file must provide
84885         them now. Include c-ctype.h.
84886         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
84887         directive and CHAR_T_ONLY_ASCII.
84888         * lib/vasnprintf.c: Don't include config.h and the specification header
84889         if VASNPRINTF is already defined.
84890         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
84891         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
84892         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
84893         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
84894         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
84895         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
84896         code accordingly.
84897         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
84898         pad_ourselves also in this case, with the 'c' and 's' directives, and
84899         with a different notion of "width".
84900         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
84902 2007-06-10  Bruno Haible  <bruno@clisp.org>
84904         * modules/unistr/u32-mbsnlen: New file.
84905         * lib/unistr/u32-mbsnlen.c: New file.
84907         * modules/unistr/u16-mbsnlen: New file.
84908         * lib/unistr/u16-mbsnlen.c: New file.
84910         * modules/unistr/u8-mbsnlen: New file.
84911         * lib/unistr/u8-mbsnlen.c: New file.
84913         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
84914         declarations.
84916 2007-06-10  Bruno Haible  <bruno@clisp.org>
84918         * lib/string_.h (mbsnlen): New declaration.
84919         * lib/mbsnlen.c: New file.
84920         * m4/mbsnlen.m4: New file.
84921         * modules/mbsnlen: New file.
84922         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
84923         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
84924         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
84926 2007-06-10  Bruno Haible  <bruno@clisp.org>
84928         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
84930 2007-06-10  Bruno Haible  <bruno@clisp.org>
84932         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
84933         * lib/mbuiter.h: Likewise.
84935 2007-06-10  Bruno Haible  <bruno@clisp.org>
84937         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
84938         declaration.
84940 2007-06-10  Karl Berry  <karl@gnu.org>
84942         * config/srclist.txt: remove gettext entries, Bruno prefers
84943         to update individually.
84945 2007-06-10  Bruno Haible  <bruno@clisp.org>
84947         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
84948         'maxlen'. Ensure only length + width bytes are allocated, not
84949         length + 1 + width.
84951 2007-06-09  Bruno Haible  <bruno@clisp.org>
84953         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
84954         (CHAR_T): Remove macro.
84955         (VASNPRINTF): Update.
84957 2007-06-09  Bruno Haible  <bruno@clisp.org>
84959         * MODULES.html.sh (Unicode string functions): Add the new modules.
84961         * modules/uniconv/u32-conv-to-enc: New file.
84962         * lib/uniconv/u32-conv-to-enc.c: New file.
84963         * modules/uniconv/u32-conv-to-enc-tests: New file.
84964         * tests/uniconv/test-u32-conv-to-enc.c: New file.
84966         * modules/uniconv/u16-conv-to-enc: New file.
84967         * lib/uniconv/u16-conv-to-enc.c: New file.
84968         * lib/uniconv/u-conv-to-enc.h: New file.
84969         * modules/uniconv/u16-conv-to-enc-tests: New file.
84970         * tests/uniconv/test-u16-conv-to-enc.c: New file.
84972         * modules/uniconv/u8-conv-to-enc: New file.
84973         * lib/uniconv/u8-conv-to-enc.c: New file.
84974         * modules/uniconv/u8-conv-to-enc-tests: New file.
84975         * tests/uniconv/test-u8-conv-to-enc.c: New file.
84977         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
84978         u32_conv_to_encoding): New declarations.
84980 2007-06-09  Bruno Haible  <bruno@clisp.org>
84982         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
84984 2007-06-09  Bruno Haible  <bruno@clisp.org>
84986         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
84987         * modules/malloca: Renamed from modules/allocsa, updated.
84988         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
84989         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
84990         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
84991         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
84992         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
84993         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
84994         * modules/xmalloca: Renamed from modules/xallocsa, updated.
84995         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
84996         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
84997         * modules/c-strcasestr (Depends-on): Update.
84998         * lib/c-strcasestr.c: Update.
84999         * modules/c-strstr (Depends-on): Update.
85000         * lib/c-strstr.c: Update.
85001         * modules/canonicalize-lgpl (Depends-on): Update.
85002         * lib/canonicalize-lgpl.c: Update.
85003         * modules/clean-temp (Depends-on): Update.
85004         * lib/clean-temp.c: Update.
85005         * modules/csharpcomp (Depends-on): Update.
85006         * lib/csharpcomp.c: Update.
85007         * modules/csharpexec (Depends-on): Update.
85008         * lib/csharpexec.c: Update.
85009         * modules/javacomp (Depends-on): Update.
85010         * lib/javacomp.c: Update.
85011         * modules/javaexec (Depends-on): Update.
85012         * lib/javaexec.c: Update.
85013         * modules/mbscasestr (Depends-on): Update.
85014         * lib/mbscasestr.c: Update.
85015         * modules/mbsstr (Depends-on): Update.
85016         * lib/mbsstr.c: Update.
85017         * modules/setenv (Depends-on): Update.
85018         * lib/setenv.c: Update.
85019         * modules/strcasestr (Depends-on): Update.
85020         * lib/strcasestr.c: Update.
85021         * modules/striconveha (Depends-on): Update.
85022         * lib/striconveha.c: Update.
85023         * modules/relocatable-prog-wrapper (Files): Update.
85024         * lib/relocwrapper.c: Update.
85025         * build-aux/install-reloc: Update.
85026         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
85028 2007-06-08  Bruno Haible  <bruno@clisp.org>
85030         Port to uClibc.
85031         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
85032         * lib/fpurge.c (fpurge): Likewise.
85033         * lib/freading.c (freading): Likewise.
85034         * lib/fseeko.c (rpl_fseeko): Likewise.
85035         * lib/fseterr.c (fseterr): Likewise.
85036         * lib/fwriting.c (fwriting): Likewise.
85037         * tests/test-fflush.c (main): Avoid a failure on uClibc.
85039 2007-06-08  Bruno Haible  <bruno@clisp.org>
85041         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
85042         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
85043         * modules/gettext (Files): Add m4/intlmacosx.m4.
85045 2007-06-07  Bruno Haible  <bruno@clisp.org>
85047         * modules/localename-tests: New file.
85048         * tests/test-localename.c: New file.
85050         New module 'localename'.
85051         * lib/localename.h: New file.
85052         * lib/localename.c: New file, from GNU gettext.
85053         * m4/localename.m4: New file.
85054         * modules/localename: New file.
85056 2007-06-07  Bruno Haible  <bruno@clisp.org>
85058         Work around the lack of <wchar.h> on some builds of uClibc.
85059         * doc/headers/wchar.texi: Update.
85060         * lib/wchar_.h: Include <wchar.h> only if it exists.
85061         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
85062         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
85063         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
85064         doesn't exist.
85065         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
85066         * modules/mbfile (Depends-on): Add wchar.
85067         * modules/mbiter (Depends-on): Likewise.
85068         * modules/mbuiter (Depends-on): Likewise.
85069         Reported by Simon Josefsson.
85071 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
85073         Work around problem reported by Steven M. Schweda in
85074         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
85075         Tru64 5.1B with the Compaq compiler environment installed declares
85076         an 'isblank' function but does not define it in the C library.
85077         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
85078         * lib/regex_internal.h (isblank): Likewise.
85079         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
85080         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
85082 2007-06-05  Bruno Haible  <bruno@clisp.org>
85084         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
85085         ia64.
85086         * modules/printf-safe: New file.
85087         * modules/fprintf-posix (Depends-on): Add printf-safe.
85088         * modules/printf-posix (Depends-on): Likewise.
85089         * modules/snprintf-posix (Depends-on): Likewise.
85090         * modules/sprintf-posix (Depends-on): Likewise.
85091         * modules/vasnprintf-posix (Depends-on): Likewise.
85092         * modules/vasprintf-posix (Depends-on): Likewise.
85093         * modules/vfprintf-posix (Depends-on): Likewise.
85094         * modules/vprintf-posix (Depends-on): Likewise.
85095         * modules/vsnprintf-posix (Depends-on): Likewise.
85096         * modules/vsprintf-posix (Depends-on): Likewise.
85097         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
85098         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
85099         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
85100         "no" on i386, x86_64, ia64.
85101         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
85102         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
85103         on i386, x86_64, ia64.
85104         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
85105         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
85106         on i386, x86_64, ia64.
85107         * tests/test-vasnprintf-posix.c: Include float.h.
85108         (LDBL80_WORDS): New macro.
85109         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
85110         on i386, x86_64, ia64.
85111         * tests/test-vasprintf-posix.c: Include float.h.
85112         (LDBL80_WORDS): New macro.
85113         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
85114         on i386, x86_64, ia64.
85115         * tests/test-snprintf-posix.c: Include float.h.
85116         * tests/test-sprintf-posix.c: Likewise.
85117         * tests/test-vsnprintf-posix.c: Likewise.
85118         * tests/test-vsprintf-posix.c: Likewise.
85120 2007-06-05  Bruno Haible  <bruno@clisp.org>
85122         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
85123         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
85124         non-IEEE numbers on i386, x86_64, ia64.
85125         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
85126         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
85127         * tests/test-isnanl.h: Include float.h.
85128         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
85130 2007-06-05  Bruno Haible  <bruno@clisp.org>
85132         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
85133         also the %a / %A. Handle the %a / %A code before this extra handling.
85135 2007-06-05  Bruno Haible  <bruno@clisp.org>
85137         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
85138         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
85140 2007-06-05  Bruno Haible  <bruno@clisp.org>
85142         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
85143         typo in variable name.
85145 2007-06-05  Eric Blake  <ebb9@byu.net>
85147         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
85148         Reported by Simon Josefsson.
85150 2007-06-04  Bruno Haible  <bruno@clisp.org>
85152         Avoid test failures on some PowerPC platforms.
85153         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
85154         Define differently for PowerPC.
85155         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
85156         Reported by Gary V. Vaughan <gary@gnu.org>.
85158 2007-06-02  Bruno Haible  <bruno@clisp.org>
85160         Fix test-stdint failure on FreeBSD/ia64.
85161         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
85162         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
85163         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
85164         * doc/headers/stdint.texi: Update.
85166 2007-06-01  Bruno Haible  <bruno@clisp.org>
85168         * tests/test-binary-io.c (main): Pass a third argument to open().
85169         Reported by Gary V. Vaughan <gary@gnu.org>.
85171 2007-06-01  Bruno Haible  <bruno@clisp.org>
85173         * doc/functions/frexpl.texi: Update for mingw.
85175 2007-06-01  Bruno Haible  <bruno@clisp.org>
85177         * tests/test-lseek.c (main): Disable test of errno for invalid third
85178         argument.
85179         * doc/functions/lseek.texi: Update.
85180         Reported by Gary V. Vaughan <gary@gnu.org>.
85182 2007-05-28  Bruno Haible  <bruno@clisp.org>
85184         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
85186 2007-05-31  Eric Blake  <ebb9@byu.net>
85188         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
85189         cross compiling.
85191 2007-05-30  Eric Blake  <ebb9@byu.net>
85192         and Bruno Haible  <bruno@clisp.org>
85194         Work around mingw test failures exposed by m4-1.4.9b.
85195         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
85196         * tests/test-unistd.c: Disable uid_t and git_t tests for the
85197         moment.
85199 2007-05-30  Bruno Haible  <bruno@clisp.org>
85201         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
85202         assuming that they are closed. Needed on HP-UX 11.
85204 2007-05-29  Bruno Haible  <bruno@clisp.org>
85206         Fix a problem with #include_next.
85207         * lib/dirent_.h: Split the double-inclusion guard.
85208         * lib/fcntl_.h: Likewise.
85209         * lib/float_.h: Likewise.
85210         * lib/iconv_.h: Likewise.
85211         * lib/inttypes_.h: Likewise.
85212         * lib/locale_.h: Likewise.
85213         * lib/math_.h: Likewise.
85214         * lib/netinet_in_.h: Likewise.
85215         * lib/search_.h: Likewise.
85216         * lib/signal_.h: Likewise.
85217         * lib/stdint_.h: Likewise.
85218         * lib/stdio_.h: Likewise.
85219         * lib/stdlib_.h: Likewise.
85220         * lib/string_.h: Likewise.
85221         * lib/sys_select_.h: Likewise.
85222         * lib/sys_socket_.h: Likewise.
85223         * lib/sys_stat_.h: Likewise.
85224         * lib/sys_time_.h: Likewise.
85225         * lib/sysexits_.h: Likewise.
85226         * lib/time_.h: Likewise.
85227         * lib/unistd_.h: Likewise.
85228         * lib/wchar_.h: Likewise.
85229         * lib/wctype_.h: Likewise.
85231 2007-05-29  Bruno Haible  <bruno@clisp.org>
85233         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
85234         for the moment.
85236 2007-05-29  Bruno Haible  <bruno@clisp.org>
85238         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
85239         invocation.
85240         Reported by Eric Blake.
85242 2007-05-29  Bruno Haible  <bruno@clisp.org>
85244         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
85245         compiling case.
85247 2007-05-29  Eric Blake  <ebb9@byu.net>
85248             Bruno Haible  <bruno@clisp.org>
85250         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
85251         cross compiles.
85253 2007-05-28  Eric Blake  <ebb9@byu.net>
85255         * modules/closein-tests (test_closein_LDADD): Support test on
85256         cygwin with libtool.
85258 2007-05-28  Bruno Haible  <bruno@clisp.org>
85260         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
85261         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
85262         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
85263         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
85264         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
85265         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
85266         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
85267         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
85268         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
85270 2007-05-28  Eric Blake  <ebb9@byu.net>
85272         Unconditionally include <config.h> in unit tests.
85273         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
85274         * tests/test-allocsa.c, tests/test-arcfour.c,
85275         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
85276         tests/test-array_list.c, tests/test-array_oset.c,
85277         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
85278         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
85279         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
85280         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
85281         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
85282         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
85283         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
85284         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
85285         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
85286         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
85287         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
85288         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
85289         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
85290         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
85291         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
85292         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
85293         test-md5.c, test-memmem.c, test-printf-posix.c,
85294         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
85295         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
85296         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
85297         test-strcasestr.c, test-striconv.c, test-striconveh.c,
85298         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
85299         test-vasnprintf-posix2.c, test-vasnprintf.c,
85300         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
85301         test-vfprintf-posix.c, test-vprintf-posix.c,
85302         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
85303         test-xvasprintf.c: Likewise.
85305 2007-05-28  Bruno Haible  <bruno@clisp.org>
85307         * gnulib-tool (func_import): Remember the --with-tests command-line
85308         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
85309         Reported by Eric Blake.
85311 2007-05-28  Bruno Haible  <bruno@clisp.org>
85313         * modules/ftell-tests: New file.
85314         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
85315         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
85317         * lib/ftell.c: New file.
85318         * modules/ftell: New file.
85319         * m4/ftell.m4: New file.
85320         * doc/functions/ftell.texi: Update.
85321         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
85322         REPLACE_FTELL.
85323         * lib/stdio_.h (rpl_ftell): New declaration.
85324         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
85325         REPLACE_FTELL.
85327 2007-05-28  Eric Blake  <ebb9@byu.net>
85329         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
85331 2007-05-28  Bruno Haible  <bruno@clisp.org>
85333         * modules/fseek-tests: New file.
85334         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
85335         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
85337         * lib/fseek.c: New file.
85338         * modules/fseek: New file.
85339         * m4/fseek.m4: New file.
85340         * doc/functions/fseek.texi: Update.
85341         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
85342         REPLACE_FSEEK.
85343         * lib/stdio_.h (rpl_fseek): New declaration.
85344         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
85345         REPLACE_FSEEK.
85347 2007-05-28  Bruno Haible  <bruno@clisp.org>
85349         * lib/stdio_.h (fflush): More comments.
85351 2007-05-28  Bruno Haible  <bruno@clisp.org>
85353         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
85354         runtime test.
85356 2007-05-28  Eric Blake  <ebb9@byu.net>
85358         Improve lseek module.
85359         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
85360         * lib/unistd_.h (lseek): Scale back link warning message.
85361         * tests/test-lseek.c: Beef up test.
85362         * tests/test-lseek.sh: Exercise more facets of lseek.
85363         Reported by Bruno Haible.
85365 2007-05-28  Bruno Haible  <bruno@clisp.org>
85367         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
85368         to define.
85370 2007-05-27  Bruno Haible  <bruno@clisp.org>
85372         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
85374 2007-05-27  Bruno Haible  <bruno@clisp.org>
85376         * modules/openmp: New file.
85377         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
85378         Noah Misch.
85380 2007-05-26  Bruno Haible  <bruno@clisp.org>
85382         * modules/chdir-long (Depends-on): Add fchdir.
85383         * modules/chdir-safer (Depends-on): Likewise.
85384         * modules/fts (Depends-on): Likewise.
85385         * modules/fts-lgpl (Depends-on): Likewise.
85386         * modules/openat (Depends-on): Likewise.
85387         * modules/savewd (Depends-on): Likewise.
85389 2007-05-24  Eric Blake  <ebb9@byu.net>
85391         Fix lseek on mingw.
85392         * modules/lseek: New module.
85393         * m4/lseek.m4: New file.
85394         * lib/lseek.c: New file.
85395         * modules/lseek-tests: New file.
85396         * tests/test-lseek.c: New file.
85397         * tests/test-lseek.sh: New file.
85398         * MODULES.html.sh: Document lseek module.
85399         * modules/fflush (Depends-on): Add lseek, fseeko.
85400         * modules/fseeko (Depends-on): Likewise.
85401         * modules/ftello (Depends-on): Likewise.
85402         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
85403         broken.
85404         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
85405         broken.
85406         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
85407         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
85408         * lib/ftello.c (rpl_ftello): Likewise.
85409         * tests/test-fseeko.c (main): Test this.
85410         * tests/test-fseeko.sh: Likewise.
85411         * tests/test-ftello.c (main): Likewise.
85412         * tests/test-ftello.sh: Likewise.
85413         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
85414         implies replacing fseek.
85415         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
85416         HAVE_FTELLO.
85417         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
85418         * modules/unistd (Makefile.am): Likewise.
85419         * lib/unistd_.h (lseek): Declare a replacement.
85420         * doc/functions/lseek.texi (lseek): Document this fix.
85421         * doc/functions/fseek.texi (fseek): Likewise.
85422         * doc/functions/ftell.texi (ftell): Likewise.
85424 2007-05-24  Bruno Haible  <bruno@clisp.org>
85426         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
85427         in the printed representation of a NaN.
85428         * tests/test-vasprintf-posix.c (test_function): Likewise.
85429         * tests/test-snprintf-posix.h (test_function): Likewise.
85430         * tests/test-sprintf-posix.h (test_function): Likewise.
85431         Reported by Eric Blake.
85433 2007-05-23  Eric Blake  <ebb9@byu.net>
85435         Fix fseeko/ftello on cygwin 1.5.24.
85436         * doc/functions/fseeko.texi (fseeko): Document the fix.
85437         * doc/functions/ftello.texi (ftello): Document the fix.
85438         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
85439         * doc/functions/stdout.text (stdout): New file.
85440         * doc/functions/stderr.text (stderr): New file.
85441         * doc/gnulib.texi (Function Substitutes): Use new files.
85442         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
85443         prior to 1.7.0.
85444         * tests/test-ftello.c (main): Likewise for ftello.
85445         * tests/test-fseeko.sh: New file.
85446         * tests/test-ftello.sh: New file.
85447         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
85448         with seekable stdin.
85449         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
85450         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
85451         (gl_REPLACE_FSEEKO): New macro.
85452         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
85453         * modules/fseeko (Files): Distribute fseeko.c.
85454         * modules/ftello (Files): Distribute ftello.c.
85455         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
85456         mode.
85457         * lib/ftello.c (rpl_ftello): New file.
85458         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
85459         fseeko, ftello.
85460         (gl_STDIN_LARGE_OFFSET): New macro.
85461         * modules/stdio (Makefile.am): Perform the replacement.
85462         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
85464 2007-05-23  Bruno Haible  <bruno@clisp.org>
85466         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
85467         GNULIB_POSIXCHECK is defined.
85469 2007-05-21  Bruno Haible  <bruno@clisp.org>
85471         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
85472         Check also the output for NaN arguments. When cross-compiling, guess
85473         no on IRIX.
85474         * lib/vasnprintf.c: Update comments.
85475         * tests/test-vasnprintf-posix.c (strisnan): New function.
85476         (test_function): Use it.
85477         * tests/test-vasprintf-posix.c (strisnan): New function.
85478         (test_function): Use it.
85479         * tests/test-snprintf-posix.h (strisnan): New function.
85480         (test_function): Use it.
85481         * tests/test-sprintf-posix.h (strisnan): New function.
85482         (test_function): Use it.
85483         Reported by Eric Blake.
85485 2007-05-20  Bruno Haible  <bruno@clisp.org>
85487         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
85488         numbers that fails on BeOS.
85489         * doc/functions/frexpl.texi: Update.
85491 2007-05-20  Jim Meyering  <jim@meyering.net>
85493         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
85494         forced upon us by glibc-2.6.
85496 2007-05-20  Bruno Haible  <bruno@clisp.org>
85498         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
85499         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
85500         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
85501         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
85502         NEED_PRINTF_INFINITE.
85503         (is_infinitel): New function.
85504         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
85505         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
85506         gl_PREREQ_VASNPRINTF_INFINITE.
85507         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
85508         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
85509         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
85510         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
85511         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
85512         gl_PREREQ_VASNPRINTF_INFINITE.
85513         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
85514         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
85515         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
85516         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
85517         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
85518         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
85519         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
85520         * doc/functions/fprintf.texi: Update.
85521         * doc/functions/printf.texi: Update.
85522         * doc/functions/snprintf.texi: Update.
85523         * doc/functions/sprintf.texi: Update.
85524         * doc/functions/vfprintf.texi: Update.
85525         * doc/functions/vprintf.texi: Update.
85526         * doc/functions/vsnprintf.texi: Update.
85527         * doc/functions/vsprintf.texi: Update.
85529 2007-05-20  Bruno Haible  <bruno@clisp.org>
85531         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
85532         was not found in libc.
85533         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
85535 2007-05-20  Bruno Haible  <bruno@clisp.org>
85537         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
85538         printed as "-nan" instead of "nan".
85539         * tests/test-vasprintf-posix.c (test_function): Likewise.
85540         * tests/test-snprintf-posix.h (test_function): Likewise.
85541         * tests/test-sprintf-posix.h (test_function): Likewise.
85542         Needed for HP-UX 11.
85544 2007-05-20  Jim Meyering  <jim@meyering.net>
85546         Fix buggy test for the fchownat-deref bug.
85547         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
85548         symlink required for the run-test.  Without it, this test would
85549         always declare that fchownat doesn't work, and client code would
85550         unnecessarily use the replacement function with fixed libc.
85551         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
85552         Reported by Greg Schafer.
85554 2007-05-19  Bruno Haible  <bruno@clisp.org>
85556         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
85557         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
85558         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
85559         Needed for IRIX 6.5 and Solaris 2.5.1.
85561 2007-05-19  Bruno Haible  <bruno@clisp.org>
85563         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
85564         (test_function): Skip tests involving -0.0 on platforms where
85565         -0.0 = 0.0.
85566         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
85567         (test_function): Skip tests involving -0.0 on platforms where
85568         -0.0 = 0.0.
85569         * tests/test-snprintf-posix.h (have_minus_zero): New function.
85570         (test_function): Skip tests involving -0.0 on platforms where
85571         -0.0 = 0.0.
85572         * tests/test-sprintf-posix.h (have_minus_zero): New function.
85573         (test_function): Skip tests involving -0.0 on platforms where
85574         -0.0 = 0.0.
85575         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
85576         tests.
85577         * tests/test-printf-posix.h (test_function): Likewise.
85578         * tests/test-printf-posix.output: Remove all -0.0 related results.
85579         Needed for IRIX 6.5.
85581 2007-05-19  Bruno Haible  <bruno@clisp.org>
85583         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
85584         printed as "nan0x7fffffff" instead of "nan".
85585         * tests/test-vasprintf-posix.c (test_function): Likewise.
85586         * tests/test-snprintf-posix.h (test_function): Likewise.
85587         * tests/test-sprintf-posix.h (test_function): Likewise.
85588         * tests/test-fprintf-posix.h (NaN): Remove macro.
85589         (test_function): Remove all NaN related tests.
85590         * tests/test-printf-posix.h (NaN): Remove macro.
85591         (test_function): Remove all NaN related tests.
85592         * tests/test-printf-posix.output: Remove all NaN related results.
85593         Needed for IRIX 6.5.
85595 2007-05-19  Bruno Haible  <bruno@clisp.org>
85597         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
85598         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
85600 2007-05-19  Bruno Haible  <bruno@clisp.org>
85602         * lib/float_.h: New file.
85603         * m4/float_h.m4: New file.
85604         * modules/float: New file.
85605         * modules/isnanl (Dependencies): Add float.
85606         * modules/isnanl-nolibm (Dependencies): Likewise.
85607         * modules/mathl (Dependencies): Likewise.
85608         * modules/printf-frexpl (Dependencies): Likewise.
85609         * modules/signbit (Dependencies): Likewise.
85610         * modules/vasnprintf (Dependencies): Likewise.
85611         * doc/headers/float.texi: Update.
85613 2007-05-19  Jim Meyering  <jim@meyering.net>
85615         * lib/utimens.c (gl_futimens): Rename from futimens,
85616         now that glibc-2.6 declares futimens.
85617         * lib/utimens.h: Likewise.
85619 2007-05-19  Bruno Haible  <bruno@clisp.org>
85621         Avoid test failures on mingw.
85622         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
85623         * tests/test-printf-posix.sh: Likewise.
85624         * tests/test-vfprintf-posix.sh: Likewise.
85625         * tests/test-vprintf-posix.sh: Likewise.
85627 2007-05-19  Bruno Haible  <bruno@clisp.org>
85629         Fix *printf result for NaN, Inf, -0.0 on mingw.
85630         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
85631         * lib/vasnprintf.c: Include math.h and isnan.h.
85632         (is_infinite_or_zero): New function.
85633         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
85634         values in the %f, %F, %e, %E, %g, %G directives.
85635         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
85636         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
85637         gl_PRINTF_INFINITE and test its result. Invoke
85638         gl_PREREQ_VASNPRINTF_INFINITE.
85639         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
85640         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
85641         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
85642         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
85643         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
85644         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
85645         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
85646         * doc/functions/fprintf.texi: Update.
85647         * doc/functions/printf.texi: Update.
85648         * doc/functions/snprintf.texi: Update.
85649         * doc/functions/sprintf.texi: Update.
85650         * doc/functions/vfprintf.texi: Update.
85651         * doc/functions/vprintf.texi: Update.
85652         * doc/functions/vsnprintf.texi: Update.
85653         * doc/functions/vsprintf.texi: Update.
85655 2007-05-19  Bruno Haible  <bruno@clisp.org>
85657         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
85658         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
85659         Instead of multiplying with 10^k, set extra_zeroes to k.
85660         (scale10_round_long_double): Remove function.
85662 2007-05-18  Bruno Haible  <bruno@clisp.org>
85664         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
85665         introduced on 2007-05-06.
85667 2007-05-18  Bruno Haible  <bruno@clisp.org>
85669         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
85670         %g directives.
85671         * tests/test-vasprintf-posix.c (test_function): Likewise.
85672         * tests/test-snprintf-posix.h (test_function): Likewise.
85673         * tests/test-sprintf-posix.h (test_function): Likewise.
85675 2007-05-18  Bruno Haible  <bruno@clisp.org>
85677         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
85678         (strmatch): New function.
85679         (test_function): Test the %f directive on numbers of various exponents.
85680         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
85681         (strmatch): New function.
85682         (test_function): Test the %f directive on numbers of various exponents.
85683         * tests/test-snprintf-posix.h (strmatch): New function.
85684         (test_function): Test the %f directive on numbers of various exponents.
85685         * tests/test-sprintf-posix.h (strmatch): New function.
85686         (test_function): Test the %f directive on numbers of various exponents.
85687         * tests/test-snprintf-posix.c (SIZEOF): New macro.
85688         * tests/test-sprintf-posix.c (SIZEOF): New macro.
85689         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
85690         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
85692 2007-05-18  Bruno Haible  <bruno@clisp.org>
85694         Add support for 'long double' number output.
85695         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
85696         * lib/vasnprintf.c: Include math.h and float+.h.
85697         (mp_limb_t): New type.
85698         (GMP_LIMB_BITS): New macro.
85699         (mp_twolimb_t): New type.
85700         (GMP_TWOLIMB_BITS): New macro.
85701         (mpn_t): New type.
85702         (multiply, divide, convert_to_decimal, decode_long_double,
85703         scale10_round_long_double, scale10_round_decimal_long_double,
85704         floorlog10l): New functions.
85705         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
85706         for the %f, %F, %e, %E, %g, %G directives.
85707         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
85708         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
85709         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
85710         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
85711         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
85712         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
85713         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
85714         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
85715         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
85716         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
85717         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
85718         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
85719         * modules/snprintf-posix (Depends-on): Likewise.
85720         * modules/sprintf-posix (Depends-on): Likewise.
85721         * modules/vasnprintf-posix (Depends-on): Likewise.
85722         * modules/vasprintf-posix (Depends-on): Likewise.
85723         * modules/vfprintf-posix (Depends-on): Likewise.
85724         * modules/vsnprintf-posix (Depends-on): Likewise.
85725         * modules/vsprintf-posix (Depends-on): Likewise.
85726         * modules/vasnprintf (Files): Add lib/float+.h.
85727         * doc/functions/fprintf.texi: Update.
85728         * doc/functions/printf.texi: Update.
85729         * doc/functions/snprintf.texi: Update.
85730         * doc/functions/sprintf.texi: Update.
85731         * doc/functions/vfprintf.texi: Update.
85732         * doc/functions/vprintf.texi: Update.
85733         * doc/functions/vsnprintf.texi: Update.
85734         * doc/functions/vsprintf.texi: Update.
85736 2007-05-18  Bruno Haible  <bruno@clisp.org>
85738         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
85740 2007-05-18  Bruno Haible  <bruno@clisp.org>
85742         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
85743         for printing 64-bit integers. Needed for mingw.
85745 2007-05-18  Bruno Haible  <bruno@clisp.org>
85747         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
85748         gl_FUNC_FREXPL_WORKS.
85749         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
85751 2007-05-18  Bruno Haible  <bruno@clisp.org>
85753         * modules/frexpl-nolibm-tests: New file.
85755         * modules/frexpl-nolibm: New file.
85756         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
85758 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85760         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
85761         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
85762         GCC 4.2, which otherwise issues a lot of warnings.
85763         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
85764         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
85765         Likewise.
85766         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
85767         * modules/iconv_open (iconv.h): Likewise.
85768         * modules/locale (locale.h): Likewise.
85769         * modules/netinet_in (netinet/in.h): Likewise.
85770         * modules/sys_select (sys_select.h): Likewise.
85771         * modules/sys_socket (sys/socket.h): Likewise.
85772         * modules/sys_stat (sys/stat.h): Likewise.
85773         * modules/sysexits (sysexits.h): Likewise.
85774         * modules/unistd (unistd.h): Likewise.
85776 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85778         * modules/closein-tests (Makefile.am): Distribute
85779         `test-closein.sh'.
85781 2007-05-17  Bruno Haible  <bruno@clisp.org>
85783         * tests/test-printf-posix.output: Renamed from
85784         tests/test-fprintf-posix.out.
85785         * modules/fprintf-posix-tests: Update.
85786         * modules/printf-posix-tests: Update.
85787         * modules/vfprintf-posix-tests: Update.
85788         * modules/vprintf-posix-tests: Update.
85789         * tests/test-fprintf-posix.sh: Update.
85790         * tests/test-printf-posix.sh: Update.
85791         * tests/test-vfprintf-posix.sh: Update.
85792         * tests/test-vprintf-posix.sh: Update.
85793         Reported by Ralf Wildenhues.
85795 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85797         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
85798         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
85799         GCC 4.2, which otherwise issues a lot of warnings.
85800         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
85801         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
85802         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
85803         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
85804         it should no longer be needed.
85805         * lib/string_.h: Likewise.
85806         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
85807         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
85808         * modules/inttypes (inttypes.h): Likewise.
85809         * modules/math (math.h): Likewise.
85810         * modules/search (search.h): Likewise.
85811         * modules/signal (signal.h): Likewise.
85812         * modules/stdint (stdint.h): Likewise.
85813         * modules/stdio (stdio.h): Likewise.
85814         * modules/stdlib (stdlib.h): Likewise.
85815         * modules/string (string.h): Likewise.
85816         * modules/sys_time (sys/time.h): Likewise.
85817         * modules/time (time.h): Likewise.
85818         * modules/wchar (wchar.h): Likewise.
85819         * modules/wctype (wtype.h): Likewise.
85821 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
85823         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
85825 2007-05-13  Bruno Haible  <bruno@clisp.org>
85827         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
85828         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
85829         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
85830         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
85831         (gl_PREREQ_STRTOK_R): Don't require it here.
85833 2007-05-13  Bruno Haible  <bruno@clisp.org>
85835         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
85836         when used in C++ mode.
85838 2007-05-12  Bruno Haible  <bruno@clisp.org>
85840         * lib/linebuffer.h: Tweak doc.
85841         * lib/linebuffer.c: Likewise.
85843 2007-05-12  James Youngman  <jay@gnu.org>
85845         * lib/linebuffer.c (readlinebuffer_delim): New function,
85846         like readlinebuffer, but use a caller-specified delimiter.
85847         (readlinebuffer): Just call readlinebuffer_delim with '\n'
85848         as the delimiter.
85849         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
85851 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
85853         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
85854         * modules/openat (Files): Remove openat-die.c.
85855         (Depends-on): Add openat-die.
85856         * modules/openat-die: New module.
85858 2007-05-06  Bruno Haible  <bruno@clisp.org>
85860         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
85861         Update with info about Cygwin.
85862         * doc/functions/fprintf.texi: Update.
85863         * doc/functions/printf.texi: Update.
85864         * doc/functions/snprintf.texi: Update.
85865         * doc/functions/sprintf.texi: Update.
85866         * doc/functions/vfprintf.texi: Update.
85867         * doc/functions/vprintf.texi: Update.
85868         * doc/functions/vsnprintf.texi: Update.
85869         * doc/functions/vsprintf.texi: Update.
85870         Reported by Eric Blake.
85872 2007-05-06  Bruno Haible  <bruno@clisp.org>
85874         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
85875         padding ourselves for the floating-point directives.
85876         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
85877         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
85878         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
85879         gl_PRINTF_FLAG_ZERO and test its result. Invoke
85880         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
85881         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
85882         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
85883         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
85884         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
85885         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
85886         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
85887         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
85888         * tests/test-snprintf-posix.h (test_function): Also check the width
85889         and some flags in the %f directive.
85890         * tests/test-sprintf-posix.h (test_function): Likewise.
85891         * tests/test-vasnprintf-posix.c (test_function): Likewise.
85892         * tests/test-vasprintf-posix.c (test_function): Likewise.
85893         * doc/functions/fprintf.texi: Update.
85894         * doc/functions/printf.texi: Update.
85895         * doc/functions/snprintf.texi: Update.
85896         * doc/functions/sprintf.texi: Update.
85897         * doc/functions/vfprintf.texi: Update.
85898         * doc/functions/vprintf.texi: Update.
85899         * doc/functions/vsnprintf.texi: Update.
85900         * doc/functions/vsprintf.texi: Update.
85902 2007-05-06  Bruno Haible  <bruno@clisp.org>
85904         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
85905         pass the ' flag character to sprintf or snprintf.
85906         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
85907         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
85908         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
85909         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
85910         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
85911         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
85912         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
85913         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
85914         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
85915         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
85916         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
85917         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
85918         * tests/test-snprintf-posix.h (test_function): Also check the grouping
85919         flag.
85920         * tests/test-sprintf-posix.h (test_function): Likewise.
85921         * tests/test-vasnprintf-posix.c (test_function): Likewise.
85922         * tests/test-vasprintf-posix.c (test_function): Likewise.
85923         * doc/functions/fprintf.texi: Update.
85924         * doc/functions/printf.texi: Update.
85925         * doc/functions/snprintf.texi: Update.
85926         * doc/functions/sprintf.texi: Update.
85927         * doc/functions/vfprintf.texi: Update.
85928         * doc/functions/vprintf.texi: Update.
85929         * doc/functions/vsnprintf.texi: Update.
85930         * doc/functions/vsprintf.texi: Update.
85932 2007-05-01  Bruno Haible  <bruno@clisp.org>
85934         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
85936 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
85938         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
85939         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
85941 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
85943         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
85944         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
85945         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
85947 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
85949         * lib/argp-help.c (struct hol_entry): New member `ord'.
85950         (HOL_ENTRY_PTRCMP): Use ord for comparison
85951         (hol_sort): Initialize ord.
85953 2007-05-01  Bruno Haible  <bruno@clisp.org>
85955         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
85956         Reported by Eric Blake.
85957         * doc/gnulib.texi (Function Substitutes): Update.
85959 2007-05-01  Bruno Haible  <bruno@clisp.org>
85961         * doc/functions.texi: Remove file, now redundant through
85962         doc/functions/*.texi.
85964 2007-05-01  Bruno Haible  <bruno@clisp.org>
85966         * modules/argp (Depends-on): Add sleep.
85968 2007-05-01  Bruno Haible  <bruno@clisp.org>
85970         * modules/sleep-tests: New file.
85971         * tests/test-sleep.c: New file.
85973         * modules/sleep: New file.
85974         * lib/sleep.c: New file.
85975         * m4/sleep.m4: New file.
85976         * lib/unistd_.h (sleep): New declaration.
85977         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
85978         HAVE_SLEEP.
85979         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
85980         * doc/functions/sleep.texi: Document the sleep module.
85982 2007-05-01  Bruno Haible  <bruno@clisp.org>
85984         * lib/sigprocmask.h: Remove file.
85985         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
85986         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
85987         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
85988         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
85989         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
85990         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
85991         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
85992         HAVE_SIGSET_T as a shell variable.
85993         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
85994         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
85995         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
85996         (Depends-on): Add signal. Remove verify.
85997         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
85998         (Include): Mention <signal.h> instead of sigprocmask.h.
85999         * NEWS: Mention the change.
86000         * lib/fatal-signal.c: Don't include sigprocmask.h.
86002 2007-05-01  Bruno Haible  <bruno@clisp.org>
86004         * modules/signal: New file.
86005         * lib/signal_.h: New file.
86006         * m4/signal_h.m4: New file.
86008 2007-05-01  Bruno Haible  <bruno@clisp.org>
86010         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
86011         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
86012         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
86013         HAVE_WCTYPE_CTMP_BUG into wctype.h.
86015 2007-05-01  Bruno Haible  <bruno@clisp.org>
86017         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
86018         configure time.
86019         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
86020         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
86021         * modules/sys_stat (Makefile.am): Substitute their values into
86022         sys/stat.h.
86024 2007-05-01  Bruno Haible  <bruno@clisp.org>
86026         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
86027         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
86028         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
86030 2007-05-01  Bruno Haible  <bruno@clisp.org>
86032         * doc/header/assert.texi: Undo last change: don't mention the gnulib
86033         'assert' module here.
86035 2007-05-01  Bruno Haible  <bruno@clisp.org>
86037         * doc/functions/*.texi: New files.
86038         * doc/functions/google-ranking.txt: New file.
86039         * doc/gnulib.texi (Function Substitutes): New chapter.
86040         (ctime, inet_ntoa): Remove sections.
86041         * doc/ctime.texi: Remove file.
86042         * doc/inet_ntoa.texi: Remove file.
86043         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
86044         dependencies.
86045         (%.info): New rule, specifying a --reference-limit.
86047 2007-05-01  Bruno Haible  <bruno@clisp.org>
86049         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
86051 2007-05-01  Bruno Haible  <bruno@clisp.org>
86053         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
86054         the portability of 'mkdir' to mingw systems.
86056 2007-05-01  Bruno Haible  <bruno@clisp.org>
86058         * doc/headers/google-ranking.txt: New file.
86060 2007-04-30  Eric Blake  <ebb9@byu.net>
86062         Prefer fseeko to fseek.
86063         * modules/getpass (Depends-on): Add fseeko.
86064         * lib/getpass.c (getpass): Use fseeko, not fseek.
86066 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
86068         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
86069         assumes the sorting is stable, while most qsort implementations
86070         are not.  Use argument addresses to ensure they never compare as
86071         equal.
86073         * tests/test-argp-2.sh (usage-indent test): Fix output
86074         (func_compare): Restore diff options
86075         * tests/test-argp.c: Restore #include "progname.h"
86077 2007-04-29  Bruno Haible  <bruno@clisp.org>
86079         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
86080         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
86081         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
86082         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
86083         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
86084         (configure.ac): Define CHECK_SNPRINTF_POSIX.
86085         (TESTS, check_PROGRAMS): Add test-snprintf.
86086         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
86087         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
86088         (TESTS, check_PROGRAMS): Add test-vsnprintf.
86089         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
86090         assertions that fail on HP-UX, OSF/1, or IRIX.
86091         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
86093 2007-04-29  Bruno Haible  <bruno@clisp.org>
86095         * MODULES.html.sh (posix_functions): Remove 'contents'.
86097 2007-04-29  Karl Berry  <karl@gnu.org>
86099         * config/srclist.txt (gendocs_template_min): new entry.
86101 2007-04-29  Bruno Haible  <bruno@clisp.org>
86103         Work around fpurge bug on BSD systems.
86104         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
86105         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
86106         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
86107         fpurge to rpl_fpurge if the system already has this function.
86108         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
86109         the case where the system already has this function. Correct invariants
86110         on BSD systems.
86111         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
86112         BSD systems.
86114 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
86116         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
86117         proposed by Sven Verdoolaege.
86119         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
86120         options.
86121         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
86122         (usage and help tests): Update
86124 2007-04-29  Bruno Haible  <bruno@clisp.org>
86126         * tests/test-fflush.c (main): Use a file of size 17, not 10.
86127         Print more information in case of failure. Disable a test on BeOS.
86129 2007-04-29  Bruno Haible  <bruno@clisp.org>
86131         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
86132         This helps debugging on systems on which no gdb is available.
86134 2007-04-29  Bruno Haible  <bruno@clisp.org>
86136         * lib/freading.h: Improve comments.
86137         * lib/fwriting.h: Likewise.
86138         * tests/test-freading.c (main): Don't check freading immediately after
86139         repositioning. Needed for glibc.
86141 2007-04-29  Bruno Haible  <bruno@clisp.org>
86143         * lib/freading.c (freading): Trivial simplification.
86145 2007-04-28  Bruno Haible  <bruno@clisp.org>
86147         * tests/test-fwriting.c (main): Also test the interaction between
86148         fflush and fwriting.
86149         * modules/fwriting-tests (Depends-on): Add fflush.
86151         * tests/test-freading.c (main): Also test the interaction between
86152         fflush and freading.
86153         * modules/freading-tests (Depends-on): Add fflush.
86155 2007-04-28  Bruno Haible  <bruno@clisp.org>
86157         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
86158         fseeko and ftello.
86159         Suggested by Eric Blake.
86161 2007-04-28  Jim Meyering  <jim@meyering.net>
86163         Avoid false-negative in gl_STDINT_H's C99 conformance test.
86164         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
86165         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
86167 2007-04-27  Eric Blake  <ebb9@byu.net>
86169         * doc/headers/assert.texi (assert.h): Document assert module use.
86171 2007-04-27  Bruno Haible  <bruno@clisp.org>
86173         * doc/headers/*.texi: New files.
86174         * doc/gnulib.texi (Header File Substitutes): New chapter.
86175         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
86176         dependencies.
86177         (standards.info ,standards.html, standards.dvi): Update dependencies.
86178         (mostlyclean, clean): New targets.
86180 2007-04-27  Bruno Haible  <bruno@clisp.org>
86182         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
86183         * modules/sysexits (Files, Makefile.am): Update.
86185         * lib/sys_socket_.h: Renamed from lib/socket_.h.
86186         * modules/sys_socket (Files, Makefile.am): Update.
86188         * lib/sys_stat_.h: Renamed from lib/stat_.h.
86189         * modules/sys_stat (Files, Makefile.am): Update.
86191 2007-04-27  Eric Blake  <ebb9@byu.net>
86193         * lib/freading.h: Improve comments.
86194         * lib/fwriting.h: Likewise.
86195         * lib/fflush.c: Likewise.
86197         Fix closein for mingw.
86198         * modules/closein-tests: Add tests for closein.
86199         * tests/test-closein.c: New file.
86200         * tests/test-closein.sh: Likewise.
86201         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
86202         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
86204 2007-04-27  Bruno Haible  <bruno@clisp.org>
86206         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
86207         version is < 6.
86208         * lib/math_.h [__DECC]: Likewise.
86209         * lib/stdio_.h [__DECC]: Likewise.
86210         * lib/stdlib_.h [__DECC]: Likewise.
86211         * lib/string_.h [__DECC]: Likewise.
86212         * lib/time_.h [__DECC]: Likewise.
86213         * lib/wchar_.h [__DECC]: Likewise.
86214         * lib/wctype_.h [__DECC]: Likewise.
86216 2007-04-27  Bruno Haible  <bruno@clisp.org>
86218         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
86220 2007-04-27  Bruno Haible  <bruno@clisp.org>
86222         * lib/fflush.c: Add comments.
86223         * modules/fpurge-tests (Depends-on): Add fflush.
86224         * modules/freadable-tests (Depends-on): Likewise.
86225         * modules/fwritable-tests (Depends-on): Likewise.
86227 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
86229         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
86230         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
86231         Report by Bruno Haible <bruno@clisp.org>.
86233 2007-04-26  Eric Blake  <ebb9@byu.net>
86235         Fix fflush on mingw.
86236         * modules/fflush (Depends-on): Add freading.
86237         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
86238         but unread data.
86240 2007-04-26  Eric Blake  <ebb9@byu.net>
86241         and Bruno Haible  <bruno@clisp.org>
86243         Implement freading and fwriting.
86244         * lib/freading.c: New file.
86245         * lib/freading.h: Likewise.
86246         * m4/freading.m4: Likewise.
86247         * modules/freading: Likewise.
86248         * modules/freading-tests: Likewise.
86249         * tests/test-freading.c: Likewise.
86250         * lib/fwriting.c: New file.
86251         * lib/fwriting.h: Likewise.
86252         * m4/fwriting.m4: Likewise.
86253         * modules/fwriting: Likewise.
86254         * modules/fwriting-tests: Likewise.
86255         * tests/test-fwriting.c: Likewise.
86256         * MODULES.html.sh (File stream based Input/Output): Mention them.
86258 2007-04-26  Bruno Haible  <bruno@clisp.org>
86260         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
86261         'long' when we assume it.
86262         Suggested by Eric Blake.
86264 2007-04-26  Bruno Haible  <bruno@clisp.org>
86266         Ensure fseeko, ftello are declared on glibc systems.
86267         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
86268         * modules/fseeko (configure.ac-early): Likewise.
86269         * modules/ftello (configure.ac-early): Likewise.
86270         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
86271         AC_FUNC_FSEEKO for this.
86272         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
86273         (gl_CHECK_FSEEKO): Remove macro.
86275 2007-04-26  Bruno Haible  <bruno@clisp.org>
86277         * tests/test-fflush.c (main): Also check the ftell result after
86278         fflush and fseek/fseeko.
86279         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
86280         file descriptor position cache in the stream.
86281         * lib/fseeko.c (rpl_fseeko): Likewise.
86283 2007-04-26  Bruno Haible  <bruno@clisp.org>
86285         * modules/fflush-tests (Depends-on): Add fseeko.
86287 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
86288             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86290         * lib/argz_.h: ensure error_t definition is obtained in same
86291         mechanism system argz.h would have.
86292         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
86293         argz facilities are known bad.  Err on the side of caution if
86294         cross-compiling.
86296 2007-04-25  Eric Blake  <ebb9@byu.net>
86298         * lib/fpurge.c (includes): Use stdlib.h for free.
86299         * tests/test-fflush.c (main): Also test fflush-fseeko.
86301 2007-04-25  Bruno Haible  <bruno@clisp.org>
86303         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
86304         * lib/fseeko.c: New file.
86305         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
86306         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
86307         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
86308         gl_FUNC_FSEEKO.
86309         (gl_FUNC_FSEEKO): Invoke it.
86310         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
86311         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
86312         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
86314 2007-04-25  Bruno Haible  <bruno@clisp.org>
86316         * modules/fflush (Depends-on): Add ftello.
86318 2007-04-25  Bruno Haible  <bruno@clisp.org>
86320         * modules/ftello-tests: New file.
86321         * tests/test-ftello.c: New file.
86323         * modules/ftello: New file.
86324         * m4/ftello.m4: New file.
86325         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
86326         HAVE_FTELLO.
86327         * lib/stdio_.h (ftello): New declaration.
86328         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
86329         HAVE_FTELLO.
86331 2007-04-25  Bruno Haible  <bruno@clisp.org>
86333         * modules/fseeko-tests: New file.
86334         * tests/test-fseeko.c: New file.
86336         * modules/fseeko: New file.
86337         * m4/fseeko.m4: New file.
86338         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
86339         HAVE_FSEEKO.
86340         * lib/stdio_.h (fseeko): New declaration.
86341         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
86342         HAVE_FSEEKO.
86344 2007-04-25  Bruno Haible  <bruno@clisp.org>
86346         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
86348 2007-04-25  Bruno Haible  <bruno@clisp.org>
86350         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
86351         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
86352         * tests/test-unistd.c: Likewise.
86353         * tests/test-fcntl.c: Likewise.
86355 2007-04-23  Eric Blake  <ebb9@byu.net>
86357         * lib/fflush.c: Fix missing include.
86358         Reported by Bruno Haible.
86360 2007-04-23  Bruno Haible  <bruno@clisp.org>
86362         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
86363         Reported by Eric Blake.
86365 2007-04-23  Bruno Haible  <bruno@clisp.org>
86367         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
86369 2007-04-23  Bruno Haible  <bruno@clisp.org>
86371         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
86373 2007-04-23  Bruno Haible  <bruno@clisp.org>
86375         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
86376         Needed on HP-UX 11.
86378 2007-04-16  Eric Blake  <ebb9@byu.net>
86380         Make fflush rely on fpurge.
86381         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
86382         open coding all variants.
86383         * modules/fflush (Depends-on): Add fpurge and unistd.
86384         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
86385         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
86387         Fix --with-tests compilation on cygwin.
86388         * modules/argmatch-tests (Makefile.am): List gnulib library first
86389         in LDADD.
86390         * modules/argp-tests (Makefile.am): Likewise.
86391         * modules/array-list-tests (Makefile.am): Likewise.
86392         * modules/array-oset-tests (Makefile.am): Likewise.
86393         * modules/avltree-list-tests (Makefile.am): Likewise.
86394         * modules/avltree-oset-tests (Makefile.am): Likewise.
86395         * modules/avltreehash-list-tests (Makefile.am): Likewise.
86396         * modules/carray-list-tests (Makefile.am): Likewise.
86397         * modules/dirname-tests (Makefile.am): Likewise.
86398         * modules/frexp-tests (Makefile.am): Likewise.
86399         * modules/isnanl-tests (Makefile.am): Likewise.
86400         * modules/linked-list-tests (Makefile.am): Likewise.
86401         * modules/linkedhash-list-tests (Makefile.am): Likewise.
86402         * modules/lock-tests (Makefile.am): Likewise.
86403         * modules/rbtree-list-tests (Makefile.am): Likewise.
86404         * modules/rbtree-oset-tests (Makefile.am): Likewise.
86405         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
86406         * modules/tls-tests (Makefile.am): Likewise.
86407         * modules/tsearch-tests (Makefile.am): Likewise.
86408         * modules/xvasprintf-tests (Makefile.am): Likewise.
86410         Fix fpurge for cygwin.
86411         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
86412         value.
86413         * modules/fpurge-tests (Depends-on): Clean up trash.
86415 2007-04-16  Simon Josefsson  <simon@josefsson.org>
86417         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
86419         * m4/autobuild.m4: Re-indent.
86421 2007-04-13  Bruno Haible  <bruno@clisp.org>
86423         * modules/fpurge-tests: New file.
86424         * tests/test-fpurge.c: New file.
86426         * modules/fpurge: New file.
86427         * lib/fpurge.h: New file.
86428         * lib/fpurge.c: New file.
86429         * m4/fpurge.m4: New file.
86431 2007-04-13  Bruno Haible  <bruno@clisp.org>
86433         * modules/fbufmode-tests: New file.
86434         * tests/test-fbufmode.c: New file.
86436         * modules/fbufmode: New file.
86437         * lib/fbufmode.h: New file.
86438         * lib/fbufmode.c: New file.
86439         * m4/fbufmode.m4: New file.
86441 2007-04-13  Bruno Haible  <bruno@clisp.org>
86443         * modules/fwritable-tests: New file.
86444         * tests/test-fwritable.c: New file.
86446         * modules/fwritable: New file.
86447         * lib/fwritable.h: New file.
86448         * lib/fwritable.c: New file.
86449         * m4/fwritable.m4: New file.
86451 2007-04-13  Bruno Haible  <bruno@clisp.org>
86453         * modules/freadable-tests: New file.
86454         * tests/test-freadable.c: New file.
86456         * modules/freadable: New file.
86457         * lib/freadable.h: New file.
86458         * lib/freadable.c: New file.
86459         * m4/freadable.m4: New file.
86461 2007-04-13  Bruno Haible  <bruno@clisp.org>
86463         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
86464         MOSTLYCLEANFILES.
86466 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
86468         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
86469         gzip bootstrap.conf to avoid dragging in i18n machinery.
86470         (gnulib_tool_option): Use it.
86472 2007-04-13  Bruno Haible  <bruno@clisp.org>
86474         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
86475         %F directives.
86476         * tests/test-vasprintf-posix.c (test_function): Likewise.
86477         * tests/test-snprintf-posix.h (test_function): Likewise.
86478         * tests/test-sprintf-posix.h (test_function): Likewise.
86479         * tests/test-fprintf-posix.h (test_function): Likewise.
86480         * tests/test-printf-posix.h (test_function): Likewise.
86481         * tests/test-fprintf-posix.out: Likewise.
86483 2007-04-13  Bruno Haible  <bruno@clisp.org>
86485         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
86486         * modules/tls-tests (configure.ac): Likewise.
86487         Reported by Arto C. Nirkko <anirkko@insel.ch>.
86489 2007-04-13  Bruno Haible  <bruno@clisp.org>
86491         * lib/tls.c (glthread_tls_get): Fix return type.
86492         Patch by Arto C. Nirkko <anirkko@insel.ch>.
86494 2007-04-12  Eric Blake  <ebb9@byu.net>
86496         * modules/gettime (Depends-on): Remove gettime.
86497         Reported by Dmitry V. Levin.
86499 2007-04-12  Bruno Haible  <bruno@clisp.org>
86501         * modules/fflush (Include): Mention <stdio.h>.
86502         * modules/strtoimax (Include): Mention <inttypes.h>.
86503         * modules/strtoumax (Include): Likewise.
86505 2007-04-12  Eric Blake  <ebb9@byu.net>
86507         * .cvsignore: New file.
86508         * .gitignore: Likewise.
86510 2007-04-12  Bruno Haible  <bruno@clisp.org>
86512         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
86513         not before, since $(LDADD) often contains libgnu.a.
86514         * modules/striconv-tests (test_striconv_LDADD): Likewise.
86515         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
86516         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
86517         Needed on Cygwin.
86519 2007-04-12  Eric Blake  <ebb9@byu.net>
86521         Work around glibc's failure to flush stdin on fclose.
86522         * lib/closein.c (close_stdin): Flush stdin before closing.
86524         Work around glibc's failure to reset seekable stdin on exit.
86525         * modules/closein: New module.
86526         * lib/closein.c: New file.
86527         * lib/closein.h: Likewise.
86528         * m4/closein.m4: Likewise.
86529         * MODULES.html.sh (File stream based Input/Output): Document it.
86531 2007-04-12  Simon Josefsson  <simon@josefsson.org>
86533         * gnulib-tool: Rename generated 'autobuild' script to
86534         'do-autobuild' in --create-megatestdir output.
86536         * doc/gnulib.texi (Build robot for gnulib): Fix.
86538 2007-04-12  Simon Josefsson  <simon@josefsson.org>
86540         * modules/sysexits (Depends-on): Add absolute-header.
86542 2007-04-12  Eric Blake  <ebb9@byu.net>
86544         No need to preserve errno on success.
86545         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
86546         Reported by Bruno Haible.
86548 2007-04-12  Simon Josefsson  <simon@josefsson.org>
86550         * MODULES.html.sh (Support for maintaining and releasing
86551         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
86553 2007-04-12  Simon Josefsson  <simon@josefsson.org>
86555         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
86557 2007-04-12  Simon Josefsson  <simon@josefsson.org>
86559         * modules/autobuild: New module.
86561         * m4/autobuild.m4: New file.
86563 2007-04-11  Bruno Haible  <bruno@clisp.org>
86565         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
86566         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
86567         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
86568         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
86569         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
86570         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
86571         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
86572         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
86573         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
86574         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
86575         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
86576         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
86577         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
86578         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
86579         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
86580         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
86581         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
86582         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
86583         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
86584         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
86585         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
86586         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
86587         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
86588         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
86589         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
86590         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
86591         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
86592         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
86593         Reported by Eric Blake.
86595 2007-04-11  Bruno Haible  <bruno@clisp.org>
86597         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
86599 2007-04-10  Bruno Haible  <bruno@clisp.org>
86601         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
86602         for NaN and Infinity. Needed on FreeBSD 6.1.
86603         * tests/test-vasnprintf-posix.c (test_function): Undo last change
86604         regarding results for "%010a" of Infinity and NaN.
86605         * tests/test-vasprintf-posix.c (test_function): Likewise.
86606         * tests/test-snprintf-posix.h (test_function): Likewise.
86607         * tests/test-sprintf-posix.h (test_function): Likewise.
86608         * tests/test-fprintf-posix.h (test_function): Likewise.
86609         * tests/test-printf-posix.h (test_function): Likewise.
86610         * tests/test-fprintf-posix.out: Likewise.
86612 2007-04-10  Bruno Haible  <bruno@clisp.org>
86614         * modules/locale-tests: New file.
86615         * tests/test-locale.c: New file.
86617         * modules/locale: New file.
86618         * lib/locale_.h: New file.
86619         * m4/locale_h.m4: New file.
86621 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
86622             Bruno Haible  <bruno@clisp.org>
86624         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
86625         be determined, test for availability of the copysignf, copysign,
86626         copysignl functions.
86627         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
86628         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
86629         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
86631 2007-04-09  Eric Blake  <ebb9@byu.net>
86633         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
86634         * modules/stdio (Makefile.am): Support fflush.
86635         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
86636         * modules/fflush: New file.
86637         * lib/fflush.c: Likewise.
86638         * m4/fflush.m4: Likewise.
86639         * modules/fflush-tests: New test.
86640         * tests/test-fflush.c: Likewise.
86641         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
86643 2007-04-06  Bruno Haible  <bruno@clisp.org>
86645         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
86646         (VASNPRINTF): Use signbit for faster determination whether to print a
86647         minus sign.
86648         * modules/vasnprintf (Files): Remove lib/float+.h.
86649         * modules/fprintf-posix (Depends-on): Add signbit.
86650         * modules/snprintf-posix (Depends-on): Likewise.
86651         * modules/sprintf-posix (Depends-on): Likewise.
86652         * modules/vasnprintf-posix (Depends-on): Likewise.
86653         * modules/vasprintf-posix (Depends-on): Likewise.
86654         * modules/vfprintf-posix (Depends-on): Likewise.
86655         * modules/vsnprintf-posix (Depends-on): Likewise.
86656         * modules/vsprintf-posix (Depends-on): Likewise.
86658 2007-04-06  Bruno Haible  <bruno@clisp.org>
86660         * tests/test-frexp.c (main): Test also the sign bit of zero results.
86661         * tests/test-frexpl.c (main): Likewise.
86662         * tests/test-ldexpl.c (main): Likewise.
86663         * modules/frexp-tests (Depends-on): Add signbit.
86664         * modules/frexpl-tests (Depdends-on): Likewise.
86665         * modules/ldexpl-tests (Depdends-on): Likewise.
86667 2007-04-06  Bruno Haible  <bruno@clisp.org>
86669         * modules/signbit-tests: New file.
86670         * tests/test-signbit.c: New file.
86672         * modules/signbit: New file.
86673         * lib/signbitf.c: New file.
86674         * lib/signbitd.c: New file.
86675         * lib/signbitl.c: New file.
86676         * m4/signbit.m4: New file.
86677         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
86678         (signbit): New macro.
86679         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
86680         REPLACE_SIGNBIT.
86681         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
86682         REPLACE_FREXPL into math.h.
86684 2007-04-06  Bruno Haible  <bruno@clisp.org>
86686         * modules/isnanf-nolibm-tests: New file.
86687         * tests/test-isnanf.c: New file.
86689         * modules/isnanf-nolibm: New file.
86690         * lib/isnanf.h: New file.
86691         * lib/isnanf.c: New file.
86692         * lib/isnan.c: Consider the USE_FLOAT macro.
86693         * m4/isnanf.m4: New file.
86695 2007-04-06  Bruno Haible  <bruno@clisp.org>
86697         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
86698         (Link): New section.
86700         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
86702 2007-04-06  Bruno Haible  <bruno@clisp.org>
86704         Assume the 'long double' type.
86705         * m4/longdouble.m4: Remove file.
86706         * config/srclist.txt: Don't mention longdouble.m4.
86707         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
86708         * lib/float+.h: Likewise.
86709         * lib/frexp.c: Likewise.
86710         * lib/printf-args.h: Likewise.
86711         * lib/printf-args.c: Likewise.
86712         * lib/printf-frexp.c: Likewise.
86713         * lib/printf-parse.c: Likewise.
86714         * lib/vasnprintf.c: Likewise.
86715         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
86716         * m4/intl.m4: Likewise.
86717         * m4/isnanl.m4: Likewise.
86718         * m4/printf.m4: Likewise.
86719         * m4/printf-frexpl.m4: Likewise.
86720         * m4/vasnprintf.m4: Likewise.
86721         * modules/allocsa (Files): Remove m4/longdouble.m4.
86722         * modules/gettext (Files): Likewise.
86723         * modules/relocatable-prog-wrapper (Files): Likewise.
86724         * modules/vasnprintf (Files): Likewise.
86725         * modules/isnanl (Files): Likewise.
86726         (Include): Simplify.
86727         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
86728         (Include): Simplify.
86729         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
86730         (Include): Simplify.
86731         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
86732         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
86733         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
86734         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
86735         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
86736         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
86737         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
86738         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
86739         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
86740         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
86741         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
86742         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
86743         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
86744         * tests/test-isnanl.c: Likewise.
86745         * tests/test-snprintf-posix.h: Likewise.
86746         * tests/test-sprintf-posix.h: Likewise.
86747         * tests/test-vasnprintf-posix.c: Likewise.
86748         * tests/test-vasnprintf-posix2.c: Likewise.
86749         * tests/test-vasprintf-posix.c: Likewise.
86751 2007-04-06  Bruno Haible  <bruno@clisp.org>
86753         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
86754         * lib/math_.h [__DECC]: Include the overridden include file through
86755         #include_next, outside the double-inclusion guard.
86756         * lib/stdio_.h [__DECC]: Likewise.
86757         * lib/stdlib_.h [__DECC]: Likewise.
86758         * lib/string_.h [__DECC]: Likewise.
86759         * lib/time_.h [__DECC]: Likewise.
86760         * lib/wchar_.h [__DECC]: Likewise.
86761         * lib/wctype_.h [__DECC]: Likewise.
86762         * lib/inttypes_.h [__DECC]: Likewise.
86763         Reported by Albert Chin <china@thewrittenword.com> in
86764         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
86766 2007-04-04  Eric Blake  <ebb9@byu.net>
86768         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
86769         1.5.x.
86771 2007-04-04  Bruno Haible  <bruno@clisp.org>
86773         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
86774         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
86776 2007-04-04  Bruno Haible  <bruno@clisp.org>
86778         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
86779         results for "%010a" of Infinity and NaN.
86780         * tests/test-vasprintf-posix.c (test_function): Likewise.
86781         * tests/test-snprintf-posix.h (test_function): Likewise.
86782         * tests/test-sprintf-posix.h (test_function): Likewise.
86783         * tests/test-fprintf-posix.h (test_function): Remove these tests.
86784         * tests/test-printf-posix.h (test_function): Likewise.
86785         * tests/test-fprintf-posix.out: Update.
86786         Needed for FreeBSD 6.1.
86788 2007-04-04  Bruno Haible  <bruno@clisp.org>
86790         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
86791         directly used by the gnulib modules nor by gnulib-tool.
86793 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
86795         * DEPENDENCIES: Give overall description of version dependency
86796         desirability.  Use more-typical names for apps.
86797         Add shell, coreutils, diffutils, grep, tar, gzip.
86799 2007-04-04  Simon Josefsson  <simon@josefsson.org>
86801         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
86803 2007-04-04  Karl Berry  <karl@gnu.org>
86805         * MODULES.html.sh (func_module): missing '.
86807 2007-04-03  Bruno Haible  <bruno@clisp.org>
86809         * modules/argmatch-tests (Makefile.am): New variable
86810         test_argmatch_LDADD.
86811         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
86812         * modules/array-list-tests (Makefile.am): New variable
86813         test_array_list_LDADD.
86814         * modules/array-oset-tests (Makefile.am): New variable
86815         test_array_oset_LDADD.
86816         * modules/avltree-list-tests (Makefile.am): New variable
86817         test_avltree_list_LDADD.
86818         * modules/avltree-oset-tests (Makefile.am): New variable
86819         test_avltree_oset_LDADD.
86820         * modules/avltreehash-list-tests (Makefile.am): New variable
86821         test_avltreehash_list_LDADD.
86822         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
86823         test_canonicalize_lgpl_LDADD.
86824         * modules/carray-list-tests (Makefile.am): New variable
86825         test_carray_list_LDADD.
86826         * modules/dirname-tests (Makefile.am): New variable
86827         test_dirname_LDADD.
86828         * modules/linked-list-tests (Makefile.am): New variable
86829         test_linked_list_LDADD.
86830         * modules/linkedhash-list-tests (Makefile.am): New variable
86831         test_linkedhash_list_LDADD.
86832         * modules/rbtree-list-tests (Makefile.am): New variable
86833         test_rbtree_list_LDADD.
86834         * modules/rbtree-oset-tests (Makefile.am): New variable
86835         test_rbtree_oset_LDADD.
86836         * modules/rbtreehash-list-tests (Makefile.am): New variable
86837         test_rbtreehash_list_LDADD.
86838         * modules/xvasprintf-tests (Makefile.am): New variable
86839         test_xvasprintf_LDADD.
86840         Reported by Eric Blake.
86842 2007-04-03  Eric Blake  <ebb9@byu.net>
86844         * DEPENDENCIES: Weaken m4 requirements.
86846 2007-04-03  Bruno Haible  <bruno@clisp.org>
86848         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
86849         * modules/isnanl-tests (configure.ac): Likewise.
86851 2007-04-03  Ben Pfaff  <blp@gnu.org>
86853         * modules/iconv_open: Add $(srcdir)/ to source directory
86854         references in Makefile fragments that call gperf, to fix VPATH
86855         builds.
86857 2007-04-03  Bruno Haible  <bruno@clisp.org>
86859         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
86860         * lib/ldexpl.c: Undo last change.
86862 2007-04-03  Bruno Haible  <bruno@clisp.org>
86864         * modules/printf-frexpl (Depends-on): Undo last change.
86865         (Files): Add m4/ldexpl.m4.
86867 2007-04-03  Bruno Haible  <bruno@clisp.org>
86869         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
86870         * modules/isnanl (Link): New section.
86872         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
86873         * modules/frexp (Link): New section.
86875         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
86876         * modules/frexpl (Link): New section.
86878         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
86879         * modules/ldexpl (Link): New section.
86881 2007-04-03  Bruno Haible  <bruno@clisp.org>
86883         * modules/TEMPLATE-EXTENDED: New file.
86884         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
86886 2007-04-03  Bruno Haible  <bruno@clisp.org>
86888         * DEPENDENCIES: New file.
86889         Suggested by Simon Josefsson.
86891 2007-04-03  Bruno Haible  <bruno@clisp.org>
86893         * doc/gnulib.texi: Escape @.
86895 2007-04-03  James Youngman  <jay@gnu.org>
86896         and Paul Eggert  <eggert@cs.ucla.edu>
86898         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
86899         birthtime on all systems that have birthtime, not just those which
86900         use st_birthtimensec rather than st_birthtim.  Putting zero in
86901         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
86902         that the birth time is not available for files on an NFS mount.
86904 2007-04-03  Simon Josefsson  <simon@josefsson.org>
86906         * modules/memxor: Move back from crypto/, suggested by Bruno.
86907         * modules/crypto/hmac-sha1: Fix memxor dependency.
86909         * modules/crypto/gc: Moved from ../.
86911 2007-04-02  Eric Blake  <ebb9@byu.net>
86913         * lib/ldexpl.c (includes): Avoid libm.
86915         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
86917 2007-04-02  Bruno Haible  <bruno@clisp.org>
86919         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
86920         on IRIX.
86922 2007-04-02  Bruno Haible  <bruno@clisp.org>
86924         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
86925         x86 or x86_64 platforms running MacOS X.
86926         Reported by Ryan Schmidt <@ryandesign.com>.
86928 2007-04-02  Bruno Haible  <bruno@clisp.org>
86930         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
86931         i386.
86933 2007-04-01  Simon Josefsson  <simon@josefsson.org>
86935         * modules/crypto/arcfour: Moved from ../.
86936         * modules/crypto/arcfour-tests: Moved from ../.
86937         * modules/crypto/arctwo: Moved from ../.
86938         * modules/crypto/arctwo-tests: Moved from ../.
86939         * modules/crypto/des: Moved from ../.
86940         * modules/crypto/des-tests: Moved from ../.
86941         * modules/crypto/gc-arcfour: Moved from ../.
86942         * modules/crypto/gc-arcfour-tests: Moved from ../.
86943         * modules/crypto/gc-arctwo: Moved from ../.
86944         * modules/crypto/gc-arctwo-tests: Moved from ../.
86945         * modules/crypto/gc-des: Moved from ../.
86946         * modules/crypto/gc-des-tests: Moved from ../.
86947         * modules/crypto/gc-hmac-md5: Moved from ../.
86948         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
86949         * modules/crypto/gc-hmac-sha1: Moved from ../.
86950         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
86951         * modules/crypto/gc-md2: Moved from ../.
86952         * modules/crypto/gc-md2-tests: Moved from ../.
86953         * modules/crypto/gc-md4: Moved from ../.
86954         * modules/crypto/gc-md4-tests: Moved from ../.
86955         * modules/crypto/gc-md5: Moved from ../.
86956         * modules/crypto/gc-md5-tests: Moved from ../.
86957         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
86958         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
86959         * modules/crypto/gc-random: Moved from ../.
86960         * modules/crypto/gc-rijndael: Moved from ../.
86961         * modules/crypto/gc-rijndael-tests: Moved from ../.
86962         * modules/crypto/gc-sha1: Moved from ../.
86963         * modules/crypto/gc-sha1-tests: Moved from ../.
86964         * modules/crypto/gc-tests: Moved from ../.
86965         * modules/crypto/hmac-md5: Moved from ../.
86966         * modules/crypto/hmac-md5-tests: Moved from ../.
86967         * modules/crypto/hmac-sha1: Moved from ../.
86968         * modules/crypto/hmac-sha1-tests: Moved from ../.
86969         * modules/crypto/md2: Moved from ../.
86970         * modules/crypto/md2-tests: Moved from ../.
86971         * modules/crypto/md4: Moved from ../.
86972         * modules/crypto/md4-tests: Moved from ../.
86973         * modules/crypto/md5: Moved from ../.
86974         * modules/crypto/md5-tests: Moved from ../.
86975         * modules/crypto/memxor: Moved from ../.
86976         * modules/crypto/rijndael: Moved from ../.
86977         * modules/crypto/rijndael-tests: Moved from ../.
86978         * modules/crypto/sha1: Moved from ../.
86980 2007-03-30  James Youngman  <jay@gnu.org>
86982         * tests/test-stat-time.c (prepare_test): use chmod() rather than
86983         rename() to change the ctime of a file (because ctime is unaffected
86984         by rename on jfs2 on AIX 5.1).
86985         (main): Start by doing cleanup, in case a previous run failed leaving
86986         test files behind.
86988 2007-03-31  Bruno Haible  <bruno@clisp.org>
86990         Support old proprietary implementations of iconv.
86991         * modules/iconv_open: New file.
86992         * lib/iconv_.h: New file.
86993         * m4/iconv_h.m4: New file.
86994         * lib/iconv_open.c: New file.
86995         * lib/iconv_open-aix.gperf: New file.
86996         * lib/iconv_open-hpux.gperf: New file.
86997         * lib/iconv_open-irix.gperf: New file.
86998         * lib/iconv_open-osf.gperf: New file.
86999         * m4/iconv_open.m4: New file.
87000         * modules/linebreak (Depends-on): Add iconv_open.
87001         * modules/striconv (Depends-on): Likewise.
87002         * modules/striconveh (Depends-on): Likewise.
87003         * modules/unicodeio (Depends-on): Likewise.
87004         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
87005         (iconv_t)(-1).
87006         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
87007         conversion if cd is (iconv_t)(-1).
87008         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
87009         is not possible.
87011 2007-03-31  Bruno Haible  <bruno@clisp.org>
87013         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
87014         work on Solaris either. Protect also second use of "autodetect_jp".
87016 2007-03-31  Bruno Haible  <bruno@clisp.org>
87018         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
87019         the function is not present.
87021 2007-03-31  Bruno Haible  <bruno@clisp.org>
87023         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
87024         the function is not present.
87026 2007-03-31  Bruno Haible  <bruno@clisp.org>
87028         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
87029         a bug in HP-UX iconv_open().
87031 2007-03-31  Bruno Haible  <bruno@clisp.org>
87033         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
87034         (Mathematics <math.h>): New section, add fpieee.
87035         (Input/output <stdio.h>): Add fseterr.
87036         (Mathematics <math.h>): New section, add printf-frexp.
87037         (Container data structures): Add sublist.
87038         (Core language properties): Add fpucw, inline.
87039         (Functions for greatest-width integer types <inttypes.h>): Add
87040         imaxabs, imaxdiv, inttypes.
87041         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
87042         isnanl-nolibm, ldexp.
87043         (Mathematics <math.h>): New section, add printf-frexpl.
87044         (Support for systems lacking POSIX:2001): Add fprintf-posix,
87045         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
87046         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
87047         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
87048         (Unicode string functions): Add unistr/u*-mbtoucr.
87049         (Java): Add javacomp-script, javaexec-script.
87050         (C#): Add csharpcomp-script, csharpexec-script.
87051         (Support for building libraries and executables): Add havelib,
87052         relocatable-*.
87053         (Support for maintaining and releasing projects): Renamed from
87054         'Support for maintaining and release projects'. Add announce-gen.
87056 2007-03-31  Bruno Haible  <bruno@clisp.org>
87058         * README: Talk primarily about git.
87059         (git and CVS): Renamed from CVS.
87060         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
87061         gnulib is available through git.
87062         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
87064 2007-03-30  Bruno Haible  <bruno@clisp.org>
87066         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
87067         * lib/poll_.h: Likewise.
87068         * lib/stat_.h: Likewise.
87069         * lib/sys_time_.h: Likewise.
87070         * lib/sysexit_.h: Likewise.
87071         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
87072         * lib/stdbool_.h: Likewise.
87073         * lib/byteswap_.h: Add double-inclusion guard.
87075 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
87077         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
87079 2007-03-30  Karl Berry  <karl@gnu.org>
87081         * config/srclist-update: double space after USA in the license
87082         substitution, since that's how it's usually (?) written.
87084 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
87086         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
87087         reported by Bruno Haible.
87089 2007-03-29  Bruno Haible  <bruno@clisp.org>
87091         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
87092         a bug in AIX iconv().
87094 2007-03-29  Bruno Haible  <bruno@clisp.org>
87096         * modules/ldexpl-tests: New file.
87097         * tests/test-ldexpl.c: New file.
87099 2007-03-29  Bruno Haible  <bruno@clisp.org>
87101         * lib/ldexpl.c: Include fpucw.h.
87102         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
87103         multiplication.
87104         * modules/ldexpl (Depends-on): Add fpucw.
87106 2007-03-29  Bruno Haible  <bruno@clisp.org>
87108         * modules/ldexpl: New file.
87109         * m4/ldexpl.m4: New file.
87110         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
87111         set.
87112         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
87113         REPLACE_LDEXPL.
87114         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
87115         REPLACE_LDEXPL.
87116         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
87117         gl_FUNC_LDEXPL_WORKS.
87118         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
87119         * modules/mathl (Files): Remove lib/ldexpl.c.
87120         (Depends-on): Add ldexpl.
87122 2007-03-29  Bruno Haible  <bruno@clisp.org>
87124         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
87126 2007-03-29  Bruno Haible  <bruno@clisp.org>
87128         * tests/test-striconveh.c (main): Don't assume that a direct conversion
87129         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
87130         and possibly also HP-UX.
87131         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
87132         work on AIX, IRIX, HP-UX, OSF/1.
87133         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
87134         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
87135         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
87136         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
87137         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
87138         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
87140 2007-03-29  Bruno Haible  <bruno@clisp.org>
87142         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
87144 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
87146         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
87147         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
87149 2007-03-29  Eric Blake  <ebb9@byu.net>
87151         * lib/acl-internal.h: Remove redundant include.
87152         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
87153         Cygwin when a file is locked.
87155 2007-03-29  Bruno Haible  <bruno@clisp.org>
87157         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
87158         file.
87159         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
87161 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
87163         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
87164         try to remove a parent directory if the child couldn't be removed
87165         (except for the first rmdir, which could fail because the child
87166         doesn't exist).  Problem reported by Jeff Blaine in
87167         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
87169 2007-03-28  Bruno Haible  <bruno@clisp.org>
87171         * lib/striconveh.c (utf8conv_carefully): New function.
87172         (mem_cd_iconveh_internal): Invoke it.
87174 2007-03-28  Bruno Haible  <bruno@clisp.org>
87176         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
87177         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
87178         input.
87179         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
87180         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
87181         unistr/u8-uctomb.
87183 2007-03-28  Bruno Haible  <bruno@clisp.org>
87185         * modules/unistr/u8-mbtoucr: New file.
87186         * lib/unistr/u8-mbtoucr.c: New file.
87187         * modules/unistr/u16-mbtoucr: New file.
87188         * lib/unistr/u16-mbtoucr.c: New file.
87189         * modules/unistr/u16-mbtoucr: New file.
87190         * lib/unistr/u16-mbtoucr.c: New file.
87191         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
87193 2007-03-27  Simon Josefsson  <simon@josefsson.org>
87194             Bruno Haible  <bruno@clisp.org>
87196         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
87197         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
87198         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
87200         * m4/stdio_h.m4: Add stubs for vasprintf too.
87202         * modules/stdio: Support vasprintf in sed command.
87204         * modules/vasprintf: Depend on stdio for prototypes.  Remove
87205         vasprintf.h.  Add stdio module indicator.
87207         * lib/stdio_.h: Declare asprintf and vasprintf, based on
87208         vasprintf.h.
87210         * lib/vasprintf.h: File removed.
87212         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
87213         * lib/vasprintf.c: Ditto.
87214         * lib/xvasprintf.c: Ditto.
87215         * tests/test-vasprintf-posix.c: Ditto.
87216         * tests/test-vasprintf.c: Ditto.
87218 2007-03-27  Bruno Haible  <bruno@clisp.org>
87220         Make vasnprintf multithread-safe.
87221         * lib/vasnprintf.c (decimal_point_char): New function.
87222         (VASNPRINTF): Use it.
87223         Suggested by Simon Josefsson.
87225 2007-03-27  Eric Blake  <ebb9@byu.net>
87227         Support sub-second birthtime on cygwin.
87228         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
87229         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
87230         (get_stat_birthtime): Also work with st_birthtim.
87232 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
87234         * lib/stat-time.h (USE_BIRTHTIME): Remove.
87235         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
87236         (get_stat_birthtime_ns): Do not try to use "spare" fields.
87237         (get_stat_birthtime_ns): Simplify compile-time tests.
87238         (get_stat_birthtime): Change the API to look like
87239         get_stat_mtime etc., except return a negative tv_nsec on error.
87240         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
87241         Don't check for "spare" fields.
87242         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
87243         or for struct stat.st_birthtime, as these tests aren't used.
87244         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
87246 2007-03-27  Bruno Haible  <bruno@clisp.org>
87248         * lib/stat-time.h: Include <sys/stat.h>.
87250 2007-03-27  James Youngman  <jay@gnu.org>
87252         * lib/stat-time.h (get_stat_birthtime): New function for
87253           retrieving st_birthtime as provided by UFS2 (hence *BSD).
87254         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
87255           and its variants.
87256         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
87257         * modules/stat-time-test: New file.
87258         * tests/test-stat-time.c: New test, devised by Bruno Haible.
87260 2007-03-26  Bruno Haible  <bruno@clisp.org>
87262         Better support of signalling NaNs.
87263         * lib/atanl.c: Include isnanl.h.
87264         (atanl): Perform test for NaN at the beginning of the function and
87265         through a call to isnanl.
87266         * lib/cosl.c: Include isnanl.h.
87267         (cosl): Perform test for NaN at the beginning of the function and
87268         through a call to isnanl.
87269         * lib/ldexpl.c: Include isnanl.h.
87270         (ldexpl): Perform test for NaN through a call to isnanl.
87271         * lib/logl.c: Include isnanl.h.
87272         (logl): Perform test for NaN at the beginning of the function and
87273         through a call to isnanl.
87274         * lib/sinl.c: Include isnanl.h.
87275         (sinl): Perform test for NaN at the beginning of the function and
87276         through a call to isnanl.
87277         * lib/sqrtl.c: Include isnanl.h.
87278         (sqrtl): Perform test for NaN at the beginning of the function and
87279         through a call to isnanl.
87280         * lib/tanl.c: Include isnanl.h.
87281         (tanl): Perform test for NaN at the beginning of the function and
87282         through a call to isnanl.
87283         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
87284         * modules/mathl (Depends-on): Add isnanl.
87286 2007-03-26  Eric Blake  <ebb9@byu.net>
87288         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
87289         regression in logic sense of previous patch.
87291 2007-03-26  Bruno Haible  <bruno@clisp.org>
87293         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
87294         unportable shell command "if ! ...".
87295         Reported by Ralf Wildenhues.
87297 2007-03-25  Bruno Haible  <bruno@clisp.org>
87299         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
87300         <sysexits.h> file, and only add EX_CONFIG.
87301         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
87302         absolute file name and whether it is sufficient. Substitute also
87303         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
87304         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
87305         ABSOLUTE_SYSEXITS_H into sysexits.h.
87307 2007-03-25  Bruno Haible  <bruno@clisp.org>
87309         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
87310         hints is NULL.
87312 2007-03-25  Bruno Haible  <bruno@clisp.org>
87314         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
87315         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
87317 2007-03-25  Bruno Haible  <bruno@clisp.org>
87319         * lib/vasnprintf.c: Include langinfo.h.
87320         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
87321         multithread-safe.
87322         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
87323         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
87324         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
87325         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
87326         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
87327         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
87328         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
87329         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
87330         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
87331         Reported by Simon Josefsson.
87333 2007-03-25  Bruno Haible  <bruno@clisp.org>
87335         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
87336         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
87337         * modules/vasnprintf (Depends-on): Add stdint.
87339 2007-03-25  Bruno Haible  <bruno@clisp.org>
87341         * modules/fpieee: New file.
87342         * m4/fpieee.m4: New file.
87343         * modules/isnan-nolibm (Depends-on): Add fpieee.
87344         * modules/isnanl-nolibm (Depends-on): Add fpieee.
87345         * modules/isnanl (Depends-on): Add fpieee.
87347 2007-03-25  Bruno Haible  <bruno@clisp.org>
87349         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
87351 2007-03-25  Bruno Haible  <bruno@clisp.org>
87353         Avoid test failures on IRIX 6.5.
87354         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
87355         (main): Use it.
87356         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
87357         macros.
87358         (main): Use them.
87360 2007-03-25  Bruno Haible  <bruno@clisp.org>
87362         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
87363         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
87364         exists but doesn't work.
87365         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
87366         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
87367         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
87368         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
87369         math.h.
87371 2007-03-25  Bruno Haible  <bruno@clisp.org>
87373         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
87374         returns inf. Needed on IRIX 6.5.
87376 2007-03-25  Bruno Haible  <bruno@clisp.org>
87378         * tests/test-frexpl.c: Include isnanl-nolibm.h.
87379         (main): Use isnanl instead of x != x idiom.
87380         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
87382         * tests/test-frexp.c: Include isnan.h.
87383         (main): Use isnan instead of x != x idiom.
87384         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
87386 2007-03-25  Bruno Haible  <bruno@clisp.org>
87388         * tests/test-frexp.c (NaN): New function/macro.
87389         (main): Use it instead of 0.0 / 0.0.
87390         * tests/test-isnan.c (NaN): New function/macro.
87391         (main): Use it instead of 0.0 / 0.0.
87392         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
87393         (test_function): Use it instead of 0.0 / 0.0.
87394         * tests/test-vasprintf-posix.c (NaN): New function/macro.
87395         (test_function): Use it instead of 0.0 / 0.0.
87396         * tests/test-snprintf-posix.h (NaN): New function/macro.
87397         (test_function): Use it instead of 0.0 / 0.0.
87398         * tests/test-sprintf-posix.h (NaN): New function/macro.
87399         (test_function): Use it instead of 0.0 / 0.0.
87400         * tests/test-fprintf-posix.h (NaN): New function/macro.
87401         (test_function): Use it instead of 0.0 / 0.0.
87402         * tests/test-printf-posix.h (NaN): New function/macro.
87403         (test_function): Use it instead of 0.0 / 0.0.
87405         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
87407 2007-03-25  Bruno Haible  <bruno@clisp.org>
87409         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
87411 2007-03-25  Bruno Haible  <bruno@clisp.org>
87413         * lib/regexec.c (merge_state_with_log): Make static.
87415 2007-03-25  Bruno Haible  <bruno@clisp.org>
87417         * lib/trigl.c (kernel_rem_pio2): Make static.
87419 2007-03-25  Bruno Haible  <bruno@clisp.org>
87421         * lib/sincosl.c (sincosl_table): Make static.
87423 2007-03-25  Bruno Haible  <bruno@clisp.org>
87425         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
87426         if the compiler does not support C99.
87428 2007-03-25  Bruno Haible  <bruno@clisp.org>
87430         * modules/time (Makefile.am): Ensure all rule action lines start with a
87431         tab.
87433 2007-03-24  Bruno Haible  <bruno@clisp.org>
87435         * modules/tsearch-tests: New file.
87436         * tests/test-tsearch.sh: New file.
87437         * tests/test-tsearch.c: New file, mostly copied from glibc.
87439         * modules/search-tests: New file.
87440         * tests/test-search.c: New file.
87442         * modules/search: New file.
87443         * lib/search_.h: New file, incorporating lib/tsearch.h.
87444         * m4/search_h.m4: New file.
87445         * lib/tsearch.h: Remove file.
87446         * lib/tsearch.c: Include search.h instead of tsearch.h.
87447         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
87448         HAVE_TSEARCH.
87449         * modules/tsearch (Files): Remove lib/tsearch.h.
87450         (Depends-on): Add search.
87451         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
87452         (Include): Change tsearch.h into search.h.
87454 2007-03-24  Bruno Haible  <bruno@clisp.org>
87456         * modules/fpucw: New file.
87457         * lib/fpucw.h: New file.
87458         * lib/frexp.c: Include fpucw.h.
87459         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
87460         (FUNC): Use them.
87461         * lib/printf-frexp.c: Include fpucw.h.
87462         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
87463         (FUNC): Use them.
87464         * lib/vasnprintf.c: Include fpucw.h.
87465         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
87466         'long double' calculations.
87467         * tests/test-frexpl.c: Include fpucw.h.
87468         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
87469         * tests/test-printf-frexpl.c: Include fpucw.h.
87470         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
87471         * modules/frexpl (Depends-on): Add fpucw.
87472         * modules/printf-frexpl (Depends-on): Likewise.
87473         * modules/fprintf-posix (Depends-on): Likewise.
87474         * modules/snprintf-posix (Depends-on): Likewise.
87475         * modules/sprintf-posix (Depends-on): Likewise.
87476         * modules/vasnprintf-posix (Depends-on): Likewise.
87477         * modules/vasprintf-posix (Depends-on): Likewise.
87478         * modules/vfprintf-posix (Depends-on): Likewise.
87479         * modules/vsnprintf-posix (Depends-on): Likewise.
87480         * modules/vsprintf-posix (Depends-on): Likewise.
87481         * modules/frexpl-tests (Depends-on): Likewise.
87482         * modules/printf-frexpl-tests (Depends-on): Likewise.
87484 2007-03-24  Bruno Haible  <bruno@clisp.org>
87486         * lib/float+.h: New file.
87487         * lib/isnan.c: Include float+.h.
87488         (SIZE): New macro.
87489         (FUNC): Compare only SIZE bytes of the value.
87490         * lib/vasnprintf.c: Include float+.h.
87491         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
87492         SIZEOF_LDBL or SIZEOF_DBL bytes.
87493         * modules/isnan-nolibm (Files): Add lib/float+.h.
87494         * modules/isnanl-nolibm (Files): Add lib/float+.h.
87495         * modules/isnanl (Files): Add lib/float+.h.
87496         * modules/vasnprintf (Files): Add lib/float+.h.
87498 2007-03-24  Bruno Haible  <bruno@clisp.org>
87500         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
87501         include isnanl-nolibm.h.
87503 2007-03-24  Bruno Haible  <bruno@clisp.org>
87505         * tests/test-read-file.c (main): Don't produce spurious output for
87506         expected situations. Make the test fail if it encountered unexpected
87507         results.
87509 2007-03-24  Bruno Haible  <bruno@clisp.org>
87511         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
87512         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
87514 2007-03-24  Bruno Haible  <bruno@clisp.org>
87516         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
87518 2007-03-24  Bruno Haible  <bruno@clisp.org>
87520         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
87521         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
87523         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
87524         * modules/utf8-ucs4: Turn into a symbolic link to module
87525         unistr/u8-mbtouc.
87527         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
87528         utf8-ucs4-unsafe.
87529         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
87530         unistr/u8-mbtouc-unsafe.
87532         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
87533         * modules/utf16-ucs4: Turn into a symbolic link to module
87534         unistr/u16-mbtouc.
87536         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
87537         utf16-ucs4-unsafe.
87538         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
87539         unistr/u16-mbtouc-unsafe.
87541         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
87542         * modules/ucs4-utf8: Turn into a symbolic link to module
87543         unistr/u8-ubtomb.
87545         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
87546         * modules/ucs4-utf16: Turn into a symbolic link to module
87547         unistr/u16-ubtomb.
87549 2007-03-24  Bruno Haible  <bruno@clisp.org>
87551         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
87552         Enable the function only if HAVE_INLINE.
87553         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
87554         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
87555         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
87556         Enable the function only if HAVE_INLINE.
87557         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
87558         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
87559         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
87560         Enable the function only if HAVE_INLINE.
87561         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
87562         Enable the function only if HAVE_INLINE.
87563         * modules/utf8-ucs4: Update.
87564         * modules/utf8-ucs4-unsafe: Update.
87565         * modules/utf16-ucs4: Update.
87566         * modules/utf16-ucs4-unsafe: Update.
87567         * modules/ucs4-utf8: Update.
87568         * modules/ucs4-utf16: Update.
87570 2007-03-24  Bruno Haible  <bruno@clisp.org>
87572         * lib/utf8-ucs4.h: Remove file.
87573         * lib/utf8-ucs4-unsafe.h: Remove file.
87574         * lib/utf16-ucs4.h: Remove file.
87575         * lib/utf16-ucs4-unsafe.h: Remove file.
87576         * lib/ucs4-utf8.h: Remove file.
87577         * lib/ucs4-utf16.h: Remove file.
87578         * lib/unistr.h: Include their previous contents.
87579         * m4/utf-ucs4.m4: Remove file.
87580         * m4/ucs4-utf.m4: Remove file.
87581         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
87582         (Depends-on): Add unistr/base.
87583         (configure.ac): Remove gl_UTF_UCS4.
87584         (Makefile.am): Update.
87585         (Include): Change to unistr.h.
87586         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
87587         (Depends-on): Add unistr/base.
87588         (configure.ac): Remove gl_UTF_UCS4.
87589         (Makefile.am): Update.
87590         (Include): Change to unistr.h.
87591         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
87592         (Depends-on): Add unistr/base.
87593         (configure.ac): Remove gl_UTF_UCS4.
87594         (Makefile.am): Update.
87595         (Include): Change to unistr.h.
87596         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
87597         (Depends-on): Add unistr/base.
87598         (configure.ac): Remove gl_UTF_UCS4.
87599         (Makefile.am): Update.
87600         (Include): Change to unistr.h.
87601         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
87602         (Depends-on): Add unistr/base.
87603         (configure.ac): Remove gl_UCS4_UTF.
87604         (Makefile.am): Update.
87605         (Include): Change to unistr.h.
87606         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
87607         (Depends-on): Add unistr/base.
87608         (configure.ac): Remove gl_UCS4_UTF.
87609         (Makefile.am): Update.
87610         (Include): Change to unistr.h.
87611         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
87612         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
87613         utf8-ucs4-unsafe.h.
87614         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
87615         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
87616         utf16-ucs4-unsafe.h.
87617         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
87618         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
87619         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
87620         * lib/unistr/u8-strchr.c: Likewise.
87621         * lib/unistr/u8-strrchr.c: Likewise.
87622         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
87623         * lib/unistr/u16-strchr.c: Likewise.
87624         * lib/unistr/u16-strrchr.c: Likewise.
87625         * lib/striconveh.c: Update.
87626         * lib/linebreak.c: Update.
87628 2007-03-24  Bruno Haible  <bruno@clisp.org>
87630         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
87631         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
87633 2007-03-22  Bruno Haible  <bruno@clisp.org>
87635         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
87637 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
87639         * MODULES.html.sh (File system functions): New module write-any-file.
87640         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
87641         * m4/write-any-file.m4: New files.
87643 2007-03-23  Eric Blake  <ebb9@byu.net>
87645         * gnulib-tool: Rearrange space-tab sequences, since some editors
87646         like to eat them.
87648 2007-03-23  Eric Blake  <ebb9@byu.net>
87650         * lib/version-etc.c (version_etc_va): Update license wording to
87651         be more concise.  Recommended by Richard Stallman.
87653 2007-03-22  Bruno Haible  <bruno@clisp.org>
87655         * lib/poll.c (MSG_PEEK): New fallback definition.
87657 2007-03-22  Bruno Haible  <bruno@clisp.org>
87659         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
87660         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
87661         (main): Update.
87662         Fixes a compilation error on BeOS.
87664 2007-03-22  Bruno Haible  <bruno@clisp.org>
87666         * modules/frexpl-tests: New file.
87667         * tests/test-frexpl.c: New file.
87669         * modules/frexpl: New file.
87670         * m4/frexpl.m4: New file.
87671         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
87672         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
87673         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
87674         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
87675         (Depends-on): Add frexpl. Remove isnanl-nolibm.
87676         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
87678 2007-03-22  Bruno Haible  <bruno@clisp.org>
87680         * lib/frexpl.c: Share code with lib/frexp.c.
87681         * modules/mathl (Files): Add lib/frexp.c.
87682         (Depends-on): Add isnanl-nolibm.
87684 2007-03-22  Bruno Haible  <bruno@clisp.org>
87686         * modules/printf-frexp (Files): Add m4/frexp.m4.
87687         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
87688         only if the found frexp function actually works.
87690 2007-03-22  Bruno Haible  <bruno@clisp.org>
87692         * lib/frexp.c: Remove older implementation that uses divisions.
87694 2007-03-21  Bruno Haible  <bruno@clisp.org>
87696         * modules/frexp-tests: New file.
87697         * tests/test-frexp.c: New file.
87699         * modules/frexp: New file.
87700         * lib/frexp.c: New file.
87701         * m4/frexp.m4: New file.
87702         * lib/math_.h (frexp): New declaration.
87703         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
87704         REPLACE_FREXP.
87705         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
87707 2007-03-21  Bruno Haible  <bruno@clisp.org>
87709         * modules/isnanl-tests: New file.
87710         * tests/test-isnanl.c: New file.
87712         * modules/isnanl: New file.
87713         * lib/isnanl.h: New file.
87714         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
87715         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
87716         gl_FUNC_ISNANL_WORKS.
87717         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
87718         New macros.
87720 2007-03-21  Bruno Haible  <bruno@clisp.org>
87722         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
87723         lib/isnanl.h.
87724         (Include): Update.
87725         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
87726         * lib/vasnprintf.c: Update.
87727         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
87728         tests/test-isnanl.h, remove tests/test-isnanl.c.
87729         (Makefile.am): Update.
87730         * tests/test-isnanl-nolibm.c: New file.
87731         * tests/test-isnanl.h: New file.
87732         * tests/test-isnanl.c: Remove file.
87734 2007-03-21  Jim Meyering  <jim@meyering.net>
87736         When trying to open ".", treat ESTALE like EACCES.
87737         * lib/savewd.c (savewd_save): Resort to forking not just upon
87738         failure with EACCES, but also when errno is ESTALE.
87740 2007-03-20  Bruno Haible  <bruno@clisp.org>
87742         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
87743         Needed on AIX 5.1. Reported by Matthew Woehlke.
87745 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
87747         Suggestions by Bruno Haible:
87748         * lib/acl-internal.h: Include "gettext.h" rather than rolling
87749         our own.
87750         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
87751         * modules/acl (Depends-on): Add gettext.
87753 2007-03-19  Bruno Haible  <bruno@clisp.org>
87755         * modules/iconvme: Remove file.
87756         * lib/iconvme.h: Remove file.
87757         * lib/iconvme.c: Remove file.
87758         * m4/iconvme.m4: Remove file.
87760 2007-03-19  Bruno Haible  <bruno@clisp.org>
87762         * doc/relocatable-maint.texi: Break long shell script line.
87763         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
87765 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
87767         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
87768         handle file_has_acl.
87769         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
87770         * lib/acl.c: Move header inclusions and related macro defns into
87771         lib/acl-internal.h.
87772         (S_ISLNK): Remove defn, since that's now done for us.
87773         (file_has_acl): Move to lib/file-has-acl.c.
87774         Call acl_trivial if available.  This is the crucial part of the fix.
87775         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
87776         shared within the library.  Rewrite a bit, partly to make it compatible
87777         with the GNU coding style.
87778         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
87779         Remove unnecessary double-quotes.
87780         Don't test for acl_to_text; the build will catch that.
87781         Replace acl_entries if it doesn't exist and it is needed.
87782         Check for -lsec and acl_trivial (as used on Solaris 10).
87783         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
87784         lib/file-has-acl.c.
87785         (Depends-on): Add sys_stat, for S_ISLNK.
87787 2007-03-19  Ben Pfaff  <blp@gnu.org>
87789         * doc/gnulib.texi: Fix typos.
87790         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
87792 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
87794         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
87795         If size is zero here, buf must be zero.
87797 2007-03-19  Simon Josefsson  <simon@josefsson.org>
87799         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
87800         <bruno@clisp.org>.
87802 2007-03-18  Bruno Haible  <bruno@clisp.org>
87804         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
87805         Suggested by Eric Blake.
87807 2007-03-18  Ben Pfaff  <blp@gnu.org>
87809         * doc/relocatable.texi: Recommend using as prefix a directory
87810         that does not exist and will never be created.  Based on
87811         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
87812         and others.
87814 2007-03-17  Bruno Haible  <bruno@clisp.org>
87816         * lib/fchownat.c: Include lchown.h.
87818 2007-03-17  Bruno Haible  <bruno@clisp.org>
87820         Fix endless loop when the given allocated size was > INT_MAX.
87821         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
87822         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
87823         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
87824         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
87825         * lib/sprintf.c (sprintf): Likewise.
87827 2007-03-17  Bruno Haible  <bruno@clisp.org>
87829         * tests/test-argp-2.sh (func_compare): Output a context diff.
87831 2007-03-17  Bruno Haible  <bruno@clisp.org>
87833         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
87834         locale's decimal-point character.
87836 2007-03-17  Bruno Haible  <bruno@clisp.org>
87838         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
87839         before comparing it. Needed because on some platforms (e.g. x86) a
87840         'long double' occupies less bytes than sizeof (long double).
87842 2007-03-17  Bruno Haible  <bruno@clisp.org>
87844         * tests/test-crc.c (main): Make printf statements 64-bit clean.
87845         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
87846         * tests/test-getaddrinfo.c (simple): Likewise.
87847         * tests/test-read-file.c (main): Likewise.
87849 2007-03-17  Bruno Haible  <bruno@clisp.org>
87851         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
87853 2007-03-17  Bruno Haible  <bruno@clisp.org>
87855         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
87856         unused variable.
87858 2007-03-17  Bruno Haible  <bruno@clisp.org>
87860         * tests/test-c-strcasecmp.c: Include c-strcase.h.
87861         * tests/test-c-strncasecmp.c: Likewise.
87863 2007-03-17  Bruno Haible  <bruno@clisp.org>
87865         * modules/stdlib (Depends-on): Add unistd.
87866         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
87867         Needed for MacOS X 10.3.
87869 2007-03-17  Bruno Haible  <bruno@clisp.org>
87871         * lib/unistr/u-strdup.h: Include <stdlib.h>.
87873 2007-03-17  Bruno Haible  <bruno@clisp.org>
87875         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
87877 2007-03-17  Bruno Haible  <bruno@clisp.org>
87879         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
87880         to reflect files copied from gnulib (with or without modifications).
87881         Suggested by Jim Meyering.
87883 2007-03-17  Eric Blake  <ebb9@byu.net>
87885         * NEWS: Document stdlib change from 2007-02-18.
87887 2007-03-17  Jim Meyering  <jim@meyering.net>
87889         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
87890         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
87891         someone uses a name containing shell meta-characters.
87892         Reported by Alfred M. Szmidt.
87894         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
87896 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
87898         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
87899         and copy gettext configuration files only if configure.ac contains
87900         a use of AM_GNU_GETTEXT_VERSION.
87902 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
87904         * build-aux/bootstrap (gnulib_name): New variable.
87905         (gnulib_tool_options): Use it.
87907 2007-03-13  Simon Josefsson  <simon@josefsson.org>
87909         * tests/test-des.c: Use new namespace.
87911 2007-03-15  Bruno Haible  <bruno@clisp.org>
87913         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
87914         Reported by James Youngman <jay@gnu.org>.
87916 2007-03-15  Bruno Haible  <bruno@clisp.org>
87918         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
87919         declared prototype. Needed with cc on OSF/1 5.1.
87921 2007-03-15  Bruno Haible  <bruno@clisp.org>
87923         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
87924         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
87925         (struct gl_list_implementation): Add dispose_fn argument to the
87926         'create_empty', 'create' methods.
87927         (struct gl_list_impl_base): Add field 'dispose_fn'.
87928         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
87929         argument.
87930         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
87931         dispose_fn argument.
87932         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
87933         dispose_fn on the dropped values.
87934         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
87935         dispose_fn argument.
87936         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
87937         dropped values.
87938         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
87939         (gl_tree_remove_node): Call dispose_fn on the dropped value.
87940         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
87941         (gl_tree_remove_node): Call dispose_fn on the dropped value.
87942         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
87943         argument.
87944         (gl_tree_list_free): Call dispose_fn on the dropped values.
87945         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
87946         the dropped values.
87947         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
87948         Add dispose_fn argument.
87949         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
87950         Call dispose_fn on the dropped values.
87951         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
87952         Add dispose_fn argument.
87953         (gl_sublist_create): Initialize the 'dispose_fn' field.
87954         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
87955         * tests/test-array_list.c (main): Update.
87956         * tests/test-carray_list.c (main): Update.
87957         * tests/test-avltree_list.c (main): Update.
87958         * tests/test-rbtree_list.c (main): Update.
87959         * tests/test-avltreehash_list.c (main): Update.
87960         * tests/test-rbtreehash_list.c (main): Update.
87961         * tests/test-linked_list.c (main): Update.
87962         * tests/test-linkedhash_list.c (main): Update.
87963         * tests/test-array_oset.c (main): Update.
87965 2007-03-15  Bruno Haible  <bruno@clisp.org>
87967         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
87968         (gl_oset_create_empty): Add dispose_fn argument.
87969         (struct gl_oset_implementation): Add dispose_fn argument to
87970         'create_empty' method.
87971         (struct gl_oset_impl_base): Add dispose_fn field.
87972         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
87973         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
87974         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
87975         values.
87976         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
87977         (gl_tree_oset_free): Call dispose_fn on the dropped values.
87978         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
87979         dropped value.
87980         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
87981         dropped value.
87982         * tests/test-array_oset.c (main): Update.
87983         * tests/test-avltree_oset.c (main): Update.
87984         * tests/test-rbtree_oset.c (main): Update.
87985         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
87987 2007-03-13  Bruno Haible  <bruno@clisp.org>
87989         * tests/test-stdbool.c (i): Update after last patch.
87991 2007-03-12  Bruno Haible  <bruno@clisp.org>
87993         * lib/quotearg.c: Include <wctype.h> early, before the definition of
87994         the iswprint macro. Needed on Solaris 2.5.1.
87996 2007-03-12  Bruno Haible  <bruno@clisp.org>
87998         * tests/test-printf-frexp.c (main): Declare x as volatile.
88000 2007-03-12  Simon Josefsson  <simon@josefsson.org>
88002         * doc/gnulib.texi (Build robot for gnulib): New section.
88004 2007-03-12  Jim Meyering  <jim@meyering.net>
88006         * build-aux/bootstrap: New file.
88007         * build-aux/bootstrap.conf: New file, from coreutils.
88009 2007-03-11  Bruno Haible  <bruno@clisp.org>
88011         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
88013 2007-03-12  Simon Josefsson  <simon@josefsson.org>
88015         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
88016         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
88017         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
88019 2007-03-11  Bruno Haible  <bruno@clisp.org>
88021         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
88022         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
88024 2007-03-11  Bruno Haible  <bruno@clisp.org>
88026         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
88027         formula. Needed for SunPRO C 5.0.
88029 2007-03-11  Bruno Haible  <bruno@clisp.org>
88031         * modules/long-options (Depends-on): Add getopt.
88033 2007-03-11  Bruno Haible  <bruno@clisp.org>
88035         * modules/modechange (Depends-on): Add stdbool.
88037 2007-03-11  Bruno Haible  <bruno@clisp.org>
88039         * modules/i-ring (Depends-on): Add stdbool.
88041 2007-03-11  Bruno Haible  <bruno@clisp.org>
88043         * modules/gc-des (Depends-on): Add stdbool.
88045 2007-03-11  Bruno Haible  <bruno@clisp.org>
88047         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
88049 2007-03-11  Bruno Haible  <bruno@clisp.org>
88051         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
88053 2007-03-11  Bruno Haible  <bruno@clisp.org>
88055         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
88057 2007-03-11  Bruno Haible  <bruno@clisp.org>
88059         * lib/vasnprintf.c (sprintf): Undefine.
88061 2007-03-11  Bruno Haible  <bruno@clisp.org>
88063         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
88064         initializers in SunPRO C and Compaq C compilers.
88066 2007-03-11  Bruno Haible  <bruno@clisp.org>
88068         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
88069         decrementing code ANSI C compliant.
88071 2007-03-11  Bruno Haible  <bruno@clisp.org>
88073         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
88074         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
88076 2007-03-11  Bruno Haible  <bruno@clisp.org>
88078         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
88079         <stdbool.h> substitute doesn't pass.
88081 2007-03-11  Bruno Haible  <bruno@clisp.org>
88083         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
88085 2007-03-11  Bruno Haible  <bruno@clisp.org>
88087         * gnulib-tool (func_create_megatestdir): Create also an autobuild
88088         script, for submission to autobuild.josefsson.org.
88090 2007-03-10  Bruno Haible  <bruno@clisp.org>
88092         * modules/canonicalize-lgpl-tests: New file.
88093         * tests/test-canonicalize-lgpl.sh: New file.
88094         * tests/test-canonicalize-lgpl.c: New file.
88096         * modules/c-strcase-tests: New file.
88097         * tests/test-c-strcase.sh: New file.
88098         * tests/test-c-strcasecmp.c: New file.
88099         * tests/test-c-strncasecmp.c: New file.
88101         * modules/atexit-tests: New file.
88102         * tests/test-atexit.sh: New file.
88103         * tests/test-atexit.c: New file.
88105 2007-03-10  Bruno Haible  <bruno@clisp.org>
88107         * tests/test-binary-io.sh: Use temporary filenames that are not so
88108         likely to clash with those of other tests (in a parallel make).
88109         * tests/test-binary-io.c: Likewise.
88111 2007-03-10  Bruno Haible  <bruno@clisp.org>
88113         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
88114         fallback; use #error instead.
88115         Suggested by Simon Josefsson.
88117 2007-03-10  Bruno Haible  <bruno@clisp.org>
88119         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
88120         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
88121         first and the last.
88123 2007-03-10  Bruno Haible  <bruno@clisp.org>
88125         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
88127 2007-03-10  Bruno Haible  <bruno@clisp.org>
88129         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
88130         "make distcheck".
88131         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
88132         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
88133         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
88135 2007-03-10  Bruno Haible  <bruno@clisp.org>
88137         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
88138         variable.
88139         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
88140         variable.
88142 2007-03-09  Eric Blake  <ebb9@byu.net>
88143         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
88145         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
88146         types are not being provided by gnulib.
88147         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
88148         types are supported.
88150 2007-03-10  Bruno Haible  <bruno@clisp.org>
88152         * lib/stdio_.h (__attribute__): New macro.
88153         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
88154         vsprintf): Specify __attribute__ __format__ for GCC.
88155         Suggested by Eric Blake.
88157 2007-03-09  Bruno Haible  <bruno@clisp.org>
88159         * modules/printf-posix-tests: New file.
88160         * tests/test-printf-posix.sh: New file.
88161         * tests/test-printf-posix.c: New file.
88163         * modules/printf-posix: New file.
88164         * lib/printf.c: New file.
88165         * m4/printf-posix-rpl.m4: New file.
88166         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
88167         REPLACE_PRINTF.
88168         * lib/stdio_.h (printf): New declaration.
88169         (format, __format__, ____printf____, ____scanf____, ____strftime____,
88170         ____strfmon____): New macros.
88171         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
88172         REPLACE_PRINTF.
88174 2007-03-09  Bruno Haible  <bruno@clisp.org>
88176         * tests/test-vasnprintf-posix2.sh: New file.
88177         * tests/test-vasnprintf-posix2.c: New file.
88178         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
88179         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
88180         (Makefile.am): Activate test-vasnprintf-posix2.sh.
88182         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
88183         a locale dependent decimal point, rather than always '.'.
88185 2007-03-09  Eric Blake  <ebb9@byu.net>
88187         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
88188         spite of platforms like Tandem/NSK that define it to -1.
88190 2007-03-08  Bruno Haible  <bruno@clisp.org>
88192         * modules/vprintf-posix-tests: New file.
88193         * tests/test-vprintf-posix.sh: New file.
88194         * tests/test-vprintf-posix.c: New file.
88195         * tests/test-printf-posix.h: New file.
88197         * modules/vprintf-posix: New file.
88198         * lib/vprintf.c: New file.
88199         * m4/vprintf-posix.m4: New file.
88200         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
88201         REPLACE_VPRINTF.
88202         * lib/stdio_.h (vprintf): New declaration.
88203         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
88204         REPLACE_VPRINTF.
88206 2007-03-08  Bruno Haible  <bruno@clisp.org>
88208         * modules/fprintf-posix-tests: New file.
88209         * tests/test-fprintf-posix.sh: New file.
88210         * tests/test-fprintf-posix.c: New file.
88212         * modules/fprintf-posix: New file.
88213         * lib/fprintf.c: New file.
88214         * m4/fprintf-posix.m4: New file.
88215         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
88216         REPLACE_FPRINTF.
88217         * lib/stdio_.h (fprintf): New declaration.
88218         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
88219         REPLACE_FPRINTF.
88221 2007-03-08  Bruno Haible  <bruno@clisp.org>
88223         * modules/vfprintf-posix-tests: New file.
88224         * tests/test-vfprintf-posix.sh: New file.
88225         * tests/test-vfprintf-posix.c: New file.
88226         * tests/test-fprintf-posix.h: New file.
88227         * tests/test-fprintf-posix.out: New file.
88229         * modules/vfprintf-posix: New file.
88230         * lib/vfprintf.c: New file.
88231         * m4/vfprintf-posix.m4: New file.
88232         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
88233         REPLACE_VFPRINTF.
88234         * lib/stdio_.h (vfprintf): New declaration.
88235         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
88236         REPLACE_VFPRINTF.
88238 2007-03-08  Bruno Haible  <bruno@clisp.org>
88240         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
88242 2007-03-08  Bruno Haible  <bruno@clisp.org>
88244         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
88245         instead of 'expr' invocations.
88246         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88247         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88248         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88249         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88250         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88251         Suggested by Paul Eggert.
88253 2007-03-08  Bruno Haible  <bruno@clisp.org>
88255         * modules/fseterr-tests: New file.
88256         * tests/test-fseterr.c: New file.
88258         * modules/fseterr: New file.
88259         * lib/fseterr.h: New file.
88260         * lib/fseterr.c: New file.
88262 2007-03-08  Bruno Haible  <bruno@clisp.org>
88264         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
88265         * lib/getopt_.h: Likewise.
88266         * lib/mbswidth.h: Likewise.
88267         * lib/setenv.h: Likewise.
88268         * lib/vasnprintf.h: Likewise.
88269         * lib/vasprintf.h: Likewise.
88270         * lib/verror.h: Likewise.
88271         * lib/xsetenv.h: Likewise.
88272         * lib/xvasprintf.h: Likewise.
88274 2007-03-08  Jim Meyering  <jim@meyering.net>
88276         * users.txt: Add parted.
88278         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
88280 2007-03-07  Bruno Haible  <bruno@clisp.org>
88282         * m4/printf.m4: Make the shell script snippets copy&pastable.
88284 2007-03-02  Bruno Haible  <bruno@clisp.org>
88286         * lib/netinet_in_.h: New file.
88287         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
88288         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
88289         * modules/netinet_in (Files): Add lib/netinet_in_.h.
88290         (Depends-on): Add absolute-header.
88291         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
88292         into netinet/in.h.
88294 2007-03-03  Bruno Haible  <bruno@clisp.org>
88296         * lib/sys_select_.h: New file.
88297         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
88298         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
88299         * modules/sys_select (Files): Add lib/sys_select_.h.
88300         (Depends-on): Add absolute-header.
88301         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
88302         into sys/select.h.
88304 2007-03-02  Bruno Haible  <bruno@clisp.org>
88306         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
88307         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
88308         values.
88309         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
88310         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
88311         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
88312         * modules/sys_socket (Depends-on): Add absolute-header.
88313         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
88314         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
88315         (Include): Remove requirement of inclusion of <sys/types.h>.
88317 2007-03-02  Bruno Haible  <bruno@clisp.org>
88319         * lib/byteswap_.h (bswap_32): Fix formula.
88321 2007-03-06  Bruno Haible  <bruno@clisp.org>
88323         * modules/sprintf-posix-tests: New file.
88324         * tests/test-sprintf-posix.c: New file.
88326         * modules/sprintf-posix: New file.
88327         * lib/sprintf.c: New file.
88328         * m4/sprintf-posix.m4: New file.
88329         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
88330         REPLACE_SPRINTF.
88331         * lib/stdio_.h (sprintf): New declaration.
88332         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
88333         REPLACE_SPRINTF.
88335 2007-03-06  Bruno Haible  <bruno@clisp.org>
88337         * modules/vsprintf-posix-tests: New file.
88338         * tests/test-vsprintf-posix.c: New file.
88339         * tests/test-sprintf-posix.h: New file.
88341         * modules/vsprintf-posix: New file.
88342         * lib/vsprintf.c: New file.
88343         * m4/vsprintf-posix.m4: New file.
88344         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
88345         REPLACE_VSPRINTF.
88346         * lib/stdio_.h (vsprintf): New declaration.
88347         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
88348         REPLACE_VSPRINTF.
88350 2007-03-06  Bruno Haible  <bruno@clisp.org>
88352         * modules/vsnprintf (Depend-on): Remove minmax.
88354 2007-03-06  Bruno Haible  <bruno@clisp.org>
88356         * modules/snprintf-posix-tests: New file.
88357         * tests/test-snprintf-posix.c: New file.
88359         * modules/snprintf-posix: New file.
88360         * m4/snprintf-posix.m4: New file.
88361         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
88362         gl_FUNC_SNPRINTF.
88363         (gl_FUNC_SNPRINTF): Invoke it.
88364         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
88365         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
88366         is set.
88367         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
88369 2007-03-06  Bruno Haible  <bruno@clisp.org>
88371         * modules/vsnprintf-posix-tests: New file.
88372         * tests/test-vsnprintf-posix.c: New file.
88373         * tests/test-snprintf-posix.h: New file.
88375         * modules/vsnprintf-posix: New file.
88376         * m4/vsnprintf-posix.m4: New file.
88377         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
88378         gl_FUNC_VSNPRINTF.
88379         (gl_FUNC_VSNPRINTF): Invoke it.
88380         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
88381         * lib/stdio_.h (vsnprintf): Define as a replacement if
88382         REPLACE_VSNPRINTF is set.
88383         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
88385 2007-03-06  Bruno Haible  <bruno@clisp.org>
88387         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
88388         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
88390 2007-03-06  Bruno Haible  <bruno@clisp.org>
88392         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
88393         (asinl): Declare also if HAVE_DECL_ASINL is set.
88394         (atanl): Declare also if HAVE_DECL_ATANL is set.
88395         (ceill): Declare also if HAVE_DECL_CEILL is set.
88396         (cosl): Declare also if HAVE_DECL_COSL is set.
88397         (expl): Declare also if HAVE_DECL_EXPL is set.
88398         (floorl): Declare also if HAVE_DECL_FLOORL is set.
88399         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
88400         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
88401         (logl): Declare also if HAVE_DECL_LOGL is set.
88402         (sinl): Declare also if HAVE_DECL_SINL is set.
88403         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
88404         (tanl): Declare also if HAVE_DECL_TANL is set.
88405         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
88406         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
88407         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
88408         declaration of frexpl, ldexpl.
88409         * modules/printf-frexpl (Depends-on): Add math.
88410         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
88412 2007-03-05  Bruno Haible  <bruno@clisp.org>
88414         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
88415         frexpl and ldexpl are declared.
88416         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
88418 2007-03-05  Bruno Haible  <bruno@clisp.org>
88420         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
88421         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
88423 2007-03-05  Bruno Haible  <bruno@clisp.org>
88425         * lib/stdio_.h: Include <stddef.h>.
88427 2007-03-05  Bruno Haible  <bruno@clisp.org>
88429         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
88431 2007-03-05  Bruno Haible  <bruno@clisp.org>
88433         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
88434         NetBSD 4, from Ralf Wildenhues.
88436 2007-03-04  Bruno Haible  <bruno@clisp.org>
88438         * lib/vasprintf.h: Update #if logic for the case when the functions
88439         exist but are overridden.
88441 2007-03-04  Bruno Haible  <bruno@clisp.org>
88443         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
88444         implementations: glibc-2.4 and MacOS X 10.3.
88445         * tests/test-vasnprintf-posix.c (test_function): Test also the case
88446         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
88447         * tests/test-vasprintf-posix.c (test_function): Likewise.
88449 2007-03-04  Bruno Haible  <bruno@clisp.org>
88451         * modules/vasprintf-posix-tests: New file.
88452         * tests/test-vasprintf-posix.c: New file.
88454         * modules/vasprintf-posix: New file.
88455         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
88456         defined.
88457         * m4/vasprintf-posix.m4: New file.
88458         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
88459         gl_FUNC_VASPRINTF.
88460         (gl_FUNC_VASPRINTF): Invoke it.
88461         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
88462         here.
88463         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
88465 2007-03-04  Bruno Haible  <bruno@clisp.org>
88467         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
88468         REPLACE_GETTIMEOFDAY.
88469         * modules/sys_time (Makefile.am): Likewise.
88470         * m4/sys_time_h.m4: Likewise.
88471         * m4/gettimeofday.m4: Likewise.
88473 2007-03-04  Bruno Haible  <bruno@clisp.org>
88475         * modules/vasnprintf-posix-tests: New file.
88476         * tests/test-vasnprintf-posix.c: New file.
88478         * modules/vasnprintf-posix: New file.
88479         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
88480         printf-frexpl.h.
88481         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
88482         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
88483         REPLACE_VASNPRINTF is defined.
88484         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
88485         gl_FUNC_VASNPRINTF.
88486         (gl_FUNC_VASNPRINTF): Invoke it.
88487         * m4/vasnprintf-posix.m4: New file.
88488         * m4/printf.m4: New file.
88490 2007-03-04  Bruno Haible  <bruno@clisp.org>
88492         Compile progreloc.c only if --enable-relocatable is specified.
88493         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
88494         if --enable-relocatable was specified.
88495         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
88496         lib_SOURCES.
88498 2007-03-04  Jim Meyering  <jim@meyering.net>
88500         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
88501         Use it consistently, rather than enumerating errno constants.
88503 2007-03-04  Bruno Haible  <bruno@clisp.org>
88505         * modules/xvasprintf-tests: New file.
88506         * tests/test-xvasprintf.c: New file.
88508         * modules/vasprintf-tests: New file.
88509         * tests/test-vasprintf.c: New file.
88511         * modules/vasnprintf-tests: New file.
88512         * tests/test-vasnprintf.c: New file.
88514         * modules/vsnprintf-tests: New file.
88515         * tests/test-vsnprintf.c: New file.
88517         * modules/snprintf-tests: New file.
88518         * tests/test-snprintf.c: New file.
88520 2007-03-04  Bruno Haible  <bruno@clisp.org>
88522         Compile relocatable.c only if --enable-relocatable is specified.
88523         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
88524         gl_RELOCATABLE_LIBRARY.
88525         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
88526         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
88527         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
88528         gl_RELOCATABLE_LIBRARY.
88529         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
88530         (Makefile.am): Remove lib_SOURCES.
88531         * modules/relocatable-lib-lgpl (configure.ac): Invoke
88532         gl_RELOCATABLE_LIBRARY.
88533         (Makefile.am): Remove lib_SOURCES.
88534         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
88535         always.
88536         * modules/relocatable-prog-wrapper (configure.ac): Invoke
88537         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
88539 2007-03-04  Bruno Haible  <bruno@clisp.org>
88541         * modules/argmatch-tests: New file.
88542         * tests/test-argmatch.c: New file.
88544         * tests/test-allocsa.c (main): Halve the number of loop runs.
88546         * modules/alloca-opt-tests: New file.
88547         * tests/test-alloca-opt.c: New file.
88549 2007-03-04  Jim Meyering  <jim@meyering.net>
88551         Work around difference between Linux ACLs and Solaris 10 ZFS.
88552         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
88553         for EINVAL.
88555 2007-03-03  Bruno Haible  <bruno@clisp.org>
88557         * modules/relocatable-prog (Depends-on): Add back progreloc's
88558         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
88560 2007-03-03  Bruno Haible  <bruno@clisp.org>
88562         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
88563         * modules/relocatable-lib: New file.
88565 2007-03-03  Bruno Haible  <bruno@clisp.org>
88567         * modules/relocatable-prog: Renamed from modules/relocatable.
88568         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
88570 2007-03-03  Bruno Haible  <bruno@clisp.org>
88572         * modules/relocatable-script (Files): Add doc/relocatable.texi,
88573         m4/relocatable-lib.m4.
88574         (Depends-on): Remove 'relocatable'.
88575         (configure.ac): Add gl_RELOCATABLE_NOP.
88577 2007-03-03  Bruno Haible  <bruno@clisp.org>
88579         * modules/relocatable-prog-wrapper: New file.
88580         * modules/relocatable (Depends-on): Add it. Remove all other
88581         dependencies except progname.
88582         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
88584         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
88585         (gl_FUNC_STRERROR): Nop.
88586         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
88588         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
88589         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
88591         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
88592         (gl_FUNC_READLINK): Update.
88594         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
88596 2007-03-03  Bruno Haible  <bruno@clisp.org>
88598         * lib/xreadlink.c: Include <unistd.h> unconditionally.
88599         * modules/xreadlink (Depends-on): Add unistd.
88600         * modules/xreadlink-with-size (Depends-on): Likewise.
88602 2007-03-03  Bruno Haible  <bruno@clisp.org>
88604         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
88605         extracted from gt_FUNC_SETENV.
88606         (gt_FUNC_SETENV): Remove macro.
88607         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
88608         remove gt_FUNC_SETENV.
88610 2007-03-03  Bruno Haible  <bruno@clisp.org>
88612         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
88613         ENABLE_RELOCATABLE here.
88614         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
88616 2007-03-03  Bruno Haible  <bruno@clisp.org>
88618         * modules/rbtreehash-list-tests (Depends-on): Add progname.
88619         * tests/test-rbtreehash_list.c: Include progname.h.
88620         (main): Call set_program_name.
88622         * modules/rbtree-oset-tests (Depends-on): Add progname.
88623         * tests/test-rbtree_oset.c: Include progname.h.
88624         (main): Call set_program_name.
88626         * modules/rbtree-list-tests (Depends-on): Add progname.
88627         * tests/test-rbtree_list.c: Include progname.h.
88628         (main): Call set_program_name.
88630         * modules/linked-list-tests (Depends-on): Add progname.
88631         * tests/test-linked_list.c: Include progname.h.
88632         (main): Call set_program_name.
88634 2007-03-03  Bruno Haible  <bruno@clisp.org>
88636         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
88637         All uses of __restrict changed to _Restrict_.
88638         * lib/glob_.h (__restrict): Remove macro.
88640 2007-03-02  Bruno Haible  <bruno@clisp.org>
88642         * modules/gettext (configure.ac): Require gettext infrastructure
88643         from version 0.16.1.
88645 2007-03-02  Bruno Haible  <bruno@clisp.org>
88647         * modules/linkedhash-list-tests (Depends-on): Add progname.
88648         * tests/test-linkedhash_list.c: Include progname.h.
88649         (main): Call set_program_name.
88651         * modules/carray-list-tests (Depends-on): Add progname.
88652         * tests/test-carray_list.c: Include progname.h.
88653         (main): Call set_program_name.
88655         * modules/avltreehash-list-tests (Depends-on): Add progname.
88656         * tests/test-avltreehash_list.c: Include progname.h.
88657         (main): Call set_program_name.
88659         * modules/avltree-oset-tests (Depends-on): Add progname.
88660         * tests/test-avltree_oset.c: Include progname.h.
88661         (main): Call set_program_name.
88663         * modules/avltree-list-tests (Depends-on): Add progname.
88664         * tests/test-avltree_list.c: Include progname.h.
88665         (main): Call set_program_name.
88667         * modules/array-oset-tests (Depends-on): Add progname.
88668         * tests/test-array_oset.c: Include progname.h.
88669         (main): Call set_program_name.
88671         * modules/array-list-tests (Depends-on): Add progname.
88672         * tests/test-array_list.c: Include progname.h.
88673         (main): Call set_program_name.
88675         * modules/argp-tests (Depends-on): Add progname.
88676         * tests/test-argp.c: Include argp.h first. Include progname.h.
88677         (main): Call set_program_name.
88679 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
88681         * doc/gnulib-tool.texi (Initial import): Reword description of
88682         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
88683         limited effect even if defined after the first system include.
88685 2007-03-01  Bruno Haible  <bruno@clisp.org>
88687         * build-aux/config.libpath: Update to libtool-1.5.22.
88688         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
88690 2007-03-01  Bruno Haible  <bruno@clisp.org>
88692         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
88693         foo_CFLAGS.
88694         Reported by Ralf Wildenhues.
88696 2007-03-01  Bruno Haible  <bruno@clisp.org>
88698         * build-aux/install-reloc: Remove object files left over by some
88699         compilers.
88700         Reported by Ralf Wildenhues.
88702 2007-03-01  Bruno Haible  <bruno@clisp.org>
88704         * build-aux/install-reloc: Break long lines.
88706 2007-03-01  Bruno Haible  <bruno@clisp.org>
88708         * doc/relocatable.texi: Document that it may not work on OpenBSD.
88709         Reported by Ralf Wildenhues.
88711 2007-03-01  Bruno Haible  <bruno@clisp.org>
88713         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
88714         include ordering constraints.
88716 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88718         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
88719         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
88720         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
88721         as another example.
88722         * lib/time_.h: Fix misspelling.
88723         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
88724         Require gl_HEADER_TIME_H_DEFAULTS.
88725         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
88726         * m4/time_r.m4 (gl_TIME_R): Likewise.
88727         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
88729 2007-03-01  Bruno Haible  <bruno@clisp.org>
88731         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
88732         * m4/utimens.m4 (gl_UTIMENS): Likewise.
88734 2007-03-01  Jim Meyering  <jim@meyering.net>
88736         * modules/xreadlink (Maintainer): Add my name.
88737         * modules/xreadlink-with-size (Depends-on): Alphabetize.
88739 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
88740             Bruno Haible  <bruno@clisp.org>
88742         * build-aux/install-reloc: Compile also c-ctype.c.
88743         * build-aux/relocatable.sh.in: New file.
88744         * doc/relocatable.texi: New file.
88745         * doc/relocatable-maint.texi: New file.
88746         * doc/gnulib.texi: Include relocatable-maint.texi.
88747         * lib/progreloc.c: Include unistd.h unconditionally.
88748         * lib/relocwrapper.c: Include unistd.h unconditionally.
88749         Include c-ctype.h.
88750         (add_dotbin): Use c_tolower.
88751         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
88752         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
88753         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
88754         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
88755         to m4/relocatable-lib.m4.
88756         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
88757         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
88758         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
88759         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
88760         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
88761         * modules/relocatable: New file.
88762         * modules/relocatable-lib: New file.
88763         * modules/relocatable-script: New file.
88765 2007-02-28  Bruno Haible  <bruno@clisp.org>
88767         Import --enable-relocatable infrastructure.
88768         * build-aux/config.libpath: New file, from GNU gettext.
88769         * build-aux/install-reloc: New file, from GNU gettext.
88770         * build-aux/reloc-ldflags: New file, from GNU gettext.
88771         * lib/relocatable.h: New file, from GNU gettext.
88772         * lib/relocatable.c: New file, from GNU gettext.
88773         * lib/relocwrapper.c: New file, from GNU gettext.
88774         * m4/relocatable.m4: New file, from GNU gettext.
88776 2007-02-28  Bruno Haible  <bruno@clisp.org>
88778         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
88780         * modules/xreadlink: New file, from GNU gettext with modifications.
88781         * lib/xreadlink.c: New file, from GNU gettext.
88782         * lib/xreadlink.h: Add comments.
88783         (xreadlink): New declaration.
88785         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
88786         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
88787         lib/xreadlink-with-size.c.
88788         (configure.ac): Remove gl_XREADLINK invocation.
88789         (Makefile.am): Augment lib_SOURCES.
88790         * m4/xreadlink.m4: Remove file.
88791         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
88792         (xreadlink_with_size): Renamed from xreadink.
88793         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
88794         * modules/canonicalize (Depends-on): Replace xreadlink with
88795         xreadlink-with-size.
88796         * lib/canonicalize.c (canonicalize_filename_mode): Update.
88798 2007-02-25  Jim Meyering  <jim@meyering.net>
88800         * build-aux/announce-gen: When complaining about excess arguments,
88801         list them.
88803 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
88805         * README: Document signed integer overflow situation more
88806         accurately.
88808 2007-02-25  Bruno Haible  <bruno@clisp.org>
88810         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
88811         'a' or 'A' conversion.
88813 2007-02-25  Bruno Haible  <bruno@clisp.org>
88815         * modules/filename: Renamed from modules/pathname.
88816         (Files): Replace lib/pathname.h with lib/filename.h. Replace
88817         lib/concatpath.c with lib/concat-filename.c.
88818         (Makefile.am): Update.
88819         (Include): Replace pathname.h with filename.h.
88820         * lib/filename.h: Renamed from lib/pathname.h.
88821         (concatenated_filename): Renamed from concatenated_pathname.
88822         * lib/concat-filename.c: Renamed from lib/concatpath.c.
88823         (concatenated_filename): Renamed from concatenated_pathname.
88824         * lib/findprog.c: Include filename.h instead of pathname.h.
88825         (find_in_path): Update.
88826         * lib/javacomp.c: Include filename.h instead of pathname.h.
88827         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
88828         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
88829         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
88830         is_oldgcj_14_13_usable, is_javac_usable): Update.
88831         * lib/javaexec.c: Include filename.h instead of pathname.h.
88832         (execute_java_class): Update.
88833         * modules/findprog: Update.
88834         * modules/javacomp: Update.
88835         * modules/javaexec: Update.
88836         * MODULES.html.sh (File system functions): Add 'filename', remove
88837         'pathname'.
88839 2007-02-25  Bruno Haible  <bruno@clisp.org>
88841         * modules/printf-frexpl-tests: New file.
88842         * tests/test-printf-frexpl.c: New file.
88844         * modules/printf-frexpl: New file.
88845         * lib/printf-frexpl.h: New file.
88846         * lib/printf-frexpl.c: New file.
88847         * m4/printf-frexpl.m4: New file.
88849 2007-02-25  Bruno Haible  <bruno@clisp.org>
88851         * modules/printf-frexp-tests: New file.
88852         * tests/test-printf-frexp.c: New file.
88854         * modules/printf-frexp: New file.
88855         * lib/printf-frexp.h: New file.
88856         * lib/printf-frexp.c: New file.
88857         * m4/printf-frexp.m4: New file.
88859 2007-02-25  Bruno Haible  <bruno@clisp.org>
88861         Assume automake >= 1.10 for the tests.
88862         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
88863         * modules/arctwo-tests: Likewise.
88864         * modules/argp-tests: Likewise.
88865         * modules/avltree-list-tests: Likewise.
88866         * modules/avltree-oset-tests: Likewise.
88867         * modules/avltreehash-list-tests: Likewise.
88868         * modules/carray-list-tests: Likewise.
88869         * modules/crc-tests: Likewise.
88870         * modules/des-tests: Likewise.
88871         * modules/gc-arcfour-tests: Likewise.
88872         * modules/gc-arctwo-tests: Likewise.
88873         * modules/gc-des-tests: Likewise.
88874         * modules/gc-hmac-md5-tests: Likewise.
88875         * modules/gc-hmac-sha1-tests: Likewise.
88876         * modules/gc-md2-tests: Likewise.
88877         * modules/gc-md4-tests: Likewise.
88878         * modules/gc-md5-tests: Likewise.
88879         * modules/gc-pbkdf2-sha1-tests: Likewise.
88880         * modules/gc-rijndael-tests: Likewise.
88881         * modules/gc-sha1-tests: Likewise.
88882         * modules/gc-tests: Likewise.
88883         * modules/getaddrinfo-tests: Likewise.
88884         * modules/hmac-md5-tests: Likewise.
88885         * modules/hmac-sha1-tests: Likewise.
88886         * modules/linked-list-tests: Likewise.
88887         * modules/linkedhash-list-tests: Likewise.
88888         * modules/lock-tests: Likewise.
88889         * modules/md2-tests: Likewise.
88890         * modules/md4-tests: Likewise.
88891         * modules/md5-tests: Likewise.
88892         * modules/rbtree-list-tests: Likewise.
88893         * modules/rbtree-oset-tests: Likewise.
88894         * modules/rbtreehash-list-tests: Likewise.
88895         * modules/read-file-tests: Likewise.
88896         * modules/rijndael-tests: Likewise.
88897         * modules/stdint-tests: Likewise.
88898         * modules/tls-tests: Likewise.
88900 2007-02-24  Bruno Haible  <bruno@clisp.org>
88902         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
88903         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
88904         function; instead check whether isnan with a double argument links.
88905         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
88906         function; instead check whether isnan with a 'long double' argument
88907         links.
88908         Reported by Eric Blake <ebb9@byu.net>.
88910 2007-02-24  Bruno Haible  <bruno@clisp.org>
88912         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
88913         defined.
88914         * lib/isnanl.c: Remove all code. Just include isnan.c.
88915         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
88917 2007-02-25  Jim Meyering  <jim@meyering.net>
88919         Avoid conflicting types for 'unsetenv' on FreeBSD.
88920         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
88921         conflicting with FreeBSD's (5.0 and 6.1) function declaration
88922         in stdlib.h.
88924 2007-02-24  Bruno Haible  <bruno@clisp.org>
88926         * modules/isnanl-nolibm-tests: New file.
88927         * tests/test-isnanl.c: New file.
88929         * modules/isnanl-nolibm: New file.
88930         * lib/isnanl.h: New file.
88931         * lib/isnanl.c: New file.
88932         * m4/isnanl.m4: New file.
88934 2007-02-24  Bruno Haible  <bruno@clisp.org>
88936         * modules/isnan-nolibm-tests: New file.
88937         * tests/test-isnan.c: New file.
88939         * modules/isnan-nolibm: New file.
88940         * lib/isnan.h: New file.
88941         * lib/isnan.c: New file.
88942         * m4/isnan.m4: New file.
88944 2007-02-24  Bruno Haible  <bruno@clisp.org>
88946         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
88947         assume that an exponent fits in 20 bits.
88949 2007-02-24  Jim Meyering  <jim@meyering.net>
88951         * m4/regex.m4: Update the description of the configure-time option,
88952         --without-included-regex, to state accurately what the defaults are,
88953         and perhaps to give people an idea why using this option is risky.
88955 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
88957         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
88958         loops on small arguments.  This attempts to avoid the problem
88959         Bruno Haible reported for AIX 4.3.2 in
88960         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
88962 2007-02-23  Bruno Haible  <bruno@clisp.org>
88964         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
88965         Needed for help2man.
88967 2007-02-23  Karl Berry  <karl@gnu.org>
88969         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
88970         exists, foo.h should be cvs-ignored, not committed.
88972 2007-02-23  Eric Blake  <ebb9@byu.net>
88974         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
88975         * lib/stat-time.h (includes): Likewise.
88976         * lib/utimecmp.c (includes): Likewise.
88977         * lib/utimens.h (includes): Likewise.
88978         * lib/getdate.y (includes): Also include "timespec.h" for use
88979         internal to the module.
88980         * modules/utimens (Depends-on): Revert yesterday's patch.
88981         * modules/nanosleep (Depends-on): Add missing dependency.
88983 2007-02-22  Bruno Haible  <bruno@clisp.org>
88985         * lib/glob.c: Don't include getlogin_r.h.
88987 2007-02-22  Jim Meyering  <jim@meyering.net>
88989         * modules/utimens (Depends-on): Add timespec, required for
88990         utimens.h's inclusion of timespec.h.
88992 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
88994         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
88995         long unreadable paths in GNU/Linux.  Problem reported by Andreas
88996         Schwab in
88997         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
88998         I'll try to think of a better way to fix the Solaris problem.
89000         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
89001         like glibc; on Solaris 10, it fails with errno == EINVAL.
89002         POSIX says the behavior is unspecified if the first argument is NULL,
89003         so play it safe and never pass NULL to the system getcwd.
89005 2007-02-21  Jim Meyering  <jim@meyering.net>
89007         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
89008         of gettimeofday.  It would conflict with the one now always
89009         provided via sys_time_.h.  Reported by Matthew Woehlke, as
89010         an IRIX 6.5 build failure.
89012 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
89014         Minor fixups to port to Solaris 10 with Sun C 5.8.
89015         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
89016         * modules/getcwd (Depends-on): Add dirfd.
89017         * lib/putenv.c (putenv): #undef it.
89018         (rpl_putenv): New decl.
89019         (malloc, free): Include <stdlib.h> rather than prototyping separately.
89021 2007-02-20  Bruno Haible  <bruno@clisp.org>
89023         * modules/stdio-tests: New file.
89024         * tests/test-stdio.c: New file.
89026         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
89027         (Depends-on): Add stdio.
89028         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
89029         (Include): Use <stdio.h> instead of vsnprintf.h.
89030         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
89031         HAVE_DECL_VSNPRINTF.
89032         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
89034         * modules/snprintf (Files): Remove lib/snprintf.h.
89035         (Depends-on): Add stdio.
89036         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
89037         (Include): Use <stdio.h> instead of snprintf.h.
89038         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
89039         HAVE_DECL_SNPRINTF.
89040         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
89041         * lib/getaddrinfo.c: Likewise.
89043         * modules/stdio: New file.
89044         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
89045         * lib/snprintf.h: Remove file.
89046         * lib/vsnprintf.h: Remove file.
89047         * lib/.cppi-disable: Remove snprintf.h.
89048         * m4/stdio_h.m4: New file.
89049         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
89051 2007-02-20  Jim Meyering  <jim@meyering.net>
89053         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
89054         used by e.g., mingw.  From Bruno Haible.
89056 2007-02-19  Bruno Haible  <bruno@clisp.org>
89058         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
89059         warnings.
89060         Reported by Ben Pfaff <blp@cs.stanford.edu>.
89062 2007-02-19  Bruno Haible  <bruno@clisp.org>
89064         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
89065         from mingw users.
89067 2007-02-19  Bruno Haible  <bruno@clisp.org>
89069         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
89070         warnings.
89071         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
89073 2007-02-19  Jim Meyering  <jim@meyering.net>
89075         Don't use FD after a successful "fdopendir (fd)".
89076         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
89077         Reset it by calling dirfd on the just-obtained DIR*.
89079         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
89080         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
89082 2007-02-18  Bruno Haible  <bruno@clisp.org>
89084         * lib/readlink.c: Include <unistd.h>.
89085         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
89086         HAVE_READLINK.
89087         * modules/readlink (Depends-on): Add unistd.
89088         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89089         (Include): Add <unistd.h>.
89091         * lib/getlogin_r.h: Remove file.
89092         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
89093         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
89094         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
89095         HAVE_DECL_GETLOGIN_R.
89096         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
89097         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89098         (Include): Use <unistd.h> instead of getlogin_r.h.
89100         * lib/getcwd.h: Remove file.
89101         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
89102         * lib/xgetcwd.c: Likewise.
89103         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
89104         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
89105         * modules/getcwd (Files): Remove lib/getcwd.h.
89106         (Depends-on): Add unistd.
89107         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89108         (Include): Use <unistd.h> instad of getcwd.h.
89110         * lib/ftruncate.c: Include <unistd.h> first.
89111         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
89112         Set HAVE_FTRUNCATE.
89113         * modules/ftruncate (Depends-on): Add unistd.
89114         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89116         * lib/fchdir.c: Include <unistd.h> first.
89117         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
89118         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
89119         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
89120         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89121         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
89123         * lib/dup2.c: Include <unistd.h> first.
89124         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
89125         HAVE_DUP2.
89126         * modules/dup2 (Depends-on): Add unistd.
89127         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89129         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
89130         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
89131         REPLACE_CHOWN. Don't define chown as a macro here.
89132         * modules/chown (Depends-on): Add unistd.
89133         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89135         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
89136         Add definition for GL_LINK_WARNING.
89137         (chown, dup2): New declarations.
89138         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
89139         link warning.
89140         (ftruncate): New declaration.
89141         (getcwd): New declaration, taken from old getcwd.h.
89142         (getlogin_r): New declaration, taken from old getlogin_r.h.
89143         (readlink): New declaration.
89144         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
89145         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
89146         (gl_PREREQ_UNISTD): Remove macro.
89147         (gl_UNISTD_MODULE_INDICATOR): New macro.
89148         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
89149         many new variables. Don't set UNISTD_H.
89150         * modules/unistd (Description): Change.
89151         (Depends-on): Add link-warning.
89152         (configure.ac): Update.
89153         (Makefile.am): Create unistd.h always. Substitute many new variables
89154         into it.
89156 2007-02-18  Bruno Haible  <bruno@clisp.org>
89158         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
89159         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
89160         HAVE_GETSUBOPT.
89161         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
89162         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
89163         * lib/getsubopt.h: Remove file.
89164         * modules/getsubopt (Files): Remove lib/getsubopt.h.
89165         (Depends-on): Add stdlib.
89166         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
89167         (Includes): Use <stdlib.h> instead of getsubopt.h.
89168         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
89169         Set HAVE_GETSUBOPT.
89170         * lib/getsubopt.c: Don't include getsubopt.h.
89172 2007-02-18  Bruno Haible  <bruno@clisp.org>
89174         * modules/fchdir (Depends-on): Add dup2.
89176 2007-02-18  Bruno Haible  <bruno@clisp.org>
89178         * lib/stdlib_.h: Handle glibc's special invocation convention
89179         specially.
89181 2007-02-18  Bruno Haible  <bruno@clisp.org>
89183         * modules/stdlib-tests: New file.
89184         * tests/test-stdlib.c: New file.
89186         * modules/mkstemp (Files): Remove lib/mkstemp.h.
89187         (Depends-on): Add stdlib.
89188         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
89189         (Includes): Use <stdlib.h> instead of mkstemp.h.
89190         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
89191         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
89192         * lib/mkstemp.c: Don't include mkstemp.h.
89193         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
89194         * lib/stdlib--.h: Don't include mkstemp.h.
89196         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
89197         (Depends-on): Add stdlib.
89198         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
89199         (Includes): Use <stdlib.h> instead of mkdtemp.h.
89200         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
89201         HAVE_MKDTEMP.
89202         * lib/mkdtemp.c: Don't include mkdtemp.h.
89203         * lib/clean-temp.c: Don't include mkdtemp.h.
89205         * modules/exit (Files): Remove lib/exit.h.
89206         (Depends-on): Add stdlib.
89207         (Makefile.am): Remove lib_SOURCES.
89208         (Include): Use <stdlib.h> instead of exit.h.
89209         * lib/argmatch.c: Don't include exit.h.
89210         * lib/execute.c: Likewise.
89211         * lib/pagealign_alloc.c: Likewise.
89212         * lib/pipe.c: Likewise.
89213         * lib/wait-process.c: Likewise.
89214         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
89215         * lib/exitfail.c: Likewise.
89216         * lib/savewd.c: Likewise.
89217         * lib/xsetenv.c: Likewise.
89219         * modules/stdlib: New file.
89220         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
89221         and extra comments about mkstemp().
89222         * lib/exit.h: Remove file.
89223         * lib/mkdtemp.h: Remove file.
89224         * lib/mkstemp.h: Remove file.
89225         * m4/stdlib_h.m4: New file.
89226         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
89228 2007-02-18  Bruno Haible  <bruno@clisp.org>
89230         * modules/math-tests: New file.
89231         * tests/test-math.c: New file.
89233         * modules/math: New file.
89234         * modules/mathl (Files): Remove lib/mathl.h.
89235         (Depends-on): Add math.
89236         (Makefile.am): Don't mention mathl.h.
89237         (Include): Use <math.h> instead of mathl.h.
89238         * lib/math_.h: New file.
89239         * lib/mathl.h: Remove file.
89240         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
89241         mathl.h.
89242         * lib/asinl.c: Likewise.
89243         * lib/atanl.c: Likewise.
89244         * lib/ceill.c: Likewise.
89245         * lib/cosl.c: Likewise.
89246         * lib/expl.c: Likewise.
89247         * lib/floorl.c: Likewise.
89248         * lib/frexpl.c: Likewise.
89249         * lib/ldexpl.c: Likewise.
89250         * lib/logl.c: Likewise.
89251         * lib/sincosl.c: Likewise.
89252         * lib/sinl.c: Likewise.
89253         * lib/sqrtl.c: Likewise.
89254         * lib/tanl.c: Likewise.
89255         * lib/trigl.c: Likewise.
89256         * m4/math_h.m4: New file.
89257         * MODULES.html.sh (Mathematics): Add math.
89259 2007-02-17  Bruno Haible  <bruno@clisp.org>
89261         * modules/wctype-tests: New file.
89262         * tests/test-wctype.c: New file.
89264         * modules/wchar-tests: New file.
89265         * tests/test-wchar.c: New file.
89267         * modules/unistd-tests: New file.
89268         * tests/test-unistd.c: New file.
89270         * modules/time-tests: New file.
89271         * tests/test-time.c: New file.
89273         * modules/sysexits-tests: New file.
89274         * tests/test-sysexits.c: New file.
89276         * modules/sys_time-tests: New file.
89277         * tests/test-sys_time.c: New file.
89279         * modules/sys_stat-tests: New file.
89280         * tests/test-sys_stat.c: New file.
89282         * modules/sys_socket-tests: New file.
89283         * tests/test-sys_socket.c: New file.
89285         * modules/sys_select-tests: New file.
89286         * tests/test-sys_select.c: New file.
89288         * modules/string-tests: New file.
89289         * tests/test-string.c: New file.
89291         * modules/stdbool-tests: New file.
89292         * tests/test-stdbool.c: New file.
89294         * modules/netinet_in-tests: New file.
89295         * tests/test-netinet_in.c: New file.
89297         * modules/inttypes-tests: New file.
89298         * tests/test-inttypes.c: New file.
89300         * modules/fcntl-tests: New file.
89301         * tests/test-fcntl.c: New file.
89303         * modules/byteswap-tests: New file.
89304         * tests/test-byteswap.c: New file.
89306         * modules/arpa_inet-tests: New file.
89307         * tests/test-arpa_inet.c: New file.
89309 2007-02-17  Bruno Haible  <bruno@clisp.org>
89311         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
89312         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
89313         if the corresponding module is not enabled. Emit link warnings if
89314         the function is used nevertheless.
89315         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
89316         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
89317         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
89318         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
89319         * modules/inttypes (Depends-on): Add link-warning.
89320         (Makefile.am): Copy the contents of build-aux/link-warning.h into
89321         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
89322         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
89323         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
89324         * modules/imaxdiv (configure.ac): Likewise.
89325         * modules/strtoimax (configure.ac): Likewise.
89326         * modules/strtoumax (configure.ac): Likewise.
89328 2007-02-17  Bruno Haible  <bruno@clisp.org>
89330         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
89331         gl_STRING_MODULE_INDICATOR_DEFAULTS.
89332         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
89333         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
89335 2007-02-17  Bruno Haible  <bruno@clisp.org>
89337         * modules/link-warning: New file.
89338         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
89339         * lib/string_.h (GL_LINK_WARNING): Remove definition.
89340         * modules/string (Depends-on): Add link-warning.
89341         (Makefile.am): Copy the contents of build-aux/link-warning.h into
89342         string.h.
89343         * MODULES.html.sh (Support for building libraries and executables): Add
89344         link-warning.
89346 2007-02-17  Bruno Haible  <bruno@clisp.org>
89348         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
89349         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
89350         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
89351         long lines.
89353 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
89354             Bruno Haible  <bruno@clisp.org>
89356         * modules/tmpfile: New file.
89357         * lib/tmpfile.c: New file.
89358         * m4/tmpfile.m4: New file.
89359         * MODULES.html.sh (func_all_modules): New section "Input/output".
89361 2007-02-15  Bruno Haible  <bruno@clisp.org>
89363         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
89364         (supports_delete_on_close): New function.
89365         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
89367 2007-02-14  Bruno Haible  <bruno@clisp.org>
89369         * modules/mbspcasecmp-tests: New file.
89370         * tests/test-mbspcasecmp.sh: New file.
89371         * tests/test-mbspcasecmp.c: New file.
89373         New module mbspcasecmp.
89374         * modules/mbspcasecmp: New file.
89375         * lib/mbspcasecmp.c: New file.
89376         * lib/string_.h (strncasecmp): Change warning message.
89377         (mbspcasecmp): New declaration.
89378         * m4/mbspcasecmp.m4: New file.
89379         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89380         GNULIB_MBSPCASECMP.
89381         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
89382         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
89384 2007-02-14  Bruno Haible  <bruno@clisp.org>
89386         * modules/mbsncasecmp-tests: New file.
89387         * tests/test-mbsncasecmp.sh: New file.
89388         * tests/test-mbsncasecmp.c: New file.
89390         New module mbsncasecmp.
89391         * modules/mbsncasecmp: New file.
89392         * lib/mbsncasecmp.c: New file.
89393         * lib/string_.h (mbsncasecmp): New declaration.
89394         * m4/mbsncasecmp.m4: New file.
89395         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89396         GNULIB_MBSNCASECMP.
89397         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
89398         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
89400 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
89402         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
89403         Verify that it doesn't overlap with our flags.
89404         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
89405         do not have the desired effect in multibyte locales; instead, use
89406         mbscasecmp.
89407         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
89408         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
89409         we don't require GNU fnmatch ourselves (if our users require it, they
89410         should do so explicitly).
89412         Fix regex code so it doesn't rely on strcasecmp.
89413         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
89414         Otherwise, include gnulib's langinfo.h.
89415         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
89416         undesirable behavior in non-C locales.  Instead, rely on localecharset.
89417         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
89418         * modules/regex (FILES): Remove m4/codeset.m4.
89419         (Depends-on): Add localcharset.  Remove strcase.
89421 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89423         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
89424         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
89426 2007-02-13  Bruno Haible  <bruno@clisp.org>
89428         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
89429         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
89431 2007-02-12  Bruno Haible  <bruno@clisp.org>
89433         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
89434         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
89435         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
89436         time warning rather than a link error.
89438 2007-02-12  Bruno Haible  <bruno@clisp.org>
89440         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
89441         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
89442         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
89444 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
89446         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
89447         args, not 2.
89449 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
89451         New module 'time', so that apps can include <time.h> as per
89452         POSIX and GNU instead of separate include files like time_r.h
89453         and timegm.h.  This implementation tries out a simpler approach
89454         for replacing decls in standard include files (as compared to
89455         the string module), somewhat as an experiment.
89457         * config/srclist.txt: Comment out mktime.c for now.
89458         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
89459         since it doesn't apply any more.  Use generic wording instead.
89460         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
89461         'time'.
89462         * lib/time_.h, m4/time_h.m4, modules/time: New files.
89463         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
89464         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
89465         Don't include <sys/types.h>; no longer needed since we assume C89.
89466         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
89467         * lib/strftime.c: Likewise.
89468         * lib/time_r.c: Likewise.
89469         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
89470         * lib/nanosleep.c: Include <time.h> first, to check interface.
89471         * lib/strptime.c: Likewise.
89472         * lib/time_r.c: Likewise.
89473         * lib/timegm.c: Likewise.
89474         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
89475         needed.
89476         * lib/timegm.c: Don't include timegm.h; no longer needed.
89477         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
89478         time.h now handles any problems in that area.
89479         (struct timespec, nanosleep): Remove; time.h now arranges for these.
89480         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
89481         that time.h defines struct timespec.
89482         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
89483         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
89484         handles that.
89485         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
89486         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
89487         needed.  Set REPLACE_LOCALTIME.
89488         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
89489         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
89490         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
89491         nanosleep; time_h.m4 now does that.  Don't require
89492         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
89493         module handles this now.
89494         * modules/getdate (Depends-on): Remove timespec.  Add time.
89495         * modules/nanosleep (Depends-on): Likewise.
89496         * modules/stat-time (Depends-on): Likewise.
89497         * modules/nanosleep (Include): Include time.h, not timespec.h.
89498         * modules/strptime (Files): Remove lib/strptime.h.
89499         (Depends-on): Add extensions, time.
89500         (Include): Include time.h, not strptime.h.
89501         * modules/time_r (Files): Remove lib/time_r.h.
89502         (Depends-on): Add time.
89503         (Include): Include time.h, not time_r.h.
89504         * modules/timegm: Likewise.
89505         * modules/timespec (Description): Now does timespec-related decls
89506         of our own, instead of struct timespec itself.
89507         (Depends-on): Add time; remove extensions.
89508         (Maintainer): Add self.
89509         * modules/utimecmp (Depends-on): Add time; remove timespec.
89510         * modules/utimens (Depends-on): Likewise.
89511         * modules/xnanosleep (Depends-on): Likewise.
89513 2007-02-11  Bruno Haible  <bruno@clisp.org>
89515         * lib/c-strstr.c: Include allocsa.h.
89516         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
89517         * lib/c-strcasestr.c: Include allocsa.h.
89518         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
89519         * lib/strcasestr.c: Include allocsa.h.
89520         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
89521         * lib/mbsstr.c: Include allocsa.h.
89522         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
89523         allocsa/freesa instead of malloc/free.
89524         * lib/mbscasestr.c: Include allocsa.h.
89525         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
89526         allocsa/freesa instead of malloc/free.
89527         * modules/c-strstr (Depends-on): Add allocsa.
89528         * modules/c-strcasestr (Depends-on): Likewise.
89529         * modules/strcasestr (Depends-on): Likewise.
89530         * modules/mbsstr (Depends-on): Likewise.
89531         * modules/mbscasestr (Depends-on): Likewise.
89533 2007-02-11  Bruno Haible  <bruno@clisp.org>
89535         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
89537         * modules/mbsspn-tests: New file.
89538         * tests/test-mbsspn.sh: New file.
89539         * tests/test-mbsspn.c: New file.
89541 2007-02-11  Bruno Haible  <bruno@clisp.org>
89543         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
89545         * modules/mbspbrk-tests: New file.
89546         * tests/test-mbspbrk.sh: New file.
89547         * tests/test-mbspbrk.c: New file.
89549 2007-02-11  Bruno Haible  <bruno@clisp.org>
89551         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
89552         unneeded cast.
89554         * modules/mbscspn-tests: New file.
89555         * tests/test-mbscspn.sh: New file.
89556         * tests/test-mbscspn.c: New file.
89558 2007-02-11  Bruno Haible  <bruno@clisp.org>
89560         * modules/mbscasecmp-tests: New file.
89561         * tests/test-mbscasecmp.sh: New file.
89562         * tests/test-mbscasecmp.c: New file.
89564 2007-02-11  Bruno Haible  <bruno@clisp.org>
89566         Ensure O(n) worst-case complexity of mbscasestr.
89567         * lib/mbscasestr.c: Include stdbool.h.
89568         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
89569         functions.
89570         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
89571         the bookkeeping indicates that it's worth it.
89572         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
89574         * modules/mbscasestr-tests: New file.
89575         * tests/test-mbscasestr1.c: New file.
89576         * tests/test-mbscasestr2.sh: New file.
89577         * tests/test-mbscasestr2.c: New file.
89578         * tests/test-mbscasestr3.sh: New file.
89579         * tests/test-mbscasestr3.c: New file.
89580         * tests/test-mbscasestr4.sh: New file.
89581         * tests/test-mbscasestr4.c: New file.
89582         * m4/locale-tr.m4: New file.
89584 2007-02-11  Bruno Haible  <bruno@clisp.org>
89586         Ensure O(n) worst-case complexity of mbsstr.
89587         * lib/mbsstr.c: Include stdbool.h.
89588         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
89589         functions.
89590         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
89591         bookkeeping indicates that it's worth it.
89592         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
89594         * modules/mbsstr-tests: New file.
89595         * tests/test-mbsstr1.c: New file.
89596         * tests/test-mbsstr2.sh: New file.
89597         * tests/test-mbsstr2.c: New file.
89598         * tests/test-mbsstr3.sh: New file.
89599         * tests/test-mbsstr3.c: New file.
89600         * m4/locale-fr.m4: New file.
89602 2007-02-11  Bruno Haible  <bruno@clisp.org>
89604         * lib/mbsrchr.c (mbsrchr): Fix bug.
89606         * modules/mbsrchr-tests: New file.
89607         * tests/test-mbsrchr.sh: New file.
89608         * tests/test-mbsrchr.c: New file.
89610 2007-02-11  Bruno Haible  <bruno@clisp.org>
89612         * lib/mbschr.c (mbschr): Fix bug.
89614         * modules/mbschr-tests: New file.
89615         * tests/test-mbschr.sh: New file.
89616         * tests/test-mbschr.c: New file.
89617         * m4/locale-zh.m4: New file.
89619 2007-02-11  Bruno Haible  <bruno@clisp.org>
89621         Support for copying multibyte string iterators.
89622         * lib/mbiter.h: Include <string.h>.
89623         (mbiter_multi_copy): New function.
89624         (mbi_copy): New macro.
89625         * lib/mbuiter.h: Include <string.h>.
89626         (mbuiter_multi_copy): New function.
89627         (mbui_copy): New macro.
89629 2007-02-11  Bruno Haible  <bruno@clisp.org>
89631         New module mbslen.
89632         * modules/mbslen: New file.
89633         * lib/mbslen.c: New file.
89634         * lib/string_.h (mbslen): New declaration.
89635         * m4/mbslen.m4: New file.
89636         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89637         GNULIB_MBSLEN.
89638         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
89639         * MODULES.html.sh (Internationalization functions): Add mbslen.
89641 2007-02-11  Bruno Haible  <bruno@clisp.org>
89643         Ensure O(n) worst-case complexity of strcasestr substitute.
89644         * lib/strcasestr.c: Include stdbool.h.
89645         (knuth_morris_pratt): New function.
89646         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
89647         bookkeeping indicates that it's worth it.
89648         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
89650         * modules/strcasestr-tests: New file.
89651         * tests/test-strcasestr.c: New file.
89653 2007-02-11  Bruno Haible  <bruno@clisp.org>
89655         Ensure O(n) worst-case complexity of c_strcasestr.
89656         * lib/c-strcasestr.c: Include stdbool.h, string.h.
89657         (knuth_morris_pratt): New function.
89658         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
89659         the bookkeeping indicates that it's worth it.
89660         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
89662         * modules/c-strcasestr-tests: New file.
89663         * tests/test-c-strcasestr.c: New file.
89665 2007-02-11  Bruno Haible  <bruno@clisp.org>
89667         Ensure O(n) worst-case complexity of c_strstr.
89668         * lib/c-strstr.c: Include stdbool.h, string.h.
89669         (knuth_morris_pratt): New function.
89670         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
89671         bookkeeping indicates that it's worth it.
89672         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
89674         * lib/c-strstr.c: Complete rewrite for maintainability.
89676         * modules/c-strstr-tests: New file.
89677         * tests/test-c-strstr.c: New file.
89679 2007-02-11  Bruno Haible  <bruno@clisp.org>
89681         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
89682         5.2.1 and earlier, whereby \055 was treated just like the range
89683         delimiter '-'.
89684         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
89686 2007-02-08  Bruno Haible  <bruno@clisp.org>
89688         * modules/regex (Depends-on): Add stdbool.
89689         Reported by Dalibor Topic <robilad@kaffe.org>.
89691 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
89693         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
89694         Prefer returning from main to exiting from it.
89695         Remove unnecessary parens after sizeof.
89697 2007-02-05  Bruno Haible  <bruno@clisp.org>
89699         New module mbssep.
89700         * modules/mbssep: New file.
89701         * lib/mbssep.c: New file.
89702         * lib/string_.h (strsep): Add a conditional link warning.
89703         (mbssep): New declaration.
89704         * m4/mbssep.m4: New file.
89705         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89706         GNULIB_MBSSEP.
89707         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
89708         * MODULES.html.sh (Internationalization functions): Add mbssep.
89710 2007-02-05  Bruno Haible  <bruno@clisp.org>
89712         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
89713         Optimize search in case of 1 delimiter.
89715 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
89717         * lib/acl.h: Include sys/types.h before sys/acl.h.
89719 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
89721         Merge upstream fix for glibc bugzilla #3957:
89723         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
89725         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
89726         bit for RE_HAT_LISTS_NOT_NEWLINE.
89727         (build_charclass_op): Remove bogus comment.
89729 2007-02-05  Simon Josefsson  <simon@josefsson.org>
89731         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
89733 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
89735         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
89736         * lib/memmem.c [!defined _LIBC]: Include config.h.
89738 2007-02-04  Bruno Haible  <bruno@clisp.org>
89740         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
89741         warning message.
89743 2007-02-04  Bruno Haible  <bruno@clisp.org>
89745         New module mbstok_r.
89746         * modules/mbstok_r: New file.
89747         * lib/mbstok_r.c: New file.
89748         * lib/string_.h (strtok_r): Change argument names to match the
89749         comments. Add a conditional link warning.
89750         (mbstok_r): New declaration.
89751         * m4/mbstok_r.m4: New file.
89752         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89753         GNULIB_MBSTOK_R.
89754         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
89755         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
89757 2007-02-04  Bruno Haible  <bruno@clisp.org>
89759         New module mbsspn.
89760         * modules/mbsspn: New file.
89761         * lib/mbsspn.c: New file.
89762         * lib/string_.h (strspn): Add a conditional link warning.
89763         (mbsspn): New declaration.
89764         * m4/mbsspn.m4: New file.
89765         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89766         GNULIB_MBSSPN.
89767         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
89768         * MODULES.html.sh (Internationalization functions): Add mbsspn.
89770 2007-02-04  Bruno Haible  <bruno@clisp.org>
89772         New module mbspbrk.
89773         * modules/mbspbrk: New file.
89774         * lib/mbspbrk.c: New file.
89775         * lib/string_.h (strpbrk): Add a conditional link warning.
89776         (mbspbrk): New declaration.
89777         * m4/mbspbrk.m4: New file.
89778         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89779         GNULIB_MBSPBRK.
89780         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
89781         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
89783 2007-02-04  Bruno Haible  <bruno@clisp.org>
89785         New module mbscspn.
89786         * modules/mbscspn: New file.
89787         * lib/mbscspn.c: New file.
89788         * lib/string_.h (strcspn): Add a conditional link warning.
89789         (mbscspn): New declaration.
89790         * m4/mbscspn.m4: New file.
89791         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89792         GNULIB_MBSCSPN.
89793         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
89794         * MODULES.html.sh (Internationalization functions): Add mbscspn.
89796 2007-02-04  Bruno Haible  <bruno@clisp.org>
89798         New module mbscasestr, reduced goal of strcasestr.
89799         * modules/mbscasestr: New file.
89800         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
89801         (mbscasestr): Renamed from strcasestr.
89802         * lib/strcasestr.c: Don't include mbuiter.h.
89803         (strcasestr): Remove support for multibyte locales.
89804         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
89805         Change the conditional link warning.
89806         (mbscasestr): New declaration.
89807         * m4/mbscasestr.m4: New file.
89808         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
89809         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
89810         REPLACE_STRCASESTR.
89811         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
89812         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
89813         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
89814         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
89815         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
89816         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
89817         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
89818         (Depends-on): Remove mbuiter.
89819         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
89821 2007-02-04  Bruno Haible  <bruno@clisp.org>
89823         Simplify handling of strncasecmp.
89824         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
89825         the conditional link warning.
89826         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
89827         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
89828         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
89829         * modules/strcase (configure.ac): Don't invoke
89830         gl_STRING_MODULE_INDICATOR.
89831         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
89833 2007-02-04  Bruno Haible  <bruno@clisp.org>
89835         New module mbscasecmp, reduced goal of strcasecmp.
89836         * modules/mbscasecmp: New file.
89837         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
89838         (mbscasecmp): Renamed from strcasecmp.
89839         * lib/strcasecmp.c: Don't include mbuiter.h.
89840         (strcasecmp): Remove support for multibyte locales.
89841         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
89842         Change the conditional link warning.
89843         (mbscasecmp): New declaration.
89844         * m4/mbscasecmp.m4: New file.
89845         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
89846         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
89847         REPLACE_STRCASECMP.
89848         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
89849         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89850         GNULIB_MBSCASECMP.
89851         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
89852         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
89853         * modules/strcase (Files): Remove m4/mbrtowc.m4.
89854         (Depends-on): Remove mbuiter.
89855         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
89857 2007-02-04  Bruno Haible  <bruno@clisp.org>
89859         New module mbsstr. Remove module strstr.
89860         * modules/mbsstr: New file.
89861         * modules/strstr: Remove file.
89862         * lib/mbsstr.c: Renamed from lib/strstr.c.
89863         (mbsstr): Renamed from strstr.
89864         * lib/string_.h (strstr): Remove declaration. Change the conditional
89865         link warning.
89866         (mbsstr): New declaration.
89867         * m4/mbsstr.m4: New file.
89868         * m4/strstr.m4: Remove file.
89869         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
89870         REPLACE_STRSTR.
89871         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
89872         Don't initialize GNULIB_STRSTR.
89873         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
89874         substitute GNULIB_STRSTR and REPLACE_STRSTR.
89875         * MODULES.html.sh (Internationalization functions): Add mbsstr.
89876         (Support for systems lacking ANSI C 89): Remove strstr.
89878 2007-02-04  Bruno Haible  <bruno@clisp.org>
89880         New module mbsrchr.
89881         * modules/mbsrchr: New file.
89882         * lib/mbsrchr.c: New file.
89883         * lib/string_.h (strrchr): Add a conditional link warning.
89884         (mbsrchr): New declaration.
89885         * m4/mbsrchr.m4: New file.
89886         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89887         GNULIB_MBSRCHR.
89888         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
89889         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
89891 2007-02-04  Bruno Haible  <bruno@clisp.org>
89893         New module mbschr.
89894         * modules/mbschr: New file.
89895         * lib/mbschr.c: New file.
89896         * lib/string_.h (strchr): Add a conditional link warning.
89897         (mbschr): New declaration.
89898         * m4/mbschr.m4: New file.
89899         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89900         GNULIB_MBSCHR.
89901         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
89902         * MODULES.html.sh (Internationalization functions): Add mbschr.
89904 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
89906         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
89908         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
89910 2007-02-04  Bruno Haible  <bruno@clisp.org>
89912         New module description section 'configure.ac-early'.
89913         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
89914         (func_get_autoconf_early_snippet): New function.
89915         (func_import, func_create_testdir): Use it. Remove special cases for
89916         modules 'extensions' and 'lock'.
89917         * modules/extensions (configure.ac-early): Require
89918         gl_USE_SYSTEM_EXTENSIONS.
89919         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
89921 2007-02-04  Bruno Haible  <bruno@clisp.org>
89923         Make use of gcj-4.3's -fsource and -ftarget option.
89924         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
89925         and if so try the options -fsource and -ftarget.
89926         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
89927         source_version, ftarget_option, target_version arguments.
89928         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
89929         (is_envjavac_oldgcj_14_14_usable): Renamed from
89930         is_envjavac_gcj_14_14_usable.
89931         (is_envjavac_oldgcj_14_13_usable): Renamed from
89932         is_envjavac_gcj_14_13_usable.
89933         (is_gcj_present): Update.
89934         (is_gcj_43, is_gcj43_usable): New functions.
89935         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
89936         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
89937         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
89938         try the options -fsource and -ftarget.
89940 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
89942         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
89943         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
89944         larger value.
89946 2007-02-03  Jim Meyering  <jim@meyering.net>
89948         Give tools a better chance to allocate space for very large buffers.
89949         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
89951         Make pwd and readlink work also when run with an unreadable parent dir
89952         on systems with openat support.
89953         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
89954         provided getcwd function, even when we have openat support.
89955         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
89957 2007-02-02  Bruno Haible  <bruno@clisp.org>
89959         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
89960         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
89961         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
89962         portability problems if one of these functions is only used on specific
89963         platforms.
89964         Reported by Paul Eggert.
89966 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
89968         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
89969         is causing more trouble than it's curing.
89970         * lib/regex_internal.h (__mempcpy): Remove.
89971         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
89972         (and make the code a tad smaller to boot).
89973         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
89975 2007-02-02  Jim Meyering  <jim@meyering.net>
89977         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
89978         section, not in the Makefile.am: one.
89980 2007-02-02  Eric Blake  <ebb9@byu.net>
89982         * lib/strchrnul.c: Always include config.h first.
89984         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
89985         gnulib strstr is not necessary here.
89987 2007-02-02  Simon Josefsson  <simon@josefsson.org>
89989         * m4/socklen.m4: Fix typo.
89991 2007-02-02  Eric Blake  <ebb9@byu.net>
89993         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
89994         * modules/netinet_in (Makefile.am): Likewise.
89996 2007-02-01  Bruno Haible  <bruno@clisp.org>
89998         * lib/string_.h (GL_LINK_WARNING): New macro.
89999         (strcasecmp, strstr, strcasestr): If provided by the system,
90000         conditionally define as a macro that leads to a warning instead of to
90001         an error.
90002         (strncasecmp): Conditionally define as a macro that leads to a warning.
90004 2007-02-01  Karl Berry  <karl@gnu.org>
90006         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
90008 2007-02-01  Bruno Haible  <bruno@clisp.org>
90010         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
90011         renamings.
90013 2007-02-01  Eric Blake  <ebb9@byu.net>
90015         * modules/regex (Depends-on): Revert dependence on mempcpy.
90016         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
90017         module's definition of mempcpy.
90018         Reported by Paul Eggert.
90020 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
90022         * lib/string_.h: If the gnulib module XYZ is not present, undefine
90023         the symbol XYZ before redefining it.  This fixes a problem with
90024         programs that don't use XYZ, when compiled on systems that define
90025         XYZ to something else.
90027 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
90029         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
90030         occurs when "mkdir -m foo" creates a setgid directory that is (1)
90031         writeable to group or other and (2) is intended to have a special
90032         mode bit that is set or cleared.  In such a case, the directory
90033         should be neither group- nor other-writeable until the special
90034         mode bits are right.
90036 2007-01-31  Eric Blake  <ebb9@byu.net>
90038         * modules/mountlist (Depends-on): Add strstr.
90040         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
90041         bug.
90042         * modules/string (Makefile.am): Remove redundant replacement.
90043         * modules/regex (Depends-on): Add mempcpy.
90045 2007-01-31  Bruno Haible  <bruno@clisp.org>
90047         New module description field 'Link'.
90048         * gnulib-tool (func_usage): Document --extract-link-directive.
90049         (sed_extract_prog): Recognize 'Link' directive.
90050         (func_get_link_directive): New function.
90051         (func_import): Show summary of link directives.
90052         Handle --extract-link-directive option.
90053         * modules/acl (Link): New section.
90054         * modules/clock-time (Link): New section.
90055         * modules/euidaccess (Link): New section.
90056         * modules/gettext (Link): New section.
90057         * modules/iconv (Link): New section.
90058         * modules/lock (Link): New section.
90059         * modules/nanosleep (Link): New section.
90060         * modules/readline (Link): New section.
90062 2007-01-27  Bruno Haible  <bruno@clisp.org>
90064         Enforce the use of gnulib modules for unportable <string.h> functions.
90065         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
90066         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
90067         (gl_HEADER_STRING_H_BODY): Require it.
90068         * lib/string_.h: If the gnulib module XYZ is not present, redefine
90069         the symbol XYZ to one that gives a link error.
90070         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
90071         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
90072         * modules/mempcpy (configure.ac): Likewise.
90073         * modules/memrchr (configure.ac): Likewise.
90074         * modules/stpcpy (configure.ac): Likewise.
90075         * modules/stpncpy (configure.ac): Likewise.
90076         * modules/strcase (configure.ac): Likewise.
90077         * modules/strcasestr (configure.ac): Likewise.
90078         * modules/strchrnul (configure.ac): Likewise.
90079         * modules/strdup (configure.ac): Likewise.
90080         * modules/strndup (configure.ac): Likewise.
90081         * modules/strnlen (configure.ac): Likewise.
90082         * modules/strpbrk (configure.ac): Likewise.
90083         * modules/strsep (configure.ac): Likewise.
90084         * modules/strstr (configure.ac): Likewise.
90085         * modules/strtok_r (configure.ac): Likewise.
90087 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
90089         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
90091 2007-01-30  Jim Meyering  <jim@meyering.net>
90093         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
90095 2007-01-29  Bruno Haible  <bruno@clisp.org>
90097         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
90098         * lib/execute.c: Likewise.
90099         * lib/pipe.c: Likewise.
90100         * lib/printf-args.h: Likewise.
90101         * lib/printf-args.c: Likewise.
90102         * lib/printf-parse.c: Likewise.
90103         * lib/vasnprintf.c: Likewise.
90105 2007-01-29  Eric Blake  <ebb9@byu.net>
90107         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
90108         declaration.
90110 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
90112         * lib/strptime.h (strptime): Use 'restrict' for args where
90113         POSIX requires this.
90114         * lib/strptime.c (strptime): Likewise.
90115         Change license notice from LGPL to GPL, since gnulib-tool will
90116         change this as needed.
90117         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
90118         defined.
90119         Include "strptime.h" first, to check interface.
90120         Do not #undef _LIBC and _NL_CURRENT.
90121         Do not include <stdlib.h>; no longer needed.
90122         Include "time_r.h" and declare ptime_locale_status
90123         only if _LIBC is not defined.
90124         (__P): Remove unused macro.
90125         (match_string): Bring back glibc version, but use it only if _LIBC
90126         is defined.
90127         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
90128         Remove unnecessary assertion and abort() call.
90129         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
90130         * m4/strptime.m4: Fix serial number comment.
90131         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
90132         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
90133         (Depends-on): Add time_r.
90135 2007-01-29  Bruno Haible  <bruno@clisp.org>
90137         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90138         strptime.
90139         * modules/strptime (Depends-on): Add stdbool.
90140         * lib/strptime.h: Include <time.h> always. Add comments.
90142 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90144         * modules/strptime: New file.
90145         * lib/strptime.h: New file.
90146         * lib/strptime.c: New file.
90147         * m4/strptime.m4: New file.
90149 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
90151         * MODULES.html.sh: New module mpsort.
90152         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
90154         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
90155         a circularity problem with HP-UX ia64 reported by Bob Proulx in
90156         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
90157         All uses changed.
90158         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
90159         All uses changed.
90160         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
90161         to _Restrict_.
90162         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
90163         the parameter matches the prototype.
90165 2007-01-28  Jim Meyering  <jim@meyering.net>
90167         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
90168         sys/time.h here, reverting that part of the previous patch:
90169         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
90171 2007-01-28  Bruno Haible  <bruno@clisp.org>
90173         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
90174         value of $(SYS_TIME_H).
90175         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
90176         remove it conditionally, too. [added by Jim Meyering]
90177         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
90178         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
90179         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
90180         GETTIMEOFDAY_REPLACEMENT to 1.
90182 2007-01-28  Bruno Haible  <bruno@clisp.org>
90184         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
90185         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
90186         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
90187         Set UNISTD_H instead of UNISTD_H2.
90188         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
90190 2007-01-28  Bruno Haible  <bruno@clisp.org>
90192         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
90193         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
90195 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90197         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
90198         (func_create_testdir): Ensure C locale for `grep' and `tr'
90199         character ranges.
90200         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
90201         ACLOCAL_AMFLAGS parsing state machine.
90203 2007-01-27  Bruno Haible  <bruno@clisp.org>
90205         * modules/unistr/base: Update.
90207 2007-01-27  Bruno Haible  <bruno@clisp.org>
90209         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
90210         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
90211         * modules/unistr/u32-mbtouc-unsafe: Renamed from
90212         modules/unistr/u32-mbtouc.
90213         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
90214         * lib/unistr.h: Update.
90215         * lib/linebreak.c: Update.
90216         * modules/unistr/u32-mbtouc: Renamed from
90217         modules/unistr/u32-mbtouc-safe.
90218         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
90219         * lib/unistr.h: Update.
90220         * lib/unistr/u32-to-u8.c: Update.
90221         * lib/unistr/u32-to-u16.c: Update.
90223 2007-01-27  Bruno Haible  <bruno@clisp.org>
90225         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
90226         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
90227         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
90228         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
90229         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
90230         * modules/unistr/u16-mbtouc-unsafe: Renamed from
90231         modules/unistr/u16-mbtouc.
90232         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
90233         * lib/unistr.h: Update.
90234         * lib/linebreak.c: Update.
90235         * modules/linebreak: Update.
90236         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
90237         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
90238         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
90239         * modules/unistr/u16-mbtouc: Renamed from
90240         modules/unistr/u16-mbtouc-safe.
90241         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
90242         * lib/unistr.h: Update.
90243         * lib/unistr/u16-to-u8.c: Update.
90244         * modules/unistr/u16-to-u8: Update.
90245         * lib/unistr/u16-to-u32.c: Update.
90246         * modules/unistr/u16-to-u32: Update.
90248 2007-01-27  Bruno Haible  <bruno@clisp.org>
90250         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
90251         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
90252         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
90253         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
90254         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
90255         * modules/unistr/u8-mbtouc-unsafe: Renamed from
90256         modules/unistr/u8-mbtouc.
90257         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
90258         * lib/unistr.h: Update.
90259         * lib/striconveh.c: Update.
90260         * modules/striconveh: Update.
90261         * lib/linebreak.c: Update.
90262         * modules/linebreak: Update.
90263         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
90264         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
90265         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
90266         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
90267         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
90268         * lib/unistr.h: Update.
90269         * lib/striconveh.c: Update.
90270         * modules/striconveh: Update.
90271         * lib/unistr/u8-to-u16.c: Update.
90272         * modules/unistr/u8-to-u16: Update.
90273         * lib/unistr/u8-to-u32.c: Update.
90274         * modules/unistr/u8-to-u32: Update.
90276 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90278         Sync from Libtool.
90279         * lib/argz.c: Do not include strings.h nor memory.h, include
90280         string.h unconditionally.  Patch by Simon Josefsson.
90282 2007-01-27  Bruno Haible  <bruno@clisp.org>
90284         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
90285         from gl_HEADER_STRING_H_BODY.
90286         (gl_HEADER_STRING_H_BODY): Require it.
90287         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
90288         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
90289         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
90290         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
90291         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
90292         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
90293         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
90294         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
90295         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
90296         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
90297         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
90298         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
90299         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
90300         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
90301         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
90303 2007-01-27  Bruno Haible  <bruno@clisp.org>
90305         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
90306         check_PROGRAMS into noinst_PROGRAMS.
90307         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
90308         check_PROGRAMS in this case.
90309         (func_import): Set for_test to false.
90310         (func_create_testdir): Set for_test to true.
90312 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90313             Bruno Haible  <bruno@clisp.org>
90315         * modules/strcasestr (Files): Remove lib/strcasestr.h.
90316         (Depends-on): Add string.
90317         (Includes): Use <string.h> instead of strcasestr.h.
90318         * modules/string (Makefile.am): Also substitute the value of
90319         REPLACE_STRCASESTR.
90320         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
90321         assume strcasestr is declared in <string.h> not <strings.h>. Also
90322         set REPLACE_STRCASESTR.
90323         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
90324         REPLACE_STRCASESTR.
90325         * lib/strcasestr.h: Remove file.
90326         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
90327         * lib/string_.h (strcasestr): New declaration.
90329 2007-01-27  Bruno Haible  <bruno@clisp.org>
90331         * lib/string_.h: Use 'extern'.
90333 2007-01-27  Jim Meyering  <jim@meyering.net>
90335         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
90336         of set-but-not-used local, "q".
90338         * lib/mempcpy.c: Include <config.h> before <string.h>.
90339         This fixes a compilation error on HP-UX, due to the system's
90340         "restrict"-using mempcpy prototype.
90342 2007-01-26  Bruno Haible  <bruno@clisp.org>
90344         Small optimization.
90345         * lib/javacomp.c: Include c-strstr.h.
90346          (is_envjavac_gcj): Use c_strstr instead of strstr.
90347         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
90349 2007-01-26  Bruno Haible  <bruno@clisp.org>
90351         * MODULES.html.sh (Unicode string functions): Add the new modules.
90353         * modules/uniconv/u32-strconv-to-locale: New file.
90354         * lib/uniconv/u32-strconv-to-locale.c: New file.
90356         * modules/uniconv/u16-strconv-to-locale: New file.
90357         * lib/uniconv/u16-strconv-to-locale.c: New file.
90359         * modules/uniconv/u8-strconv-to-locale: New file.
90360         * lib/uniconv/u8-strconv-to-locale.c: New file.
90362         * modules/uniconv/u32-strconv-from-locale: New file.
90363         * lib/uniconv/u32-strconv-from-locale.c: New file.
90365         * modules/uniconv/u16-strconv-from-locale: New file.
90366         * lib/uniconv/u16-strconv-from-locale.c: New file.
90368         * modules/uniconv/u8-strconv-from-locale: New file.
90369         * lib/uniconv/u8-strconv-from-locale.c: New file.
90371         * modules/uniconv/u32-strconv-to-enc: New file.
90372         * lib/uniconv/u32-strconv-to-enc.c: New file.
90373         * modules/uniconv/u32-strconv-to-enc-tests: New file.
90374         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
90376         * modules/uniconv/u16-strconv-to-enc: New file.
90377         * lib/uniconv/u16-strconv-to-enc.c: New file.
90378         * lib/uniconv/u-strconv-to-enc.h: New file.
90379         * modules/uniconv/u16-strconv-to-enc-tests: New file.
90380         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
90382         * modules/uniconv/u8-strconv-to-enc: New file.
90383         * lib/uniconv/u8-strconv-to-enc.c: New file.
90384         * modules/uniconv/u8-strconv-to-enc-tests: New file.
90385         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
90387         * modules/uniconv/u32-strconv-from-enc: New file.
90388         * lib/uniconv/u32-strconv-from-enc.c: New file.
90389         * modules/uniconv/u32-strconv-from-enc-tests: New file.
90390         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
90392         * modules/uniconv/u16-strconv-from-enc: New file.
90393         * lib/uniconv/u16-strconv-from-enc.c: New file.
90394         * modules/uniconv/u16-strconv-from-enc-tests: New file.
90395         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
90397         * modules/uniconv/u8-strconv-from-enc: New file.
90398         * lib/uniconv/u8-strconv-from-enc.c: New file.
90399         * lib/uniconv/u-strconv-from-enc.h: New file.
90400         * modules/uniconv/u8-strconv-from-enc-tests: New file.
90401         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
90403         * modules/uniconv/u32-conv-from-enc: New file.
90404         * lib/uniconv/u32-conv-from-enc.c: New file.
90405         * modules/uniconv/u32-conv-from-enc-tests: New file.
90406         * tests/uniconv/test-u32-conv-from-enc.c: New file.
90408         * modules/uniconv/u16-conv-from-enc: New file.
90409         * lib/uniconv/u16-conv-from-enc.c: New file.
90410         * lib/uniconv/u-conv-from-enc.h: New file.
90411         * modules/uniconv/u16-conv-from-enc-tests: New file.
90412         * tests/uniconv/test-u16-conv-from-enc.c: New file.
90414         * modules/uniconv/u8-conv-from-enc: New file.
90415         * lib/uniconv/u8-conv-from-enc.c: New file.
90416         * modules/uniconv/u8-conv-from-enc-tests: New file.
90417         * tests/uniconv/test-u8-conv-from-enc.c: New file.
90419         * modules/uniconv/base: New file.
90420         * lib/uniconv.h: New file.
90422 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
90424         * doc/gnulib-tool.texi (Initial import): Update to match current
90425         behavior with strdup module.
90426         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
90427         * lib/memmem.h: Remove; all uses removed.  This is now done
90428         by <string.h>.
90429         * lib/mempcpy.h: Likewise.
90430         * lib/memrchr.h: Likewise.
90431         * lib/stpcpy.h: Likewise.
90432         * lib/stpncpy.h: Likewise.
90433         * lib/strcase.h: Likewise.
90434         * lib/strchrnul.h: Likewise.
90435         * lib/strdup.h: Likewise.
90436         * lib/strndup.h: Likewise.
90437         * lib/strnlen.h: Likewise.
90438         * lib/strpbrk.h: Likewise.
90439         * lib/strsep.h: Likewise.
90440         * lib/strstr.h: Likewise.
90441         * lib/strtok_r.h: Likewise.
90442         * lib/string_.h: New file.
90443         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
90444         Rely on <string.h> instead.
90445         * lib/canon-host.c: Likewise.
90446         * lib/chdir-long.c: Likewise.
90447         * lib/concatpath.c: Likewise.
90448         * lib/exclude.c: Likewise.
90449         * lib/fchdir.c: Likewise.
90450         * lib/getaddrinfo.c: Likewise.
90451         * lib/getcwd.c: Likewise.
90452         * lib/getsubopt.c: Likewise.
90453         * lib/glob.c: Likewise.
90454         * lib/hard-locale.c: Likewise.
90455         * lib/iconvme.c: Likewise.
90456         * lib/javacomp.c: Likewise.
90457         * lib/mempcpy.c: Likewise.
90458         * lib/memrchr.c: Likewise.
90459         * lib/regex_internal.h: Likewise.
90460         * lib/stpncpy.c: Likewise.
90461         * lib/strcasecmp.c: Likewise.
90462         * lib/strchrnul.c: Likewise.
90463         * lib/strdup.c: Likewise.
90464         * lib/striconv.c: Likewise.
90465         * lib/striconveh.c: Likewise.
90466         * lib/striconveha.c: Likewise.
90467         * lib/strncasecmp.c: Likewise.
90468         * lib/strndup.c: Likewise.
90469         * lib/strnlen.c: Likewise.
90470         * lib/strsep.c: Likewise.
90471         * lib/strstr.c: Likewise.
90472         * lib/strtok_r.c: Likewise.
90473         * lib/userspec.c: Likewise.
90474         * lib/w32spawn.h: Likewise.
90475         * lib/xstrndup.c: Likewise.
90476         * lib/mountlist.c (strstr): Remove decl.
90477         * m4/string_h.m4: New file.
90478         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
90479         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
90480         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
90481         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
90482         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
90483         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
90484         Set REPLACE_STRCASECMP if necessary.
90485         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
90486         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
90487         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
90488         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
90489         HAVE_DECL_STRDUP if necessary.
90490         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
90491         since gl_FUNC_STRNDUP does that now.
90492         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
90493         Check for decl here...
90494         (gl_PREREQ_STRNLEN): ... not here.
90495         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
90496         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
90497         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
90498         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
90499         necessary.
90500         * modules/string: New file.
90501         * modules/memmem (Files): Remove special-purpose include file.
90502         (Depends-on): Add string.
90503         (Include): Include <string.h>, not the removed file.
90504         * modules/mempcpy: Likewise.
90505         * modules/memrchr: Likewise.
90506         * modules/stpcpy: Likewise.
90507         * modules/stpncpy: Likewise.
90508         * modules/strcase: Likewise.
90509         * modules/strchrnul: Likewise.
90510         * modules/strdup: Likewise.
90511         * modules/strndup: Likewise.
90512         * modules/strnlen: Likewise.
90513         * modules/strpbrk: Likewise.
90514         * modules/strsep: Likewise.
90515         * modules/strstr: Likewise.
90516         * modules/strtok_r: Likewise.
90517         * tests/test-dirname.c: Don't include "strdup.h", since
90518         <string.h> now suffices.
90519         * tests/test-memmem.c: Don't include "memmem.h", since
90520         <string.h> now suffices.
90522 2007-01-25  Bruno Haible  <bruno@clisp.org>
90524         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
90525         *resultp is 0.
90527         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
90528         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
90529         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
90530         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
90532         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
90533         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
90534         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
90535         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
90536         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
90537         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
90539 2007-01-24  Bruno Haible  <bruno@clisp.org>
90541         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
90542         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
90543         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
90544         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
90545         gl_FUNC_FTS_CORE.
90546         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
90547         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
90548         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
90549         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
90550         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
90551         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
90552         gl_FUNC_FCHOWNAT.
90553         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
90554         gl_FUNC_STRFTIME.
90555         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
90556         Reported by Ralf Wildenhues.
90558 2007-01-24  Bruno Haible  <bruno@clisp.org>
90560         Drop AC_REQUIRE calls that are redundant with the module dependencies.
90561         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
90562         gl_GETADDRINFO.
90563         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
90564         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
90565         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
90567 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
90569         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
90570         Don't use 'exit'; just return from 'main'.
90571         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
90573         * lib/fnmatch_.h: Readjust white space and comments to match
90574         glibc, to avoid spurious diffs.
90576 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
90578         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
90579         2004-12-01 change by Jakub Jelinek, since this code won't compile
90580         if !LIBC.  Problem reported by Bob Proulx.
90582 2007-01-23  Bruno Haible  <bruno@clisp.org>
90584         * lib/striconveh.c: Include c-strcaseeq.h.
90585         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
90586         * modules/striconveh (Depends-on): Add c-strcaseeq.
90588 2007-01-23  Bruno Haible  <bruno@clisp.org>
90590         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
90592         * modules/c-strcaseeq: New file.
90593         * lib/c-strcaseeq.h: New file.
90595         * modules/streq: New file.
90596         * lib/streq.h: New file.
90598 2007-01-23  Bruno Haible  <bruno@clisp.org>
90600         * modules/striconveha-tests: New file.
90601         * tests/test-striconveha.c: New file.
90603         * lib/striconveha.h: Include <stdbool.h>.
90604         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
90605         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
90606         (mem_iconveha_notranslit): Renamed from mem_iconveha.
90607         (mem_iconveha): New function.
90608         (str_iconveha_notranslit): Renamed from str_iconveha.
90609         (str_iconveha): New function.
90610         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
90611         c-strcase.
90613 2007-01-23  Bruno Haible  <bruno@clisp.org>
90615         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
90616         encodings without forgiving before trying any encoding with handler.
90617         (str_iconveha): Try all encodings without forgiving before trying any
90618         encoding with handler.
90620 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
90622         Import the following changes from libc.
90624         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
90626         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
90628         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
90630         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
90631         normal_bracket label.
90633         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
90635         [BZ #361]
90636         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
90637         to normal_bracket after fetching the next character.
90639 2007-01-22  Bruno Haible  <bruno@clisp.org>
90641         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
90642         argument.
90643         * lib/striconveh.c (iconv_carefully_1): New function.
90644         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
90645         argument.
90646         (str_cd_iconveh): Update.
90647         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
90648         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
90649         * tests/test-striconveh.c (MAGIC): New macro.
90650         (new_offsets): New function.
90651         (main): Test call with and without offsets.
90653 2007-01-22  Bruno Haible  <bruno@clisp.org>
90655         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
90656         * modules/sys_select (Makefile.am): Likewise.
90657         * modules/sys_socket (Makefile.am): Likewise.
90658         * modules/sys_time (Makefile.am): Likewise.
90660 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
90662         * modules/gettimeofday (License): Change from GPL to LGPL, since
90663         gettimeofday is a library function.
90665 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90667         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
90669 2007-01-21  Bruno Haible  <bruno@clisp.org>
90671         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
90673 2007-01-21  Bruno Haible  <bruno@clisp.org>
90675         * modules/striconveha: New file.
90676         * lib/striconveha.h: New file.
90677         * lib/striconveha.c: New file.
90678         * MODULES.html.sh (Internationalization functions): Add striconveha.
90679         * lib/striconv.c (str_iconv): Optimize the case of an empty input
90680         string.
90681         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
90683 2007-01-21  Bruno Haible  <bruno@clisp.org>
90685         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
90686         * lib/striconveh.c (str_iconveh): Likewise.
90688 2007-01-21  Bruno Haible  <bruno@clisp.org>
90690         * lib/striconveh.h (mem_iconveh): New declaration.
90691         * lib/striconveh.c (mem_iconveh): New function.
90692         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
90694 2007-01-21  Bruno Haible  <bruno@clisp.org>
90696         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
90698         * lib/striconveh.h (mem_cd_iconveh): Change specification.
90699         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
90700         original result buffer.
90701         (str_cd_iconveh): Update.
90702         * tests/test-striconveh.c (main): Update.
90704         * lib/striconv.h (mem_cd_iconv): Change specification.
90705         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
90706         result buffer.
90707         (str_cd_iconv): Update.
90708         * tests/test-striconv.c (main): Update.
90710 2007-01-21  Bruno Haible  <bruno@clisp.org>
90712         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
90714 2007-01-20  Jim Meyering  <jim@meyering.net>
90716         * lib/userspec.c (parse_with_separator): If a user or group string
90717         starts with "+", skip the corresponding name-to-ID look-up, since
90718         such a look-up must fail: user and group names may not include "+".
90720 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
90722         * lib/poll.c: Include sys/time.h and time.h unconditionally,
90723         since we now assume the sys_time module.
90724         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
90725         check for sys/time.h; no longer needed.
90726         * modules/poll (Depends-on): Depend on sys_time.
90728 2007-01-18  Bruno Haible  <bruno@clisp.org>
90730         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
90731         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
90733         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
90734         gettimeofday.
90736         * tests/test-gettimeofday.c: Include <time.h>.
90737         (dummy): Remove variable.
90739         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
90740         gl_HEADER_SYS_TIME_H.
90741         (gl_HEADER_SYS_TIME_H): New macro.
90743         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
90744         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
90745         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
90746         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
90747         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
90748         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
90749         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
90750         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
90751         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
90752         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
90753         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
90755         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
90756         last change; it caused a compilation error when cross-compiling to
90757         Cygwin.
90759 2007-01-18  Jim Meyering  <jim@meyering.net>
90761         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
90762         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
90763         than the race-prone "test -d sys || mkdir sys".
90764         (configure.ac): Use AC_PROG_MKDIR_P.
90765         * modules/sys_select: Likewise.
90766         * modules/sys_socket: Likewise.
90767         * modules/sys_time: Likewise.
90769 2007-01-18  Eric Blake  <ebb9@byu.net>
90771         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
90772         replace gettimeofday.
90773         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
90774         name, to avoid infinite recursion.
90776 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
90778         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
90779         module sys_time.
90780         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
90781         assume timespec.h defines struct timeval.
90782         * lib/settime.c: Likewise.
90783         * lib/utimens.c: Likewise.
90784         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
90785         since we now assume the gettimeofday module.
90786         * lib/tempname.c (__gen_tempname): Likewise.
90787         * lib/gettimeofday.h: Remove.
90788         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
90789         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
90790         Include <time.h>, for 'time()'.
90791         (localtime_buffer_addr): Also use this workaround if
90792         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
90793         to simplify the uses.  All uses changed.
90794         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
90795         that #undef is inside {}, and 'const' follows type name consistently.
90796         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
90797         (gettimeofday): Do not use the maximum possible value for
90798         tv->tv_usec, since that might break usages other than ls.c.
90799         Instead, we'll leave ls.c alone.  This undoes today's patch
90800         by Bruno.  Add a compile-time warning for 1s-clock resolution;
90801         we've never observed the problem but might as well keep the
90802         canary.
90803         * lib/nanosleep.c: Include timespec.h first, for interface check.
90804         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
90805         now assume the sys_time module.
90806         * lib/tempname.c: Likewise.
90807         * lib/timespec.h: Likewise.
90808         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
90809         needed.
90810         * lib/strftime.c: Likewise.
90811         * lib/timespec.h: Likewise.
90812         * lib/posixtm.c: Include posixtm.h first, for interface check.
90813         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
90814         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
90815         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
90816         * lib/sys_time_.h: New file.
90817         * lib/timespec.h (struct timespec): Use long int, not long.
90818         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
90819         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
90820         Remove obsolescent call to AC_HEADER_TIME.
90821         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
90822         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
90823         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
90824         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
90825         Likewise.
90826         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
90827         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
90828         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
90829         into the sys_time module.  Check for gettimeofday just once.
90830         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
90831         for gettimeofday signature to just check the signature.  Merely
90832         compile it, since linking doesn't test signature.  Improve test for
90833         whether gettimeofday.o is actually needed.
90834         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
90835         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
90836         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
90837         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
90838         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
90839         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
90840         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
90841         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
90842         than worrying about sys/time.h.
90843         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
90844         Don't bother worrying about TIME_WITH_SYS_TIME.
90845         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
90846         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
90847         * m4/sys_time_h.m4: New file.
90848         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
90849         Don't include sys/time.h.  Return from main rather than exiting.
90850         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
90851         all uses changed.
90852         * modules/gethrxtime (Depends-on): Add sys_time.
90853         * modules/gettime (Depends-on): Likewise.
90854         * modules/gettimeofday (Depends-on): Likewise.
90855         * modules/nanosleep (Depends-on): Likewise.
90856         * modules/settime (Depends-on): Likewise.
90857         * modules/tempname (Depends-on): Likewise.
90858         * modules/utimens (Depends-on): Likewise.
90859         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
90860         (Include): Change back to <sys/time.h>.
90861         (Maintainer): Add self.
90862         * modules/sys_time: New file.
90863         * modules/tempname (Depends-on): Add gettimeofday.
90864         * tests/test-gettimeofday.c: Include <sys/time.h>
90865         rather than gettimeofday.h.
90867 2007-01-17  Bruno Haible  <bruno@clisp.org>
90869         * gnulib-tool (func_get_license): Revert last patch. Instead, let
90870         the license default to GPL.
90871         (func_create_testdir): Don't complain if a module is LGPL and its
90872         tests module depends on GPLed modules.
90874 2007-01-17  Bruno Haible  <bruno@clisp.org>
90876         * lib/gettimeofday.c (gettimeofday): Add code for the case
90877         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
90878         maximum possible value for tv->tv_usec, rather than the minimum one.
90880 2005-10-08  Martin Lambers  <marlam@marlam.de>
90881 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
90882 2007-01-16  Bruno Haible  <bruno@clisp.org>
90884         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
90885         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
90886         gl_FUNC_GETTIMEOFDAY.
90887         (Include): Add gettimeofday.h.
90888         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
90889         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
90890         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
90891         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
90892         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
90893         * lib/gettimeofday.h: New file.
90894         * lib/gettimeofday.c: Include <sys/timeb.h>.
90895         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
90896         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
90897         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
90898         fall back on time().
90900         * tests/test-gettimeofday.c: New file.
90901         * modules/gettimeofday-tests: New file.
90903 2007-01-16  Eric Blake  <ebb9@byu.net>
90905         * modules/fnmatch (Depends-on): Depend on wchar.
90906         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
90907         * m4/fnmatch.m4: Likewise.
90908         * modules/mbchar (Makefile.am): Assume <wchar.h>.
90909         * m4/mbchar.m4: Likewise.
90910         * modules/mbswidth (Depends-on): Depend on wchar.
90911         * lib/mbswidth.c: Assume <wchar.h>.
90912         * m4/mbswidth.m4: Likewise.
90913         * modules/quotearg (Depends-on): Depend on wchar.
90914         * lib/quotearg.c: Assume <wchar.h>.
90915         * m4/quotearg.m4: Likewise.
90916         * modules/regex (Depends-on): Depend on wchar.
90917         * lib/regex_internal.h: Assume <wchar.h>.
90918         * m4/regex.m4: Likewise.
90919         * modules/stdint (Depends-on): Depend on wchar.
90920         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
90921         * m4/stdint.m4: Likewise.
90922         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
90923         * modules/strftime (Depends-on): Depend on wchar.
90924         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
90925         * modules/strtol (Depends-on): Depend on wchar.
90926         * lib/strtol.c: Assume <wchar.h>.
90927         * modules/wcwidth (Depends-on): Depend on wchar.
90928         * lib/wcwidth.h: Assume <wchar.h>.
90929         * m4/wcwidth.m4: Likewise.
90931 2007-01-16  Bruno Haible  <bruno@clisp.org>
90933         * modules/csharpexec-script: New, created from...
90934         * modules/csharpexec: ... this.
90936 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
90938         * modules/javaexec-script: New, created from...
90939         * modules/javaexec: ... this.
90941 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90943         * modules/poll (Dependencies): Add sys_select.
90945 2007-01-15  Jim Meyering  <jim@meyering.net>
90947         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
90948         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
90949         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
90950         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
90952 2007-01-15  Bruno Haible  <bruno@clisp.org>
90954         * modules/striconveh: New file.
90955         * lib/striconveh.h: New file.
90956         * lib/striconveh.c: New file.
90957         * MODULES.html.sh (Internationalization functions): Add striconveh.
90959         * modules/striconveh-tests: New file.
90960         * tests/test-striconveh.c: New file.
90962 2007-01-15  Bruno Haible  <bruno@clisp.org>
90964         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
90965         not from GNU libiconv or GNU libc.
90967 2007-01-15  Bruno Haible  <bruno@clisp.org>
90969         * doc/gnulib-intro.texi (Copyright): Explain the different license
90970         terms for module descriptions, autoconf macros, tests, documentation.
90972 2007-01-14  Bruno Haible  <bruno@clisp.org>
90974         * modules/striconv-tests: New file.
90975         * tests/test-striconv.c: New file.
90977 2007-01-14  Bruno Haible  <bruno@clisp.org>
90979         * modules/iconv-tests: New file.
90980         * tests/test-iconv.c: New file.
90982 2007-01-14  Bruno Haible  <bruno@clisp.org>
90984         * gnulib-tool (func_get_license): For test modules, use the license of
90985         the main module.
90987 2007-01-14  Bruno Haible  <bruno@clisp.org>
90989         * modules/iconv (Include): Clarify that <iconv.h> can only be included
90990         if iconv is found to exist.
90992 2007-01-14  Bruno Haible  <bruno@clisp.org>
90994         * modules/c-ctype-tests: New file.
90995         * tests/test-c-ctype.c: New file.
90997 2007-01-14  Bruno Haible  <bruno@clisp.org>
90999         * modules/binary-io-tests: New file.
91000         * tests/test-binary-io.sh: New file.
91001         * tests/test-binary-io.c: New file.
91003 2007-01-14  Bruno Haible  <bruno@clisp.org>
91005         * modules/array-oset-tests: New file.
91006         * tests/test-array_oset.c: New file.
91008 2007-01-14  Bruno Haible  <bruno@clisp.org>
91010         * modules/array-list-tests: New file.
91011         * tests/test-array_list.c: New file.
91013 2007-01-14  Bruno Haible  <bruno@clisp.org>
91015         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
91016         and make.
91017         Reported by Simon Josefsson in
91018         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
91020 2007-01-14  Bruno Haible  <bruno@clisp.org>
91022         * modules/allocsa-tests: New file.
91023         * tests/test-allocsa.c: New file.
91025 2007-01-14  Bruno Haible  <bruno@clisp.org>
91027         * modules/fchdir (Depends-on): Add absolute-header.
91028         * modules/unistd (Depends-on): Likewise.
91030 2006-12-30  Bruno Haible  <bruno@clisp.org>
91032         * modules/fchdir: New file.
91033         * modules/unistd (Files): Add lib/unistd_.h.
91034         (Makefile.am): Generate unistd.h from unistd_.h.
91035         * lib/fchdir.c: New file.
91036         * lib/dirent_.h: New file.
91037         * lib/unistd_.h: New file.
91038         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
91039         * m4/fchdir.m4: New file.
91040         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
91041         (gl_HEADER_UNISTD): Invoke it.
91042         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
91043         function.
91044         * lib/backupfile.c (opendir, closedir): Undefine.
91045         * lib/chown.c (open, close): Undefine.
91046         * lib/clean-temp.c (open, close): Undefine.
91047         * lib/copy-file.c (open, close): Undefine.
91048         * lib/execute.c (open, close): Undefine.
91049         * lib/fsusage.c (open, close): Undefine.
91050         * lib/gc-gnulib.c (open, close): Undefine.
91051         * lib/getcwd.c (opendir, closedir): Undefine.
91052         * lib/glob.c (opendir, closedir): Undefine.
91053         * lib/javacomp.c (open, close): Undefine.
91054         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
91055         * lib/openat-proc.c (open, close): Undefine.
91056         * lib/pagealign_alloc.c (open, close): Undefine.
91057         * lib/pipe.c (open, close): Undefine.
91058         * lib/progreloc.c (open, close): Undefine.
91059         * lib/savedir.c (opendir, closedir): Undefine.
91060         * lib/utime.c (open, close): Undefine.
91061         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
91063 2007-01-10  Bruno Haible  <bruno@clisp.org>
91065         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
91067 2007-01-12  Eric Blake  <ebb9@byu.net>
91069         Provide a robust <wchar.h>.  Further simplifications are now
91070         possible in other modules, but not included here.
91071         * modules/wchar: New module.
91072         * m4/wchar.m4: New file.
91073         * lib/wchar_.h: Likewise.
91074         * modules/mbchar (Depends-on): Depend on wchar, as the first use
91075         of the new module.
91076         * MODULES.html.sh (Extended multibyte and wide character utilities):
91077         New section.
91079 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
91081         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
91082         to a reasonable default for memory allocation.
91083         (xreadlink): Don't allocate a huge buffer, to work around a buggy
91084         file system that reports garbage st_size values for symlinks.
91085         Problem reported by Liyang Hu.
91087 2007-01-11  Simon Josefsson  <simon@josefsson.org>
91089         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
91090         Emacs .#* auto-save files).
91092 2007-01-11  Bruno Haible  <bruno@clisp.org>
91094         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
91095         directory.
91097 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
91099         Use @...@ consistently in lib/wctype_.h.
91100         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
91101         on it being set to 1 or 0.
91102         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
91103         go back to AC_SUBSTing it.
91104         * modules/wctype (Makefile.am): Undo previous change.
91106 2007-01-10  Eric Blake  <ebb9@byu.net>
91108         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
91109         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
91110         * modules/wctype (Makefile.am): Likewise.
91111         Reported by Chris McGuire.
91113 2007-01-10  Jim Meyering  <jim@meyering.net>
91115         fts.c: a small readability/maintainability improvement
91116         * lib/fts.c (fts_read): Make this code slightly more readable and
91117         maintainable by hoisting the "sp->fts_cur = p" assignments to
91118         immediately follow the statements that set P.  Derived from
91119         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
91121 2007-01-10  Eric Blake  <ebb9@byu.net>
91123         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
91124         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
91125         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
91126         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
91127         Reported by Chris McGuire.
91129 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91131         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
91132         in sed script.
91134 2007-01-09  Bruno Haible  <bruno@clisp.org>
91136         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
91137         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
91138         variables.
91139         (func_module): Use them.
91141 2007-01-09  Bruno Haible  <bruno@clisp.org>
91143         * modules/unistr/base: New file.
91144         * lib/unistr.h: New file.
91146         * modules/unistr/u8-to-u16: New file.
91147         * lib/unistr/u8-to-u16.c: New file.
91149         * modules/unistr/u8-to-u32: New file.
91150         * lib/unistr/u8-to-u32.c: New file.
91152         * modules/unistr/u16-to-u8: New file.
91153         * lib/unistr/u16-to-u8.c: New file.
91155         * modules/unistr/u16-to-u32: New file.
91156         * lib/unistr/u16-to-u32.c: New file.
91158         * modules/unistr/u32-to-u8: New file.
91159         * lib/unistr/u32-to-u8.c: New file.
91161         * modules/unistr/u32-to-u16: New file.
91162         * lib/unistr/u32-to-u16.c: New file.
91164         * modules/unistr/u8-check: New file.
91165         * modules/unistr/u16-check: New file.
91166         * modules/unistr/u32-check: New file.
91167         * lib/unistr/u8-check.c: New file.
91168         * lib/unistr/u16-check.c: New file.
91169         * lib/unistr/u32-check.c: New file.
91171         * modules/unistr/u8-chr: New file.
91172         * modules/unistr/u16-chr: New file.
91173         * modules/unistr/u32-chr: New file.
91174         * lib/unistr/u8-chr.c: New file.
91175         * lib/unistr/u16-chr.c: New file.
91176         * lib/unistr/u32-chr.c: New file.
91178         * modules/unistr/u8-cmp: New file.
91179         * modules/unistr/u16-cmp: New file.
91180         * modules/unistr/u32-cmp: New file.
91181         * lib/unistr/u8-cmp.c: New file.
91182         * lib/unistr/u16-cmp.c: New file.
91183         * lib/unistr/u32-cmp.c: New file.
91185         * modules/unistr/u8-cpy: New file.
91186         * modules/unistr/u16-cpy: New file.
91187         * modules/unistr/u32-cpy: New file.
91188         * lib/unistr/u8-cpy.c: New file.
91189         * lib/unistr/u16-cpy.c: New file.
91190         * lib/unistr/u32-cpy.c: New file.
91191         * lib/unistr/u-cpy.h: New file.
91193         * modules/unistr/u8-cpy-alloc: New file.
91194         * modules/unistr/u16-cpy-alloc: New file.
91195         * modules/unistr/u32-cpy-alloc: New file.
91196         * lib/unistr/u8-cpy-alloc.c: New file.
91197         * lib/unistr/u16-cpy-alloc.c: New file.
91198         * lib/unistr/u32-cpy-alloc.c: New file.
91199         * lib/unistr/u-cpy-alloc.h: New file.
91201         * modules/unistr/u8-endswith: New file.
91202         * modules/unistr/u16-endswith: New file.
91203         * modules/unistr/u32-endswith: New file.
91204         * lib/unistr/u8-endswith.c: New file.
91205         * lib/unistr/u16-endswith.c: New file.
91206         * lib/unistr/u32-endswith.c: New file.
91207         * lib/unistr/u-endswith.h: New file.
91209         * modules/unistr/u8-mblen: New file.
91210         * modules/unistr/u16-mblen: New file.
91211         * modules/unistr/u32-mblen: New file.
91212         * lib/unistr/u8-mblen.c: New file.
91213         * lib/unistr/u16-mblen.c: New file.
91214         * lib/unistr/u32-mblen.c: New file.
91216         * modules/unistr/u8-mbtouc: New file.
91217         * modules/unistr/u16-mbtouc: New file.
91218         * modules/unistr/u32-mbtouc: New file.
91219         * lib/unistr/u8-mbtouc.c: New file.
91220         * lib/unistr/u16-mbtouc.c: New file.
91221         * lib/unistr/u32-mbtouc.c: New file.
91223         * modules/unistr/u8-mbtouc-safe: New file.
91224         * modules/unistr/u16-mbtouc-safe: New file.
91225         * modules/unistr/u32-mbtouc-safe: New file.
91226         * lib/unistr/u8-mbtouc-safe.c: New file.
91227         * lib/unistr/u16-mbtouc-safe.c: New file.
91228         * lib/unistr/u32-mbtouc-safe.c: New file.
91230         * modules/unistr/u8-move: New file.
91231         * modules/unistr/u16-move: New file.
91232         * modules/unistr/u32-move: New file.
91233         * lib/unistr/u8-move.c: New file.
91234         * lib/unistr/u16-move.c: New file.
91235         * lib/unistr/u32-move.c: New file.
91236         * lib/unistr/u-move.h: New file.
91238         * modules/unistr/u8-next: New file.
91239         * modules/unistr/u16-next: New file.
91240         * modules/unistr/u32-next: New file.
91241         * lib/unistr/u8-next.c: New file.
91242         * lib/unistr/u16-next.c: New file.
91243         * lib/unistr/u32-next.c: New file.
91245         * modules/unistr/u8-prev: New file.
91246         * modules/unistr/u16-prev: New file.
91247         * modules/unistr/u32-prev: New file.
91248         * lib/unistr/u8-prev.c: New file.
91249         * lib/unistr/u16-prev.c: New file.
91250         * lib/unistr/u32-prev.c: New file.
91252         * modules/unistr/u8-set: New file.
91253         * modules/unistr/u16-set: New file.
91254         * modules/unistr/u32-set: New file.
91255         * lib/unistr/u8-set.c: New file.
91256         * lib/unistr/u16-set.c: New file.
91257         * lib/unistr/u32-set.c: New file.
91258         * lib/unistr/u-set.h: New file.
91260         * modules/unistr/u8-startswith: New file.
91261         * modules/unistr/u16-startswith: New file.
91262         * modules/unistr/u32-startswith: New file.
91263         * lib/unistr/u8-startswith.c: New file.
91264         * lib/unistr/u16-startswith.c: New file.
91265         * lib/unistr/u32-startswith.c: New file.
91266         * lib/unistr/u-startswith.h: New file.
91268         * modules/unistr/u8-stpcpy: New file.
91269         * modules/unistr/u16-stpcpy: New file.
91270         * modules/unistr/u32-stpcpy: New file.
91271         * lib/unistr/u8-stpcpy.c: New file.
91272         * lib/unistr/u16-stpcpy.c: New file.
91273         * lib/unistr/u32-stpcpy.c: New file.
91274         * lib/unistr/u-stpcpy.h: New file.
91276         * modules/unistr/u8-stpncpy: New file.
91277         * modules/unistr/u16-stpncpy: New file.
91278         * modules/unistr/u32-stpncpy: New file.
91279         * lib/unistr/u8-stpncpy.c: New file.
91280         * lib/unistr/u16-stpncpy.c: New file.
91281         * lib/unistr/u32-stpncpy.c: New file.
91282         * lib/unistr/u-stpncpy.h: New file.
91284         * modules/unistr/u8-strcat: New file.
91285         * modules/unistr/u16-strcat: New file.
91286         * modules/unistr/u32-strcat: New file.
91287         * lib/unistr/u8-strcat.c: New file.
91288         * lib/unistr/u16-strcat.c: New file.
91289         * lib/unistr/u32-strcat.c: New file.
91290         * lib/unistr/u-strcat.h: New file.
91292         * modules/unistr/u8-strchr: New file.
91293         * modules/unistr/u16-strchr: New file.
91294         * modules/unistr/u32-strchr: New file.
91295         * lib/unistr/u8-strchr.c: New file.
91296         * lib/unistr/u16-strchr.c: New file.
91297         * lib/unistr/u32-strchr.c: New file.
91299         * modules/unistr/u8-strcmp: New file.
91300         * modules/unistr/u16-strcmp: New file.
91301         * modules/unistr/u32-strcmp: New file.
91302         * lib/unistr/u8-strcmp.c: New file.
91303         * lib/unistr/u16-strcmp.c: New file.
91304         * lib/unistr/u32-strcmp.c: New file.
91306         * modules/unistr/u8-strcpy: New file.
91307         * modules/unistr/u16-strcpy: New file.
91308         * modules/unistr/u32-strcpy: New file.
91309         * lib/unistr/u8-strcpy.c: New file.
91310         * lib/unistr/u16-strcpy.c: New file.
91311         * lib/unistr/u32-strcpy.c: New file.
91312         * lib/unistr/u-strcpy.h: New file.
91314         * modules/unistr/u8-strcspn: New file.
91315         * modules/unistr/u16-strcspn: New file.
91316         * modules/unistr/u32-strcspn: New file.
91317         * lib/unistr/u8-strcspn.c: New file.
91318         * lib/unistr/u16-strcspn.c: New file.
91319         * lib/unistr/u32-strcspn.c: New file.
91320         * lib/unistr/u-strcspn.h: New file.
91322         * modules/unistr/u8-strdup: New file.
91323         * modules/unistr/u16-strdup: New file.
91324         * modules/unistr/u32-strdup: New file.
91325         * lib/unistr/u8-strdup.c: New file.
91326         * lib/unistr/u16-strdup.c: New file.
91327         * lib/unistr/u32-strdup.c: New file.
91328         * lib/unistr/u-strdup.h: New file.
91330         * modules/unistr/u8-strlen: New file.
91331         * modules/unistr/u16-strlen: New file.
91332         * modules/unistr/u32-strlen: New file.
91333         * lib/unistr/u8-strlen.c: New file.
91334         * lib/unistr/u16-strlen.c: New file.
91335         * lib/unistr/u32-strlen.c: New file.
91336         * lib/unistr/u-strlen.h: New file.
91338         * modules/unistr/u8-strmblen: New file.
91339         * modules/unistr/u16-strmblen: New file.
91340         * modules/unistr/u32-strmblen: New file.
91341         * lib/unistr/u8-strmblen.c: New file.
91342         * lib/unistr/u16-strmblen.c: New file.
91343         * lib/unistr/u32-strmblen.c: New file.
91345         * modules/unistr/u8-strmbtouc: New file.
91346         * modules/unistr/u16-strmbtouc: New file.
91347         * modules/unistr/u32-strmbtouc: New file.
91348         * lib/unistr/u8-strmbtouc.c: New file.
91349         * lib/unistr/u16-strmbtouc.c: New file.
91350         * lib/unistr/u32-strmbtouc.c: New file.
91352         * modules/unistr/u8-strncat: New file.
91353         * modules/unistr/u16-strncat: New file.
91354         * modules/unistr/u32-strncat: New file.
91355         * lib/unistr/u8-strncat.c: New file.
91356         * lib/unistr/u16-strncat.c: New file.
91357         * lib/unistr/u32-strncat.c: New file.
91358         * lib/unistr/u-strncat.h: New file.
91360         * modules/unistr/u8-strncmp: New file.
91361         * modules/unistr/u16-strncmp: New file.
91362         * modules/unistr/u32-strncmp: New file.
91363         * lib/unistr/u8-strncmp.c: New file.
91364         * lib/unistr/u16-strncmp.c: New file.
91365         * lib/unistr/u32-strncmp.c: New file.
91367         * modules/unistr/u8-strncpy: New file.
91368         * modules/unistr/u16-strncpy: New file.
91369         * modules/unistr/u32-strncpy: New file.
91370         * lib/unistr/u8-strncpy.c: New file.
91371         * lib/unistr/u16-strncpy.c: New file.
91372         * lib/unistr/u32-strncpy.c: New file.
91373         * lib/unistr/u-strncpy.h: New file.
91375         * modules/unistr/u8-strnlen: New file.
91376         * modules/unistr/u16-strnlen: New file.
91377         * modules/unistr/u32-strnlen: New file.
91378         * lib/unistr/u8-strnlen.c: New file.
91379         * lib/unistr/u16-strnlen.c: New file.
91380         * lib/unistr/u32-strnlen.c: New file.
91381         * lib/unistr/u-strnlen.h: New file.
91383         * modules/unistr/u8-strpbrk: New file.
91384         * modules/unistr/u16-strpbrk: New file.
91385         * modules/unistr/u32-strpbrk: New file.
91386         * lib/unistr/u8-strpbrk.c: New file.
91387         * lib/unistr/u16-strpbrk.c: New file.
91388         * lib/unistr/u32-strpbrk.c: New file.
91389         * lib/unistr/u-strpbrk.h: New file.
91391         * modules/unistr/u8-strrchr: New file.
91392         * modules/unistr/u16-strrchr: New file.
91393         * modules/unistr/u32-strrchr: New file.
91394         * lib/unistr/u8-strrchr.c: New file.
91395         * lib/unistr/u16-strrchr.c: New file.
91396         * lib/unistr/u32-strrchr.c: New file.
91398         * modules/unistr/u8-strspn: New file.
91399         * modules/unistr/u16-strspn: New file.
91400         * modules/unistr/u32-strspn: New file.
91401         * lib/unistr/u8-strspn.c: New file.
91402         * lib/unistr/u16-strspn.c: New file.
91403         * lib/unistr/u32-strspn.c: New file.
91404         * lib/unistr/u-strspn.h: New file.
91406         * modules/unistr/u8-strstr: New file.
91407         * modules/unistr/u16-strstr: New file.
91408         * modules/unistr/u32-strstr: New file.
91409         * lib/unistr/u8-strstr.c: New file.
91410         * lib/unistr/u16-strstr.c: New file.
91411         * lib/unistr/u32-strstr.c: New file.
91412         * lib/unistr/u-strstr.h: New file.
91414         * modules/unistr/u8-strtok: New file.
91415         * modules/unistr/u16-strtok: New file.
91416         * modules/unistr/u32-strtok: New file.
91417         * lib/unistr/u8-strtok.c: New file.
91418         * lib/unistr/u16-strtok.c: New file.
91419         * lib/unistr/u32-strtok.c: New file.
91420         * lib/unistr/u-strtok.h: New file.
91422         * modules/unistr/u8-uctomb: New file.
91423         * modules/unistr/u16-uctomb: New file.
91424         * modules/unistr/u32-uctomb: New file.
91425         * lib/unistr/u8-uctomb.c: New file.
91426         * lib/unistr/u16-uctomb.c: New file.
91427         * lib/unistr/u32-uctomb.c: New file.
91429         * MODULES.html.sh (Unicode string functions): Add the new modules.
91431 2007-01-08  Bruno Haible  <bruno@clisp.org>
91433         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
91434         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
91435         subdirectories.
91437 2007-01-08  Karl Berry  <karl@gnu.org>
91439         * doc/error.texi: mention that main() fns must set program_name
91440         when progname is used.
91442 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
91444         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
91445         WCTYPE_H is empty, for the benefit of builds from non-distclean
91446         directories.  Problem reported by Eric Blake in
91447         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
91449 2007-01-08  Bruno Haible  <bruno@clisp.org>
91451         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
91452         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
91453         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
91454         PROVIDE_CANONICALIZE_FILENAME_MODE.
91455         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
91457 2007-01-08  Bruno Haible  <bruno@clisp.org>
91459         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
91460         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
91461         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
91462         * lib/fts.c: Likewise.
91463         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
91465 2006-12-25  Bruno Haible  <bruno@clisp.org>
91467         * modules/utf8-ucs4-safe: New file.
91468         * lib/utf8-ucs4-safe.h: New file.
91469         * lib/unistr/utf8-ucs4-safe.c: New file.
91471         * modules/utf16-ucs4-safe: New file.
91472         * lib/utf16-ucs4-safe.h: New file.
91473         * lib/unistr/utf16-ucs4-safe.c: New file.
91475         * MODULES.html.sh (Unicode string functions): Add the new modules.
91477 2007-01-08  Bruno Haible  <bruno@clisp.org>
91479         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
91480         (Depends-on): Add unitypes.
91481         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
91482         (u8_mbtouc_aux): Move out to separate file.
91483         (u8_mbtouc): Use ucs4_t, uint8_t types.
91484         * lib/unistr/utf8-ucs4.c: New file.
91486         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
91487         (Depends-on): Add unitypes.
91488         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
91489         (u16_mbtouc_aux): Move out to separate file.
91490         (u16_mbtouc): Use ucs4_t, uint16_t types.
91491         * lib/unistr/utf16-ucs4.c: New file.
91493         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
91494         (Depends-on): Add unitypes.
91495         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
91496         (u8_uctomb_aux): Move out to separate file.
91497         (u8_uctomb): Use ucs4_t, uint8_t types.
91498         * lib/unistr/ucs4-utf8.c: New file.
91500         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
91501         (Depends-on): Add unitypes.
91502         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
91503         (u16_uctomb_aux): Move out to separate file.
91504         (u16_uctomb): Use ucs4_t, uint16_t types.
91505         * lib/unistr/ucs4-utf16.c: New file.
91507 2006-12-25  Bruno Haible  <bruno@clisp.org>
91509         * modules/unitypes: New file.
91510         * lib/unitypes.h: New file.
91511         * MODULES.html.sh (func_all_modules): New section "Unicode string
91512         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
91513         this section. Add unitypes.
91515 2007-01-08  Bruno Haible  <bruno@clisp.org>
91517         Avoid variable names that conflict with those from libtool.
91518         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
91519         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
91520         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
91521         library_names_spec to acl_library_names_spec, hardcode_* to
91522         acl_hardcode_*.
91523         Reported by Ralf Wildenhues.
91525 2007-01-08  Bruno Haible  <bruno@clisp.org>
91527         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
91528         definition.
91529         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
91530         definition.
91531         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
91532         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
91533         definition.
91534         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
91535         definition.
91536         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
91537         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
91538         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
91539         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
91540         definition.
91541         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
91542         definition.
91543         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
91544         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
91545         GC_USE_<algorithm>.
91546         * lib/gc-libgcrypt.c: Likewise.
91547         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
91548         * modules/gc-arctwo (configure.ac): Likewise.
91549         * modules/gc-des (configure.ac): Likewise.
91550         * modules/gc-hmac-md5 (configure.ac): Likewise.
91551         * modules/gc-hmac-sha1 (configure.ac): Likewise.
91552         * modules/gc-md2 (configure.ac): Likewise.
91553         * modules/gc-md4 (configure.ac): Likewise.
91554         * modules/gc-md5 (configure.ac): Likewise.
91555         * modules/gc-random (configure.ac): Likewise.
91556         * modules/gc-rijndael (configure.ac): Likewise.
91557         * modules/gc-sha1 (configure.ac): Likewise.
91559 2007-01-08  Bruno Haible  <bruno@clisp.org>
91561         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
91562         macro definition.
91563         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
91564         definition.
91565         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
91566         definition.
91567         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
91568         * modules/fcntl-safer (configure.ac): Likewise.
91569         * modules/fopen-safer (configure.ac): Likewise.
91570         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
91571         GNULIB_FWRITEERROR macro definition.
91573 2007-01-08  Bruno Haible  <bruno@clisp.org>
91575         * m4/gnulib-common.m4: New file.
91576         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
91577         (func_get_filelist): Add m4/gnulib-common.m4.
91579 2007-01-08  Bruno Haible  <bruno@clisp.org>
91581         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
91582         command.
91584 2007-01-08  Jim Meyering  <jim@meyering.net>
91586         Use a more robust test for a "can't happen" condition.
91587         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
91588         narrowed the st_size value.  Presuming the "can't happen" condition
91589         is true, that narrowing could conceivably convert an invalid st_size
91590         value into a valid one.  Instead, use a change based on Matthew
91591         Woehlke's original patch.
91593         Slight readability improvement: use an assert-like macro
91594         in place of literal "abort ()" uses.
91595         * lib/fts.c (fts_assert): Define.
91596         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
91597         Use this macro instead of a bare 'abort'.
91599 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
91601         Don't worry about using IRIX 5.3's wctype.h broken definitions;
91602         simply work around them.
91603         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
91604         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
91605         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
91606         declaring.
91607         Don't bother to define as macros, since the standard doesn't require it.
91608         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
91609         longer worry about IRIX 5.3.
91610         (HAVE_WCTYPE_CTMP_BUG): Remove.
91612 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
91614         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
91615         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
91616         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
91617         Problems reported by Georg Schwarz for IRIX 5.3.
91619         * gnulib-tool (autoconf_minversion): Take the maximum version number
91620         found, not the minimum.  Problem reported by James Youngman.
91622 2007-01-03  Karl Berry  <karl@gnu.org>
91624         * doc/error.texi: new file, explaining interaction with progname.
91625         * doc/gnulib.texi: include it.  Update copyright.
91627 2007-01-03  Simon Josefsson  <simon@josefsson.org>
91629         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
91630         AC_CANONICAL_HOST, to improve autobuild outputs.
91632 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
91633             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
91635         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
91636         sockets, server sockets, and other file descriptors.  Count errors
91637         to compute the return value.  Reorder the code a bit to be easier
91638         to follow.  Don't set event bits that were not requested (except
91639         POLLERR and POLLHUP).
91641 2007-01-01  Bruno Haible  <bruno@clisp.org>
91643         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
91645 2007-01-03  Jim Meyering  <jim@meyering.net>
91647         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
91649 2007-01-02  Bruno Haible  <bruno@clisp.org>
91651         * modules/settime (Include): Require timespec.h.
91652         * modules/nanosleep (Include): Likewise.
91654 2007-01-01  Bruno Haible  <bruno@clisp.org>
91656         * gnulib-tool (func_emit_copyright_notice): Bump year.
91657         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
91659 2007-01-01  Bruno Haible  <bruno@clisp.org>
91661         Improve support for OpenBSD.
91662         * build-aux/config.rpath (libname_spec): Export.
91663         (library_names_spec): New variable. Export.
91664         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
91665         library_names_spec from the config.rpath output. Locate shared library
91666         through the name pattern in library_names_spec.
91668 2007-01-01  Eric Blake  <ebb9@byu.net>
91670         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
91672 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
91674         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
91675         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
91676         assume the C locale, and avoid an "eval" that could cause trouble.
91677         Problem with SORT reported by Bob Proulx.
91679         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
91680         Define.  Trivial patch from Henning Nielsen Lund, originally
91681         sent to bug-grep@gnu.org today.
91683 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
91685         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
91686         struct stat.  Problem reported by Henning Nielsen Lund.
91687         * lib/acl.c: Include acl.h first, to check interface.  Don't
91688         bother to include sys/types.h and sys/stat.h again.
91690 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
91692         Import the following change from libc; problem reported by
91693         Sven Verdoolaege.
91695         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
91697         [BZ #1373]
91698         * lib/argp.h: Remove __NTH for __argp_usage inline function.
91700 2006-12-28  Jim Meyering  <jim@meyering.net>
91702         * build-aux/announce-gen: Do not assume that the package
91703         builds any of tar.gz, tar.bz2, and .xdelta files.
91704         Suggestion from Simon Josefsson.
91706 2006-12-28  Simon Josefsson  <simon@josefsson.org>
91708         * modules/announce-gen: New file.
91710 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
91712         * lib/mbchar.h: Just include <wctype.h>; the wctype module
91713         handles its gotchas now.
91714         * lib/mbswidth.c: Likewise.
91715         * lib/wcwidth.h: Likewise.
91716         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
91717         and iswcntrl; the wctype module does this stuff now.
91718         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
91719         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
91720         * modules/mbchar (Depends-on): Add wctype.
91721         * modules/mbswidth (Depends-on): Likewise.
91722         * modules/wcwidth (Depends-on): Likewise.
91724 2006-12-27  Eric Blake  <ebb9@byu.net>
91726         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
91727         module uses more than what <wctype.h> is required to provide.
91729 2006-12-26  Eric Blake  <ebb9@byu.net>
91731         * gnulib-tool (sed_extract_prog): Avoid space-tab.
91733 2006-12-26  Eric Blake  <ebb9@byu.net>
91735         * modules/absolute-header: New module.
91736         * modules/fcntl (Depends-on): Depend on it.
91737         * modules/inttypes (Depends-on): Likewise.
91738         * modules/stdint (Depends-on): Likewise.
91739         * modules/sys_stat (Depends-on): Likewise.
91740         * modules/wctype (Depends-on): Likewise.
91741         * MODULES.html.sh (Support for building libraries and
91742         executables): Document it.
91744 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
91746         * gnulib-tool (SED): Remove, undoing previous change.
91747         The problem was that it broke coreutils on Solaris, because
91748         "sed --posix" leaked into a makefile.
91749         (sed): New alias, if 'alias' and GNU sed.
91751 2006-12-24  Jim Meyering  <jim@meyering.net>
91753         Work around an fchownat bug in glibc-2.4:
91754         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
91755         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
91756         in spite of the -P option.
91757         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
91758         New macros.
91759         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
91760         * modules/openat (Files): Add lib/fchownat.c.
91761         * lib/openat.c (fchownat): Don't define here.  Move to...
91762         * lib/fchownat.c: ...this new file.
91764 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
91766         Fix bug reported by Bruno Haible in
91767         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
91768         where quotearg.c didn't compile on Mac OS X 10.2 because it
91769         lacks <wchar.h> and wint_t.
91770         * lib/wctype_.h (__wctype_wint_t): New type.
91771         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
91772         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
91773         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
91774         Arg is now of type __wctype_wint_t, not wint_t.
91775         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
91776         substitute HAVE_WINT_T.
91777         * modules/wctype (Files): Add m4/wint_t.m4.
91778         (wctype.h): Substitute HAVE_WINT_T.
91780 2006-12-23  Bruno Haible  <bruno@clisp.org>
91782         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
91784 2006-12-23  Bruno Haible  <bruno@clisp.org>
91786         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
91787         S_ISLNK.
91788         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
91789         mingw.
91791 2006-12-22  Bruno Haible  <bruno@clisp.org>
91793         * lib/copy-file.c: Include acl.h.
91794         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
91795         Close the file descriptors only after being done with copy_acl.
91796         * modules/copy-file (Depends-on): Add acl.
91798 2006-12-22  Bruno Haible  <bruno@clisp.org>
91800         * gnulib-tool (SED): New variable.
91801         Use $SED instead of sed everywhere.
91803 2006-12-22  Bruno Haible  <bruno@clisp.org>
91805         * modules/no-c++: New file.
91806         * m4/no-c++.m4: New file.
91807         * MODULES.html.sh (Support for building libraries and executables):
91808         Add no-c++.
91810 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
91812         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
91813         Include <limits.h>, and use its INT_MAX to rewrite the
91814         j loop so that it does not overflow 'int'.  Problem reported by
91815         Ralf Wildenhues in
91816         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
91817         Play it safe by shifting left by 1 rather than multiplying by 2,
91818         as GCC is less likely to optimize this away when the value
91819         is signed (when it assumes overflow leads to undefined behavior).
91820         Also, don't assume time_t uses two's complement.
91822 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
91824         * MODULES.html.sh: New module wctype.
91825         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
91826         * lib/fnmatch.c: Don't bother to include <wchar.h> before
91827         <wctype.h>, since the new wctype module should fix this.
91828         * lib/quotearg.c: Include <wctype.h> unconditionally, since
91829         the wctype module should arrange for it.
91830         * lib/regex_internal.h: Likewise.
91831         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
91832         since the wctype module should handle this now.
91833         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
91834         * modules/fnmatch (Depends-on): Add wctype.
91835         * modules/quotearg (Depends-on): Likewise.
91836         * modules/regex (Depends-on): Likewise.
91838 2006-12-19  Bruno Haible  <bruno@clisp.org>
91840         * lib/strdup.h [C++]: Wrap definitions in extern "C".
91841         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
91843 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91845         * modules/savewd (Depends-on): Fix dependency on fcntl.
91847 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
91849         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
91850         conforms to C99, rather than relying on the user's environment
91851         setting of STDINT_H.
91853 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
91854         and Eric Blake  <ebb9@byu.net>
91856         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
91857         This is more consistent with the other defines here.
91858         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
91859         Port to z/OS.  Problem reported by Paul Gilmartin.
91860         Change local vars to use gl_ prefix rather than ac_.
91861         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
91862         with other defines.
91863         * modules/double-slash-root: New module.
91864         * modules/dirname (Files): Remove m4/double-slash-root.m4.
91865         (Depends-on): Add double-slash-root.
91866         * MODULES.html.sh (File system functions): Mention new module.
91868 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
91870         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
91871         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
91872         This is for the benefit of gzip, which doesn't do i18n.
91874 2006-12-12  Jim Meyering  <jim@meyering.net>
91876         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
91877         Reported by Andreas Schwab <schwab@suse.de>.
91879 2006-12-12  Bruno Haible  <bruno@clisp.org>
91881         Merge these changes.
91882         2006-09-05  Bruno Haible  <bruno@clisp.org>
91883         * lib/iconvme.c (iconv_string): No need to save and restore errno when
91884         iconv_alloc succeeded.
91885         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
91886         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
91887         test for " && dest " at the end - dest is always != NULL there. Call
91888         iconv with 4xNULL arguments initially, to reset the state. Call iconv
91889         with 2xNULL arguments, also to flush the state storage. Handle the
91890         IRIX iconv behaviour. Realloc the final result, to throw away unused
91891         memory.
91893 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
91895         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
91896         and fchmodat unconditionally, since glibc 2.4 has them.
91897         Problem reported by Arkadiusz Miskiewicz.
91899 2006-12-10  Bruno Haible  <bruno@clisp.org>
91901         * gnulib-tool (func_import): Show the include files only for those
91902         modules that are copied and specified.
91903         Reported by Karl Berry.
91905 2006-12-08  Jim Meyering  <jim@meyering.net>
91907         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
91908         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
91910         * build-aux/announce-gen: Add two new options, both optional:
91911         --bootstrap-tools=TOOL_LIST
91912               a comma-separated list of tools, e.g.,
91913               autoconf,automake,bison,gnulib
91914         --gnulib-snapshot-date=DATE
91915               if gnulib is in the bootstrap tool list,
91916               then report this as the snapshot date.
91917               If not specified, use the current date/time.
91918               If you specify a date here, be sure it's UTC.
91920 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91922         * tests/test-argp-2.sh: Fix test to match actual output.
91923         (func_compare): Fix sed script to be portable.
91925 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
91927         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
91928         workaround for this case.  It is not autoconfigured now; offhand
91929         it's hard to see how to autoconfigure it.
91931 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
91933         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
91934         a directory that is about to be chowned.  Such a directory's
91935         initial file permissions should permit the owner only and this
91936         should not be changed until after the chown, since the group and
91937         other bits would be incorrect if they granted permission before
91938         the chown.
91940         Fix porting problem for iswctype reported by Georg Schwarz in:
91941         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
91942         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
91943         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
91944         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
91945         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
91947 2006-12-03  Jim Meyering  <jim@meyering.net>
91949         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
91950         p->fts_statp may not yet be defined.
91951         (fts_read): Instead, set it in the caller, once p->fts_statp is
91952         sure to be defined, and corresponds to a top-level directory.
91953         This bug made du -x fail.  Here's the coreutils test case:
91954         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
91955         Reported by Mike Frysinger.
91957 2006-12-01  Jim Meyering  <jim@meyering.net>
91959         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
91960         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
91961         Reported by Simon Josefsson.
91963 2006-11-30  Jim Meyering  <jim@meyering.net>
91965         * m4/warning.m4: Use the all-permissive copyright notice
91966         recommended by RMS (rather than LGPL).
91967         * m4/vararrays.m4: Likewise.
91968         * m4/flexmember.m4: Likewise.
91970 2006-11-29  Bruno Haible  <bruno@clisp.org>
91972         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
91973         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
91974         using +=.
91975         Reported by Simon Josefsson <simon@josefsson.org>.
91977 2006-11-28  James Youngman  <jay@gnu.org>
91979         * README: Advise users that they might find the bug-gnulib@gnu.org
91980         and autotools-announce@gnu.org mailing lists useful.
91982 2006-11-28  Bruno Haible  <bruno@clisp.org>
91984         * m4/ptrdiff_max.m4: Remove file.
91986 2006-11-21  Bruno Haible  <bruno@clisp.org>
91988         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
91989         _AC_COMPUTE_INT.
91990         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
91991         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
91992         _AC_COMPUTE_INT.
91993         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
91994         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
91995         _AC_COMPUTE_INT.
91996         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
91998 2006-11-28  Jim Meyering  <jim@meyering.net>
92000         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
92001         warning from "gcc -Wshadow" about shadowing the builtin.
92003 2006-11-27  Bruno Haible  <bruno@clisp.org>
92005         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
92006         _AC_COMPUTE_INT.
92007         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
92009 2006-11-27  Bruno Haible  <bruno@clisp.org>
92010             Paul Eggert  <eggert@cs.ucla.edu>
92012         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
92014 2006-11-26  Bruno Haible  <bruno@clisp.org>
92016         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
92017         noinst_LTLIBRARIES.
92019 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
92020             Bruno Haible  <bruno@clisp.org>
92022         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
92023         if compiling with "gcc -ansi".
92025 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
92027         Fix some incompatibilities with gcc -ansi -pedantic.
92028         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
92029         if compiling pedantically with GCC, unless it's C99 or later.
92030         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
92031         it mishandles gcc -ansi -pedantic as well.
92032         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
92033         if gcc -pedantic.
92034         * lib/regexec.c (check_node_accept_bytes): Don't use auto
92035         initializers for struct if -pedantic, unless it's C99 or later.
92037 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
92039         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
92040         Don't close an fd more than once. Identical atimes indicate
92041         success, not failure.
92043 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
92045         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
92047 2006-11-23  Jim Meyering  <jim@meyering.net>
92049         * build-aux/announce-gen: New file.  From coreutils.
92051 2006-11-22  Jim Meyering  <jim@meyering.net>
92053         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
92054         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
92055         (fts_read): Use a temporary to narrow the overused st_size member
92056         before using it in a switch statement.  Reported by Matthew Woehlke.
92058         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
92059         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
92061 2006-11-20  Bruno Haible  <bruno@clisp.org>
92063         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
92064         changequote instead of pairs of brackets.
92065         Reported by Andreas Schwab <schwab@suse.de>.
92067 2006-11-21  Jim Meyering  <jim@meyering.net>
92069         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
92070         so as to remain compatible with older compilers.
92071         Patch from Michael Deutschmann.
92073 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
92075         * MODULES.html.sh (File system functions): Add openat.
92077         * lib/openat.h (rpl_fstatat): New macro, if
92078         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
92079         (fstatat): Define to rpl_fstatat under the same conditions,
92080         unless COMPILING_FSTATAT.
92081         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
92082         seems to have the bug.
92083         * lib/fstatat.c: New file.
92084         * modules/openat (Files): Add it.
92086 2006-11-20  Bruno Haible  <bruno@clisp.org>
92088         * Makefile: New file.
92090 2006-11-20  Jim Meyering  <jim@meyering.net>
92092         The beginnings of syntax-related checks for gnulib.
92093         * lib/Makefile: New file.
92094         * lib/t-idcache: New script.  Ensure that the two halves of
92095         idcache.c stay in sync.
92097         * lib/idcache.c: Adjust comments in user- and group- portions to
92098         be more accurate, and to be consistent with one another.
92100 2006-11-20  Jim Meyering  <jim@meyering.net>
92102         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
92103         continue using the flexible array member (thus, this module performs
92104         half as many malloc calls), with the addition that...
92105         (getgroup, getuser): Consistently record a non-match via an empty
92106         "name" string, and map an empty string match to a NULL return value.
92107         * modules/idcache (Depends-on): Re-add flexmember.
92109         * lib/idcache.c (getuser): Remove all uses of the register keyword.
92110         (getuidbyname, getgroup, getgidbyname): Likewise.
92112         Use cleaner syntax: NULL rather than 0.
92113         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
92115 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
92117         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
92118         It mishandled the case where the group was missing.
92119         Problem reported by Greg Schafer.
92120         * modules/idcache: Likewise.
92122 2006-11-18  Jim Meyering  <jim@meyering.net>
92124         * check-module (%exempt_header): Add exception for some
92125         conditionally-included headers.
92127         * modules/i-ring (Depends-on): Add verify.
92128         (License): Change to LGPL.
92130 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
92132         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
92133         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
92134         and inttostr.h.  Use snprintf rather than uinttostr, so that
92135         LGPLed code doesn't depend on GPLed.
92137 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
92139         * modules/inline (License): Change from GPL to LGPL.
92141 2006-11-17  Jim Meyering  <jim@meyering.net>
92143         * modules/d-type (License): Switch to LGPL.
92145 2006-11-15  Bruno Haible  <bruno@clisp.org>
92147         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
92149 2006-11-15  Eric Blake  <ebb9@byu.net>
92151         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
92152         the module dependency.
92154 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92155             Bruno Haible  <bruno@clisp.org>
92157         * gnulib-tool (func_create_testdir): Add license consistency check.
92159 2006-11-15  Eric Blake  <ebb9@byu.net>
92161         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
92162         random "(cached)" in configure output.
92164 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92166         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
92167         test for conforming inttypes.h is both announced and cached.
92169         * MODULES.html.sh (seen_modules, seen_files): New variables.
92170         (func_module): Rewrite to use a few less gnulib-tool and sed
92171         invocations.  Avoid a couple of quadratic algorithms for ...
92172         (missed_modules, missed_files): ... these, with ...
92173         (func_append, func_tmpdir): ... these new functions, from
92174         gnulib-tool.  Analogously, install traps for cleanup.
92176         * tests/test-gc.c (main): Remove unused variables.
92177         * tests/test-read-file.c: Include stdlib.h, for 'free'.
92179 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
92181         * modules/inttostr (License): Change to LGPL.
92183 2006-11-14  Eric Blake  <ebb9@byu.net>
92185         * modules/tempname (License): Change to LGPL.
92187 2006-11-14  Eric Blake  <ebb9@byu.net>
92189         * doc/functions.texi (Function Portability): *printf functions on
92190         Cygwin now understand all POSIX size specifiers.
92192 2006-11-14  Bruno Haible  <bruno@clisp.org>
92194         * modules/c-ctype (License): Change to LGPL.
92196 2006-11-12  Bruno Haible  <bruno@clisp.org>
92198         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
92199         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
92200         for GNOME libraries, for which the include files are installed in
92201         subdirectories of $prefix/include.
92203 2006-11-12  Bruno Haible  <bruno@clisp.org>
92205         * m4/lib-link.m4: Require at least autoconf-2.54.
92206         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
92207         name to underscores for the --with option.
92209 2006-11-13  Bruno Haible  <bruno@clisp.org>
92211         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
92212         the tests directory.
92213         Reported by Ralf Wildenhues.
92215 2006-11-13  Bruno Haible  <bruno@clisp.org>
92217         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
92218         (func_emit_initmacro_end): Undo the override here.
92219         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
92220         Works around the famous automake error in coreutils.
92222 2006-11-13  Eric Blake  <ebb9@byu.net>
92224         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
92225         element, not its node.
92227 2006-11-12  Bruno Haible  <bruno@clisp.org>
92229         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
92230         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
92232 2006-11-12  Bruno Haible  <bruno@clisp.org>
92234         * gnulib-tool: New option --local-symlink.
92235         (func_usage): Document it.
92236         (lsymbolic): New variable.
92237         (func_import, func_create_testdir): If --symlink was not specified,
92238         test whether --local-symlink was specified and the file comes from
92239         the local_gnulib_dir.
92241 2006-11-12  Bruno Haible  <bruno@clisp.org>
92243         * gnulib-tool (func_ln): New function.
92244         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
92246 2006-11-12  Bruno Haible  <bruno@clisp.org>
92248         Finish support for source files in subdirectories.
92249         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
92250         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
92251         AUTOMAKE_OPTIONS.
92252         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
92254 2006-11-12  Bruno Haible  <bruno@clisp.org>
92256         * gnulib-tool (func_get_automake_snippet): Synthesize also an
92257         EXTRA_lib_SOURCES augmentation.
92258         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
92260 2006-11-12  Jim Meyering  <jim@meyering.net>
92262         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
92263         file descriptors.  This also averts a failure on systems with
92264         native openat support when a traversed directory lacks "x" access.
92265         * lib/fts_.h: Include "i-ring.h"
92266         (struct FTS) [fts_fd_ring]: New member.
92267         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
92268         (FCHDIR): Add parentheses.
92269         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
92270         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
92271         When descending, rather than simply closing the previous
92272         fts_cwd_fd value, push that file descriptor onto the ring.
92273         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
92274         (fts_open): Initialize the new fd_ring member.
92275         (fts_close): Clear the ring.
92276         (fts_safe_changedir): When possible, use our new fd_ring to skip
92277         the diropen and fstat and dev/ino comparison that would normally
92278         accompany a virtual `chdir ("..")'.
92280         * modules/fts (Depends-on): Add i-ring.
92281         * modules/i-ring: New module.
92282         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
92283         * m4/i-ring.m4: New file.
92285 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92287         * gnulib-tool (func_create_testdir): Fix replacement of
92288         `build-aux' in configure.ac.  Run autotools in gltests
92289         subdirectory.
92290         (func_create_testdir, func_create_megatestdir, test): There is
92291         no need for '--force' in most autotool invocations in a new
92292         tree.  Actually fail the whole test if any of the tools, or the
92293         configure or make stages fail.
92295         Sync from Automake.
92296         * build-aux/gnupload: Revert last change.  Add pointer to upload
92297         instructions of the GNU Maintenance Instructions.
92298         Suggestion by Karl Berry.
92300 2006-11-10  Jim Meyering  <jim@meyering.net>
92302         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
92304 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
92306         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
92307         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
92308         (bind_textdomain_codeset) [! ENABLE_NLS]:
92309         Evaluate all the arguments.  That way, callers get compatible behavior
92310         if the arguments have side effects.  Also, it avoids some GCC
92311         diagnostics in some cases; Joel E. Denny reported problems when Bison
92312         was configured with --enable-gcc-warnigs.
92314 2006-11-10  Jim Meyering  <jim@meyering.net>
92316         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
92317         relevant options in CFLAGS (like -O, -fno-inline) are taken into
92318         account.
92320 2006-11-10  Jim Meyering  <jim@meyering.net>
92322         * modules/inline: New file/module.
92323         * modules/xalloc (Files): Remove m4/inline.m4.
92324         (Depends-on): Add inline, instead.
92325         * modules/oset: Likewise.
92326         * modules/list: Likewise.
92328 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
92330         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
92331         Problem reported by Matthew Woehlke.
92333 2006-11-09  Bruno Haible  <bruno@clisp.org>
92335         * lib/tempname.c (gen_tempname): Remove variant that invokes
92336         __gen_tempname.
92337         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
92338         __gen_tempname.
92340 2006-11-08  Bruno Haible  <bruno@clisp.org>
92342         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
92343         to 'yes' instead of 'cross-compiling'.
92345 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
92347         * lib/quotearg.h (quotearg_free): New decl.
92348         * lib/quotearg.c (quotearg_free): New function.
92349         (slot0, nslots, slotvec0, slotvec):
92350         Now file-scope so that quotearg_free can get at them.
92352 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92354         Sync from Automake.
92355         * build-aux/gnupload: Add missing 'gnu' to example URL.
92356         Report by Karl Berry.
92358 2006-11-08  Bruno Haible  <bruno@clisp.org>
92360         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
92361         Suggested by Paul Eggert.
92363 2006-11-08  Jim Meyering  <jim@meyering.net>
92365         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
92366         It's already included if !_LIBC.
92367         (fts_safe_changedir): Add a comment.
92369 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
92371         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
92372         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
92373         Matthew Woehlke.
92375         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
92376         definitions up, to avoid colliding with change below.
92377         (static_inline) [HAVE_INLINE]: New macro.
92378         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
92379         Provide extern decls when !HAVE_INLINE.  Do not define unless
92380         static_inline is defined, either by us or by xmalloc.c.  Use
92381         static_inline rather than static inline.
92382         (XCALLOC): Optimize sizeof(T) = 1 case.
92383         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
92385 2006-11-07  Bruno Haible  <bruno@clisp.org>
92387         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
92388         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
92389         AC_C_INLINE.
92390         * modules/xalloc (Files): Add m4/inline.m4.
92392 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92394         * README: Fix typo.
92395         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
92396         (Miscellanous Notes): ...from this.
92398 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
92400         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
92401         Mention that offsetof should be used instead of sizeof.
92402         From Bruno Haible.
92404 2006-11-07  Bruno Haible  <bruno@clisp.org>
92406         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
92408 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
92410         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
92411         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
92412         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
92413         (gl_tree_add_before, gl_tree_add_after):
92414         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
92415         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
92416         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
92417         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
92418         (gl_linked_add_after, gl_linked_add_at): Likewise.
92419         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
92420         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
92421         (gl_tree_add_before, gl_tree_add_after): Likewise.
92422         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
92423         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
92424         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
92426 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92428         * lib/gl_oset.h: Use C comment style, not C++ comment style.
92430 2006-11-06  Bruno Haible  <bruno@clisp.org>
92432         * m4/inline.m4: New file.
92433         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
92434         * modules/list (Files): Add m4/inline.m4.
92435         * modules/oset (Files): Likewise.
92437 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
92439         * lib/idcache.c: Include <stddef.h>, for offsetof.
92440         (struct userid.name): Change from char * to a flexible array member.
92441         All uses changed.
92442         * modules/idcache (Depends-on): Add flexmember.
92444         * MODULES.html.sh (Core language properties): New module flexmember.
92445         * modules/flexmember, m4/flexmember.m4: New files.
92447         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
92448         inline functions that are identical with the old xnmalloc_inline,
92449         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
92450         that we can avoid some unnecessary integer multiplications and
92451         divisions in the common case where the element size is known at
92452         compile time.
92453         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
92454         needed.
92455         (xnboundedmalloc): Remove.
92456         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
92457         arguments, for consistency with rest of this header.
92458         (xcharalloc): Rewrite using XNMALLOC.
92459         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
92460         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
92461         versions have been moved to lib/xalloc.h and renamed to be the
92462         non-*_inline versions.
92463         (xmalloc, xrealloc): Implement without reference to the xnmalloc
92464         and xnrealloc functions, since those functions are now inline and
92465         now call us.
92466         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
92467         renaming described above.
92468         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
92469         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
92470         captures the dependency in AC_C_INLINE.
92472         New module canonicalize-lgpl, proposed by Charles Wilson in
92473         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
92474         with a few small changes afterwards.
92475         * MODULES.html.sh (File system functions): New module
92476         canonicalize-lgpl.
92477         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
92478         and canonicalize_file_name.
92479         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
92480         * modules/canonicalize-lgpl: New files.
92482 2006-11-05  Bruno Haible  <bruno@clisp.org>
92484         * gnulib-tool (func_import, func_create_testdir): Create directories
92485         also for files in subdirectories of lib/.
92487 2006-11-05  Bruno Haible  <bruno@clisp.org>
92489         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
92490         ANSI C compliant.
92492 2006-11-03  Bruno Haible  <bruno@clisp.org>
92494         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
92495         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
92496         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
92497         (xnboundedmalloc): New inline function.
92498         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
92499         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
92500         xmalloc.
92501         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
92502         xmalloc.
92503         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
92504         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
92505         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
92506         xmalloc.
92507         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
92508         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
92509         xmalloc.
92510         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
92511         gl_tree_add_after): Use XMALLOC instead of xmalloc.
92512         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
92513         xmalloc.
92514         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
92515         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
92516         gl_tree_add_after): Use XMALLOC instead of xmalloc.
92517         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
92518         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
92519         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
92520         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
92522 2006-11-03  Bruno Haible  <bruno@clisp.org>
92524         * lib/c-ctype.h [C++]: Define functions without name mangling.
92525         * lib/fwriteerror.h [C++]: Likewise.
92526         * lib/gcd.h [C++]: Likewise.
92527         * lib/linebreak.h [C++]: Likewise.
92529 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
92531         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
92532         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
92533         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
92534         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
92535         Check for functions and headers just once.
92536         Check for declaration of canonicalize_file_name.
92537         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
92539 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
92541         * gnulib-tool (func_import): Fix typo in actioncmd.
92543 2006-11-02  Bruno Haible  <bruno@clisp.org>
92545         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
92546         newline sequence in the Makefile.am snippet as a space, like "make"
92547         does.
92548         Reported by Roger Persson <perrog@gmail.com>.
92550 2006-11-01  Bruno Haible  <bruno@clisp.org>
92552         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
92553         already declared in <string.h>.
92554         * lib/strcase.h (strncasecmp): Don't declare it if yes.
92556 2006-11-01  Bruno Haible  <bruno@clisp.org>
92558         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
92559         * lib/strcase.h: Include <string.h>.
92560         (strcasecmp): Define to rpl_strcasecmp here.
92562 2006-11-01  Bruno Haible  <bruno@clisp.org>
92564         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
92566 2006-11-01  Eric Blake  <ebb9@byu.net>
92568         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
92570         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
92572 2006-10-29  Bruno Haible  <bruno@clisp.org>
92574         Make it compile in C++ mode.
92575         * lib/full-write.c (full_rw): Add a cast.
92577 2006-11-01  Bruno Haible  <bruno@clisp.org>
92579         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
92580         be POSIX compliant.
92581         Reported by Roger Persson <perrog@gmail.com>.
92583 2006-11-01  Eric Blake  <ebb9@byu.net>
92585         * lib/getopt_.h: Fix comments.
92587 2006-10-31  Eric Blake  <ebb9@byu.net>
92589         * modules/tmpdir (Depends-on): Add sys_stat.
92590         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
92591         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
92592         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
92593         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
92594         tempname.
92596 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
92598         Avoid some C++ diagnostics reported by Bruno Haible.
92599         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
92600         xmalloc.
92601         (quotearg_alloc): Use xcharalloc rather than xmalloc.
92602         (struct slotvec): Move to top level.
92603         (quotearg_n_options): Rewrite to avoid xmalloc.
92604         * lib/xalloc.h (xcharalloc): New function.
92605         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
92606         [defined __cplusplus]: Add function template that provides result
92607         type propagation.  This part of the change is from Bruno Haible.
92609 2006-10-29  Bruno Haible  <bruno@clisp.org>
92611         Make it compile in C++ mode.
92612         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
92613         * lib/strnlen1.c (strnlen1): Cast memchr result.
92614         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
92615         * lib/clean-temp.c (string_equals, string_hash): Add casts.
92616         (create_temp_dir): Rename local variable 'template'.
92617         (compile_csharp_using_sscli): Add cast.
92618         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
92619         * lib/findprog.c (find_in_path): Likewise.
92620         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
92621         * lib/wait-process.c (register_slave_subprocess): Likewise.
92623 2006-10-22  Bruno Haible  <bruno@clisp.org>
92625         * modules/tsearch: New file.
92626         * lib/tsearch.h: New file.
92627         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
92628         * m4/tsearch.m4: New file.
92629         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
92631 2006-10-29  Eric Blake  <ebb9@byu.net>
92633         * lib/arcfour.c: Assume config.h.
92634         * lib/arctwo.c: Likewise.
92635         * lib/base64.c: Likewise.
92636         * lib/check-version.c: Likewise.
92637         * lib/crc.c: Likewise.
92638         * lib/des.c: Likewise.
92639         * lib/gc-gnulib.c: Likewise.
92640         * lib/gc-libgcrypt.c: Likewise.
92641         * lib/gc-pbkdf2-sha1.c: Likewise.
92642         * lib/getaddrinfo.c: Likewise.
92643         * lib/getdelim.c: Likewise.
92644         * lib/getline.c: Likewise.
92645         * lib/hmac-md5.c: Likewise.
92646         * lib/hmac-sha1.c: Likewise.
92647         * lib/iconvme.c: Likewise.
92648         * lib/md2.c: Likewise.
92649         * lib/md4.c: Likewise.
92650         * lib/memxor.c: Likewise.
92651         * lib/read-file.c: Likewise.
92652         * lib/readline.c: Likewise.
92653         * lib/rijndael-alg-fst.c: Likewise.
92654         * lib/rijndael-api-fst.c: Likewise.
92655         * lib/xgetdomainname.c: Likewise.
92657 2006-10-28  Eric Blake  <ebb9@byu.net>
92659         * lib/xstrndup.c: Assume config.h.
92661 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
92663         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
92664         stat-macros.h is now for our own macros, whereas stat_h is for
92665         macros in the <sys/stat.h> name space.
92666         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
92667         (STAT_MACROS_H): Remove.
92668         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
92669         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
92670         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
92671         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
92672         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
92673         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
92674         Move these macros to ...
92675         * lib/stat_.h: here.  Don't include stat-macros.h.
92676         * lib/canonicalize.c: Don't include stat-macros.h.
92677         * lib/chown.c: Likewise.
92678         * lib/euidaccess.c: Likewise.
92679         * lib/file-type.c: Likewise.
92680         * lib/filemode.c: Likewise.
92681         * lib/glob.c: Likewise.
92682         * lib/isapipe.c: Likewise.
92683         * lib/lchown.c: Likewise.
92684         * lib/lstat.c: Likewise.
92685         * lib/mkdir-p.c: Likewise.
92686         * lib/rmdir.c: Likewise.
92687         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
92688         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
92689         unless mkdir isn't declared, to speed up 'configure'.
92690         Always create sys/stat.h, since it's unlikely any real sys/stat.h
92691         would define all the S_* symbols.
92692         * modules/canonicalize (Depends-on):
92693         Depend on sys_stat, not stat-macros.
92694         * modules/chown: Likewise.
92695         * modules/euidaccess: Likewise.
92696         * modules/filemode: Likewise.
92697         * modules/file-type: Likewise.
92698         * modules/glob: Likewise.
92699         * modules/isapipe: Likewise.
92700         * modules/lchown: Likewise.
92701         * modules/lstat: Likewise.
92702         * modules/mkancesdirs: Likewise.
92703         * modules/rmdir: Likewise.
92704         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
92705         * modules/modechange: Likewise.
92706         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
92707         (configure.ac): Remove gl_STAT_MACROS.
92708         * modules/sys_stat (Depends-on): Remove stat-macros.
92710 2006-10-27  Bruno Haible  <bruno@clisp.org>
92712         * m4/signed.m4: Remove file.
92713         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
92714         invocation.
92715         * modules/vasnprintf (Files): Remove m4/signed.m4.
92717 2006-10-27  Bruno Haible  <bruno@clisp.org>
92719         Update to GNU gettext 0.16.
92720         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
92721         m4/inttypes-h.m4, m4/signed.m4.
92722         * m4/gettext.m4: Update to GNU gettext 0.16.
92723         * m4/intl.m4: New file, from GNU gettext.
92724         * m4/intldir.m4: New file, from GNU gettext.
92725         * config/srclist.txt: Update
92727 2006-10-27  Eric Blake  <ebb9@byu.net>
92729         * MODULES.html.sh: Document tempname.
92730         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
92731         dependencies.
92732         (Files): Move lib/tempname.c...
92733         * modules/tempname: ...to this new module.
92734         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
92735         (gl_PREREQ_TEMPNAME): Move...
92736         * m4/tempname.m4: ...to this new file.
92737         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
92738         * modules/sys_stat (Depends-on): Add stat-macros.
92739         * lib/stat_.h (includes): Pick up stat macros.
92740         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
92741         if stat macros are broken.
92742         * lib/tempname.c (includes): No need to include "stat-macros.h".
92743         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
92744         (direxists, __path_search) [!_LIBC]: Don't compile these in
92745         gnulib; the tmpdir module covers that.
92746         * lib/tempname.h: New file.
92748 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
92750         * COPYING: Explain how gnulib-tool converts licence headers.
92751         Almost all wording by Eric Blake.
92753 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
92755         * lib/mbchar.h (is_basic_table): Make read-only.
92756         * lib/mbchar.c (is_basic_table): Likewise.
92757         Reported by John Darrington.
92759 2006-10-25  Bruno Haible  <bruno@clisp.org>
92761         * lib/progname.h (set_program_name): Undefine before defining.
92763 2006-10-25  Bruno Haible  <bruno@clisp.org>
92765         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
92766         false for non-gcc C++ compilers.
92767         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
92769 2006-10-24  Bruno Haible  <bruno@clisp.org>
92771         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
92772         iconv implementations like Irix iconv.
92774 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
92776         * modules/vararrays: New file.
92777         * m4/vararrays.m4: New file, taken from diffutils.
92778         * MODULES.html.sh: New module vararrays.
92780 2006-10-24  Karl Berry  <karl@gnu.org>
92782         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
92783         Don't call GNU Unix.
92785 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92787         * users.txt: Add Libtool.
92789         Sync from Libtool:
92791         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
92793         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
92794         to gnulib's policy of including config.h unconditionally.
92796 2006-10-24  Bruno Haible  <bruno@clisp.org>
92798         * modules/wcwidth (Files): Add m4/wint_t.m4.
92799         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
92800         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
92802 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
92804         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
92805         to pacify GCC with some -W flags enabled.  Problem reported by
92806         Bruno Haible.
92808 2006-10-24  Jim Meyering  <jim@meyering.net>
92810         * MODULES.html.sh: Remove uinttostr.  It's not a module.
92811         Reported by Karl Berry.
92813 2006-10-23  Bruno Haible  <bruno@clisp.org>
92815         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
92817 2006-10-24  Bruno Haible  <bruno@clisp.org>
92819         * lib/gl_list.h: Use C comment style, not C++ comment style.
92821 2006-10-23  Eric Blake  <ebb9@byu.net>
92823         * lib/getaddrinfo.c (includes): Add missing include.
92825 2006-10-23  Bruno Haible  <bruno@clisp.org>
92826             Paul Eggert  <eggert@cs.ucla.edu>
92828         Ability to rename obstack_free.
92829         * lib/obstack.h (__obstack_free): New macro. Declare instead of
92830         obstack_free.
92831         (obstack_free): Invoke the __obstack_free macro.
92832         * lib/obstack.c (obstack_free): Use __obstack_free macro.
92834 2006-10-23  Bruno Haible  <bruno@clisp.org>
92835             Paul Eggert  <eggert@cs.ucla.edu>
92837         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
92838         __argc, __argv from the declaration. (They are defined as macros on
92839         mingw.)
92841 2006-10-22  Bruno Haible  <bruno@clisp.org>
92843         * doc/gnulib-intro.texi: New file.
92844         * doc/gnulib.texi: Include it.
92846 2006-10-21  Bruno Haible  <bruno@clisp.org>
92848         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
92849         "Introduction", "Miscellanous Notes", "Particular Modules".
92851 2006-10-21  Bruno Haible  <bruno@clisp.org>
92853         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
92854         Change mostlyclean-local rule to avoid sh syntax error from bash
92855         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
92857 2006-10-23  Jim Meyering  <jim@meyering.net>
92859         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
92860         in place of snprintf.
92862         * modules/inttostr (Files): Add lib/uinttostr.c.
92863         * lib/uinttostr.c (inttostr): New file/function.
92864         * lib/inttostr.h (uinttostr): Declare.
92865         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
92866         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
92867         Add uinttostr.
92868         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
92870 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
92872         * lib/canonicalize.c (ELOOP): Define if not already defined.
92873         Problem reported by Bruno Haible in
92874         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
92876 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
92878         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
92879         Problem reported by Perry Smith and Ville Laurikari.
92881         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
92882         uses.
92884 2006-10-19  Bruno Haible  <bruno@clisp.org>
92886         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
92887         for mingw.
92889 2006-10-19  Bruno Haible  <bruno@clisp.org>
92891         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
92892         Needed for mingw.
92894 2006-10-19  Bruno Haible  <bruno@clisp.org>
92896         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
92898 2006-10-19  Bruno Haible  <bruno@clisp.org>
92900         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
92901         it.
92903 2006-10-19  Bruno Haible  <bruno@clisp.org>
92905         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
92906         invocation.
92908 2006-10-19  Bruno Haible  <bruno@clisp.org>
92910         * gnulib-tool (func_create_testdir): Don't include ftruncate and
92911         mountlist by default.
92913 2006-10-16  Bruno Haible  <bruno@clisp.org>
92915         * lib/c-strstr.c: Include c-strstr.h.
92917 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
92919         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
92920         in a slash.
92922 2006-10-18  Bruno Haible  <bruno@clisp.org>
92924         * lib/lock.h [C++]: Wrap definitions in extern "C".
92926 2006-10-18  Bruno Haible  <bruno@clisp.org>
92928         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
92929         gl_LIBOBJS list.
92931 2006-10-18  Bruno Haible  <bruno@clisp.org>
92933         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
92935 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
92937         * lib/xstrtol.h: Include gettext.h.
92938         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
92939         Problem reported by Eric Blake.
92940         * modules/xstrtol (Depends-on): Add gettext-h.
92942 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
92944         * lib/strftime.c (advance): New macro.
92945         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
92946         incomplete type, so you can't add 0 to it.  Problem and patch
92947         reported by Eelco Dolstra for dietlibc.
92949 2006-10-18  Jim Meyering  <jim@meyering.net>
92951         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
92952         type for a local, and rename it: s/up/user_proc/.
92954 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
92956         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
92957         READ_UTMP_USER_PROCESS.
92958         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
92960 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
92962         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
92963         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
92965 2006-10-17  Eric Blake  <ebb9@byu.net>
92967         * lib/sigprocmask.c (sigprocmask): Fix typo.
92969         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
92971         * modules/clean-temp (Makefile.am): Don't add to make output...
92972         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
92973         config.h.
92975 2006-10-17  Bruno Haible  <bruno@clisp.org>
92977         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
92978         differently if DEFAULT_TEXT_DOMAIN is set.
92980 2006-10-16  Bruno Haible  <bruno@clisp.org>
92982         * lib/clean-temp.c: Include fwriteerror.h.
92984 2006-10-16  Bruno Haible  <bruno@clisp.org>
92986         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
92988 2006-10-16  Bruno Haible  <bruno@clisp.org>
92990         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
92991         * lib/sigprocmask.h: Include <sys/types.h>.
92992         (sigset_t): Use the system's definition if present.
92994 2006-10-17  Eric Blake  <ebb9@byu.net>
92996         * lib/xvasprintf.c (includes): Assume config.h.
92997         * lib/xasprintf.c (includes): Likewise.
92999 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
93001         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
93002         at least as wide as intmax_t.
93004 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
93006         (Imported from Automake.)
93007         * build-aux/gnupload: Update to version 1.1 of directive file.
93009 2006-10-16  Eric Blake  <ebb9@byu.net>
93011         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
93012         match Automake 1.10a.
93014 2006-10-14  Bruno Haible  <bruno@clisp.org>
93016         * modules/sigprocmask: New file.
93017         * lib/sigprocmask.h: New file.
93018         * lib/sigprocmask.c: New file.
93019         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
93020         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
93021         request sigprocmask.o.
93022         (gl_PREREQ_SIGPROCMASK): New macro.
93023         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
93024         (Depends-on): Add sigprocmask.
93025         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
93026         gt_SIGNALBLOCKING. Test for 'raise' only once.
93027         * lib/fatal-signal.c: Include sigprocmask.h.
93028         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
93029         unblock_fatal_signals): Define always.
93030         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
93031         sigprocmask.
93033 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
93035         Sync from Automake.
93036         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
93037         which incorrectly sets the mode of an existing destination
93038         directory.  In some cases the unpatched install-sh could do the
93039         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
93040         system.  We hope this is rare in practice, but it's clearly worth
93041         fixing.  Problem reported by Alex Unleashed in
93042         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
93043         Also, don't bother to check for -m bugs unless we're using -m;
93044         suggested by Stepan Kasal.
93046 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93048         Sync from Automake.
93049         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
93050         `-c' flag, so they appear at the same position as in %FASTDEP%
93051         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
93052         which ignores unknown options only after the first non-option.
93053         Bug report against M4 by Nelson H. F. Beebe.
93055 2006-10-13  Jim Meyering  <jim@meyering.net>
93057         Fix a bug in yesterday's change.
93058         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
93059         p->fts_statp->st_dev would be used uninitialized.
93060         Ensures that we always call fts_stat on the very first entry.
93061         Miklos Szeredi reported that find -xdev stopped working.
93063 2006-10-12  Bruno Haible  <bruno@clisp.org>
93065         * gnulib-tool (func_get_automake_snippet): Append an automatically
93066         computed EXTRA_DIST augmentation.
93067         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
93068         * modules/alloca-opt (Makefile.am): Likewise.
93069         * modules/allocsa (Makefile.am): Likewise.
93070         * modules/arcfour (Makefile.am): Likewise.
93071         * modules/arctwo (Makefile.am): Likewise.
93072         * modules/argmatch (Makefile.am): Likewise.
93073         * modules/argz (Makefile.am): Likewise.
93074         * modules/atexit (Makefile.am): Likewise.
93075         * modules/backupfile (Makefile.am): Likewise.
93076         * modules/byteswap (Makefile.am): Likewise.
93077         * modules/c-strtod (Makefile.am): Likewise.
93078         * modules/c-strtold (Makefile.am): Likewise.
93079         * modules/calloc (Makefile.am): Likewise.
93080         * modules/canon-host (Makefile.am): Likewise.
93081         * modules/canonicalize (Makefile.am): Likewise.
93082         * modules/chdir-long (Makefile.am): Likewise.
93083         * modules/chdir-safer (Makefile.am): Likewise.
93084         * modules/check-version (Makefile.am): Likewise.
93085         * modules/chown (Makefile.am): Likewise.
93086         * modules/cloexec (Makefile.am): Likewise.
93087         * modules/close-stream (Makefile.am): Likewise.
93088         * modules/closeout (Makefile.am): Likewise.
93089         * modules/crc (Makefile.am): Likewise.
93090         * modules/csharpexec (Makefile.am): Likewise.
93091         * modules/cycle-check (Makefile.am): Likewise.
93092         * modules/des (Makefile.am): Likewise.
93093         * modules/dev-ino (Makefile.am): Likewise.
93094         * modules/dirfd (Makefile.am): Likewise.
93095         * modules/dirname (Makefile.am): Likewise.
93096         * modules/dup2 (Makefile.am): Likewise.
93097         * modules/eealloc (Makefile.am): Likewise.
93098         * modules/error (Makefile.am): Likewise.
93099         * modules/euidaccess (Makefile.am): Likewise.
93100         * modules/exclude (Makefile.am): Likewise.
93101         * modules/exitfail (Makefile.am): Likewise.
93102         * modules/fcntl-safer (Makefile.am): Likewise.
93103         * modules/fcntl (Makefile.am): Likewise.
93104         * modules/file-type (Makefile.am): Likewise.
93105         * modules/fileblocks (Makefile.am): Likewise.
93106         * modules/filemode (Makefile.am): Likewise.
93107         * modules/filenamecat (Makefile.am): Likewise.
93108         * modules/fnmatch (Makefile.am): Likewise.
93109         * modules/fopen-safer (Makefile.am): Likewise.
93110         * modules/fpending (Makefile.am): Likewise.
93111         * modules/fprintftime (Makefile.am): Likewise.
93112         * modules/free (Makefile.am): Likewise.
93113         * modules/fsusage (Makefile.am): Likewise.
93114         * modules/ftruncate (Makefile.am): Likewise.
93115         * modules/fts (Makefile.am): Likewise.
93116         * modules/gc-arcfour (Makefile.am): Likewise.
93117         * modules/gc-des (Makefile.am): Likewise.
93118         * modules/gc-hmac-md5 (Makefile.am): Likewise.
93119         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
93120         * modules/gc-md4 (Makefile.am): Likewise.
93121         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
93122         * modules/gc-sha1 (Makefile.am): Likewise.
93123         * modules/gc (Makefile.am): Likewise.
93124         * modules/getaddrinfo (Makefile.am): Likewise.
93125         * modules/getcwd (Makefile.am): Likewise.
93126         * modules/getdelim (Makefile.am): Likewise.
93127         * modules/getdomainname (Makefile.am): Likewise.
93128         * modules/getgroups (Makefile.am): Likewise.
93129         * modules/gethostname (Makefile.am): Likewise.
93130         * modules/gethrxtime (Makefile.am): Likewise.
93131         * modules/getline (Makefile.am): Likewise.
93132         * modules/getloadavg (Makefile.am): Likewise.
93133         * modules/getlogin_r (Makefile.am): Likewise.
93134         * modules/getndelim2 (Makefile.am): Likewise.
93135         * modules/getopt (Makefile.am): Likewise.
93136         * modules/getpagesize (Makefile.am): Likewise.
93137         * modules/getpass-gnu (Makefile.am): Likewise.
93138         * modules/getpass (Makefile.am): Likewise.
93139         * modules/getsubopt (Makefile.am): Likewise.
93140         * modules/gettime (Makefile.am): Likewise.
93141         * modules/gettimeofday (Makefile.am): Likewise.
93142         * modules/getugroups (Makefile.am): Likewise.
93143         * modules/getusershell (Makefile.am): Likewise.
93144         * modules/glob (Makefile.am): Likewise.
93145         * modules/group-member (Makefile.am): Likewise.
93146         * modules/hard-locale (Makefile.am): Likewise.
93147         * modules/hash (Makefile.am): Likewise.
93148         * modules/hmac-md5 (Makefile.am): Likewise.
93149         * modules/hmac-sha1 (Makefile.am): Likewise.
93150         * modules/human (Makefile.am): Likewise.
93151         * modules/idcache (Makefile.am): Likewise.
93152         * modules/imaxabs (Makefile.am): Likewise.
93153         * modules/imaxdiv (Makefile.am): Likewise.
93154         * modules/inet_ntop (Makefile.am): Likewise.
93155         * modules/inet_pton (Makefile.am): Likewise.
93156         * modules/intprops (Makefile.am): Likewise.
93157         * modules/inttostr (Makefile.am): Likewise.
93158         * modules/inttypes (Makefile.am): Likewise.
93159         * modules/isapipe (Makefile.am): Likewise.
93160         * modules/javaversion (Makefile.am): Likewise.
93161         * modules/lchmod (Makefile.am): Likewise.
93162         * modules/lchown (Makefile.am): Likewise.
93163         * modules/localcharset (Makefile.am): Likewise.
93164         * modules/long-options (Makefile.am): Likewise.
93165         * modules/lstat (Makefile.am): Likewise.
93166         * modules/malloc (Makefile.am): Likewise.
93167         * modules/mathl (Makefile.am): Likewise.
93168         * modules/mbchar (Makefile.am): Likewise.
93169         * modules/md2 (Makefile.am): Likewise.
93170         * modules/md4 (Makefile.am): Likewise.
93171         * modules/md5 (Makefile.am): Likewise.
93172         * modules/memcasecmp (Makefile.am): Likewise.
93173         * modules/memchr (Makefile.am): Likewise.
93174         * modules/memcmp (Makefile.am): Likewise.
93175         * modules/memcoll (Makefile.am): Likewise.
93176         * modules/memcpy (Makefile.am): Likewise.
93177         * modules/memmem (Makefile.am): Likewise.
93178         * modules/memmove (Makefile.am): Likewise.
93179         * modules/mempcpy (Makefile.am): Likewise.
93180         * modules/memrchr (Makefile.am): Likewise.
93181         * modules/memset (Makefile.am): Likewise.
93182         * modules/memxor (Makefile.am): Likewise.
93183         * modules/mkancesdirs (Makefile.am): Likewise.
93184         * modules/mkdir-p (Makefile.am): Likewise.
93185         * modules/mkdir (Makefile.am): Likewise.
93186         * modules/mkdtemp (Makefile.am): Likewise.
93187         * modules/mkstemp (Makefile.am): Likewise.
93188         * modules/mktime (Makefile.am): Likewise.
93189         * modules/modechange (Makefile.am): Likewise.
93190         * modules/mountlist (Makefile.am): Likewise.
93191         * modules/nanosleep (Makefile.am): Likewise.
93192         * modules/obstack (Makefile.am): Likewise.
93193         * modules/openat (Makefile.am): Likewise.
93194         * modules/pagealign_alloc (Makefile.am): Likewise.
93195         * modules/pathmax (Makefile.am): Likewise.
93196         * modules/physmem (Makefile.am): Likewise.
93197         * modules/poll (Makefile.am): Likewise.
93198         * modules/posixtm (Makefile.am): Likewise.
93199         * modules/posixver (Makefile.am): Likewise.
93200         * modules/putenv (Makefile.am): Likewise.
93201         * modules/quote (Makefile.am): Likewise.
93202         * modules/quotearg (Makefile.am): Likewise.
93203         * modules/raise (Makefile.am): Likewise.
93204         * modules/read-file (Makefile.am): Likewise.
93205         * modules/readline (Makefile.am): Likewise.
93206         * modules/readlink (Makefile.am): Likewise.
93207         * modules/readtokens (Makefile.am): Likewise.
93208         * modules/readutmp (Makefile.am): Likewise.
93209         * modules/realloc (Makefile.am): Likewise.
93210         * modules/regex (Makefile.am): Likewise.
93211         * modules/rename-dest-slash (Makefile.am): Likewise.
93212         * modules/rename (Makefile.am): Likewise.
93213         * modules/rijndael (Makefile.am): Likewise.
93214         * modules/rmdir (Makefile.am): Likewise.
93215         * modules/rpmatch (Makefile.am): Likewise.
93216         * modules/safe-read (Makefile.am): Likewise.
93217         * modules/safe-write (Makefile.am): Likewise.
93218         * modules/same-inode (Makefile.am): Likewise.
93219         * modules/same (Makefile.am): Likewise.
93220         * modules/save-cwd (Makefile.am): Likewise.
93221         * modules/savedir (Makefile.am): Likewise.
93222         * modules/setenv (Makefile.am): Likewise.
93223         * modules/settime (Makefile.am): Likewise.
93224         * modules/sha1 (Makefile.am): Likewise.
93225         * modules/sig2str (Makefile.am): Likewise.
93226         * modules/snprintf (Makefile.am): Likewise.
93227         * modules/stat-macros (Makefile.am): Likewise.
93228         * modules/stat-time (Makefile.am): Likewise.
93229         * modules/stdbool (Makefile.am): Likewise.
93230         * modules/stdint (Makefile.am): Likewise.
93231         * modules/stdlib-safer (Makefile.am): Likewise.
93232         * modules/stpcpy (Makefile.am): Likewise.
93233         * modules/stpncpy (Makefile.am): Likewise.
93234         * modules/strcase (Makefile.am): Likewise.
93235         * modules/strcasestr (Makefile.am): Likewise.
93236         * modules/strchrnul (Makefile.am): Likewise.
93237         * modules/strcspn (Makefile.am): Likewise.
93238         * modules/strdup (Makefile.am): Likewise.
93239         * modules/strerror (Makefile.am): Likewise.
93240         * modules/strftime (Makefile.am): Likewise.
93241         * modules/strndup (Makefile.am): Likewise.
93242         * modules/strnlen (Makefile.am): Likewise.
93243         * modules/strpbrk (Makefile.am): Likewise.
93244         * modules/strsep (Makefile.am): Likewise.
93245         * modules/strstr (Makefile.am): Likewise.
93246         * modules/strtod (Makefile.am): Likewise.
93247         * modules/strtoimax (Makefile.am): Likewise.
93248         * modules/strtok_r (Makefile.am): Likewise.
93249         * modules/strtol (Makefile.am): Likewise.
93250         * modules/strtoll (Makefile.am): Likewise.
93251         * modules/strtoul (Makefile.am): Likewise.
93252         * modules/strtoull (Makefile.am): Likewise.
93253         * modules/strtoumax (Makefile.am): Likewise.
93254         * modules/strverscmp (Makefile.am): Likewise.
93255         * modules/sys_socket (Makefile.am): Likewise.
93256         * modules/sys_stat (Makefile.am): Likewise.
93257         * modules/sysexits (Makefile.am): Likewise.
93258         * modules/time_r (Makefile.am): Likewise.
93259         * modules/timegm (Makefile.am): Likewise.
93260         * modules/timespec (Makefile.am): Likewise.
93261         * modules/tmpfile-safer (Makefile.am): Likewise.
93262         * modules/trim (Makefile.am): Likewise.
93263         * modules/unistd-safer (Makefile.am): Likewise.
93264         * modules/unlinkdir (Makefile.am): Likewise.
93265         * modules/unlocked-io (Makefile.am): Likewise.
93266         * modules/userspec (Makefile.am): Likewise.
93267         * modules/utime (Makefile.am): Likewise.
93268         * modules/utimecmp (Makefile.am): Likewise.
93269         * modules/utimens (Makefile.am): Likewise.
93270         * modules/vasnprintf (Makefile.am): Likewise.
93271         * modules/vasprintf (Makefile.am): Likewise.
93272         * modules/vsnprintf (Makefile.am): Likewise.
93273         * modules/xalloc (Makefile.am): Likewise.
93274         * modules/xgetcwd (Makefile.am): Likewise.
93275         * modules/xnanosleep (Makefile.am): Likewise.
93276         * modules/xreadlink (Makefile.am): Likewise.
93277         * modules/xstrtod (Makefile.am): Likewise.
93278         * modules/xstrtol (Makefile.am): Likewise.
93279         * modules/xstrtold (Makefile.am): Likewise.
93280         * modules/yesno (Makefile.am): Likewise.
93281         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
93283 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
93285         * modules/error (Makefile.am): Distribute files through
93286         EXTRA_DIST, not lib_SOURCES.
93288 2006-10-12  Eric Blake  <ebb9@byu.net>
93290         * modules/error (Makefile.am): Distribute files in /lib.
93291         * modules/obstack (Makefile.am): Likewise.
93293 2006-10-12  Bruno Haible  <bruno@clisp.org>
93295         * modules/acl (Makefile.am): Distribute all files in lib/ through
93296         EXTRA_DIST.
93297         * modules/arcfour (Makefile.am): Likewise.
93298         * modules/arctwo (Makefile.am): Likewise.
93299         * modules/argmatch (Makefile.am): Likewise.
93300         * modules/argz (Makefile.am): Likewise.
93301         * modules/atexit (Makefile.am): Likewise.
93302         * modules/backupfile (Makefile.am): Likewise.
93303         * modules/c-strtod (Makefile.am): Likewise.
93304         * modules/c-strtold (Makefile.am): Likewise.
93305         * modules/calloc (Makefile.am): Likewise.
93306         * modules/canon-host (Makefile.am): Likewise.
93307         * modules/canonicalize (Makefile.am): Likewise.
93308         * modules/chdir-long (Makefile.am): Likewise.
93309         * modules/chdir-safer (Makefile.am): Likewise.
93310         * modules/check-version (Makefile.am): Likewise.
93311         * modules/chown (Makefile.am): Likewise.
93312         * modules/cloexec (Makefile.am): Likewise.
93313         * modules/close-stream (Makefile.am): Likewise.
93314         * modules/closeout (Makefile.am): Likewise.
93315         * modules/crc (Makefile.am): Likewise.
93316         * modules/cycle-check (Makefile.am): Likewise.
93317         * modules/des (Makefile.am): Likewise.
93318         * modules/dirfd (Makefile.am): Likewise.
93319         * modules/dirname (Makefile.am): Likewise.
93320         * modules/dup2 (Makefile.am): Likewise.
93321         * modules/euidaccess (Makefile.am): Likewise.
93322         * modules/exclude (Makefile.am): Likewise.
93323         * modules/exitfail (Makefile.am): Likewise.
93324         * modules/fcntl-safer (Makefile.am): Likewise.
93325         * modules/file-type (Makefile.am): Likewise.
93326         * modules/fileblocks (Makefile.am): Likewise.
93327         * modules/filemode (Makefile.am): Likewise.
93328         * modules/filenamecat (Makefile.am): Likewise.
93329         * modules/fnmatch (Makefile.am): Likewise.
93330         * modules/fopen-safer (Makefile.am): Likewise.
93331         * modules/fpending (Makefile.am): Likewise.
93332         * modules/fprintftime (Makefile.am): Likewise.
93333         * modules/free (Makefile.am): Likewise.
93334         * modules/fsusage (Makefile.am): Likewise.
93335         * modules/ftruncate (Makefile.am): Likewise.
93336         * modules/fts (Makefile.am): Likewise.
93337         * modules/gc (Makefile.am): Likewise.
93338         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
93339         * modules/getaddrinfo (Makefile.am): Likewise.
93340         * modules/getcwd (Makefile.am): Likewise.
93341         * modules/getdelim (Makefile.am): Likewise.
93342         * modules/getdomainname (Makefile.am): Likewise.
93343         * modules/getgroups (Makefile.am): Likewise.
93344         * modules/gethostname (Makefile.am): Likewise.
93345         * modules/gethrxtime (Makefile.am): Likewise.
93346         * modules/getline (Makefile.am): Likewise.
93347         * modules/getloadavg (Makefile.am): Likewise.
93348         * modules/getlogin_r (Makefile.am): Likewise.
93349         * modules/getopt (Makefile.am): Likewise.
93350         * modules/getpass (Makefile.am): Likewise.
93351         * modules/getpass-gnu (Makefile.am): Likewise.
93352         * modules/getsubopt (Makefile.am): Likewise.
93353         * modules/gettime (Makefile.am): Likewise.
93354         * modules/gettimeofday (Makefile.am): Likewise.
93355         * modules/getugroups (Makefile.am): Likewise.
93356         * modules/getusershell (Makefile.am): Likewise.
93357         * modules/glob (Makefile.am): Likewise.
93358         * modules/group-member (Makefile.am): Likewise.
93359         * modules/hard-locale (Makefile.am): Likewise.
93360         * modules/hash (Makefile.am): Likewise.
93361         * modules/hmac-md5 (Makefile.am): Likewise.
93362         * modules/hmac-sha1 (Makefile.am): Likewise.
93363         * modules/human (Makefile.am): Likewise.
93364         * modules/idcache (Makefile.am): Likewise.
93365         * modules/imaxabs (Makefile.am): Likewise.
93366         * modules/imaxdiv (Makefile.am): Likewise.
93367         * modules/inet_ntop (Makefile.am): Likewise.
93368         * modules/inet_pton (Makefile.am): Likewise.
93369         * modules/inttostr (Makefile.am): Likewise.
93370         * modules/isapipe (Makefile.am): Likewise.
93371         * modules/lchown (Makefile.am): Likewise.
93372         * modules/long-options (Makefile.am): Likewise.
93373         * modules/lstat (Makefile.am): Likewise.
93374         * modules/malloc (Makefile.am): Likewise.
93375         * modules/mathl (Makefile.am): Likewise.
93376         * modules/mbchar (Makefile.am): Likewise.
93377         * modules/md2 (Makefile.am): Likewise.
93378         * modules/md4 (Makefile.am): Likewise.
93379         * modules/md5 (Makefile.am): Likewise.
93380         * modules/memcasecmp (Makefile.am): Likewise.
93381         * modules/memchr (Makefile.am): Likewise.
93382         * modules/memcmp (Makefile.am): Likewise.
93383         * modules/memcoll (Makefile.am): Likewise.
93384         * modules/memcpy (Makefile.am): Likewise.
93385         * modules/memmem (Makefile.am): Likewise.
93386         * modules/memmove (Makefile.am): Likewise.
93387         * modules/mempcpy (Makefile.am): Likewise.
93388         * modules/memrchr (Makefile.am): Likewise.
93389         * modules/memset (Makefile.am): Likewise.
93390         * modules/memxor (Makefile.am): Likewise.
93391         * modules/mkancesdirs (Makefile.am): Likewise.
93392         * modules/mkdir (Makefile.am): Likewise.
93393         * modules/mkdir-p (Makefile.am): Likewise.
93394         * modules/mkdtemp (Makefile.am): Likewise.
93395         * modules/mkstemp (Makefile.am): Likewise.
93396         * modules/mktime (Makefile.am): Likewise.
93397         * modules/modechange (Makefile.am): Likewise.
93398         * modules/mountlist (Makefile.am): Likewise.
93399         * modules/nanosleep (Makefile.am): Likewise.
93400         * modules/openat (Makefile.am): Likewise.
93401         * modules/pagealign_alloc (Makefile.am): Likewise.
93402         * modules/physmem (Makefile.am): Likewise.
93403         * modules/poll (Makefile.am): Likewise.
93404         * modules/posixtm (Makefile.am): Likewise.
93405         * modules/posixver (Makefile.am): Likewise.
93406         * modules/putenv (Makefile.am): Likewise.
93407         * modules/quote (Makefile.am): Likewise.
93408         * modules/quotearg (Makefile.am): Likewise.
93409         * modules/raise (Makefile.am): Likewise.
93410         * modules/read-file (Makefile.am): Likewise.
93411         * modules/readline (Makefile.am): Likewise.
93412         * modules/readlink (Makefile.am): Likewise.
93413         * modules/readtokens (Makefile.am): Likewise.
93414         * modules/readutmp (Makefile.am): Likewise.
93415         * modules/realloc (Makefile.am): Likewise.
93416         * modules/regex (Makefile.am): Likewise.
93417         * modules/rename (Makefile.am): Likewise.
93418         * modules/rename-dest-slash (Makefile.am): Likewise.
93419         * modules/rijndael (Makefile.am): Likewise.
93420         * modules/rmdir (Makefile.am): Likewise.
93421         * modules/rpmatch (Makefile.am): Likewise.
93422         * modules/safe-read (Makefile.am): Likewise.
93423         * modules/safe-write (Makefile.am): Likewise.
93424         * modules/same (Makefile.am): Likewise.
93425         * modules/save-cwd (Makefile.am): Likewise.
93426         * modules/savedir (Makefile.am): Likewise.
93427         * modules/setenv (Makefile.am): Likewise.
93428         * modules/settime (Makefile.am): Likewise.
93429         * modules/sha1 (Makefile.am): Likewise.
93430         * modules/sig2str (Makefile.am): Likewise.
93431         * modules/snprintf (Makefile.am): Likewise.
93432         * modules/stdlib-safer (Makefile.am): Likewise.
93433         * modules/stpcpy (Makefile.am): Likewise.
93434         * modules/stpncpy (Makefile.am): Likewise.
93435         * modules/strcase (Makefile.am): Likewise.
93436         * modules/strcasestr (Makefile.am): Likewise.
93437         * modules/strchrnul (Makefile.am): Likewise.
93438         * modules/strcspn (Makefile.am): Likewise.
93439         * modules/strdup (Makefile.am): Likewise.
93440         * modules/strerror (Makefile.am): Likewise.
93441         * modules/strftime (Makefile.am): Likewise.
93442         * modules/strndup (Makefile.am): Likewise.
93443         * modules/strnlen (Makefile.am): Likewise.
93444         * modules/strpbrk (Makefile.am): Likewise.
93445         * modules/strsep (Makefile.am): Likewise.
93446         * modules/strstr (Makefile.am): Likewise.
93447         * modules/strtod (Makefile.am): Likewise.
93448         * modules/strtoimax (Makefile.am): Likewise.
93449         * modules/strtok_r (Makefile.am): Likewise.
93450         * modules/strtol (Makefile.am): Likewise.
93451         * modules/strtoll (Makefile.am): Likewise.
93452         * modules/strtoul (Makefile.am): Likewise.
93453         * modules/strtoull (Makefile.am): Likewise.
93454         * modules/strtoumax (Makefile.am): Likewise.
93455         * modules/strverscmp (Makefile.am): Likewise.
93456         * modules/time_r (Makefile.am): Likewise.
93457         * modules/timegm (Makefile.am): Likewise.
93458         * modules/tmpfile-safer (Makefile.am): Likewise.
93459         * modules/unistd-safer (Makefile.am): Likewise.
93460         * modules/unlinkdir (Makefile.am): Likewise.
93461         * modules/userspec (Makefile.am): Likewise.
93462         * modules/utime (Makefile.am): Likewise.
93463         * modules/utimecmp (Makefile.am): Likewise.
93464         * modules/utimens (Makefile.am): Likewise.
93465         * modules/vasnprintf (Makefile.am): Likewise.
93466         * modules/vasprintf (Makefile.am): Likewise.
93467         * modules/vsnprintf (Makefile.am): Likewise.
93468         * modules/xalloc (Makefile.am): Likewise.
93469         * modules/xgetcwd (Makefile.am): Likewise.
93470         * modules/xnanosleep (Makefile.am): Likewise.
93471         * modules/xreadlink (Makefile.am): Likewise.
93472         * modules/xstrtod (Makefile.am): Likewise.
93473         * modules/xstrtol (Makefile.am): Likewise.
93474         * modules/xstrtold (Makefile.am): Likewise.
93475         * modules/yesno (Makefile.am): Likewise.
93477 2006-10-12  Jim Meyering  <jim@meyering.net>
93479         * m4/getloadavg.m4: Revert the change below.
93481         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
93482         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
93483         fail with a symlink, which is what coreutils' ./bootstrap now
93484         creates by default.
93486 2006-10-12  Bruno Haible  <bruno@clisp.org>
93488         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
93489         mingw.
93490         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
93491         MSVC and mingw explicitly.
93493 2006-10-11  Simon Josefsson  <jas@extundo.com>
93494             Bruno Haible  <bruno@clisp.org>
93496         Add support for multiple gnulib-tool invocations in the scope of a
93497         single configure.ac file.
93498         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
93499         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
93500         with the same contents as the _LIBADD variable.
93501         (func_emit_initmacro_start, func_emit_initmacro_end,
93502         func_emit_initmacro_done): New functions.
93503         (func_import, func_create_testdir): Invoke them. Allow the identifiers
93504         gl_LIBOBJS and gl_LTLIBOBJS.
93506 2006-10-11  Bruno Haible  <bruno@clisp.org>
93508         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
93509         (func_create_testdir): Don't create po/Makefile.am, don't invoke
93510         autoreconf. Instead, invoke autopoint explicitly but move back the
93511         *.m4 files from gnulib.
93513 2006-10-11  Bruno Haible  <bruno@clisp.org>
93515         * gnulib-tool (func_usage): Make module names after --create-testdir
93516         optional.
93517         (func_create_testdir): If no module was specified, use nearly all
93518         modules.
93520 2006-10-12  Jim Meyering  <jim@meyering.net>
93522         Big performance improvement for fts-based tools that use FTS_NOSTAT.
93523         Avoid spurious inode-mismatch problems on non-POSIX file systems.
93524         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
93525         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
93526         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
93527         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
93528         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
93529         (fts_set_stat_required): New function.
93530         (fts_open): Defer the calls to fts_stat, if possible or requested.
93531         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
93532         into fts_stat itself.
93533         (fts_read): Perform any required (deferred) fts_stat call.
93534         (fts_build): Likewise, for the directory we're about to open and read.
93535         In the readdir loop, carefully decide whether each entry will require
93536         an eventual call to fts_stat, using dirent.d_type info if available.
93537         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
93538         a command line argument into this function.  Update all callers.
93539         Map a return value of FTS_DOT to FTS_D for a command line argument.
93540         * modules/fts (Depends-on): Add d-type.  Alphabetize.
93541         Thanks to Miklos Szeredi for his tenacity and for the initial
93542         bug report about "find" failing on a FUSE-based file system.
93544         * lib/fts.c (fts_open): Use consistent indentation.
93546 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
93548         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
93549         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
93550         reported by Jim Meyering.  All uses of cache variables renamed
93551         to match Autoconf's.
93552         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
93553         the other one.
93555         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
93556         Fix misspelling in diagnostic.
93558 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
93560         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
93561         defined.  Problem reported by Matthew Woehlke.
93563         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
93564         Add support for Tandem NonStop R series.
93565         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
93566         Use new macro.
93568         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
93569         (has_trailing_slash): Omit size arg; all callers changed.
93570         Omit 'inline', since it doesn't help performance and we'd
93571         need to configure it.
93572         Don't count //, ///, etc. as having a trailing slash.
93573         As a side effect, this removes a C99ism reported by Matthew Woehlke.
93574         (rpl_rename_dest_slash): On failure, use rename's errno rather
93575         than (in some cases) an incorrect or junk errno.
93576         Simplify code by removing need to compute length; this does
93577         cause it to make two passes instead of one over the file name,
93578         but it's worth it.
93580         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
93581         change, since Autoconf's version may no longer be appropriate now
93582         that we are using CVS Autoconf's version.  Add support for Tandem.
93584 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
93585             Bruno Haible  <bruno@clisp.org>
93587         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
93588         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
93589         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
93590         gl_AC_TYPE_LONG_LONG.
93592         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
93593         instead of HAVE_LONG_LONG.
93594         * lib/printf-args.c (printf_fetchargs): Likewise.
93595         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
93596         * lib/vasnprintf.c (VASNPRINTF): Likewise.
93597         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
93598         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
93599         gl_AC_TYPE_LONG_LONG.
93601 2006-10-11  Bruno Haible  <bruno@clisp.org>
93603         * m4/longlong.m4: Add comments.
93604         * m4/ulonglong.m4: Likewise.
93606 2006-10-10  Bruno Haible  <bruno@clisp.org>
93608         Make it possible to #define stpcpy, strdup to aliases.
93609         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
93610         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
93612 2006-10-10  Bruno Haible  <bruno@clisp.org>
93614         Make it possible to #define gcd to an alias.
93615         * lib/gcd.c: Include config.h.
93617 2006-10-10  Bruno Haible  <bruno@clisp.org>
93619         Make it possible to #define c_isascii to an alias.
93620         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
93621         defined. Undefine the macros before defining them, to avoid gcc
93622         warnings.
93623         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
93624         define NO_C_CTYPE_MACROS early.
93626 2006-10-10  Bruno Haible  <bruno@clisp.org>
93628         Make it possible to #define set_program_name to an alias.
93629         * lib/progname.c: Don't undefine set_program_name; instead, undefine
93630         ENABLE_RELOCATABLE early.
93632 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
93634         Port to Tandem NSK OSS, which has 64-bit signed int but at most
93635         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
93636         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
93637         More generally, don't assume that 64-bit signed int is available
93638         if unsigned int is, and vice versa.
93639         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
93640         unsigned symbols, not on their signed counterparts.
93641         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
93642         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
93643         (UINT64_C, UINTMAX_C):
93644         Likewise.
93645         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
93646         unsigned counterparts.
93647         (Have_long_long, Unsigned): New macros.
93648         (Int): Renamed from INT.
93649         (strtoimax): Use the new macros.
93650         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
93651         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
93652         * modules/inttypes (inttypes.h): Substitute
93653         HAVE_UNSIGNED_LONG_LONG_INT.
93654         * modules/stdint (stdint.h): Likewise.
93655         (Files): Add m4/ulonglong.m4.
93657 2006-10-10  Bruno Haible  <bruno@clisp.org>
93659         Fix a gcc -Wshadow warning.
93660         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
93661         to 'bucket'.
93662         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
93663         gl_linked_indexof_from_to): Likewise.
93664         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
93665         Likewise.
93666         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
93667         Likewise.
93668         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
93669         Reported by Eric Blake.
93671 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
93673         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
93674         for NetBSD.  Problem reported by Bruno Haible.
93676 2006-10-09  Jim Meyering  <jim@meyering.net>
93678         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
93679         Patch from Bruno Haible.
93681 2006-10-09  Jim Meyering  <jim@meyering.net>
93683         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
93684         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
93685         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
93687 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
93689         Don't include <config.h> twice; this doesn't work in some cases,
93690         e.g., when config.h has "#define intmax_t long long int" and
93691         we include <config.h>, <inttypes.h>, <config.h> in that order.
93692         Problem reported by Matthew Woehlke in:
93693         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
93694         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
93695         * lib/fts-cycle.c: Don't include config.h.
93696         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
93697         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
93698         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
93699         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
93700         inttypes.h.
93701         * lib/xstrtoumax.c: Likewise.
93702         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
93703         __strtol and the like, so that this module is more like its siblings.
93704         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
93705         Remove; no longer needed now that we assume gnulib inttypes.h.
93707 2006-10-08  Bruno Haible  <bruno@clisp.org>
93709         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
93710         option.
93712 2006-10-07  Jim Meyering  <jim@meyering.net>
93714         * modules/inttypes (inttypes.h): Revert what seems to have been
93715         an inadvertent part of today's change: use "|", not "/" in the
93716         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
93718 2006-10-07  Bruno Haible  <bruno@clisp.org>
93720         * modules/sublist: New file.
93722 2006-10-07  Bruno Haible  <bruno@clisp.org>
93724         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
93725         * modules/argz (argz.h): Likewise.
93726         * modules/arpa_inet (arpa/inet.h): Likewise.
93727         * modules/byteswap (byteswap.h): Likewise.
93728         * modules/configmake (configmake.h): Likewise.
93729         * modules/fcntl (fcntl.h): Likewise.
93730         * modules/fnmatch (fnmatch.h): Likewise.
93731         * modules/getopt (getopt.h): Likewise.
93732         * modules/glob (glob.h): Likewise.
93733         * modules/inttypes (inttypes.h): Likewise.
93734         * modules/netinet_in (netinet/in.h): Likewise.
93735         * modules/poll (poll.h): Likewise.
93736         * modules/stdbool (stdbool.h): Likewise.
93737         * modules/stdint (stdint.h): Likewise.
93738         * modules/sys_select (sys/select.h): Likewise.
93739         * modules/sys_socket (sys/socket.h): Likewise.
93740         * modules/sys_stat (sys/stat.h): Likewise.
93741         * modules/sysexits (sysexits.h): Likewise.
93742         * modules/unistd (unistd.h): Likewise.
93743         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
93744         Add a "DO NOT EDIT" comment to the generated file.
93745         (func_import): Likewise for gnulib-comp.m4.
93747 2006-10-07  Bruno Haible  <bruno@clisp.org>
93749         * lib/gl_sublist.h: New file.
93750         * lib/gl_sublist.c: New file.
93752 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
93754         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
93755         name (relative to the original working directory) and the file
93756         name component (relative to the temporary working directory).  All
93757         callers changed.
93758         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
93759         * lib/mkdir-p.c (make_dir_parents): Likewise.
93760         * lib/mkdir-p.h (make_dir_parents): Likewise.
93762 2006-10-06  Eric Blake  <ebb9@byu.net>
93764         Define several macros for use by the clean-temp module.
93765         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
93766         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
93767         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
93769         * lib/clean-temp.h (close_stream_temp): New declaration.
93770         * lib/clean-temp.c (includes): Pull in headers according to what
93771         other modules are in use.
93772         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
93774 2006-10-06  Bruno Haible  <bruno@clisp.org>
93776         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
93777         instead of fopen, fwriteerror.
93779 2006-10-06  Bruno Haible  <bruno@clisp.org>
93781         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
93782         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
93783         int.
93784         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
93785         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
93786         Return an error indicator.
93787         Suggested by Eric Blake.
93789 2006-10-06  Bruno Haible  <bruno@clisp.org>
93791         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
93792         Reported by Eric Blake.
93794 2006-10-06  Bruno Haible  <bruno@clisp.org>
93796         * modules/closeout (Description): Mention stderr too.
93798 2006-10-06  Bruno Haible  <bruno@clisp.org>
93799         and Paul Eggert  <eggert@cs.ucla.edu>
93801         * lib/closeout.c (close_stdout): Also close stderr.
93802         * lib/closeout.h: Update comment.
93804 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
93806         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
93807         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
93808         * lib/dirchownmod.c: Include lchown.h.
93809         * lib/lchown.c: Don't include files that lchown.h now includes.
93810         Don't declare chown, since lchown.h now does that.
93811         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
93812         (lchown): Define to rpl_chown if lchown is declared but
93813         does not exist.  Declare using a prototype if lchown is not
93814         declared.  Add a copyright notice.
93815         * lib/mkstemp.h: Include <unistd.h>.
93816         * lib/openat.c: Include lchown.h.
93818         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
93819         we now test for that separately.
93820         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
93821         rather than O_NOFOLLOW, when testing whether it's possible to
93822         avoid a race condition reliably.
93823         * lib/savewd.c (savewd_chdir): Likewise.
93825         Remove macros that are no longer needed now that stdint.h is
93826         reliable.
93827         * lib/fsusage.c (UINTMAX_MAX): Remove.
93828         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
93829         * lib/utimecmp.c (SIZE_MAX): Remove.
93831         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
93833         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
93834         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
93835         O_NOATIME works.
93837 2006-10-05  Bruno Haible  <bruno@clisp.org>
93839         * lib/gl_list.h (gl_sortedlist_search_from_to,
93840         gl_sortedlist_indexof_from_to): New declarations.
93841         (gl_list_implementation): New fields sortedlist_search_from_to,
93842         sortedlist_indexof_from_to.
93843         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
93844         inline functions.
93845         * lib/gl_list.c (gl_sortedlist_search_from_to,
93846         gl_sortedlist_indexof_from_to): New functions.
93847         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
93848         function.
93849         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
93850         (gl_array_sortedlist_search_from_to): New function.
93851         (gl_array_list_implementation): Update.
93852         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
93853         function.
93854         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
93855         (gl_carray_sortedlist_search_from_to): New function.
93856         (gl_carray_list_implementation): Update.
93857         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
93858         gl_linked_sortedlist_indexof_from_to): New functions.
93859         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
93860         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
93861         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
93862         gl_tree_sortedlist_indexof_from_to): New functions.
93863         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
93864         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
93865         Update.
93866         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
93867         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
93868         Update.
93870 2006-10-05  Bruno Haible  <bruno@clisp.org>
93872         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
93873         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
93874         (struct gl_list_implementation): Add fields search_from_to,
93875         indexof_from_to. Remove fields search, indexof.
93876         (gl_list_search): Use the search_from_to method.
93877         (gl_list_search_from, gl_list_search_from_to): New functions.
93878         (gl_list_indexof): Use the indexof_from_to method.
93879         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
93880         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
93881         (gl_list_search_from, gl_list_search_from_to): New functions.
93882         (gl_list_indexof): Use the indexof_from_to method.
93883         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
93884         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
93885         gl_array_indexof. Add start_index, end_index arguments.
93886         (gl_array_search_from_to): Renamed from gl_array_search. Add
93887         start_index, end_index arguments.
93888         (gl_array_remove, gl_array_list_implementation): Update.
93889         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
93890         gl_carray_indexof. Add start_index, end_index arguments.
93891         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
93892         start_index, end_index arguments.
93893         (gl_carray_remove, gl_carray_list_implementation): Update.
93894         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
93895         gl_linked_search. Add start_index, end_index arguments.
93896         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
93897         start_index, end_index arguments.
93898         (gl_linked_remove): Update.
93899         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
93900         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
93901         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
93902         field to 'size_t'.
93903         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
93904         gl_tree_search. Add start_index, end_index arguments.
93905         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
93906         start_index, end_index arguments.
93907         (gl_tree_remove): Update.
93908         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
93909         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
93910         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
93911         function.
93912         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
93913         gl_tree_search. Add start_index, end_index arguments.
93914         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
93915         start_index, end_index arguments.
93916         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
93917         Update.
93918         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
93920 2006-10-05  Bruno Haible  <bruno@clisp.org>
93922         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
93924         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
93925         fwriteerror_temp): New declarations.
93926         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
93927         (descriptors): New variable.
93928         (cleanup): First, close the descriptors.
93929         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
93930         fclose_temp, fwriteerror_temp): New functions.
93932 2006-10-04  Jim Meyering  <jim@meyering.net>
93934         * lib/fts.c (fts_open): Tiny comment change.
93936 2006-10-04  Bruno Haible  <bruno@clisp.org>
93938         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
93939         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
93940         gl_LOCK_BODY.
93941         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
93942         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
93943         gl_LOCK_EARLY_BODY.
93944         (gl_LOCK): Require gl_LOCK_BODY.
93946 2006-10-04  Bruno Haible  <bruno@clisp.org>
93948         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
93949         (gl_oset_search_atleast): New declaration.
93950         (struct gl_oset_implementation): Add field 'search_atleast'.
93951         (gl_oset_search_atleast): New inline function.
93952         * lib/gl_oset.c (gl_oset_search_atleast): New function.
93953         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
93954         (gl_array_oset_implementation): Update.
93955         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
93956         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
93957         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
93959 2006-10-04  Bruno Haible  <bruno@clisp.org>
93961         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
93963 2006-10-03  Bruno Haible  <bruno@clisp.org>
93965         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
93966         from gl_avltreehash_list_implementation.
93968 2006-10-03  Bruno Haible  <bruno@clisp.org>
93970         * lib/gl_oset.c (gl_oset_add): Fix return type.
93972 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
93974         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
93976 2006-10-02  Eric Blake  <ebb9@byu.net>
93978         * modules/strnlen (Depends-on): Add extensions.
93980 2006-10-02  Eric Blake  <ebb9@byu.net>
93982         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
93983         definition in 2.60+.
93985 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
93987         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
93988         checks.
93990 2006-10-02  Bruno Haible  <bruno@clisp.org>
93992         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
93993         to the AUTOMAKE_OPTIONS.
93994         Reported by Jim Meyering.
93996 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
93998         Work around bug in Solaris 10 /proc file system:
93999         /proc/self/fd/NNN/.. isn't the parent directory of
94000         the directory whose file descriptor is NNN.  This needs to
94001         be worked around at run time, not compile time, since a
94002         program might be built on Solaris 8, where things work, and
94003         run on Solaris 10.
94004         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
94005         to use the following interface instead:
94006         (OPENAT_BUFFER_SIZE): New macro.
94007         (openat_proc_name): New function.
94008         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
94009         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
94010         Likewise.
94011         * lib/openat-proc.c: New file.
94012         * modules/openat (Files): Add lib/openat-proc.c.
94013         (Depends-on): Add same-inode, stdbool.
94014         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
94016 2006-09-29  Bruno Haible  <bruno@clisp.org>
94018         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
94019         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
94020         argument. Set stdout_closed before testing for ferror, not after.
94021         (fwriteerror, fwriteerror_no_ebadf): New functions.
94023 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94025         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
94027 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
94029         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
94030         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
94032 2006-09-28  Jim Meyering  <jim@meyering.net>
94034         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
94035         Include <unistd.h>.
94037 2006-09-28  Bruno Haible  <bruno@clisp.org>
94039         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
94040         * modules/linkedhash-list (Depends-on): Likewise.
94041         * modules/rbtreehash-list (Depends-on): Likewise.
94043 2006-09-28  Bruno Haible  <bruno@clisp.org>
94045         * lib/strndup.h: Simplify the redefinition of strndup.
94046         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
94047         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
94049 2006-09-28  Bruno Haible  <bruno@clisp.org>
94051         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
94052         * lib/gl_linkedhash_list.c: Likewise.
94053         * lib/gl_rbtreehash_list.c: Likewise.
94055 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
94057         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
94058         getaddrinfo.
94060         * lib/__fpending.h: Don't include <stdio_ext.h> unless
94061         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
94062         it causes <stdio_ext.h> to cause a compile-time error.
94063         Problem reported by Nelson H. F. Beebe.
94064         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
94065         of HAVE_DECL___PENDING.
94067         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
94068         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
94069         declaration.
94071 2006-09-27  Jim Meyering  <jim@meyering.net>
94073         This file could end up with a definition for a function
94074         named __strndup, rather than rpl_strndup on a system with
94075         incomplete weak_alias support.
94076         * lib/strndup.c (strndup): Rename from __strndup.
94077         Remove #defines that used to map __strndup to strndup.
94078         Don't use K&R prototypes.
94079         Remove LIBC-related code, since this file is not sync'd with glibc.
94080         * lib/strndup.h: Revamp, accordingly.
94081         * m4/strndup.m4: Modernize.
94083 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
94085         * modules/savewd (Depends-on): Add 'raise'.
94086         * lib/savewd.c: Include <signal.h>, for 'raise'.
94088 2006-09-26  Jim Meyering  <jim@meyering.net>
94090         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
94091         when we detect Darwin 8.7.0's acl_get_file bug.
94092         Rearrange to perform the new (below) run-test while $LIBS
94093         contains any acl-related library.  Set USE_ACL at the end.
94094         (gl_ACL_GET_FILE): New function.
94096 2006-09-26  Eric Blake  <ebb9@byu.net>
94098         * lib/verror.c: Include <config.h> unconditionally.
94100 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
94102         * modules/clock-time (Maintainer): Add self.
94103         * modules/getlogin_r (Depends-on): Add extensions.
94105 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94107         * modules/clock-time: New module.
94108         * modules/nanosleep (Depends-on): Add clock-time.
94109         * modules/gethrxtime (Depends-on): Likewise.
94110         * modules/gettime (Depends-on): Likewise.
94111         * modules/settime (Depends-on): Likewise.
94113         * modules/fts-lgpl: Depend on openat.
94114         * modules/mkancesdirs: Depend on savewd.
94115         * modules/mkdir-p: Likewise.
94117 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94119         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
94121         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
94122         `gl_have_arbitrary_file_name_length_limit' to
94123         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
94124         actually works between configure runs.
94126 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94127             Bruno Haible  <bruno@clisp.org>
94129         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
94131 2006-09-25  Jim Meyering  <jim@meyering.net>
94133         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
94134         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
94136 2006-09-25  Eric Blake  <ebb9@byu.net>
94138         * gnulib-tool (func_import, func_create_testdir): Fix typos in
94139         exec's in 2006-09-18 patch when shuffling fds.
94141 2006-09-25  Bruno Haible  <bruno@clisp.org>
94143         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
94144         Reported by Jim Meyering.
94146 2006-09-24  Jim Meyering  <jim@meyering.net>
94148         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
94149         compare a pointer against a literal "0".  That caused failures with
94150         at least HP-UX's hpcc.
94152 2006-09-22  Simon Josefsson  <jas@extundo.com>
94154         * modules/gc-sha1:
94155         * modules/gc-md4:
94156         * modules/gc-hmac-sha1:
94157         * modules/gc-hmac-md5:
94158         * modules/gc-des:
94159         * modules/gc-arcfour: Distribute more files.
94161 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94163         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
94164         (gl_linked_iterator_from_to): Initialize struct completely.
94165         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
94166         (gl_tree_iterator_from_to): Likewise
94167         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
94168         * lib/gl_array_list.c [lint] (gl_array_iterator)
94169         (gl_array_iterator_from_to): Likewise.
94170         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
94171         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
94172         (gl_carray_iterator_from_to): Likewise.
94174         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
94175         * lib/md4.c (md4_process_block): Remove unused variable.
94176         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
94177         parentheses for clarity.
94179 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94181         * modules/bison-i18n (Depends-on): Add gettext.
94183 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94185         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
94186         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
94187         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
94188         also add missing comma that caused broken test.
94189         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
94190         stdlib.h, for `abort'.
94191         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
94192         variables.
94193         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
94194         include unistd.h if present, for `rmdir'.
94195         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
94196         variables.
94197         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
94198         in the process include standard headers for prototypes.
94199         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
94200         gets declared on GNU/Linux.
94201         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
94202         unistd.h, for `rmdir'.
94203         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
94205         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
94206         always true.
94207         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
94209         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
94211 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94213         * gnulib-tool (func_version): Create output all at once.  This
94214         may help avoid triggering unnecessary SIGPIPEs, and at any
94215         rate it doesn't hurt.
94217 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94218             Bruno Haible  <bruno@clisp.org>
94220         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
94221         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
94222         * m4/signed.m4 (bh_C_SIGNED): Likewise.
94224         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
94225         (gl_FUNC_VASPRINTF): Invoke it.
94227 2006-09-22  Bruno Haible  <bruno@clisp.org>
94229         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
94230         getloadavg.c as first argument.
94232 2006-09-22  Bruno Haible  <bruno@clisp.org>
94234         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
94235         at the beginning of the gl_INIT macro.
94236         * modules/getloadavg (configure.ac): Pass $gl_source_base to
94237         gl_GETLOADAVG.
94239 2006-09-22  Bruno Haible  <bruno@clisp.org>
94241         * gnulib-tool (func_create_megatestdir): Don't include the config-h
94242         module.
94243         Suggested by Ralf Wildenhues.
94245 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
94247         Import this patch from libc:
94249         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
94251         * lib/regex_internal.c (re_string_reconstruct): Handle
94252         offset < pstr->valid_raw_len && pstr->offsets_needed case.
94253         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
94254         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
94255         re_string_context_at.
94257         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
94258         now requires it.
94259         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
94260         gl_REGEX now does it for us.
94261         (gl_REGEX): Add test taken from
94262         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
94264         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
94265         Check that large offsets work.  Modernize Autoconf usages.
94266         Prefer "yes" to mean a good thing rather than a bad.
94267         Don't put "#define mkstemp" in config.h, as this might interfere
94268         with standard system headers that "#define mkstemp mkstemp64".
94270         * modules/mkstemp (Depends-on): Add extensions, so that
94271         mkstemp is visible on some platforms.
94272         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
94273         (Include): Change to "mkstemp.h" from <stdlib.h>.
94274         (Files): Add mkstemp.h.
94276         * lib/mkstemp.h: New file, since some standard headers
94277         #define mkstemp.
94278         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
94279         Include "mkstemp.h".
94280         Make the _LIBC code resemble glibc original more,
94281         e.g., use K&R style.
94282         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
94283         (mkstemp): Remove, since mkstemp.h does this for us.
94284         * lib/stdlib--.h: Include mkstemp.h.
94286         Import this patch from libc:
94288         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
94290         * lib/tempname.c (__gen_tempname): Change attempts_min
94291         into a macro.  Use preprocessor to decide how to initialize
94292         attempts [Coverity CID 67].
94294 2006-09-20  Bruno Haible  <bruno@clisp.org>
94296         * lib/mkdtemp.c: Import from libc.
94297         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
94298                 * sysdeps/posix/tempname.c (__gen_tempname): Change
94299                 attempts_min into a macro.  Use preprocessor to decide how to
94300                 initialize attempts [Coverity CID 67].
94301         2001-11-27  Paul Eggert  <eggert@twinsun.com>
94302                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
94303                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
94305 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94307         * gnulib-tool (func_exit): New function, to allow to pass the
94308         exit status portably through the trap.  Use everywhere.
94309         (--help, --version): Signal a write error.
94310         (trap): catch SIGPIPE, for write errors.
94311         Exit at the end of the trap, with the correct exit status.
94313 2006-09-19  Karl Berry  <karl@gnu.org>
94315         * doc/gnulib.texi: note about the license texinfo files.
94317 2006-09-19  Eric Blake  <ebb9@byu.net>
94319         * gnulib-tool: Avoid space-tab.
94321 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
94323         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
94324         that prevented coreutils 6.1 from building.  Problem reported
94325         by Petter Reinholdtsen.
94327 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
94329         * gnulib-tool (avoidlist): Fix typo that broke options like
94330         --avoid=lock that are used by coreutils bootstrap.
94332 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
94334         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
94335         more systematically.
94337 2006-09-18  Jim Meyering  <jim@meyering.net>
94339         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
94341 2006-09-18  Bruno Haible  <bruno@clisp.org>
94343         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
94345 2006-09-18  Bruno Haible  <bruno@clisp.org>
94347         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
94348         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
94349         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
94350         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
94351         * m4/gettext.m4: Require autoconf >= 2.52.
94352         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
94353         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
94354         of gl_cv_header_inttypes_h.
94356 2006-09-18  Bruno Haible  <bruno@clisp.org>
94358         * lib/javaversion.c: Include configmake.h.
94360 2006-09-18  Bruno Haible  <bruno@clisp.org>
94362         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
94363         avoid that the while loops be executed in a subshell.
94365 2006-09-18  Bruno Haible  <bruno@clisp.org>
94367         * MODULES.html.sh (func_module): Break long lines.
94368         Suggested by Bruce Korb <bkorb@gnu.org>.
94370 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94372         Speed up by a factor of 1.12.
94373         * gnulib-tool (nl): New variable.
94374         (func_import): Rewrite include directive extraction to only read each
94375         directive once.
94377 2006-09-17  Bruno Haible  <bruno@clisp.org>
94379         * modules/javaversion (Makefile.am): Remove DEFS setting.
94380         (Depends-on): Add configmake, for PKGDATADIR definition.
94382 2006-09-17  Bruno Haible  <bruno@clisp.org>
94384         * gnulib-tool (func_create_testdir): Rewrite all files at once.
94386 2006-09-17  Bruno Haible  <bruno@clisp.org>
94388         * gnulib-tool (func_append): New function, stolen from libtool.m4.
94389         (func_modules_transitive_closure, func_modules_add_dummy,
94390         func_modules_to_filelist, func_import, func_create_testdir,
94391         func_create_megatestdir, ...): Use it wherever possible.
94392         Suggested by Ralf Wildenhues.
94394 2006-09-16  Karl Berry  <karl@gnu.org>
94396         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
94397         to avoid sectioning errors.
94398         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
94399         [ifinfo]: blank line after @center-ed titles.
94400         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
94401         Spell FSF address consistently with others.
94402         (These changes approved by rms.)
94404 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94406         Speed up by a factor of 1.61.
94407         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
94408         already checked module names again.
94410 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94412         Speed up by a factor of 1.13.
94413         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
94414         for new_files, and the input to func_add_or_update.
94416 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94418         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
94419         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
94421 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
94423         * modules/mkancesdirs (Depends-on): Add fcntl.
94424         * modules/savewd: New file.
94425         * MODULES.html.sh (File system functions): Add savewd.
94427         * modules/configmake (Makefile.am): Add support for the
94428         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
94430 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
94432         * m4/savewd.m4: New file.
94434 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
94436         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
94437         (dirchownmod): New arg FD.  All callers changed.
94438         Use FD rather than opening the directory ourself, as opening is
94439         now the caller's responsibility.
94440         * lib/dirchownmod.h: Likewise.
94441         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
94442         hosts that require <sys/types.h> before <sys/stat.h>.  Include
94443         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
94444         (test_dir): Remove.
94445         (mkancesdirs): Return length of prefix of FILE that has already
94446         been made, or -2 if there is a child doing the work.  Redo
94447         algorithm so that it is O(N) rather than O(N**2).  Optimize away
94448         ".", and treat ".." specially since it might stray back into
94449         already-created areas.  Use a subprocess if necessary.  New arg
94450         WD; all users changed.  MAKE_DIR function should now return 1
94451         if it creates a directory that is not readable.  Return -2 if
94452         a child process is spun off.
94453         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
94454         Adjust signature to match code.
94455         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
94456         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
94457         all users changed.
94458         * lib/savewd.c, lib/savewd.h: New files.
94460 2006-09-15  Jim Meyering  <jim@meyering.net>
94462         * modules/rename-dest-slash: New module.
94463         * MODULES.html.sh (posix_compat): Add it here.
94465         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
94467 2006-09-15  Jim Meyering  <jim@meyering.net>
94469         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
94470         file.
94472         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
94474 2006-09-15  Jim Meyering  <jim@meyering.net>
94476         * lib/rename-dest-slash.c (has_trailing_slash): Use
94477         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
94478         (rpl_rename_dest_slash): Perform the cheaper trailing slash
94479         test before testing whether SRC is a directory.
94480         Suggestions from Bruno Haible.
94482         Avoid a warning about an unused variable.
94483         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
94484         into the #ifdef block where it's used.
94486         * lib/rename-dest-slash.c: New file.
94488 2006-09-14  Bruno Haible  <bruno@clisp.org>
94490         * lib/allocsa.c: Include <config.h> unconditionally.
94491         * lib/asnprintf.c: Likewise.
94492         * lib/asprintf.c: Likewise.
94493         * lib/c-strcasecmp.c: Likewise.
94494         * lib/c-strcasestr.c: Likewise.
94495         * lib/c-strncasecmp.c: Likewise.
94496         * lib/c-strstr.c: Likewise.
94497         * lib/classpath.c: Likewise.
94498         * lib/clean-temp.c: Likewise.
94499         * lib/concatpath.c: Likewise.
94500         * lib/copy-file.c: Likewise.
94501         * lib/csharpcomp.c: Likewise.
94502         * lib/csharpexec.c: Likewise.
94503         * lib/execute.c: Likewise.
94504         * lib/fatal-signal.c: Likewise.
94505         * lib/findprog.c: Likewise.
94506         * lib/fwriteerror.c: Likewise.
94507         * lib/gl_array_list.c: Likewise.
94508         * lib/gl_array_oset.c: Likewise.
94509         * lib/gl_avltree_list.c: Likewise.
94510         * lib/gl_avltree_oset.c: Likewise.
94511         * lib/gl_avltreehash_list.c: Likewise.
94512         * lib/gl_carray_list.c: Likewise.
94513         * lib/gl_linked_list.c: Likewise.
94514         * lib/gl_linkedhash_list.c: Likewise.
94515         * lib/gl_list.c: Likewise.
94516         * lib/gl_oset.c: Likewise.
94517         * lib/gl_rbtree_list.c: Likewise.
94518         * lib/gl_rbtree_oset.c: Likewise.
94519         * lib/gl_rbtreehash_list.c: Likewise.
94520         * lib/imaxabs.c: Likewise.
94521         * lib/imaxdiv.c: Likewise.
94522         * lib/javacomp.c: Likewise.
94523         * lib/javaexec.c: Likewise.
94524         * lib/javaversion.c: Likewise.
94525         * lib/linebreak.c: Likewise.
94526         * lib/localcharset.c: Likewise.
94527         * lib/lock.c: Likewise.
94528         * lib/mbchar.c: Likewise.
94529         * lib/mbswidth.c: Likewise.
94530         * lib/mkdtemp.c: Likewise.
94531         * lib/pipe.c: Likewise.
94532         * lib/printf-args.c: Likewise.
94533         * lib/printf-parse.c: Likewise.
94534         * lib/progname.c: Likewise.
94535         * lib/progreloc.c: Likewise.
94536         * lib/readlink.c: Likewise.
94537         * lib/sh-quote.c: Likewise.
94538         * lib/stpcpy.c: Likewise.
94539         * lib/stpncpy.c: Likewise.
94540         * lib/strcasecmp.c: Likewise.
94541         * lib/strcasestr.c: Likewise.
94542         * lib/strcspn.c: Likewise.
94543         * lib/striconv.c: Likewise.
94544         * lib/strncasecmp.c: Likewise.
94545         * lib/strnlen1.c: Likewise.
94546         * lib/strstr.c: Likewise.
94547         * lib/strtok_r.c: Likewise.
94548         * lib/tls.c: Likewise.
94549         * lib/tmpdir.c: Likewise.
94550         * lib/unicodeio.c: Likewise.
94551         * lib/unsetenv.c: Likewise.
94552         * lib/vasnprintf.c: Likewise.
94553         * lib/vasprintf.c: Likewise.
94554         * lib/wait-process.c: Likewise.
94555         * lib/xallocsa.c: Likewise.
94556         * lib/xsetenv.c: Likewise.
94557         * lib/xstriconv.c: Likewise.
94559 2006-09-13  Simon Josefsson  <jas@extundo.com>
94561         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
94562         that internally, suggested by Ralf Wildenhues
94563         <Ralf.Wildenhues@gmx.de>.
94565 2006-09-13  Simon Josefsson  <jas@extundo.com>
94567         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
94568         @LIBOBJS@.
94569         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
94571 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
94573         * lib/_fpending.c: Include <config.h> unconditionally, since we no
94574         longer worry about uses that don't define HAVE_CONFIG_H.
94575         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
94576         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
94577         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
94578         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
94579         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
94580         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
94581         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
94582         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
94583         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
94584         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
94585         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
94586         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
94587         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
94588         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
94589         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
94590         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
94591         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
94592         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
94593         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
94594         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
94595         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
94596         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
94597         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
94598         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
94599         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
94600         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
94601         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
94602         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
94603         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
94604         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
94605         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
94606         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
94607         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
94608         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
94609         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
94610         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
94611         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
94612         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
94613         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
94614         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
94615         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
94616         Likewise.
94618 2006-09-13  Eric Blake  <ebb9@byu.net>
94620         * lib/getopt.c: Fix typo in last commit.
94622 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
94624         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
94625         dgettext.
94627 2006-09-12  Jim Meyering  <jim@meyering.net>
94629         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
94630         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
94631         Reported by Nelson H. F. Beebe.
94633 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
94635         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
94636         program_invocation_name and program_invocation_short_name are
94637         initialized.
94638         * lib/argp-namefrob.h: Move declarations of program_invocation_name
94639         and program_invocation_short_name to argp.h, so they are visible
94640         to user programs.
94641         * lib/argp.h: Likewise
94643 2006-09-10  Bruno Haible  <bruno@clisp.org>
94645         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
94646         m4/inttypes_h.m4, m4/uintmax_t.m4.
94648 2006-09-10  Bruno Haible  <bruno@clisp.org>
94650         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
94651         gl_AC_TYPE_UINTMAX_T.
94653 2006-09-10  Bruno Haible  <bruno@clisp.org>
94655         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
94657 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
94659         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
94660         convention.  Text proposed by Bruno Haible.
94661         (struct argp_option): Document the use of N_() wrappers.
94663         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
94664         '\v', and translate the two parts separately, instead of feeding
94665         the whole string to gettext.  This allows to exclude
94666         '\v' from the strings visible to the translator by writing doc
94667         strings as N_("..") "\v" N_("..").
94669 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
94671         * config/srclist.txt: Undo latest change; the bug was fixed.
94673 2006-09-09  Bruno Haible  <bruno@clisp.org>
94675         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
94676         assignments if building a library without libtool.
94677         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
94678         in func_emit_lib_Makefile_am.
94679         (func_import): When building a static library libfoo.a, arrange to
94680         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
94681         (func_create_testdir): Likewise.
94682         * modules/gc (configure.ac, Makefile.am): If building statically,
94683         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
94684         * modules/iconvme (configure.ac, Makefile.am): Likewise.
94685         * modules/striconv (configure.ac, Makefile.am): Likewise.
94686         Based on a suggestion by Ralf Wildenhues.
94688 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
94690         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
94691         Check for unistd.h too, since Autoconf doesn't assume POSIX.
94692         Also:
94694         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
94695         Add year_2050_test to catch glibc bug 2821
94696         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
94698         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
94699         Prefer #ifdef to #if.
94701         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
94702         Return from 'main' instead of calling 'exit'.
94704 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
94706         * lib/mktime.c (guess_time_tm): Fix bug where mktime
94707         returned the maximum time_t value rather than (time_t) -1.
94708         Problem originally reported by William Bardwell
94709         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
94711         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
94712         Moved to here ...
94713         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
94714         ... from here.
94716 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
94718         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
94719         2821 is fixed.
94721 2006-09-08  Jim Meyering  <jim@meyering.net>
94723         Don't make generated files read-only.  That would bother too many
94724         people.  However, do retain the ability to work when targets are
94725         read-only: remove the destination and temporary files before writing
94726         them (when generated via sed or echo), or by using the -f option for
94727         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
94728         * modules/alloca-opt, modules/argz, modules/arpa_inet:
94729         * modules/byteswap, modules/configmake, modules/fcntl:
94730         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
94731         * modules/localcharset, modules/netinet_in, modules/poll:
94732         * modules/stdbool, modules/stdint, modules/sys_select:
94733         * modules/sys_socket, modules/sys_stat, modules/sysexits:
94735 2006-09-08  Jim Meyering  <jim@meyering.net>
94737         Avoid new build failure on FreeBSD 6.0.
94738         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
94739         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
94740         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
94742 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94744         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
94746 2006-09-07  Jim Meyering  <jim@meyering.net>
94748         Fix global typo in last change: use chmod u-w, not chmod u-x.
94749         Spotted by Paul Eggert and Bruce Korb.
94750         * modules/alloca-opt, modules/argz, modules/arpa_inet:
94751         * modules/byteswap, modules/configmake, modules/fcntl:
94752         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
94753         * modules/localcharset, modules/netinet_in, modules/poll:
94754         * modules/stdbool, modules/stdint, modules/sys_select:
94755         * modules/sys_socket, modules/sys_stat, modules/sysexits:
94757 2006-09-06  Jim Meyering  <jim@meyering.net>
94759         Make generated files be read-only.
94760         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
94761         Ensure that each generated file is now read-only.
94762         * modules/argz: Likewise.
94763         * modules/arpa_inet: Likewise.
94764         * modules/byteswap: Likewise.
94765         * modules/configmake: Likewise.
94766         * modules/fcntl: Likewise.
94767         * modules/fnmatch: Likewise.
94768         * modules/getopt: Likewise.
94769         * modules/glob: Likewise.
94770         * modules/inttypes: Likewise.
94771         * modules/netinet_in: Likewise.
94772         * modules/poll: Likewise.
94773         * modules/stdbool: Likewise.
94774         * modules/stdint: Likewise.
94775         * modules/sys_select: Likewise.
94776         * modules/sys_socket: Likewise.
94777         * modules/sys_stat: Likewise.
94778         * modules/sysexits: Likewise.
94779         * modules/localcharset: Same as above, but continue using temporary
94780         file named "t-$@" (why different?) rather than the "$@-t" used
94781         everywhere else.
94783         * modules/sysexits (Makefile.am): Replace literal occurrences
94784         of "sysexit.h" more readable, and more consistent, "$@".
94786 2006-09-06  Bruno Haible  <bruno@clisp.org>
94788         * modules/striconv: New file.
94789         * modules/xstriconv: New file.
94790         * MODULES.html.sh (Internationalization functions): Add striconv,
94791         xstriconv.
94793 2006-09-06  Bruno Haible  <bruno@clisp.org>
94795         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
94796         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
94797         not using libtool correctly.
94799 2006-09-06  Bruno Haible  <bruno@clisp.org>
94801         * lib/striconv.h: New file.
94802         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
94803         iconvstring.c.
94804         * lib/xstriconv.h: New file.
94805         * lib/xstriconv.c: New file.
94807 2006-09-06  Bruno Haible  <bruno@clisp.org>
94809         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
94810         lib_..._LDFLAGS.
94812 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94814         * lib/argz_.h: Sync from Libtool.
94816         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
94817                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
94819         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
94821 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
94823         * modules/trim: New file.
94825 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
94827         * lib/trim.h: New file.
94828         * lib/trim.c: New file.
94830 2006-09-05  Bruno Haible  <bruno@clisp.org>
94832         * MODULES.html.sh (String handling): Add trim.
94834 2006-09-04  Karl Berry  <karl@gnu.org>
94836         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
94837         until next release.
94839 2006-09-03  Bruno Haible  <bruno@clisp.org>
94841         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
94842         correctly.
94844 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
94846         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
94847         not gl_GETLOADAVG.  Omit unneeded semicolons.
94848         Problems reported by Ralf Wildenhues in
94849         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
94850         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
94851         at the end, which is the usual gnulib style.
94853         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
94854         of doing all the work ourselves.
94855         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
94856         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
94858 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
94860         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
94861         Problem reported by Ralf Wildenhues in
94862         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
94864         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
94865         HAVE_STRUCT_STATFS_F_FSTYPENAME.
94867 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
94869         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
94870         yesterday's patch by changing test -n to test -z.
94872 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
94874         * modules/getloadavg (Files): Add m4/getloadavg.m4.
94875         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
94876         the former is now obsolescent.
94878         * modules/chdir-long (Depends-on): Add fcntl.
94880 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
94882         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
94883         obsolescent, and programs should use gnulib instead.
94884         * m4/getloadavg.m4: New file, with contents taken from Autoconf
94885         but with prefixes changed.
94887 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
94889         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
94890         or stdbool.h, because they might not exist while configuring.
94892         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
94893         Don't include unistd.h or limits.h; not needed, since chdir-long.h
94894         does that for us.
94895         (O_DIRECTORY): Remove.
94897 2006-08-31  Eric Blake  <ebb9@byu.net>
94899         * gnulib-tool: Don't let emacs change spaces to TAB.
94901 2006-08-31  Bruno Haible  <bruno@clisp.org>
94903         * gnulib-tool: When calling func_import more than once, do it in a
94904         subshell.
94905         Reported by Eric Blake <ebb9@byu.net>.
94907 2006-08-31  Bruno Haible  <bruno@clisp.org>
94909         * gnulib-tool (nl): Remove variable.
94910         (sed_transform_lib_file): Use more robust test for config-h module.
94911         (func_import): Fix typo in 2006-08-25 patch.
94913 2006-08-31  Bruno Haible  <bruno@clisp.org>
94915         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
94916         specified, augment Makefile.am variables instead of assigning them.
94918 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
94920         Work around a bug in both the Linux and SunOS 64-bit kernels:
94921         nanosleep mishandles sleeps for longer than 2**31 seconds.
94922         Problem reported by Frank v Waveren in
94923         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
94924         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
94925         Check for nanosleep bug.
94926         (LIB_NANOSLEEP): Append clock_gettime library if needed.
94928 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
94930         Work around a bug in both the Linux and SunOS 64-bit kernels:
94931         nanosleep mishandles sleeps for longer than 2**31 seconds.
94932         Problem reported by Frank v Waveren in
94933         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
94934         * lib/nanosleep.c (BILLION): New constant.
94935         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
94936         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
94937         implementation.
94939 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
94941         * modules/nanosleep (Depends-on): Add gettime.
94943 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
94944         and Simon Josefsson  <jas@extundo.com>
94945         and Oskar Liljeblad  <oskar@osk.mine.nu>
94947         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
94948         * gnulib-tool (func_import): New license type 'unmodifiable license
94949         text'.
94950         * modules/fdl: Use it.  Longer description.
94951         * module/gpl, module/lgpl: New files.
94953 2006-08-30  Jim Meyering  <jim@meyering.net>
94955         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
94956         shadowing the parameter.
94958 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94960         Sync from Libtool:
94962         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94964         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
94965         sharing with gnulib.  Report by Eric Blake.
94967 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
94969         * modules/isapipe: New file.
94970         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
94972 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
94974         * modules/configmake (Makefile.am): Add a comment, and omit
94975         the CONFIGMAKE_ prefix from generated macro names.  Suggested
94976         by Bruno Haible.
94978 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
94980         * m4/isapipe.m4: New file.
94982 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
94984         * lib/isapipe.c, lib/isapipe.h: New files.
94986 2006-08-29  Jim Meyering  <jim@meyering.net>
94988         * modules/configmake (Makefile.am): Make configmake.h depend on
94989         Makefile.  Otherwise, a stale configmake.h could hang around.
94991 2006-08-29  Eric Blake  <ebb9@byu.net>
94993         * lib/error.c (error_at_line, print_errno_message): Match libc, after
94994         resolution of upstream bug 3044.
94996 2006-08-29  Bruno Haible  <bruno@clisp.org>
94998         * modules/localcharset (Depends-on): Add configmake.
94999         (Makefile.am): Remove setting of LIBDIR through DEFS.
95001 2006-08-29  Bruno Haible  <bruno@clisp.org>
95003         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
95004         defined.
95006 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
95008         * modules/fcntl: New file.
95009         * modules/chdir-safer (Depends-on): Add fcntl.
95010         * modules/fts: Likewise.
95011         * modules/mkdir-p: Likewise.
95013         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
95014         This undoes the most recent change, since we're now addressing the
95015         problem in a different way.
95017         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
95018         into output, since the output might be called Makefile.am even
95019         if $makefile_name is something different.
95020         (func_import): Use $makefile_am rather than
95021         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
95022         empty.
95024         * modules/inttypes (Files): Add m4/inttypes-h.m4.
95026 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
95028         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
95029         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
95030         recent change to stdint.m4, since we're now addressing the problem in a
95031         different way.
95033 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
95035         * m4/fcntl_h.m4: New file.
95037 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
95039         * lib/fcntl_.h: New file.
95040         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
95041         the fcntl module.
95042         * lib/dirchownmod.c: Likewise.
95043         * lib/fts.c: Likewise.
95045         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
95046         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
95047         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
95048         just before including <inttypes.h>, to avoid circular inclusion.
95050 2006-08-28  Jim Meyering  <jim@meyering.net>
95052         * doc/visibility.texi: Actually read and correct the grammar of the
95053         sentence affected by yesterday's change.
95055 2006-08-28  Eric Blake  <ebb9@byu.net>
95057         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
95058         needs wrapper.
95060 2006-08-28  Eric Blake  <ebb9@byu.net>
95062         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
95064 2006-08-28  Eric Blake  <ebb9@byu.net>
95066         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
95068 2006-08-28  Bruno Haible  <bruno@clisp.org>
95070         * modules/c-strstr: New file, from GNU gettext.
95071         * MODULES.html.sh (String handling): Add c-strstr.
95073 2006-08-28  Bruno Haible  <bruno@clisp.org>
95075         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
95076         macros.
95077         Reported by Eric Blake.
95079 2006-08-28  Bruno Haible  <bruno@clisp.org>
95081         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
95082         (VASNPRINTF): Return a string of length > INT_MAX without failing.
95083         * lib/vasprintf.c: Include errno.h, limits.h.
95084         (EOVERFLOW): New fallback definition.
95085         (vasprintf): Test here whether the string length is > INT_MAX.
95086         * lib/vsnprintf.c: Include errno.h, limits.h.
95087         (EOVERFLOW): New fallback definition.
95088         (vsnprintf): Fix bug when generated string was too long for the buffer.
95089         Test here whether the string length is > INT_MAX.
95091 2006-08-28  Bruno Haible  <bruno@clisp.org>
95093         * lib/inttypes_.h (SCNX*): Remove definitions.
95094         Reported by Eric Blake.
95096 2006-08-28  Bruno Haible  <bruno@clisp.org>
95098         * lib/c-strstr.h: New file, from GNU gettext.
95099         * lib/c-strstr.c: New file, from GNU gettext.
95101 2006-08-28  Bruno Haible  <bruno@clisp.org>
95103         * gnulib-tool: Reorder some statements.
95105 2006-08-28  Bruno Haible  <bruno@clisp.org>
95107         * gnulib-tool: New option --makefile-name.
95108         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
95109         $makefile_name.
95110         (func_import): Write $makefile_name to the cache file, and read it from
95111         there unless explicitly specified. Use $makefile_name as file name
95112         instead of Makefile.am. Adjust the recommendations accordingly.
95114 2006-08-28  Bruno Haible  <bruno@clisp.org>
95116         * gnulib-tool (func_verify_module): Check against misapplying patch.
95118 2006-08-28  Bruno Haible  <bruno@clisp.org>
95120         * gnulib-tool (func_relativize, func_relconcat): New functions.
95121         Give an error if --local-dir is given with --update.
95122         Remove trailing slashes from $local_gnulib_dir.
95123         (func_import): Store the relativized $local_gnulib_dir in
95124         gnulib-cache.m4, and read it from there if not specified explicitly.
95126 2006-08-28  Bruno Haible  <bruno@clisp.org>
95128         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
95129         is the current directory. Respect also $local_gnulib_dir.
95131 2006-08-28  Bruno Haible  <bruno@clisp.org>
95132             Simon Josefsson  <jas@extundo.com>
95134         BeOS portability.
95135         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
95137 2006-08-27  Jim Meyering  <jim@meyering.net>
95139         * doc/visibility.texi: Remove duplicate word: "pointer".
95141 2006-08-26  Bruno Haible  <bruno@clisp.org>
95143         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
95144         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
95145         (Makefile.am): Create inttypes.h from inttypes_.h.
95146         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
95148         * modules/imaxabs: New file.
95150         * modules/imaxdiv: New file.
95152 2006-08-26  Bruno Haible  <bruno@clisp.org>
95154         * m4/inttypes.m4: New file.
95155         * m4/_inttypes_h.m4: Remove file.
95156         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
95157         PRI_MACROS_BROKEN.
95158         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
95160         * m4/imaxabs.m4: New file.
95162         * m4/imaxdiv.m4: New file.
95164 2006-08-26  Bruno Haible  <bruno@clisp.org>
95166         * lib/inttypes_.h: New file.
95167         * lib/inttypes.h: Remove file.
95168         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
95170         * lib/imaxabs.c: New file.
95172         * lib/imaxdiv.c: New file.
95174 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
95176         New config-h module, so that "make" output needn't be cluttered
95177         by -DHAVE_CONFIG_H.
95178         * MODULES.html.sh (Support for building libraries and executables):
95179         Add config-h.
95180         * modules/config-h: New file.
95181         * gnulib-tool (nl, sed_transform_lib_file): New vars.
95182         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
95183         the config-h module is used.
95185         New configmake module, so that "make" output needn't be cluttered
95186         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
95187         * MODULES.html.sh (Support for building libraries and executables):
95188         Add configmake.
95189         * modules/configmake: New file.
95191 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
95193         * m4/config-h.m4: New file.
95195 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
95197         * config/srclist.txt: Add elisp-comp.
95199 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
95201         * MODULES.html.sh (Support for building libraries and executables):
95202         Add elisp-comp.
95203         * build-aux/elisp-comp: New file.
95204         * modules/elisp-comp: New file.
95206 2006-08-24  Bruno Haible  <bruno@clisp.org>
95208         * gnulib-tool (func_create_testdir): Use non-default values of
95209         sourcebase and m4base.
95211 2006-08-24  Bruno Haible  <bruno@clisp.org>
95213         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
95214         HTML structure.
95216 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
95218         * modules/openat (Depends-on): Add lchown.
95220 2006-08-23  Bruno Haible  <bruno@clisp.org>
95222         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
95223         of gl_LOCK_EARLY instead of gl_LOCK.
95225 2006-08-23  Bruno Haible  <bruno@clisp.org>
95227         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
95228         on OSF/1 to no.
95229         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
95231 2006-08-23  Bruno Haible  <bruno@clisp.org>
95233         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
95234         as unusable.
95236         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
95237         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
95238         (gl_LOCK): New macro.
95240 2006-08-22  Simon Josefsson  <jas@extundo.com>
95242         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
95243         to md5 module.
95245 2006-08-22  Simon Josefsson  <jas@extundo.com>
95247         * MODULES.html.sh: Add "Support for maintaining and release
95248         projects".
95250         * build-aux/gnupload: New file, from coreutils.
95252 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
95254         Avoid the need for AC_LIBSOURCES in m4 macros.
95255         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
95256         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
95257         * modules/check-version (EXTRA_DIST): Add check-version.h.
95258         * modules/crc (EXTRA_DIST): Add crc.h.
95259         * modules/des (EXTRA_DIST): Add des.h.
95260         * modules/gc (EXTRA_DIST): Add gc.h.
95261         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
95262         * modules/getline (EXTRA_DIST): Add getline.h.
95263         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
95264         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
95265         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
95266         * modules/md2 (EXTRA_DIST): Add md2.h.
95267         * modules/md4 (EXTRA_DIST): Add md4.h.
95268         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
95269         * modules/read-file (EXTRA_DIST): Add read-file.h.
95270         * modules/readline (EXTRA_DIST): Add readline.h.
95271         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
95272         rijndael-api-fst.h.
95274 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
95276         * m4/rijndael.m4 (gl_ARCFOUR):
95277         * m4/arctwo.m4 (gl_ARCTWO):
95278         * m4/check-version.m4 (gl_CHECK_VERSION):
95279         * m4/crc.m4 (gl_CRC):
95280         * m4/des.m4 (gl_DES):
95281         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
95282         * m4/gc.m4 (gl_GC):
95283         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
95284         * m4/getline.m4 (gl_FUNC_GETLINE):
95285         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
95286         * m4/hmac-md5.m4 (gl_HMAC_MD5):
95287         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
95288         * m4/md2.m4 (gl_MD2):
95289         * m4/md4.m4 (gl_MD4):
95290         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
95291         * m4/read-file.m4 (gl_FUNC_READ_FILE):
95292         * m4/readline.m4 (gl_FUNC_READLINE):
95293         * m4/rijndael.m4 (gl_RIJNDAEL):
95294         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
95295         to get the necessary .h files and whatnot.
95297 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
95299         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
95300         gnulib rather than the other way around.
95301         * config/srclistvars.sh (COREUTILS): Remove.
95303 2006-08-22  Jim Meyering  <jim@meyering.net>
95305         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
95307         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
95309 2006-08-22  Eric Blake  <ebb9@byu.net>
95311         * modules/regexprops-generic: New file.
95312         * MODULES.html.sh (Support for building documentation): List it.
95314 2006-08-22  Eric Blake  <ebb9@byu.net>
95316         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
95317         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
95318         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
95319         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
95321 2006-08-22  Bruno Haible  <bruno@clisp.org>
95323         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
95324         and lib_LTLIBRARIES like the other lib_* variables.
95326 2006-08-22  Bruno Haible  <bruno@clisp.org>
95328         * build-aux/x-to-1.in: New file, from GNU gettext.
95330 2006-08-22  Bruno Haible  <bruno@clisp.org>
95332         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
95333         <utmpx.h> exists.
95335 2006-08-22  Bruno Haible  <bruno@clisp.org>
95337         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
95338         <utmpx.h> exists.
95340 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
95342         BeOS portability.
95343         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
95344         exist.
95345         Problem reported by Bruno Haible.
95347 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
95349         Avoid the need for AC_LIBSOURCES in m4 macros.
95350         * modules/acl (EXTRA_DIST): Add acl.h.
95351         * modules/argmatch (Files): Add m4/argmatch.m4.
95352         (configure.ac): Add gl_ARGMATCH.
95353         (EXTRA_DIST): Renamed from lib_SOURCES, for
95354         consistency with the other modules.  Remove argmatch.c.
95355         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
95356         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
95357         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
95358         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
95359         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
95360         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
95361         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
95362         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
95363         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
95364         * modules/closeout (EXTRA_DIST): Add closeout.h.
95365         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
95366         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
95367         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
95368         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
95369         dirname.h; remove basename.c and stripslash.c.
95370         * modules/exclude (EXTRA_DIST): Add exclude.h.
95371         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
95372         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
95373         * modules/file-type (EXTRA_DIST): Add file-type.h.
95374         * modules/filemode (EXTRA_DIST): Add filemode.h.
95375         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
95376         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
95377         * modules/fpending (EXTRA_DIST): Add __fpending.h.
95378         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
95379         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
95380         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
95381         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
95382         * modules/getdate (EXTRA_DIST): Add getdate.c.
95383         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
95384         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
95385         * modules/getpass (EXTRA_DIST): Add getpass.h.
95386         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
95387         * modules/group-member (EXTRA_DIST): Add group-member.h.
95388         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
95389         * modules/hash (EXTRA_DIST): Add hash.h.
95390         * modules/human (EXTRA_DIST): Add human.h.
95391         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
95392         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
95393         * modules/lchown (EXTRA_DIST): Add lchown.h.
95394         * modules/long-options (EXTRA_DIST): Add long-options.h.
95395         * modules/lstat (EXTRA_DIST): Add lstat.h.
95396         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
95397         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
95398         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
95399         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
95400         * modules/memxor (EXTRA_DIST): Add memxor.h.
95401         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
95402         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
95403         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
95404         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
95405         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
95406         * modules/physmem (EXTRA_DIST): Add physmem.h.
95407         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
95408         * modules/posixver (EXTRA_DIST): Add posixver.h.
95409         * modules/quote (EXTRA_DIST): Add quote.h.
95410         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
95411         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
95412         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
95413         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
95414         regex_internal.h regexec.c.
95415         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
95416         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
95417         * modules/same (EXTRA_DIST): Add same.h.
95418         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
95419         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
95420         * modules/savedir (EXTRA_DIST): Add savedir.h.
95421         * modules/sha1 (EXTRA_DIST): Add sha1.h.
95422         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
95423         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
95424         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
95425         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
95426         * modules/strdup (EXTRA_DIST): Add strdup.h.
95427         * modules/strftime (EXTRA_DIST): Add strftime.h.
95428         * modules/strndup (EXTRA_DIST): Add strndup.h.
95429         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
95430         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
95431         * modules/time_r (EXTRA_DIST): Add time_r.h.
95432         * modules/timespec (EXTRA_DIST): Add timespec.h.
95433         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
95434         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
95435         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
95436         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
95437         * modules/userspec (EXTRA_DIST): Add userspec.h.
95438         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
95439         * modules/utimens (EXTRA_DIST): Add utimens.h.
95440         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
95441         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
95442         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
95443         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
95444         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
95445         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
95446         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
95447         * modules/yesno (EXTRA_DIST): Add yesno.h.
95449 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
95451         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
95453         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
95454         * m4/dev-ino.m4, same-inode.m4: Remove.
95456         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
95457         * m4/acl.m4 (AC_FUNC_ACL):
95458         * m4/backupfile.m4 (gl_BACKUPFILE):
95459         * m4/c-strtod.m4 (gl_C99_STRTOLD):
95460         * m4/canon-host.m4 (gl_CANON_HOST):
95461         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
95462         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
95463         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
95464         * m4/cloexec.m4 (gl_CLOEXEC):
95465         * m4/close-stream.m4 (gl_CLOSE_STREAM):
95466         * m4/closeout.m4 (gl_CLOSEOUT):
95467         * m4/dirfd.m4 (gl_FUNC_DIRFD):
95468         * m4/dirname.m4 (gl_DIRNAME):
95469         * m4/exclude.m4 (gl_EXCLUDE):
95470         * m4/exitfail.m4 (gl_EXITFAIL):
95471         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
95472         * m4/file-type.m4 (gl_FILE_TYPE):
95473         * m4/filemode.m4 (gl_FILEMODE):
95474         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
95475         * m4/fpending.m4 (gl_FUNC_FPENDING):
95476         * m4/fprintftime.m4 (gl_FPRINTFTIME):
95477         * m4/fts.m4 (gl_FUNC_FTS):
95478         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
95479         * m4/getdate.m4 (gl_GETDATE):
95480         * m4/gethrxtime.m4 (gl_GETHRXTIME):
95481         * m4/getpagesize.m4 (gl_GETPAGESIZE):
95482         * m4/getpass.m4 (gl_FUNC_GETPASS):
95483         * m4/gettime.m4 (gl_GETTIME):
95484         * m4/getugroups.m4 (gl_GETUGROUPS):
95485         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
95486         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
95487         * m4/hard-locale.m4 (gl_HARD_LOCALE):
95488         * m4/hash.m4 (gl_HASH):
95489         * m4/idcache.m4 (gl_IDCACHE):
95490         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
95491         * m4/lchown.m4 (gl_FUNC_LCHOWN):
95492         * m4/long-options.m4 (gl_LONG_OPTIONS):
95493         * m4/lstat.m4 (gl_FUNC_LSTAT):
95494         * m4/md5.m4 (gl_MD5):
95495         * m4/memcasecmp.m4 (gl_MEMCASECMP):
95496         * m4/memcoll.m4 (gl_MEMCOLL):
95497         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
95498         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
95499         * m4/memxor.m4 (gl_MEMXOR):
95500         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
95501         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
95502         * m4/modechange.m4 (gl_MODECHANGE):
95503         * m4/mountlist.m4 (gl_MOUNTLIST):
95504         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
95505         * m4/openat.m4 (gl_FUNC_OPENAT):
95506         * m4/pathmax.m4 (gl_PATHMAX):
95507         * m4/physmem.m4 (gl_PHYSMEM):
95508         * m4/posixtm.m4 (gl_POSIXTM):
95509         * m4/posixver.m4 (gl_POSIXVER):
95510         * m4/quote.m4 (gl_QUOTE):
95511         * m4/quotearg.m4 (gl_QUOTEARG):
95512         * m4/readtokens.m4 (gl_READTOKENS):
95513         * m4/readutmp.m4 (gl_READUTMP):
95514         * m4/regex.m4 (gl_REGEX):
95515         * m4/safe-read.m4 (gl_SAFE_READ):
95516         * m4/safe-write.m4 (gl_SAFE_WRITE):
95517         * m4/same.m4 (gl_SAME):
95518         * m4/save-cwd.m4 (gl_SAVE_CWD):
95519         * m4/savedir.m4 (gl_SAVEDIR):
95520         * m4/settime.m4 (gl_SETTIME):
95521         * m4/sha1.m4 (gl_SHA1):
95522         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
95523         * m4/stat-macros.m4 (gl_STAT_MACROS):
95524         * m4/stat-time.m4 (gl_STAT_TIME):
95525         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
95526         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
95527         * m4/strdup.m4 (gl_FUNC_STRDUP):
95528         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
95529         * m4/strndup.m4 (gl_FUNC_STRNDUP):
95530         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
95531         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
95532         * m4/time_r.m4 (gl_TIME_R):
95533         * m4/timespec.m4 (gl_TIMESPEC):
95534         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
95535         * m4/unlinkdir.m4 (gl_UNLINKDIR):
95536         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
95537         * m4/userspec.m4 (gl_USERSPEC):
95538         * m4/utimecmp.m4 (gl_UTIMECMP):
95539         * m4/utimens.m4 (gl_UTIMENS):
95540         * m4/xalloc.m4 (gl_XALLOC):
95541         * m4/xgetcwd.m4 (gl_XGETCWD):
95542         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
95543         * m4/xreadlink.m4 (gl_XREADLINK):
95544         * m4/xstrtod.m4 (gl_XSTRTOD):
95545         * m4/yesno.m4 (gl_YESNO):
95546         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
95547         to get the necessary .h files and whatnot.
95549 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
95550             Bruno Haible  <bruno@clisp.org>
95552         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
95553         /bin/sh understanding of '!' conditional negation.
95555 2006-08-21  Jim Meyering  <jim@meyering.net>
95557         * modules/openat (Depends-on): Really alphabetize.
95559         * modules/acl (Depends-on): Add error and quote.
95561         * check-module (find_included_lib_files): Add at-func.c to the
95562         ok-to-include-more-than-once white list.
95564         * modules/openat (Depends-on): Add lstat.  Alphabetize.
95566 2006-08-21  Bruno Haible  <bruno@clisp.org>
95568         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
95569         Emit a pkgdata_DATA variable only if some snippets add contents to it.
95570         Reported by Martin Lambers <marlam@marlam.de>.
95572 2006-08-21  Bruno Haible  <bruno@clisp.org>
95574         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
95575         specify an installation location, don't emit a noinst_LIBRARIES or
95576         noinst_LTLIBRARIES assignment.
95578 2006-08-21  Bruno Haible  <bruno@clisp.org>
95580         BeOS portability.
95581         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
95582         BeOS has mbrtowc() but no <wctype.h>.
95584 2006-08-21  Bruno Haible  <bruno@clisp.org>
95586         BeOS portability.
95587         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
95588         exist.
95590 2006-08-21  Bruno Haible  <bruno@clisp.org>
95592         BeOS portability.
95593         * lib/mbchar.h: Include <wctype.h> only if it exists.
95595 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
95597         Remove files that are no longer needed by their respective modules.
95598         * m4/obstack.m4: Remove.
95599         * m4/strerror_r.m4: Remove.
95600         * m4/uint32_t.m4: Remove.
95601         * m4/uintptr_t.m4: Remove.
95602         * m4/ullong_max.m4: Remove.
95603         * m4/xstrtoimax.m4: Remove.
95604         * m4/xstrtoumax.m4: Remove.
95606         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
95607         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
95608         dependencies now capture this.
95610         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
95611         Do not use AC_LIBSOURCES, since gnulib modules now do this.
95612         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
95613         * m4/human.m4 (gl_HUMAN): Likewise.
95614         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
95615         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
95617         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
95619         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
95620         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
95621         stdint.
95622         * m4/human.m4 (gl_HUMAN): Likewise.
95623         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
95624         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
95625         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
95626         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
95627         * m4/xstrtol (gl_XSTRTOL): Likewise.
95629         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
95630         AC_TYPE_LONG_LONG_INT.
95631         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
95632         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
95633         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
95634         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
95636         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
95637         on stdbool.
95639         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
95640         (gl_PREREQ_XSTRTOUL): Remove.
95642         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
95644         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
95645         mode.
95647 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
95649         Add and change modules to make it easier for coreutils to use
95650         gnulib-tool.
95651         * modules/backupfile (Files): Remove m4/d-ino.m4.
95652         (Depends-on): Add d-ino.
95653         * modules/cycle-check (Depends-on): Add stdint.
95654         (lib_SOURCES): Add cycle-check.h.
95655         * modules/d-ino: New module.
95656         * modules/d-type: New module.
95657         * modules/error (Files): Remove m4/strerror_r.m4.
95658         * modules/filemode (Files): Add m4/st_dm_mode.m4.
95659         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
95660         m4/inttypes_h.m4, m4/uintmax_t.m4.
95661         (Depends-on): Add stdint.
95662         (lib_SOURCES): Add fsusage.h.
95663         * modules/getcwd (Files): Remove d-ino.m4.
95664         (Depends-on): Add d-ino.
95665         * modules/getndelim2 (Depends-on): Add stdint.
95666         * modules/glob (Files): Remove m4/d-type.m4.
95667         (Depends-on): Add d-type.
95668         * modules/host-os: New module.
95669         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
95670         m4/inttypes_h.m4, m4/uintmax_t.m4.
95671         * Depends-on: Add stdint.
95672         (lib_SOURCES): Add human.h.
95673         * modules/inttostr (Files): Remove m4/intmax_t.m4,
95674         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
95675         m4/uintmax_t.m4, m4/ulonglong.m4.
95676         (Depends-on): Add stdint.
95677         (EXTRA_DIST): Add inttostr.h.
95678         * modules/lchmod: New module.
95679         * modules/link-follow: New module.
95680         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
95681         (Depends-on): Add lchmod.
95682         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
95683         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
95684         (Depends-on): Add stdint.
95685         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
95686         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
95687         (Depends-on): Add stdint.
95688         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
95689         * modules/perl: New module.
95690         * modules/regex (Depends-on): Add stdint.
95691         * modules/rmdir-errno: New module.
95692         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
95693         m4/intmax_t.m4.
95694         (Depends-on): Add stdint.
95695         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
95696         m4/uintmax_t.m4.
95697         (Depends-on): Add stdint.
95698         * modules/unlink-busy: New module.
95699         * modules/utimecmp (Depends-on): Add stdint.
95700         * modules/uptime: New module.
95701         * modules/winsz-ioctl: New module.
95702         * modules/winsz-termios: New module.
95703         * modules/xnanosleep (Depends-on): Add nanosleep.
95704         * modules/ullong_max: Remove.
95705         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
95706         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
95707         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
95708         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
95709         (Depends-on): Add inttypes.
95710         (lib_SOURCES): Add xstrtol.h.
95711         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
95712         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
95713         * MODULES.html.sh: Move 'assert' into the assert section.
95714         Move 'dummy' into the linking section.
95715         Remove ullong_max.
95716         Add section for compatibility checks for POSIX:2001 functions,
95717         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
95718         winsz-ioctl, and winsz-termios into it.
95719         Add lchmod.
95720         Add top-level Misc section and put host-os, perl, and uptime
95721         into it.
95723 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
95725         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
95726         now assume the stdint module.  Do not include inttypes.h.
95727         * lib/fsusage.h: Likewise.
95728         * lib/getndelim2.c: Likewise.
95729         * lib/human.h: Likewise.
95730         * lib/inttostr.h: Likewise.
95731         * lib/obstack.c: Likewise.
95732         * lib/regex_internal.h: Likewise.
95733         * lib/tempname.c: Likewise.
95734         * lib/utimecmp.c: Likewise.
95735         * lib/xstrtol.h: Likewise.
95737         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
95739         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
95740         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
95741         * lib/xtime.h: Likewise.
95743 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
95745         * modules/openat (Files): Add lib/fchmodat.c.
95746         Fixes problem reported by Jay Youngman.
95748 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
95750         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
95751         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
95753 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
95754             Bruno Haible  <bruno@clisp.org>
95756         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
95757         and is a script that invokes bison. Tighten the code. Add comments.
95759 2006-08-18  Jim Meyering  <jim@meyering.net>
95761         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
95762         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
95763         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
95764         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
95766 2006-08-18  Bruno Haible  <bruno@clisp.org>
95768         * modules/bison-i18n: New file.
95769         * MODULES.html.sh (Internationalization functions): Add it.
95771 2006-08-18  Bruno Haible  <bruno@clisp.org>
95773         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
95774         sys/statvfs.h. When getmntinfo was found, check its declaration and
95775         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
95777 2006-08-18  Bruno Haible  <bruno@clisp.org>
95779         * m4/bison-i18n.m4: New file, from bison.
95781 2006-08-18  Bruno Haible  <bruno@clisp.org>
95783         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
95784         (ME_DUMMY): Treat "kernfs" as a dummy.
95785         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
95787 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
95789         Update from coreutils.
95791         2006-08-15  Jim Meyering  <jim@meyering.net>
95793         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
95795         2006-01-17  Jim Meyering  <jim@meyering.net>
95797         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
95799         2006-01-11  Jim Meyering  <jim@meyering.net>
95801         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
95802         Check for the lchmod function.
95804 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
95806         Update from coreutils.
95808         * lib/__fpending.h: Add copyright notice.
95809         * lib/fprintftime.h: Likewise.
95810         * lib/savedir.c: Use (C) in copyright notice.
95811         * lib/savedir.h: Likewise.
95813         2006-08-15  Jim Meyering  <jim@meyering.net>
95815         * lib/at-func.c: New file, with the logic of all emulated at-functions.
95816         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
95817         in support of the EXPECTED_ERRNO macro.
95818         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
95819         definitions.  Instead, define the appropriate symbols and include
95820         "at-func.c".
95821         * lib/mkdirat.c (mkdirat): Likewise.
95822         * lib/fchmodat.c (fchmodat): Likewise.
95823         (ENOSYS): Remove definition.
95824         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
95825         it.  Don't include "unistd--.h" -- it wasn't ever used.
95827         2006-01-17  Jim Meyering  <jim@meyering.net>
95829         Rewrite fts.c not to change the current working directory,
95830         by using openat, fstatat, fdopendir, etc..
95832         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
95833         (HAVE_OPENAT_SUPPORT): Define.
95834         [_LIBC] (fchdir): Don't undef or define; no longer used.
95835         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
95836         Now, this `function' always succeeds, and consumes its file descriptor
95837         parameter -- so callers must not close such FDs.  Update callers.
95838         (diropen_fd, opendirat, cwd_advance_fd): New functions.
95839         (diropen): Add parameter, SP.  Adjust all callers.
95840         Implement using diropen_fd, rather than open.
95841         (fts_open): Initialize new member, fts_cwd_fd.
95842         Remove fts_rft-setting code.
95843         (fts_close): Close fts_cwd_fd, if necessary.
95844         (__opendir2): Define in terms of opendir or opendirat,
95845         depending on whether the FST_NOCHDIR flag is set.
95846         (fts_build): Since fts_safe_changedir consumes its FD, and since
95847         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
95848         and close the dup'd file descriptor upon failure.
95849         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
95850         (fts_safe_changedir): Tweak semantics to reflect that this function
95851         now calls cwd_advance_fd and hence consumes its FD argument.
95852         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
95853         [struct FTS] (fts_rft): Remove now-unused member.
95854         [struct FTS] (fts_cycle.state): Improve comment.
95856         * lib/openat.c (openat_needs_fchdir): New function.
95857         * lib/openat.h (openat_needs_fchdir): Declare it.
95859 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
95861         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
95862         Problem and fix reported by Pádraig Brady in
95863         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
95865 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
95867         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
95869 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
95871         * lib/memcoll.c (memcoll): Optimize for the common case where the
95872         arguments are bytewise equal.
95874 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
95876         * doc/regexprops-generic.texi: Add a copyright notice.
95878 2006-08-15  Bruno Haible  <bruno@clisp.org>
95880         * modules/tmpdir (License): Change to LGPL.
95882 2006-08-15  Bruno Haible  <bruno@clisp.org>
95884         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
95885         module.
95887 2006-08-14  Simon Josefsson  <jas@extundo.com>
95889         * config/srclist.txt: Add gnupload.
95891 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
95893         Change copyright notice from LGPL 2 to GPL 2, since that's the
95894         standard form used in the gnulib repository.
95895         * tests/test-lock.c: Likewise.
95896         * tests/test-stdint.c: Likewise.
95897         * tests/test-tls.c: Likewise.
95899         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
95900         prelude-manager.  User shorter URLs for GNU projects, without '?'.
95901         Add copyright notice.
95903         * check-module: Add copyright notice.  Output a copyright
95904         notice if "--version" is specified.
95905         * modules/COPYING: New file.
95906         * tests/test-getaddrinfo.c: Add copyright notice.
95907         * tests/test-verify.c: Likewise.
95909 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
95911         Change copyright notice from LGPL 2 to GPL 2, since that's the
95912         standard form used in the gnulib repository.
95913         * lib/lock.c: LGPL -> GPL.
95914         * lib/lock.h: Likewise.
95915         * lib/strnlen1.c: Likewise.
95916         * lib/strnlen1.h: Likewise.
95917         * lib/tls.c: Likewise.
95918         * lib/tls.h: Likewise.
95919         * lib/tmpdir.c: Likewise.
95921         * lib/TODO: Remove; this belongs only in coreutils.
95923 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
95925         Add copyright notices to long-enough files that lack them, since
95926         otherwise the files aren't clearly free.  Use the same notice that
95927         getdate.texi already uses.
95928         * doc/alloca-opt.texi: Add copyright notice.
95929         * doc/alloca.texi: Likewise.
95930         * doc/ctime.texi: Likewise.
95931         * doc/functions.texi: Likewise.
95932         * doc/gcd.texi: Likewise.
95933         * doc/gnulib-tool.texi: Likewise.
95934         * doc/inet_ntoa.texi: Likewise.
95935         * doc/visibility.texi: Likewise.
95937         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
95938         * doc/quote.texi: Add copyright notice.
95940         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
95941         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
95942         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
95943         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
95944         is now obsolete, and give a pointer to the Sun list.
95945         Add copyright notice.
95947 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
95949         * config/srclistvars.sh: Add copyright notice.
95951 2006-08-14  Eric Blake  <ebb9@byu.net>
95953         Import the following change from libc:
95955         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
95957         Upstream bug 2997.
95958         * lib/misc/error.c: Add space between program name and message if file
95959         name is missing.
95961 2006-08-12  Karl Berry  <karl@gnu.org>
95963         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
95964         remove, these originate in gnulib now.
95966 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95968         * doc/Makefile (standards.info standards.html standards.dvi):
95969         Also depend on make-stds.texi.
95971 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
95973         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
95974         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
95976         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
95977         in wchar_t.  Problem reported by Eric Blake.
95979         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
95980         LEN is smaller than SIZE.  Suggested by Bruno Haible.
95981         Also, help the compiler to keep LEN in a register.
95983 2006-08-11  Eric Blake  <ebb9@byu.net>
95985         * users.txt: Sort.  Add tar.
95987 2006-08-11  Bruno Haible  <bruno@clisp.org>
95989         * users.txt: New file.
95991 2006-08-11  Bruno Haible  <bruno@clisp.org>
95993         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
95994         before <wchar.h>. Needed for OSF/1 and BSD/OS.
95996 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
95998         * modules/snprintf (Depends-on): Remove minmax.
95999         (Maintainer): Add self and Bruno.
96001 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
96003         * lib/.cppi-disable: Add snprintf.h, socket_.h.
96004         * lib/snprintf.c: Include <errno.h> and <limits.h>.
96005         (EOVERFLOW): Define if the system does not.
96006         Do not include "minmax.h"; it wasn't used.
96007         (snprintf): Don't assume size_t promotes to an unsigned type.
96008         Fix bug when generated string was too long for the buffer: the
96009         buffer's contents are supposed to be the initial prefix of the
96010         output.  Don't assume vasnprintf returns EOVERFLOW if the size
96011         exceeds INT_MAX; do the check ourselves.
96013         Import the following changes from libc:
96015         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
96017         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
96018         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
96019         set wc to the byte which couldn't be converted.
96020         (re_string_reconstruct): Don't clear valid_raw_len before calling
96021         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
96022         tip_context using re_string_context_at.
96024         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
96026         * lib/posix/regex.h: g++ still cannot handled [restrict].
96028         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
96030         * lib/posix/regex.h: Remove special handling for VMS.
96032 2006-08-10  Jim Meyering  <jim@meyering.net>
96034         * modules/same-inode: New module.
96035         * modules/dev-ino: New module.
96036         * modules/cycle-check: Depend on these modules, rather than simply
96037         including their .h files.
96038         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
96039         required via m4/cycle-check.m4.
96040         * modules/same: Depend on new same-inode module, rather than
96041         including same-inode.h.
96042         * modules/chdir-safer: New file.
96044         * modules/chown (Depends-on): Add stat-macros.
96046 2006-08-10  Jim Meyering  <jim@meyering.net>
96048         * m4/cycle-check.m4: New file.
96049         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
96050         * m4/dev-ino.m4, m4/same-inode.m4: New files.
96052 2006-08-10  Eric Blake  <ebb9@byu.net>
96054         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
96055         in from original proposal.
96057 2006-08-10  Eric Blake  <ebb9@byu.net>
96058         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
96060         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
96061         namespace.
96063 2006-08-10  Bruno Haible  <bruno@clisp.org>
96065         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
96066         as well.
96068 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
96070         Sync from coreutils.
96072         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
96074         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
96075         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
96077 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
96079         * modules/restrict: Remove; no longer needed now that we assume
96080         Autoconf 2.59 or later.
96081         * MODULES.html.sh: Remove 'restrict'.
96082         * modules/argp (Depends-on): Remove 'restrict'.
96083         * modules/base64 (Depends-on): Likewise.
96084         * modules/gc (Depends-on): Likewise.
96085         * modules/getaddrinfo (Depends-on): Likewise.
96086         * modules/glob (Depends-on): Likewise.
96087         * modules/inet_ntop (Depends-on): Likewise.
96088         * modules/inet_pton (Depends-on): Likewise.
96089         * modules/memxor (Depends-on): Likewise.
96090         * modules/regex (Depends-on): Likewise.
96091         * modules/strtok_r (Depends-on): Likewise.
96092         * modules/time_r (Depends-on): Likewise.
96094 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
96096         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
96097         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
96098         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
96099         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
96100         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
96101         * m4/memxor.m4 (gl_MEMXOR): Likewise.
96102         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
96103         gl_C_RESTRICT replaced by AC_C_RESTRICT.
96105         Merge from coreutils.
96106         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
96107         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
96108         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
96109         * m4/time_r.m4 (gl_TIME_R): Likewise.
96111 2006-08-09  Karl Berry  <karl@gnu.org>
96113         * config/srclist.txt: no more gettext-tools, per Bruno.
96115 2006-08-08  Eric Blake  <ebb9@byu.net>
96117         * modules/verror: New module.
96118         * MODULES.html.sh: Document it.
96120 2006-08-08  Eric Blake  <ebb9@byu.net>
96122         * lib/verror.h, lib/verror.c: New files.
96124 2006-08-08  Eric Blake  <ebb9@byu.net>
96126         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
96127         verror_at_line output complies with GNU Coding Standards even when
96128         file is NULL.
96130 2006-08-07  Bruno Haible  <bruno@clisp.org>
96132         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
96133         versions of AIX.
96134         Reported by Ralf Wildenhues.
96136 2006-08-07  Bruno Haible  <bruno@clisp.org>
96138         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
96139         in an AC_DEFUN. Needed so that the autoconf snippets can use
96140         AC_REQUIRE.
96142 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96144         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
96145         Initialize pkgdata_DATA.
96146         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
96147         overriding it.
96149 2006-08-06  Eric Blake  <ebb9@byu.net>
96151         * lib/error.h: Fold in some upstream changes from glibc.
96152         * lib/error.c: Likewise.
96154 2006-08-04  Bruno Haible  <bruno@clisp.org>
96156         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
96157         Make the mostlyclean-local rule depend on mostlyclean-generic.
96158         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
96160 2006-07-31  Bruno Haible  <bruno@clisp.org>
96162         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
96163         <stdlib.h>, <string.h>.
96165 2006-07-30  Bruno Haible  <bruno@clisp.org>
96167         * modules/readlink (License): Change to LGPL.
96169 2006-07-30  Bruno Haible  <bruno@clisp.org>
96171         * modules/javaversion (Makefile.am): Distribute javaversion.java and
96172         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
96173         set PKGDATADIR to point to it.
96175 2006-07-30  Bruno Haible  <bruno@clisp.org>
96177         * modules/csharpexec (configure.ac): Comment out macro invocation.
96178         * modules/javaexec (configure.ac): Likewise.
96179         * modules/javacomp-script (configure.ac): Likewise.
96181         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
96183 2006-07-30  Bruno Haible  <bruno@clisp.org>
96185         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
96186         linked-list.
96188 2006-07-30  Bruno Haible  <bruno@clisp.org>
96190         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
96192 2006-07-30  Bruno Haible  <bruno@clisp.org>
96194         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
96195         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
96196         get removed.
96198 2006-07-29  Bruno Haible  <bruno@clisp.org>
96200         Make it possible for gnulib-tool to work with locally modified or
96201         augmented gnulib repositories.
96202         * gnulib-tool (func_usage): Document --local-dir option.
96203         (local_gnulib_dir): New variable.
96204         Handle --local-dir option.
96205         (func_lookup_file): New function.
96206         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
96207         (func_get_description, func_get_filelist, func_get_description,
96208         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
96209         func_get_automake_snippet, func_get_include_directive,
96210         func_get_license, func_get_maintainer): Use func_lookup_file.
96211         (func_import, func_create_testdir): Use func_lookup_file.
96213 2006-07-29  Bruno Haible  <bruno@clisp.org>
96215         * modules/setenv (Depends-on): Add unistd.
96217 2006-07-29  Bruno Haible  <bruno@clisp.org>
96219         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
96221 2006-07-29  Bruno Haible  <bruno@clisp.org>
96223         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
96225 2006-07-29  Bruno Haible  <bruno@clisp.org>
96227         * gnulib-tool (import, update): If there is no Makefile.am, look at
96228         aclocal.m4, instead of bailing out.
96230 2006-07-29  Bruno Haible  <bruno@clisp.org>
96232         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
96233         Categorize the options by when they are useful.
96235 2006-07-29  Bruno Haible  <bruno@clisp.org>
96237         * gnulib-tool (func_usage): Document option --no-libtool.
96238         Handle option --no-libtool.
96239         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
96240         for changed semantics of $libtool variable.
96241         (func_import): Likewise. If libtool is not used, show this through
96242         an option --no-libtool.
96243         (func_create_testdir): Update.
96245 2006-07-29  Bruno Haible  <bruno@clisp.org>
96247         * gnulib-tool (func_import): Extend error message about missing
96248         --doc-base.
96250 2006-07-29  Bruno Haible  <bruno@clisp.org>
96252         * gnulib-tool (func_import): Don't create the $docbase directory if
96253         there is no file to store there.
96255 2006-07-29  Bruno Haible  <bruno@clisp.org>
96257         * gnulib-tool (autoconf_minversion): If a --dir option is given and
96258         relevant, look for configure.ac there, not in the current directory.
96259         Also use a simple search for AC_PREREQ, not "autoconf --trace".
96261 2006-07-29  Bruno Haible  <bruno@clisp.org>
96263         * gnulib-tool (SORT): New variable.
96264         (func_usage): Undocument --assume-autoconf option.
96265         Remove --assume-autoconf option handling.
96266         (autoconf_minversion): Determine from the contents of configure.ac.
96267         (func_import): Remove autoconf_minversion handling.
96268         Suggested by Eric Blake.
96270 2006-07-29  Bruno Haible  <bruno@clisp.org>
96272         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
96274 2006-07-29  Bruno Haible  <bruno@clisp.org>
96276         * config/srclist.txt (*setenv.[ch]): Remove rules.
96278 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
96280         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
96282 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
96284         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
96285         arpa/inet.h.
96287 2006-07-28  Simon Josefsson  <jas@extundo.com>
96289         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
96290         * modules/inet_pton (Depends-on): Likewise.
96292 2006-07-28  Simon Josefsson  <jas@extundo.com>
96294         * m4/netinet_in_h.m4: New file.
96296 2006-07-28  Simon Josefsson  <jas@extundo.com>
96298         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
96299         #include's.
96301 2006-07-28  Simon Josefsson  <jas@extundo.com>
96303         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
96304         #include's.
96306 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
96308         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
96309         setgid on directories only if they set these bits.
96310         * lib/modechange.h: Remove obsolete comment about masks.
96312 2006-07-28  Eric Blake  <ebb9@byu.net>
96314         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
96315         macro expansion.
96317 2006-07-28  Bruno Haible  <bruno@clisp.org>
96319         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
96321 2006-07-28  Bruno Haible  <bruno@clisp.org>
96323         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
96325 2006-07-28  Bruno Haible  <bruno@clisp.org>
96327         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
96328         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
96329         Define fallbacks.
96330         Avoids link error on FreeBSD 4.x.
96331         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
96333         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
96334         encoding.
96335         * lib/mbswidth.c (iswcntrl): Likewise.
96337 2006-07-27  Bruno Haible  <bruno@clisp.org>
96339         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
96340         test.
96342 2006-07-27  Bruno Haible  <bruno@clisp.org>
96344         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
96345         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
96346         defined.
96348 2006-07-26  Eric Blake  <ebb9@byu.net>
96350         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
96352 2006-07-26  Eric Blake  <ebb9@byu.net>
96354         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
96355         like mingw that lack mkstemp.
96356         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
96357         avoid compilation warning on mingw.
96359 2006-07-26  Bruno Haible  <bruno@clisp.org>
96361         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
96362         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
96363         INT_FAST*_MIN, INTPTR_MIN.
96365 2006-07-25  Bruno Haible  <bruno@clisp.org>
96367         * modules/version-etc (Depends-on): Add stdarg.
96369 2006-07-25  Bruno Haible  <bruno@clisp.org>
96371         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
96372         complex commands.
96374 2006-07-25  Bruno Haible  <bruno@clisp.org>
96376         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
96377         defined in <stdarg.h> or config.h.
96379 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
96381         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
96382         (gl_STDIO_SAFER): Remove.
96384 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
96386         * MODULES.html.sh (File stream based Input/Output):
96387         Add fopen-safer, tmpfile-safer; remove stdio-safer.
96388         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
96389         * modules/fopen-safer, modules/tmpfile-safer: New files.
96390         * modules/stdio-safer: Remove.
96392 2006-07-24  Bruno Haible  <bruno@clisp.org>
96394         * modules/tmpdir: New file.
96395         * MODULES.html.sh (File system functions): Add it.
96397 2006-07-24  Bruno Haible  <bruno@clisp.org>
96399         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
96400         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
96402 2006-07-24  Bruno Haible  <bruno@clisp.org>
96404         * modules/clean-temp: New file.
96406 2006-07-24  Bruno Haible  <bruno@clisp.org>
96408         * m4/tmpdir.m4: New file, from GNU gettext.
96410 2006-07-24  Bruno Haible  <bruno@clisp.org>
96412         * lib/tmpdir.h: New file, from GNU gettext.
96413         * lib/tmpdir.c: New file, from GNU gettext.
96415 2006-07-24  Bruno Haible  <bruno@clisp.org>
96417         * lib/clean-temp.h: New file, from GNU gettext.
96418         * lib/clean-temp.c: New file, from GNU gettext.
96420 2006-07-23  Eric Blake  <ebb9@byu.net>
96422         * modules/stdio-safer (Files): Add tmpfile-safer.c.
96423         (Depends-on): Add binary-io.
96425 2006-07-23  Eric Blake  <ebb9@byu.net>
96427         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
96429 2006-07-23  Eric Blake  <ebb9@byu.net>
96431         * lib/tmpfile-safer.c: New file.
96432         * lib/stdio-safer.h (fopen_safer): Add prototype.
96433         * lib/stdio--.h (tmpfile): Make safer.
96435 2006-07-23  Bruno Haible  <bruno@clisp.org>
96437         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
96438         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
96439         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
96440         gl_linked_remove_at): Use it.
96442 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
96443         and Simon Josefsson <jas@extundo.com>
96445         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
96447         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
96449 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
96451         * modules/close-stream: New file.
96452         * modules/closeout (Description): Make it clear that it exits
96453         with a diagnostic on error.
96454         (Depends-on): Add close-stream.  Remove fpending, stdbool.
96455         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
96457 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
96459         * m4/close-stream.m4: New file.
96461 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
96463         * lib/close-stream.c, lib/close-stream.h: New files.
96465 2006-07-22  Bruno Haible  <bruno@clisp.org>
96467         Merge from GNU gettext 0.15.
96469         2006-05-01  Bruno Haible  <bruno@clisp.org>
96471                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
96473         2006-07-22  Bruno Haible  <bruno@clisp.org>
96475                 * modules/javaversion: New file.
96476                 * MODULES.html.sh (Java): Add javaversion.
96478         2006-03-12  Bruno Haible  <bruno@clisp.org>
96480                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
96482         2005-12-04  Bruno Haible  <bruno@clisp.org>
96484                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
96485                 (untested).
96487         2006-06-21  Bruno Haible  <bruno@clisp.org>
96489                 Avoid warnings from recent versions of mcs.
96490                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
96491                 -o, -L, -r any more. Use options documented since mcs-1.0
96492                 instead. Similarly for -g.
96494         2005-12-04  Bruno Haible  <bruno@clisp.org>
96496                 * build-aux/csharpcomp.sh.in: Suffix for resources is
96497                 .resources, not .resource.
96499         2005-07-09  Bruno Haible  <bruno@clisp.org>
96501                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
96502                 add a .dll suffix.
96503                 Reported by Mark Junker <mjscod@gmx.de>.
96505         2006-07-22  Bruno Haible  <bruno@clisp.org>
96507                 * modules/gettext: Upgrade to gettext-0.15.
96508                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
96509                 m4/visibility.m4.
96510                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
96512 2006-07-22  Bruno Haible  <bruno@clisp.org>
96514         Merge from GNU gettext 0.15.
96516         2006-03-25  Bruno Haible  <bruno@clisp.org>
96518                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
96520         2006-07-21  Bruno Haible  <bruno@clisp.org>
96522                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
96523                 "1.1".
96525         2006-05-09  Bruno Haible  <bruno@clisp.org>
96527                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
96528                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
96529                 for the conftestver execution.
96531         2006-05-01  Bruno Haible  <bruno@clisp.org>
96533                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
96534                 optional target-version argument. Verify that the compiler
96535                 groks source of the specified source-version, or add -source
96536                 option as necessary. Verify that the compiler produces
96537                 bytecode in the specified target-version, or add -target and
96538                 -source options as necessary. Make the result of the test
96539                 available as variable CONF_JAVAC. Also log error output in
96540                 config.log.
96542         2006-03-11  Bruno Haible  <bruno@clisp.org>
96544                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
96546         2006-05-09  Bruno Haible  <bruno@clisp.org>
96548                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
96549                 CLASSPATH_SEPARATOR to a semicolon.
96551         2006-03-12  Bruno Haible  <bruno@clisp.org>
96553                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
96554                 available as variable CONF_JAVA, for subsequent autoconf
96555                 tests. Also log error output in config.log.
96557         2006-07-19  Bruno Haible  <bruno@clisp.org>
96559                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
96560                 that getline works on glibc2 systems. Needed to avoid trouble
96561                 in relocatable.c.
96562                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
96564         2005-12-04  Bruno Haible  <bruno@clisp.org>
96566                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
96567                 launcher (untested).
96569         2005-12-04  Bruno Haible  <bruno@clisp.org>
96571                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
96573         2006-07-22  Bruno Haible  <bruno@clisp.org>
96575                 * gettext.m4: Update from GNU gettext-0.15.
96576                 * nls.m4: Likewise.
96577                 * po.m4: Likewise.
96578                 * inttypes-pri.m4: Likewise.
96579                 * inttypes-h.m4: Renamed from inttypes.m4.
96580                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
96582 2006-07-22  Bruno Haible  <bruno@clisp.org>
96584         Merge from GNU gettext 0.15.
96586         2005-07-05  Bruno Haible  <bruno@clisp.org>
96588                 * printf-args.c (printf_fetchargs): Work around broken
96589                 definition of wint_t on mingw.
96591         2005-02-12  Bruno Haible  <bruno@clisp.org>
96593                 * xallocsa.h: Add extern "C" for C++.
96595         2006-05-17  Bruno Haible  <bruno@clisp.org>
96597                 Cygwin portability.
96598                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
96600         2006-04-30  Bruno Haible  <bruno@clisp.org>
96602                 * progreloc.c: Include <mach-o/dyld.h> if available.
96603                 (find_executable): Use _NSGetExecutablePath when possible.
96605         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
96607                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
96608                 function.
96610         2005-12-29  Bruno Haible  <bruno@clisp.org>
96612                 * progreloc.c (set_program_name_and_installdir): Fix
96613                 compilation error.
96615         2005-12-04  Bruno Haible  <bruno@clisp.org>
96617                 Cygwin portability.
96618                 * progreloc.c: Include <windows.h> also on Cygwin.
96619                 (find_executable): Add support for Cygwin.
96620                 (set_program_name_and_installdir): Handle also platforms with
96621                 nonempty EXEEXT.
96623         2006-07-11  Bruno Haible  <bruno@clisp.org>
96625                 * javacomp.c: Fix a comment.
96626                 Reported by Jim Meyering.
96628         2006-04-30  Bruno Haible  <bruno@clisp.org>
96630                 * javacomp.h (compile_java_class): Add source_version,
96631                 target_version arguments.
96632                 * javacomp.c: Rewritten to choose only a compiler that
96633                 respects the specified source_version and target_version.
96635         2006-06-27  Bruno Haible  <bruno@clisp.org>
96637                 Assume correct S_ISDIR macro.
96638                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
96640         2006-07-22  Bruno Haible  <bruno@clisp.org>
96642                 * javaversion.h: New file, from GNU gettext.
96643                 * javaversion.c: New file, from GNU gettext.
96644                 * javaversion.java: New file, from GNU gettext.
96645                 * javaversion.class: New file, from GNU gettext.
96647         2006-05-17  Bruno Haible  <bruno@clisp.org>
96649                 Cygwin portability.
96650                 * javaexec.c (execute_java_class): Test for jview program
96651                 also on Cygwin.
96653         2006-04-09  Bruno Haible  <bruno@clisp.org>
96655                 * fatal-signal.c: Don't include string.h.
96656                 (at_fatal_signal): Use a copying loop instead of memcpy.
96658         2005-12-04  Bruno Haible  <bruno@clisp.org>
96660                 * csharpexec.c: Add support for 'clix' launcher (untested).
96661                 (execute_csharp_using_sscli): New function.
96662                 (execute_csharp_program): Call it.
96664         2006-06-21  Bruno Haible  <bruno@clisp.org>
96666                 Avoid warnings from recent versions of mcs.
96667                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
96668                 -o, -L, -r any more. Use options documented since mcs-1.0
96669                 instead. Similarly for -g.
96671         2005-07-09  Bruno Haible  <bruno@clisp.org>
96673                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
96674                 add a .dll suffix.
96675                 Reported by Mark Junker <mjscod@gmx.de>.
96677         2006-06-17  Bruno Haible  <bruno@clisp.org>
96679                 * config.charset: Update for NetBSD 3.0.
96681         2006-05-17  Bruno Haible  <bruno@clisp.org>
96683                 Cygwin portability.
96684                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
96686         2006-05-16  Bruno Haible  <bruno@clisp.org>
96688                 * localcharset.c [CYGWIN]: Include <windows.h>.
96689                 (get_charset_aliases): For Cygwin, return the same CPxxx
96690                 aliases list as under WIN32.
96691                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
96692                 the environment variables. Fall back to GetACP().
96694         2006-04-05  Bruno Haible  <bruno@clisp.org>
96696                 * config.charset: Update Juan Manuel Guerrero's address.
96698         2005-02-12  Bruno Haible  <bruno@clisp.org>
96700                 * allocsa.h: Add extern "C" for C++.
96702         2005-02-10  Bruno Haible  <bruno@clisp.org>
96704                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
96705                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
96707         2006-07-22  Bruno Haible  <bruno@clisp.org>
96709                 * gettext.h: Update to GNU gettext-0.15.
96711 2006-07-22  Bruno Haible  <bruno@clisp.org>
96713         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
96714         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
96715         lib-prefix.m4, longdouble.m4, ssize_t.m4.
96717 2006-07-21  Eric Blake  <ebb9@byu.net>
96719         * modules/stdlib-safer: New file.
96720         * MODULES.html.sh (File stream based Input/Output): Add
96721         stdlib-safer.
96723 2006-07-21  Eric Blake  <ebb9@byu.net>
96725         * lib/stdlib-safer.h: New file from coreutils, required by
96726         stdlib--.h.
96728 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
96730         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
96732 2006-07-20  Bruno Haible  <bruno@clisp.org>
96734         * gnulib-tool: Recognize new option --assume-autoconf.
96735         (autoconf_minversion): New variable.
96736         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
96738 2006-07-20  Bruno Haible  <bruno@clisp.org>
96740         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
96742 2006-07-19  Derek R. Price  <derek@ximbiot.com>
96744         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
96745         Reindent and repaginate.
96747 2006-07-19  Derek Price  <derek@ximbiot.com>
96749         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
96750         Correct grammar.
96752 2006-07-17  Bruno Haible  <bruno@clisp.org>
96754         * modules/list: New file.
96755         * modules/array-list: New file.
96756         * modules/carray-list, modules/carray-list-tests: New files.
96757         * modules/linked-list, modules/linked-list-tests: New files.
96758         * modules/avltree-list, modules/avltree-list-tests: New files.
96759         * modules/rbtree-list, modules/rbtree-list-tests: New files.
96760         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
96761         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
96762         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
96763         * modules/oset: New file.
96764         * modules/array-oset: New file.
96765         * modules/avltree-oset, modules/avltree-oset-tests: New files.
96766         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
96767         * tests/test-carray_list.c: New file.
96768         * tests/test-linked_list.c: New file.
96769         * tests/test-avltree_list.c: New file.
96770         * tests/test-rbtree_list.c: New file.
96771         * tests/test-linkedhash_list.c: New file.
96772         * tests/test-avltreehash_list.c: New file.
96773         * tests/test-rbtreehash_list.c: New file.
96774         * tests/test-avltree_oset.c: New file.
96775         * tests/test-rbtree_oset.c: New file.
96776         * MODULES.html.sh (Container data structures): New section.
96778 2006-07-17  Bruno Haible  <bruno@clisp.org>
96780         * m4/gl_list.m4: New file.
96782 2006-07-17  Bruno Haible  <bruno@clisp.org>
96784         * lib/gl_list.h: New file.
96785         * lib/gl_list.c: New file.
96786         * lib/gl_array_list.h: New file.
96787         * lib/gl_array_list.c: New file.
96788         * lib/gl_carray_list.h: New file.
96789         * lib/gl_carray_list.c: New file.
96790         * lib/gl_linked_list.h: New file.
96791         * lib/gl_linked_list.c: New file.
96792         * lib/gl_anylinked_list1.h: New file.
96793         * lib/gl_anylinked_list2.h: New file.
96794         * lib/gl_avltree_list.h: New file.
96795         * lib/gl_avltree_list.c: New file.
96796         * lib/gl_anyavltree_list1.h: New file.
96797         * lib/gl_anyavltree_list2.h: New file.
96798         * lib/gl_rbtree_list.h: New file.
96799         * lib/gl_rbtree_list.c: New file.
96800         * lib/gl_anyrbtree_list1.h: New file.
96801         * lib/gl_anyrbtree_list2.h: New file.
96802         * lib/gl_anytree_list1.h: New file.
96803         * lib/gl_anytree_list2.h: New file.
96804         * lib/gl_linkedhash_list.h: New file.
96805         * lib/gl_linkedhash_list.c: New file.
96806         * lib/gl_anyhash_list1.h: New file.
96807         * lib/gl_anyhash_list2.h: New file.
96808         * lib/gl_avltreehash_list.h: New file.
96809         * lib/gl_avltreehash_list.c: New file.
96810         * lib/gl_rbtreehash_list.h: New file.
96811         * lib/gl_rbtreehash_list.c: New file.
96812         * lib/gl_anytreehash_list1.h: New file.
96813         * lib/gl_anytreehash_list2.h: New file.
96815         * lib/gl_oset.h: New file.
96816         * lib/gl_oset.c: New file.
96817         * lib/gl_array_oset.h: New file.
96818         * lib/gl_array_oset.c: New file.
96819         * lib/gl_avltree_oset.h: New file.
96820         * lib/gl_avltree_oset.c: New file.
96821         * lib/gl_rbtree_oset.h: New file.
96822         * lib/gl_rbtree_oset.c: New file.
96823         * lib/gl_anytree_oset.h: New file.
96825 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
96827         * m4/mkancesdirs.m4: New file.
96828         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
96829         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
96830         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
96831         it.
96833 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
96835         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
96836         * lib/mkancesdirs.h: New files.
96837         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
96838         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
96839         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
96840         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
96841         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
96842         callers changed.  Revamp internals significantly, by not
96843         attempting to create directories that are temporarily more
96844         permissive than the final results.  Do not attempt to use
96845         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
96846         This removes some race conditions, fixes some bugs, and simplifies
96847         things.  Use new dirchownmod function to do owner and mode changes.
96848         * lib/mkdir-p.h: Likewise.
96849         * lib/modechange.c (octal_to_mode): New function.
96850         (struct mode_change): New member mentioned.
96851         (make_node_op_equals): New arg mentioned.  All callers changed.
96852         (mode_compile): Keep track of which mode bits the user has explicitly
96853         mentioned.
96854         (mode_adjust): New arg DIR, so that we implement the X op correctly.
96855         New arg PMODE_BITS, to keep track of which mode bits the user
96856         mentioned; it treats S_ISUID and S_ISGID speciall.
96857         All callers changed.
96858         * lib/modechange.h: Likewise.
96860 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
96862         * MODULES.html.sh: Add mkancestors.
96863         * modules/mkancesdirs: New module.
96864         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
96865         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
96866         The chdir-safer and afs files are now orphans; I'll remove them
96867         unless someone speaks up.
96868         Add lib/dirchownmod.c, lib/dirchownmod.h.
96869         (Depends-on): Remove alloca, chown, save-cwd, dirname.
96870         Add lchown, mkancesdirs.
96871         (Maintainer): Add self.
96873 2006-07-15  Karl Berry  <karl@gnu.org>
96875         * gnulib-tool: help message wording/arrangement.
96877 2006-07-14  Simon Josefsson  <jas@extundo.com>
96879         * doc/gnulib.texi (Libtool and Windows): New section.
96881 2006-07-12  Simon Josefsson  <jas@extundo.com>
96883         * modules/gendocs (License): Fix license, approved by Karl.
96885 2006-07-12  Eric Blake  <ebb9@byu.net>
96887         * MODULES.html.sh: Add gendocs.
96889 2006-07-11  Eric Blake  <ebb9@byu.net>
96891         * modules/fdl: New module, to install doc/fdl.texi.
96892         * MODULES.html.sh: Add new section for documentation modules.
96893         * gnulib-tool: Avoid space-tab.
96894         (--doc-base): New option, to manage files from doc.
96896 2006-07-11  Eric Blake  <ebb9@byu.net>
96898         * m4/absolute-header.m4: Fix comments to match recent change.
96900 2006-07-11  Eric Blake  <ebb9@byu.net>
96902         * gnulib-tool: List --doc-base before --tests-base.
96904 2006-07-11  Derek R. Price  <derek@ximbiot.com>
96906         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
96908 2006-07-11  Bruno Haible  <bruno@clisp.org>
96910         * README: Mention where to put documentation.
96912 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96914         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
96916 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
96918         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
96919         to stdint.m4.
96921 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
96923         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
96924         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
96925         "no/such/file/stdint.h" when there is no such file, so that
96926         the resulting C code can be parsed by dodgy compilers.
96927         Problems reported by Bob Proulx.
96929 2006-07-10  Derek R. Price  <derek@ximbiot.com>
96931         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
96932         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
96933         macros into the GNU _D_EXACT_NAMLEN.
96934         * lib/savedir.c:  Likewise.
96935         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
96937 2006-07-10  Derek R. Price  <derek@ximbiot.com>
96938         and Paul Eggert  <eggert@cs.ucla.edu>
96940         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
96941         * m4/savedir.m4:
96942         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
96943         macros into the GNU _D_EXACT_NAMLEN.
96945 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
96947         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
96948         around the absolute name, to work around a problem with the HP-UX
96949         11.23 native C compiler, reported by Bob Proulx.
96951 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
96953         * doc/maintain.texi, make-stds.texi: Sync from
96954         <http://savannah.gnu.org/projects/gnustandards>.
96956 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
96958         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
96960 2006-07-09  Jim Meyering  <jim@meyering.net>
96962         * m4/glob.m4: Remove a doubled word in a comment.
96964 2006-07-09  Jim Meyering  <jim@meyering.net>
96966         * lib/argp-pv.c: Remove a doubled word in a comment.
96967         * lib/check-version.c (check_version): Likewise.
96968         * lib/javacomp.c (compile_java_class): Likewise.
96970 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
96972         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
96973         for the benefit of people using Autoconf 2.60.  If you want to
96974         support older Autoconf versions you can copy m4/onceonly_2_57.m4
96975         (or m4/onceonly.m4, if pre-2.57) manually.
96977 2006-07-08  Jim Meyering  <jim@meyering.net>
96979         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
96980         comment.
96981         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
96982         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
96983         comment.
96985 2006-07-08  Jim Meyering  <jim@meyering.net>
96987         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
96989 2006-07-07  Simon Josefsson  <jas@extundo.com>
96991         * tests/test-crc.c: Change expected crc value, the test vector
96992         were probably computed using the old broken crc.c?
96994 2006-07-06  Simon Josefsson  <jas@extundo.com>
96996         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
96997         now the canonical place for the M4 file).
96999         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
97000         from the sys_socket dependency now.
97002         * modules/inet_pton (Files): Ditto.
97004         * modules/inet_ntop (Files): Ditto.
97006 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
97008         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
97009         not gl_PREREQ_GETUSERSHELL.
97011 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97013         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
97014         with only one argument, for Autoconf 2.60.
97015         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
97016         expand to nothing, so add a shell command to avoid syntax error.
97017         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
97019 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97021         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
97023 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
97025         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
97026         no longer needed.  Check for isblank decl.
97027         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
97028         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
97029         of existence.
97031 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
97033         * lib/getloadavg.c: Use __VMS, not VMS.
97034         * lib/getopt.c: Likewise.
97035         * lib/getpagesize.h: Likewise.
97036         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
97037         and probably does not work.
97039 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
97041         * lib/.cppi-disable: Add wcwidth.
97042         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
97043         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
97044         (ISGRAPH): Remove.  All uses changed to isgraph.
97045         (FOLD) [!defined _LIBC]: Remove special case.
97046         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
97047         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
97048         HAVE_ISBLANK.
97049         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
97050         case.
97052 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
97054         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
97055         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
97056         brackets.  Other minor changes to suppress some compiler
97057         warnings.
97059 2006-07-06  Derek R. Price  <derek@ximbiot.com>
97060         and Paul Eggert  <eggert@cs.ucla.edu>
97062         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
97063         of invoking obsolescent AC_HEADER_DIRENT macro.
97064         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
97065         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
97066         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
97067         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
97068         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
97069         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
97070         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
97071         * m4/readdir.m4: Remove; no longer needed.
97073 2006-07-06  Derek R. Price  <derek@ximbiot.com>
97074         and Paul Eggert  <eggert@cs.ucla.edu>
97076         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
97077         Don't worry about this obsolete case any more.
97078         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
97079         directories.
97080         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
97081         worry about this obsolete case any more.
97082         * lib/fts.c: Likewise.
97083         * lib/getcwd.c: Likewise.
97084         * lib/glob.h: Likewise.
97085         * lib/savedir.c: Likewise.
97087 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
97089         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
97090         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
97091         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
97092         needed.
97093         All uses removed.
97094         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
97095         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
97096         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
97097         needed.
97098         * m4/getdate.m4 (gl_GETDATE): Likewise.
97099         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
97100         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
97101         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
97102         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
97103         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
97104         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
97105         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
97106         needed.
97108 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
97110         * lib/memcasecmp.c: Include <limits.h>.
97111         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
97112         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
97113         Don't assume isdigit succeeds only on '0' through '9'.
97115 2006-07-05  Eric Blake  <ebb9@byu.net>
97117         * modules/getaddrinfo (Depends-on): Add snprintf.
97119 2006-07-05  Eric Blake  <ebb9@byu.net>
97121         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
97122         to avoid 'header present but could not be compiled' on cygwin.
97124 2006-07-05  Eric Blake  <ebb9@byu.net>
97126         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
97127         missing from netdb.h.
97128         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
97130 2006-07-05  Derek R. Price  <derek@ximbiot.com>
97132         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
97133         no longer needed.
97134         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
97135         * m4/getdate.m4 (gl_GETDATE): Likewise.
97136         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
97137         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
97138         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
97139         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
97140         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
97142 2006-07-05  Derek R. Price  <derek@ximbiot.com>
97144         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
97145         All uses of is_space replaced by isspace.
97146         * lib/exit.h: Don't talk about STDC_HEADERS.
97147         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
97148         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
97149         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
97150         replaced by isprint etc.
97151         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
97152         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
97153         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
97154         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
97155         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
97156         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
97158 2006-07-05  Bruno Haible  <bruno@clisp.org>
97160         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
97161         the function exists, before testing against AIX.
97162         Reported by Martin Lambers <marlam@marlam.de>.
97164 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
97166         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
97167         From Mark D. Baushke.
97169 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
97171         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
97172         to the absolute name, not just one, to bypass Sun C 5.8's
97173         "warning: #include of /usr/include/... may be non-portable".
97175 2006-07-04  Eric Blake  <ebb9@byu.net>
97177         * modules/dirname-tests: New test module.
97178         * tests/test-dirname.c: New file, replacing dirname.c
97179         TEST_DIRNAME section that was recently deleted.
97181 2006-07-04  Bruno Haible  <bruno@clisp.org>
97183         Assume ANSI C header files and <ctype.h> functions.
97184         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
97185         (mbsnwidth): Use isprint, iscntrl instead.
97187 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
97189         Merge from coreutils.
97190         * MODULES.html.sh: Add xstrtold.
97191         * modules/xstrtold: New file.
97192         * modules/cycle-check (Files): Add lib/same-inode.h.
97193         * modules/dirname (Files): Add m4/double-slash-root.m4.
97194         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
97195         * modules/mkdir-p (Files): Add lib/same-inode.h.
97196         * modules/same (Files): Add lib/same-inode.h.
97198 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
97200         * m4/absolute-header.m4: Renamed from full-header-path.m4.
97201         This is to keep the terminology clean; POSIX talks about
97202         "absolute pathnames", not "full pathnames", but the GNU
97203         Coding Standards say to use "path" for something else;
97204         so use "absolute" to keep both sides happy.
97205         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
97206         Set gl_absolute_header, not gl_full_header_path.
97207         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
97208         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
97209         All uses changed.
97211         Merge from coreutils.
97213         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
97215         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
97216         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
97217         want to require the building of c-strtod.o.
97218         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
97219         needs -lm directly.
97220         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
97222         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
97224         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
97225         --as-needed option if available.  Problem reported by Albert Chin in
97226         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
97227         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
97228         cc merely issues a bunch of annoying warnings for --as-needed
97229         (this problem was reported by Bob Proulx).  Also, try linking with
97230         -lm to detect a bug in binutils 2.16 (this problem was reported
97231         by Ralf Wildenhues).
97233         2006-06-18  Jim Meyering  <jim@meyering.net>
97235         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
97236         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
97237         macro.
97238         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
97239         also check for glibc-2.4's abort-inducing bug.
97241         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
97242         Low-probability clean-up should be to use rmdir to get rid of
97243         the just-created directory, not unlink.
97245         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
97246         configure fail, and request a bug report to inform us about it.
97247         Add a comment that, barring reports to the contrary, in 2007 we'll
97248         assume ftruncate is universally available.
97250         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
97252         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
97254         2006-03-12  Jim Meyering  <jim@meyering.net>
97256         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
97257         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
97258         * m4/same.m4 (gl_SAME): Likewise.
97259         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
97261         2006-03-11  Eric Blake  <ebb9@byu.net>
97263         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
97264         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
97265         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
97266         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
97268 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
97270         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
97271         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
97272         reported by Mark D. Baushke, one in
97273         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
97275         Merge from coreutils.
97277         * lib/.cppi-disable: Add stdint_.h.
97278         * lib/.cvsignore: Add stdint.h.
97280         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
97282         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
97283         both double and long double versions.
97284         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
97285         * lib/xstrtold.c: New file.
97286         * lib/xstrtod.h (xstrtold): New decl.
97288         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
97290         * lib/filemode.c (setst): Remove.
97291         (strmode): Rewrite to avoid setst.  This makes the code shorter,
97292         (arguably) clearer, and the generated code is a bit smaller on my
97293         Debian GNU/Linux stable x86 host.
97295         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
97297         * lib/filemode.c: Include "filemode.h" first, to test the interface.
97298         Assume that filemode.h includes sys/types.h and sys/stat.h.
97299         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
97300         (ftypelet): Reorder to put common cases first, for efficiency.
97301         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
97302         to do 'M'.
97303         (strmode): Renamed from mode_string, and now stores 12 bytes instead
97304         of 10, for compatibility with FreeBSD.  All callers changed.
97305         (filemodestring): Now stores 12 bytes instead of 10, and sets file
97306         types that can't be deduced solely from st_mode.  First arg is now a
97307         const pointer.
97308         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
97309         (strmode): Renamed from mode_string.
97310         (filemodestring): New decl.
97311         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
97312         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
97313         needed.
97314         (S_ISPORT, S_ISWHT): New macros, if not already defined.
97316         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
97318         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
97319         fsusage.h now does that.  Include fsusage.h first, to test interface.
97320         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
97321         at most one method (the old code could have generated decls that
97322         didn't conform to C89, not that this was ever exercised).
97323         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
97325         2006-03-19  Jim Meyering  <jim@meyering.net>
97327         Work even in a chroot where d_ino values for entries in "/"
97328         don't match the stat.st_ino values for the same names.
97329         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
97330         number, iterate through all entries again, using lstat instead.
97331         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
97332         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
97334         * lib/getcwd.c (__getcwd): Clarify a comment.
97335         Use memcpy in place of a call to strcpy.
97337         2006-03-12  Jim Meyering  <jim@meyering.net>
97339         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
97340         matches that of the current directory (which we're about to chdir ".."
97341         out of), then save the dev-ino of the parent, instead.
97343         * lib/same-inode.h (SAME_INODE): New file/macro.
97344         * lib/chdir-safer.c (SAME_INODE): Remove definition.
97345         Include "same-inode.h", instead.
97346         * lib/same.c: Likewise.
97347         * lib/cycle-check.h: Include "same-inode.h".
97348         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
97349         * lib/cycle-check.c (SAME_INODE): Remove definition.
97350         * lib/root-dev-ino.h: Include "same-inode.h".
97352         2006-03-11  Eric Blake  <ebb9@byu.net>
97354         * lib/same.c (same_name): s/base_name/last_component/
97355         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
97356         * lib/filenamecat.c (file_name_concat): Likewise.
97358         2006-03-11  Eric Blake  <ebb9@byu.net>,
97359                     Paul Eggert  <eggert@cs.ucla.edu>
97361         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
97362         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
97363         drive prefix.
97364         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
97365         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
97366         (last_component): New method.
97367         * lib/dirname.c (dir_len): Determine when drive letters need a
97368         subsequent slash.  Preserve // when it is special.
97369         (dir_name): Don't append dot when drive letter is absolute.
97370         [TEST_DIRNAME]: Move into a full-blown gnulib test.
97371         * lib/basename.c (base_name): New semantics - malloc the result.
97372         Preserve // when it is special.  Preserve relative files that look
97373         like drive letters.
97374         (base_len): Preserve // when it is special.
97375         (last_component): New method, similar to old base_name semantics.
97376         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
97377         base_name.  Strip redundant slashes from ///.
97379 2006-07-03  Jim Meyering  <jim@meyering.net>
97381         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
97382         macro is used before the first cycle_check call.
97384 2006-07-03  Eric Blake  <ebb9@byu.net>
97386         * modules/dirname (Depends-on): Add xstrndup.
97388 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
97390         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
97391         test cases, so that config.log is a bit easier to follow.
97393 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
97395         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
97396         both are 64 bits, since this seems to be the tradition, and this
97397         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
97398         we ever run into a host that prefers long long to long in this
97399         case, we'll need another configure-time test.  Problem reported by
97400         Jim Meyering.
97402 2006-07-02  Eric Blake  <ebb9@byu.net>
97404         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
97406 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
97408         * modules/inttypes (Depends-on): No longer depends on stdint.
97409         * modules/stdint (Description): Say more about assumptions.
97410         Say that the fast types might differ.  Say macros are used.
97411         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
97412         (Makefile.am): Revise list of substituted symbols to match
97413         new stdint.m4.
97414         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
97415         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
97416         * tests/test-stdint.c (verify_same_types)
97417         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
97418         the code conforms to C99/C89.
97419         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
97420         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
97422 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
97424         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
97425         but fix a bug, by requiring at least 64 bits.
97426         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
97427         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
97428         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
97429         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
97431         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
97432         changes.  Make 2.59 a prerequisite.  Check and substitute for
97433         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
97434         inttypes.h.  Do not use special include files; just use the
97435         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
97436         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
97437         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
97438         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
97439         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
97440         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
97441         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
97442         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
97443         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
97444         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
97445         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
97446         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
97447         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
97448         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
97449         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
97450         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
97451         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
97452         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
97453         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
97454         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
97455         WINT_MAX.  Check for C99 conformance more strictly, by detecting
97456         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
97457         not check for things that C99 does not require, e.g., int8_t.  If
97458         a test isn't needed unless <stdint.h> isn't working, and is
97459         unlikely to be needed for any other reason, then don't do it
97460         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
97461         size_t, since we assume C89 freestanding at least.  Do not check
97462         for sig_atomic_t, wchar_t, or wint_t, since the code now does
97463         the right thing even if the types are not defined.  Instead use:
97464         (gl_STDINT_TYPE_PROPERTIES): New macro.
97465         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
97466         testing whether <sys/types.h> clashes, as Autoconf does this for
97467         us now.  All uses removed.
97468         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
97469         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
97470         (gl_CHECK_TYPE_SAME):
97471         Remove; no longer needed.
97472         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
97473         exists, since we'll return 0 anyway in that case.
97474         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
97476 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
97478         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
97479         possible collision with system files.
97480         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
97481         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
97482         WCHAR_MIN and WCHAR_MAX in this case.
97483         (<stddef.h>): Do not include; no longer needed.
97484         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
97485         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
97486         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
97487         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
97488         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
97489         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
97490         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
97491         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
97492         !defined(__c99))]: Include in this case too, since it's harmless
97493         now.
97494         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
97495         dangerous to do so.
97496         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
97497         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
97498         (_STDINT_MIN, _STDINT_MAX): New macros.
97499         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
97500         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
97501         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
97502         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
97503         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
97504         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
97505         macros, not typedefs; this simplifies things quite a bit.
97506         Use long int for all types narrower than int64_t.
97507         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
97508         Define in terms of long long int or int64_t or long int,
97509         not int64_t or int32_t.  This saves some compile-time testing.
97510         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
97511         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
97512         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
97513         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
97514         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
97515         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
97516         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
97517         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
97518         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
97519         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
97520         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
97521         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
97522         undef any previous version and define our own version, for
97523         simplicity and consistency with the new macros for types.
97524         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
97525         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
97526         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
97527         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
97528         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
97529         @WINT_T_SUFFIX@ to keep things simple here.
97530         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
97531         Simplify by assuming typical 8/16/32/64 host, since we're
97532         already doing that elsewhere anyway.
97533         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
97534         and assume long long int is 64 bits if available.  This
97535         speeds up 'configure'.
97537 2006-07-01  Eric Blake  <ebb9@byu.net>
97539         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
97540         Reported by Andreas Buening.
97542 2006-07-01  Eric Blake  <ebb9@byu.net>
97544         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
97546 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
97548         * lib/getaddrinfo.c: fixed typo
97550 2006-06-29  Jim Meyering  <jim@meyering.net>
97552         * modules/strftime (Maintainer): Add my name, since with the
97553         FPRINTFTIME changes strftime.c has forked from glibc.
97555 2006-06-29  Eric Blake  <ebb9@byu.net>
97557         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
97559 2006-06-29  Eric Blake  <ebb9@byu.net>
97561         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
97563 2006-06-29  Eric Blake  <ebb9@byu.net>
97565         * lib/stat_.h: New file.
97567 2006-06-29  Eric Blake  <ebb9@byu.net>
97569         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
97570         unused static function.
97572 2006-06-29  Eric Blake  <ebb9@byu.net>
97574         * doc/functions.texi (Function Portability): Document missing lstat
97575         on mingw.
97577 2006-06-29  Eric Blake  <ebb9@byu.net>
97579         * MODULES.html.sh: Add sys_stat.
97580         * modules/sys_stat: New module.
97581         * modules/mkstemp (Depends-on): Add sys_stat.
97583 2006-06-29  Derek R. Price  <derek@ximbiot.com>
97585         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
97587 2006-06-29  Derek R. Price  <derek@ximbiot.com>
97589         * m4/c-bs-a.m4: Removed.
97591 2006-06-29  Derek R. Price  <derek@ximbiot.com>
97593         * lib/strftime.c: Assume strftime() exists.
97595 2006-06-29  Derek Price  <derek@ximbiot.com>
97597         * modules/c-bs-a: Removed - \a is C89.
97598         * MODULES.html.sh: Remove c-bs-a.
97600 2006-06-29  Bruno Haible  <bruno@clisp.org>
97602         * modules/wcwidth (License): Change to LGPL.
97604 2006-06-28  Simon Josefsson  <jas@extundo.com>
97606         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
97607         on _WIN32.
97609         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
97610         getnameinfo.
97612 2006-06-28  Simon Josefsson  <jas@extundo.com>
97614         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
97616 2006-06-28  Simon Josefsson  <jas@extundo.com>
97618         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
97619         functions there.  It will succeed on Windows XP, but on Windows
97620         2000 and (presumably) earlier, it will fail, and use the internal
97621         re-implementation.
97622         (use_win32_p): New function.
97623         (getaddrinfo): Use strtoul on servname, to support numeric ports.
97624         Support AI_NUMERICSERV to disable getservbyname.
97625         (getnameinfo): New function, only supports
97626         NI_NUMERICHOST|NI_NUMERICSERV for now.
97628         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
97629         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
97630         getnameinfo.
97632 2006-06-28  Eric Blake  <ebb9@byu.net>
97634         * modules/wcwidth: New file.
97635         * modules/mbchar (Depends-on): Add wcwidth.
97636         * modules/mbswidth (Depends-on): Add wcwidth.
97637         * MODULES.html.sh: Add wcwidth.
97639 2006-06-28  Eric Blake  <ebb9@byu.net>
97641         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
97642         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
97644 2006-06-28  Eric Blake  <ebb9@byu.net>
97646         * lib/xvasprintf.h: Fix comments.
97648 2006-06-28  Eric Blake  <ebb9@byu.net>
97650         * lib/mbchar.h (wcwidth): Include wcwidth.h.
97651         * lib/mbswidth.c (wcwidth): Move from here...
97652         * lib/wcwidth.h: ...to this new file.
97654 2006-06-28  Derek R. Price  <derek@ximbiot.com>
97656         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
97658         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
97659         it's obsolete.
97660         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
97662 2006-06-28  Derek R. Price  <derek@ximbiot.com>
97664         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
97665         Autoconf 2.60 says this stuff was obsolete.
97667 2006-06-28  Bruno Haible  <bruno@clisp.org>
97669         * modules/wcwidth (Files): Add m4/wchar_t.m4.
97671 2006-06-28  Bruno Haible  <bruno@clisp.org>
97673         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
97674         gt_TYPE_WCHAR_T.
97676 2006-06-28  Bruno Haible  <bruno@clisp.org>
97678         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
97679         declaration for wcwidth.
97680         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
97682 2006-06-28  Bruno Haible  <bruno@clisp.org>
97684         * lib/mkdtemp.c [MINGW]: Include <io.h>.
97685         (mkdir): Define using _mkdir.
97687 2006-06-28  Bruno Haible  <bruno@clisp.org>
97689         * lib/getaddrinfo.h: Fix POSIX URL.
97690         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
97691         _WIN32.
97692         (use_win32_p): Make static.
97693         (getaddrinfo): Reject service name if it is empty or does not consist
97694         solely of decimal digits, or if its value is > 65535.
97695         (getnameinfo): Remove useless casts.
97697 2006-06-27  Simon Josefsson  <jas@extundo.com>
97699         * modules/sys_select: New file, suggested by Bruno Haible, Paul
97700         Eggert and Martin Lambers.
97702 2006-06-27  Simon Josefsson  <jas@extundo.com>
97704         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
97705         Eggert and Martin Lambers.
97707 2006-06-27  Bruno Haible  <bruno@clisp.org>
97709         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
97710         result to 0, not to empty.
97711         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
97713 2006-06-27  Bruno Haible  <bruno@clisp.org>
97715         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
97717 2006-06-26  Simon Josefsson  <jas@extundo.com>
97719         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
97720         present.
97722 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
97724         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
97725         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
97726         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
97728 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
97730         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
97732 2006-06-26  Bruno Haible  <bruno@clisp.org>
97734         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
97736 2006-06-26  Bruno Haible  <bruno@clisp.org>
97738         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
97740 2006-06-26  Bruno Haible  <bruno@clisp.org>
97742         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
97743         SGI C compiler in pre-C99 mode.
97744         Suggested by Mark D. Baushke and Larry Jones.
97746 2006-06-26  Bruno Haible  <bruno@clisp.org>
97748         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
97749         WCHAR_MAX.
97750         Reported by Mark D. Baushke and Larry Jones.
97752 2006-06-26  Bruno Haible  <bruno@clisp.org>
97754         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
97755         in pre-C99 mode.
97756         Suggested by Mark D. Baushke and Larry Jones.
97758 2006-06-23  Simon Josefsson  <jas@extundo.com>
97759             Bruno Haible  <bruno@clisp.org>
97761         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
97762         Emit mostlyclean-local rule.
97763         (func_emit_tests_Makefile_am): Likewise.
97764         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
97766 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
97768         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
97770 2006-06-23  Bruno Haible  <bruno@clisp.org>
97772         * tests/test-stdint.c: Update to match ISO C 99 Technical
97773         Corrigendum 1.
97775 2006-06-23  Bruno Haible  <bruno@clisp.org>
97777         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
97779 2006-06-23  Bruno Haible  <bruno@clisp.org>
97781         * lib/stdint_.h: Treat IRIX like OpenBSD.
97783 2006-06-23  Bruno Haible  <bruno@clisp.org>
97785         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
97786         ISO C 99 Technical Corrigendum 1.
97788 2006-06-22  Simon Josefsson  <jas@extundo.com>
97790         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
97791         MinGW.
97793 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
97795         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
97796         needed.  Some compiler complained about some of them.  Problem reported
97797         by Larry Jones in
97798         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
97800 2006-06-21  Simon Josefsson  <jas@extundo.com>
97802         * tests/test-getaddrinfo.c: New file.
97804         * modules/getaddrinfo-tests: New file.
97806         * MODULES.html.sh: Add inet_pton.
97808         * modules/inet_pton: New file.
97810 2006-06-21  Simon Josefsson  <jas@extundo.com>
97812         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
97813         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
97814         of using the (limited) gnulib implementation on Windows XP.
97816         * m4/inet_pton.m4: New file.
97818 2006-06-21  Simon Josefsson  <jas@extundo.com>
97820         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
97821         variable.
97823         * lib/socket_.h: Don't define WINVER.
97825         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
97826         slightly modified to work in gnulib.
97828 2006-06-21  Simon Josefsson  <jas@extundo.com>
97830         * doc/gnulib.texi (Windows sockets): Add.
97832 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
97834         * lib/read-file.c (fread_file): Start with buffer allocation of
97835         0 bytes rather than 1 byte; this simplifies the code.
97836         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
97837         code to free buffer and save/restore errno.
97838         (internal_read_file): Remove unused local.
97840 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
97842         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
97843         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
97844         Problem reported by Denis Excoffier in
97845         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
97847 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
97849         * modules/sys_socket, modules/socklen: Include sys/types since
97850         FreeBSD 4.x's sys/socket.h needs it.
97852 2006-06-19  Simon Josefsson  <jas@extundo.com>
97854         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
97856 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
97858         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
97860 2006-06-19  Bruno Haible  <bruno@clisp.org>
97862         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
97863         and FULL_PATH_INTTYPES_H in angle brackets.
97864         Reported by Mark D. Baushke <mdb@gnu.org>.
97866 2006-06-17  Eric Blake  <ebb9@byu.net>
97868         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
97869         errno.
97871 2006-06-17  Bruno Haible  <bruno@clisp.org>
97873         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
97874         <sys/inttypes.h>.
97876 2006-06-17  Bruno Haible  <bruno@clisp.org>
97878         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
97879         whether errno is declared. Assume <errno.h> declares errno.
97881 2006-06-17  Bruno Haible  <bruno@clisp.org>
97883         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
97885 2006-06-17  Bruno Haible  <bruno@clisp.org>
97887         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
97888         problem on Solaris 2.5.1.
97890 2006-06-16  Eric Blake  <ebb9@byu.net>
97892         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
97893         * lib/unicodeio.c [!defined errno]: Likewise.
97894         * lib/strtol.c [!defined errno]: Likewise.
97895         * lib/strtod.c [!defined errno]: Likewise.
97897 2006-06-15  Eric Blake  <ebb9@byu.net>
97899         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
97901 2006-06-15  Eric Blake  <ebb9@byu.net>
97903         * config/srclist.txt (ssize_t.m4): Lose sync.
97905 2006-06-15  Bruno Haible  <bruno@clisp.org>
97907         * modules/stdint (Files): Include m4/full-header-path.m4,
97908         m4/size_max.m4, m4/wchar_t.m4.
97909         (Makefile.am): Many more substitutions.
97910         * modules/stdint-tests: New file.
97911         * tests/test-stdint.c: New file.
97913 2006-06-15  Bruno Haible  <bruno@clisp.org>
97915         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
97916         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
97917         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
97918         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
97919         gl_CHECK_TYPE_SAME): New macros.
97921 2006-06-15  Bruno Haible  <bruno@clisp.org>
97923         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
97925 2006-06-15  Bruno Haible  <bruno@clisp.org>
97927         * lib/stdint_.h: Rewritten to be fully auto-configured.
97928         Fixes bug on HP-UX/IA64.
97930 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
97932         * lib/getdate.y (__attribute__): Don't define if already defined.
97933         Problem reported by Larry Jones.
97934         * lib/utimens.c (__attribute__): Likewise.
97936 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
97938         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
97939         reported by Andreas Schwab.
97941 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97942             Bruno Haible  <bruno@clisp.org>
97944         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
97945         check for the declaration of strnlen and a run test that exposes the
97946         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
97947         rpl_strndup.
97949 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97950             Bruno Haible  <bruno@clisp.org>
97952         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
97954 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97956         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
97957         compile test, for Tru64 4.0D.
97959 2006-05-28  Karl Berry  <karl@gnu.org>
97961         * config/srclist.txt (printf-args.c): lose sync.
97963 2006-05-26  Martin Lambers  <marlam@marlam.de>
97965         * lib/getpass.c: Updates the test for the native W32 API, and adds
97966         missing includes, thus fixing compilation warnings.
97968 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
97970         * lib/exclude.c (exclude_fnmatch): New function.
97971         (excluded_file_name): Call exclude_fnmatch.
97972         * lib/exclude.h (excluded_file_name): New prototype
97974 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
97976         * lib/tempname.c (small_open, large_open): New macros.
97977         (__open, __open64) [!_LIBC]: Remove.
97978         (__gen_tempname): Use small_open and large_open instead of __open
97979         and __open64.  This fixes a portability bug on HP-UX 11.11i
97980         reported by Simon Wing-Tang in
97981         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
97983 2006-05-24  Bruno Haible  <bruno@clisp.org>
97985         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
97986         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
97987         Reported by Thorsten Maerz <torte@netztorte.de> via
97988         Aaron Stone <aaron@serendipity.cx>.
97990 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
97992         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
97993         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
97994         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
97995         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
97996         not really conditional on the cache.
97997         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
97999 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
98001         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
98002         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
98003         (my_usleep): Don't mishandle maximum value.
98005 2006-05-19  Jim Meyering  <jim@meyering.net>
98007         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
98009 2006-05-17  Bruno Haible  <bruno@clisp.org>
98011         Cygwin portability.
98012         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
98014 2006-05-17  Bruno Haible  <bruno@clisp.org>
98016         * lib/stdint_.h: Fix recognition of Cygwin.
98018 2006-05-15  Bruno Haible  <bruno@clisp.org>
98020         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
98021         on libtool patch by Ralf Wildenhues.
98023 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
98025         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
98026         test for C99 conformance; (bool) 0.5 is an integer constant
98027         expression, but (bool) -0.5 is not.  Problem reported by Fedor
98028         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
98030 2006-05-11  Simon Josefsson  <jas@extundo.com>
98032         * m4/xvasprintf.m4: Fix obvious typo.
98034 2006-05-11  Jim Meyering  <jim@meyering.net>
98036         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
98037         James Lemley.
98039 2006-05-10  Simon Josefsson  <jas@extundo.com>
98041         * lib/md4.c: Typo fix, update copyright years.
98042         (K1, K2): Don't use L because it turn computations into 64-bit on
98043         64-bit platforms.
98045 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
98047         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
98048         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
98049         unwanted sign propagation, e.g., on hosts with 64-bit int.
98050         There still are some problems with reeelly weird theoretical hosts
98051         (e.g., 33-bit int) but it's not worth worrying about now.
98052         * lib/sha1.c (rol): Likewise.
98053         (K1, K2, K3, K4): Remove unnecessary L suffix.
98055 2006-05-10  Bruno Haible  <bruno@clisp.org>
98057         * lib/des.c: Cast to avoid warnings.
98059 2006-05-09  Bruno Haible  <bruno@clisp.org>
98061         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
98062         (Depends-on): Depend also on xsize, stdarg.
98063         (configure.ac): Add gl_XVASPRINTF.
98065 2006-05-09  Bruno Haible  <bruno@clisp.org>
98067         * m4/xvasprintf.m4: New file.
98069 2006-05-09  Bruno Haible  <bruno@clisp.org>
98071         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
98072         (EOVERFLOW): Define fallback value.
98073         (xstrcat): New function.
98074         (xvasprintf): Recognize the special case of a string concatenation.
98076 2006-05-08  Eric Blake  <ebb9@byu.net>
98078         * gnulib-tool (func_version): Base copyright year on CVS date.
98079         (func_emit_copyright_notice): New function.
98080         (func_emit_lib_Makefile_am): Use it.
98081         (func_emit_tests_Makefile_am): Likewise.
98082         (func_import): Likewise.
98084 2006-05-08  Bruno Haible  <bruno@clisp.org>
98086         * modules/stdarg: New file.
98087         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
98089 2006-05-08  Bruno Haible  <bruno@clisp.org>
98091         * m4/stdarg.m4: New file, from GNU gettext.
98093 2006-05-08  Bruno Haible  <bruno@clisp.org>
98095         * config/srclist.txt (build-aux/config.rpath): different from latest
98096         release.
98098 2006-05-08  Bruno Haible  <bruno@clisp.org>
98100         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
98102 2006-05-05  Jim Meyering  <jim@meyering.net>
98104         * m4/warning.m4: New file, derived from bison's file by the same name.
98106 2006-05-03  Bruno Haible  <bruno@clisp.org>
98108         * lib/stdint_.h: Shorter URL.
98109         * lib/inttypes.h: Likewise.
98111 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
98113         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
98115 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
98117         * lib/verify.h: Document the internals better.  Most of this change
98118         was written by Bruno Haible.
98120 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
98122         * doc/verify.texi: New file, partly based on a proposal by
98123         Bruno Haible.
98125 2006-05-02  Bruno Haible  <bruno@clisp.org>
98127         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
98128         test from here...
98129         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
98131 2006-04-29  Bruno Haible  <bruno@clisp.org>
98133         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
98134         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
98136 2006-04-29  Bruno Haible  <bruno@clisp.org>
98138         * gnulib-tool: Make --update option actually work.
98140 2006-04-29  Bruno Haible  <bruno@clisp.org>
98142         * doc/gcd.texi: New file.
98143         * doc/gnulib.texi: Include it.
98145 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
98147         * lib/getdate.y (get_date): When adding relative date, start with the
98148         initial time, not with the result of the first mktime call.
98150 2006-04-25  Bruno Haible  <bruno@clisp.org>
98152         * gnulib-tool (func_import): Output the include directives in three
98153         blocks, sorted separately.
98154         Reported by Ben Pfaff <blp@cs.stanford.edu>.
98156 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
98158         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
98159         to define main with arguments, for C++.  Reported by Eric Blake.
98160         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
98161         Prefer 'int main ()' to 'int main (void)', for C++.
98162         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
98163         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
98164         for 'main', for C99 and C++.
98166 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
98168         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
98169         Don't assume that exit status -1 is valid.
98170         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
98171         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
98172         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
98173         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
98174         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
98175         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
98176         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
98177         functions can be used without declaring them, or that you can
98178         exit with status -1.
98179         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
98181 2006-04-24  Karl Berry  <karl@gnu.org>
98183         * config/srclist.txt (longdouble.m4): sync lost.
98185 2006-04-24  Eric Blake  <ebb9@byu.net>
98187         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
98189 2006-04-24  Bruno Haible  <bruno@clisp.org>
98191         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
98192         poll() implementation in AIX.
98193         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
98195 2006-04-24  Bruno Haible  <bruno@clisp.org>
98197         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
98198         assigned exactly once.
98200 2006-04-23  Claudio Fontana  <claudio@gnu.org>
98201             Bruno Haible  <bruno@clisp.org>
98203         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
98204         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
98205         for AM_CPPFLAGS.
98207 2006-04-23  Bruno Haible  <bruno@clisp.org>
98209         * modules/copy-file: Depend on unistd.
98210         * modules/execute: Likewise.
98211         * modules/fatal-signal: Likewise.
98212         * modules/findprog: Likewise.
98213         * modules/mkdtemp : Likewise.
98214         * modules/pipe: Likewise.
98215         * modules/wait-process: Likewise.
98217 2006-04-23  Bruno Haible  <bruno@clisp.org>
98219         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
98220         condition was already detected.
98221         Reported by Ben Pfaff <blp@cs.stanford.edu>.
98223 2006-04-23  Bruno Haible  <bruno@clisp.org>
98225         * lib/copy-file.c: Include <unistd.h> unconditionally.
98226         * lib/execute.c: Likewise.
98227         * lib/fatal-signal.c: Likewise.
98228         * lib/findprog.c: Likewise.
98229         * lib/mkdtemp.c: Likewise.
98230         * lib/pipe.h: Likewise.
98231         * lib/pipe.c: Likewise.
98232         * lib/wait-process.h: Likewise.
98234 2006-04-23  Bruno Haible  <bruno@clisp.org>
98236         * gnulib-tool (func_usage): Fix --import description. Document
98237         --update.
98238         (func_import): Create temporary file in a temporary directory, if
98239         --dry-run is specified. Silence errors from 'grep' when there are no
98240         m4 files in $m4dir.
98241         (func_create_testdir): Silence errors from 'grep' when there are no
98242         m4 files in $m4dir.
98243         Reported by Karl Berry <karl@freefriends.org>.
98245 2006-04-20  Bruno Haible  <bruno@clisp.org>
98247         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
98248         one argument, so that the code will be portable to Autoconf 2.60.
98249         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
98250         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
98251         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
98253 2006-04-19  Derek Price  <derek@ximbiot.com>
98254             Eric Blake  <ebb9@byu.net>
98256         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
98257         rather than "/full/path.h".  Update comment to match.  Shorten &
98258         generalize m4_translit call via AS_TR_CPP.
98260 2006-04-19  Derek Price  <derek@ximbiot.com>
98261             Eric Blake  <ebb9@byu.net>
98263         * lib/inttypes.h: Correct grammar in comment.
98265 2006-04-18  Derek Price  <derek@ximbiot.com>
98266             Paul Eggert  <eggert@cs.ucla.edu>
98268         * modules/inttypes: New file.
98269         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
98271 2006-04-18  Derek Price  <derek@ximbiot.com>
98272             Paul Eggert  <eggert@cs.ucla.edu>
98274         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
98275         New files.
98277 2006-04-18  Derek Price  <derek@ximbiot.com>
98278             Paul Eggert  <eggert@cs.ucla.edu>
98280         * lib/inttypes.h: New file.
98281         * lib/strtoimax.c: Assume <inttypes.h>.
98283 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
98285         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
98286         isn't mounted.  Problem reported by Kir Kolyshkin.
98288 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
98290         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
98291         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
98292         Derek R. Price.
98293         * lib/regex.h (RE_DUP_MAX): Update comment to match current
98294         implementation.
98296 2006-04-12  Eric Blake  <ebb9@byu.net>
98298         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
98299         is now done automatically by the corresponding Autoconf macro.
98301 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
98303         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
98304         time_r.h.
98306 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
98308         Merge regex changes from libc, removing some of our
98309         POSIX-conformance changes that were rejected and redoing them in a
98310         less-intrusive way.
98312         * lib/regcomp.c (re_compile_internal, init_dfa):
98313         Length arg is now size_t, not Idx.  All uses changed.
98314         (peek_token): Forward decl now says internal_function.
98315         (__re_error_msgid, __re_error_msgid_idx):
98316         Now static rather than extern with attribute_hidden.
98317         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
98318         For some reason libc prefers K&R style defns for external functions.
98319         (regerror) [!defined _LIBC]: Likewise.
98320         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
98321         (seek_collating_symbol_entry, lookup_collation_sequence_value):
98322         (build_range_exp, build_collating_symbol):
98323         Use K&R-style defn.
98324         (re_compile_fastmap): Use '\0' to memset, not 0.
98325         (utf8_sb_map): Make the calculations more obvious.
98326         (init_dfa, parse_bracket_exp, build_charclass_op):
98327         Call calloc and cast result, as glibc does.
98328         (init_word_char, fetch_token, peek_token, peek_token_bracket):
98329         (build_range_exp, build_collating_symbol):
98330         Now internal functions.
98332         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
98334         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
98335         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
98336         Don't depend on VMS; depend on __VMS instead, for POSIX
98337         namespace cleanness.
98338         (regoff_t): Define to ssize_t, not long int.
98340         Remove the REG_ macros named below.  Instead, make the old names
98341         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
98342         __USE_GNU_REGEX.
98343         (REG_BACKSLASH_ESCAPE_IN_LISTS):
98344         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
98345         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
98346         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
98347         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
98348         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
98349         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
98350         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
98351         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
98352         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
98353         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
98354         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
98355         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
98356         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
98357         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
98358         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
98359         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
98360         (REG_NREGS):
98361         Remove.  All uses replaced by the old RE_* names.
98362         (RE_BACKSLASH_ESCAPE_IN_LISTS):
98363         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
98364         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
98365         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
98366         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
98367         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
98368         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
98369         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
98370         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
98371         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
98372         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
98373         Don't bother having these macros be independent of each others'
98374         values, since they no longer exist in the POSIX name space.
98376         Rename the following member names back to their old names,
98377         unless !__USE_GNU_REGEX.  All uses changed back.
98378         (buffer): Renamed from re_buffer.
98379         (allocated): Renamed from re_allocated.
98380         (used): Renamed from re_used.
98381         (syntax): Renamed from re_syntax.
98382         (fastmap): Renamed from re_fastmap.
98383         (translate): Renamed from re_translate.
98384         (can_be_null): Renamed from re_can_be_null.
98385         (regs_allocated): Renamed from re_regs_allocated.
98386         (fastmap_accurate): Renamed from re_fastmap_accurate.
98387         (no_sub): Renamed from re_no_sub.
98388         (not_bol): Renamed from re_not_bol.
98389         (not_eol): Renamed from re_not_eol.
98390         (newline_anchor): Renamed from re_newline_anchor.
98391         (num_regs): Renamed from rm_num_regs.
98392         (start): Renamed from rm_start.
98393         (end): Renamed from rm_end.
98395         (free_state): Move up a bit.
98397         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
98398         #define to be empty.
98399         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
98400         when that is what is intended.
98401         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
98402         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
98403         (MAX): New macro.
98404         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
98405         All uses changed back to re_malloc, etc.  It's now the caller's
98406         responsibility to check for overflow; all callers changed.
98407         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
98408         (re_x2nrealloc): Remove.
98409         (free_state): Remove decl.
98411         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
98412         (re_set_registers, re_exec):
98413         Use K&R-style defn.
98415         2006-01-31  Roland McGrath  <roland@redhat.com>
98417         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
98418         Reported by Mike Frysinger <vapier@gentoo.org>.
98420         2006-01-15  Andreas Jaeger  <aj@suse.de>
98422         [BZ #1950]
98423         * lib/regex_internal.c (re_string_reconstruct): Adjust for
98424         build_wcs_upper_buffer change.
98425         (build_wcs_upper_buffer): Change return type.
98427         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
98429         * lib/regex_internal.h: Include <stdint.h> if available.
98431         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
98433         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
98435         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
98437         * lib/regcomp.c: Adjust for changed secondary hash function.
98439         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
98441         * lib/regex.h: Pretty printing.
98442         Clean up namespace a bit.
98444         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
98446         * lib/regexec.c (update_cur_sifted_state, check_arrival,
98447         check_arrival_add_next_nodes): Avoid using uninitialized variable.
98449         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
98450                     Ulrich Drepper  <drepper@redhat.com>
98452         [BZ #1302]
98453         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
98454         changed.
98455         (bitset_word_t): Renamed from bitset_word.  All uses changed.
98457         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
98459         [BZ #281]
98460         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
98461         * lib/regcomp.c: Remove unnecessary uses of
98462         unsigned RE_TRANSLATE_TYPE.
98463         * lib/regex_internal.h: Likewise.
98464         * lib/regex_internal.c: Likewise.
98465         * lib/regexec.c: Likewise.
98466         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
98468         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
98470         * lib/regexec.c (find_recover_state): Remove unnecessary
98471         initialization.
98472         (transit_state_bkref): Make DFA a const pointer.
98473         (get_subexp): Likewise.
98474         (check_arrival): Likewise.
98475         (update_cur_sifted_state): Likewise.
98476         (re_search_internal): Likewise.
98477         (prune_impossible_nodes): Likewise.
98478         (acquire_init_state_context): Likewise.
98479         (proceed_next_node): Likewise.
98480         (set_regs): Likewise.
98481         (free_fail_stack_return): Likewise.
98482         (check_arrival_expand_ecl): Mark DFA parameter as const.
98483         (check_arrival_expand_ecl_sub): Likewise.
98484         (check_subexp_limits): Likewise.
98485         (sub_epsilon_src_nodes):  Likewise.
98486         (add_epsilon_src_nodes):  Likewise.
98487         (merge_state_array): Likewise.
98488         (update_regs): Likewise.
98489         (build_trtable): Likewise.
98490         (sift_states_backward): Mark MCTX parameter as const.
98491         (build_sifted_states): Likewise.
98492         (update_cur_sifted_state): Likewise.
98493         (sift_states_mkref): Likewise.
98494         (check_arrival_expand_ecl): Mark eclosure as const.
98495         (check_dst_limits_calc_pos_1): Likewise.
98496         * lib/regex_internal.h (re_match_context_t): Make dfa a const
98497         pointer.
98499         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
98501         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
98502         (transit_state_sb): Likewise.
98503         (transit_state_mb): Likewise.
98504         (sift_states_iter_mb): Likewise.
98505         (check_arrival_add_next_nodes): Likewise.
98506         (check_node_accept_bytes): Change first parameter to pointer-to-const.
98507         [_LIBC] (re_search_2_stub): Use mempcpy.
98509         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
98510         mbrtowc for very simple UTF-8 case.
98512         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
98513         a pointer-to-const.
98514         (re_acquire_state_context): Likewise.
98515         * lib/regex_internal.h: Adjust prototypes.
98517         * lib/regex.c: Prevent using C++ compilers.
98519         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
98520         (re_acquire_state_context): Likewise.
98522 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
98524         * modules/regex (Depends-on): Add ssize_t.
98526 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
98528         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
98529         translation table.
98531 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
98533         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
98535 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
98536             Bruno Haible  <bruno@clisp.org>
98538         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
98539         <sys/types.h> and <inttypes.h>.
98541 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98543         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
98544         `__error_t_defined', so argp.h will not typedef the former.
98546 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
98548         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
98549         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
98550         glibc names.  Even if glibc is changed to conform to POSIX, the
98551         traditional names will be available anyway, since regex depends on
98552         the extensions module.  Also, fix a longstanding typo in the
98553         implementation of Spencer ERE test #75 from grep 2.3.  Problems
98554         reported by Emanuele Giaquinta.  Also, change sense of cached
98555         variable, so that the message makes sense.
98557 2006-03-24  Simon Josefsson  <jas@extundo.com>
98559         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
98560         including some doc fixes.
98561         (base64_encode_alloc): Fix +1 bug on allocation failures.
98563 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98565         * lib/base64.c (base64_encode): Do not read past end of array with
98566         unsanitized input on systems with CHAR_BIT > 8.
98568 2006-03-24  Eric Blake  <ebb9@byu.net>
98570         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
98572 2006-03-22  Karl Berry  <karl@gnu.org>
98574         * config/srclist.txt (*setenv.[ch]): get from coreutils.
98575         * config/srclistvars.sh (COREUTILS): new var.
98577 2006-03-17  Jim Meyering  <jim@meyering.net>
98579         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
98580         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
98582 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
98584         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
98585         no longer needs it.  Instead, check that regoff_t is as least
98586         as wide as ptrdiff_t.
98588         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
98589         so that our regex.h stays compatible with the installed regex.
98590         This is helpful for installers who configure --without-included-regex.
98591         Problem reported by Emanuele Giaquinta.
98593 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
98595         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
98596         Typedef to long int, not to off_, as POSIX will likely change
98597         in that direction.
98599 2006-03-15  Eric Blake  <ebb9@byu.net>
98601         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
98603 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
98605         * lib/argp-help.c (validate_uparams): Fix typo
98606         * lib/argp-parse.c (argp_default_options): Consistently begin help
98607         messages with a lowercase letter.
98609 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
98611         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
98612         overrun buffers and shouldn't be used (much as gets shouldn't be
98613         used).
98614         * lib/time_r.c (asctime_r, ctime_r): Likewise.
98616 2006-03-08  Simon Josefsson  <jas@extundo.com>
98618         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
98619         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
98621 2006-03-08  Simon Josefsson  <jas@extundo.com>
98623         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
98624         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
98626 2006-03-08  Simon Josefsson  <jas@extundo.com>
98628         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
98629         signal that configure disabled the device.
98631 2006-03-08  Simon Josefsson  <jas@extundo.com>
98633         * build-aux/maint.mk: Fix refresh-po, to handle no translated
98634         languages.
98636 2006-03-07  Simon Josefsson  <jas@extundo.com>
98638         * modules/getopt (Depends-on): Add unistd.
98640         * modules/unistd: New file.
98642 2006-03-07  Simon Josefsson  <jas@extundo.com>
98644         * modules/gc-random: New file.
98646 2006-03-07  Simon Josefsson  <jas@extundo.com>
98648         * m4/unistd_h.m4: New file.
98650 2006-03-07  Simon Josefsson  <jas@extundo.com>
98652         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
98653         test to be side-effect free by storing the result in the cache
98654         variable gl_cv_lib_readline, and moving the assignment of
98655         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
98656         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
98658 2006-03-07  Simon Josefsson  <jas@extundo.com>
98660         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
98661         error on missing devices (the functions will return an error).
98663         * m4/gc.m4: Move random stuff to gc-random.m4
98665 2006-03-07  Simon Josefsson  <jas@extundo.com>
98667         * lib/unistd_.h: New file.
98669 2006-03-07  Simon Josefsson  <jas@extundo.com>
98671         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
98673 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
98675         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
98676         Problem reported by Juan Manuel Guerrero.
98678 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
98680         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
98681         the unistd module.
98682         * lib/getlogin_r.c: Likewise.
98683         * lib/getlogin_r.h: Likewise.
98684         * lib/glob.c: Likewise.
98685         * lib/pagealign_alloc.c: Likewise.
98686         * lib/unistd_.h: Remove; no longer needed.
98688 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
98690         * MODULES.html.sh (Support for systems lacking POSIX:2001):
98691         Add unistd.
98692         * modules/c-stack (Depends-on): Add unistd.
98693         * modules/getlogin_r: Likewise.
98694         * modules/glob: Likewise.
98695         * modules/pagealign_alloc: Likewise.
98696         * modules/unistd (Files): Remove lib/unistd_.h.
98697         (EXTRA_DIST): Remove.
98698         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
98699         need unistd_.h.
98700         (MOSTLYCLEANFILES): Remove unistd.h-t.
98702 2006-03-03  Simon Josefsson  <jas@extundo.com>
98704         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
98706 2006-03-03  Simon Josefsson  <jas@extundo.com>
98708         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
98709         libidn and bison.
98711 2006-03-03  Simon Josefsson  <jas@extundo.com>
98713         * build-aux/maint.mk: Add indent target.
98715 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
98717         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
98718         our replacement poll.h in any case, to avoid a differing
98719         declaration from a system header.  Seen on AIX.
98721 2006-03-01  Simon Josefsson  <jas@extundo.com>
98723         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
98724         <kasal@ucw.cz>.
98726 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
98728         * modules/gettime (Depends-on): Add extensions module.
98729         * modules/nanosleep (Depends-on): Likewise.
98730         * modules/settime (Depends-on): Likewise.
98732 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
98734         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
98735         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
98736         pedantically.
98737         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
98738         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
98740         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
98741         not "==".  Reported by Ralf Wildenhues.
98743 2006-03-01  Karl Berry  <karl@gnu.org>
98745         * doc/Copyright/request-*: new files, synced from gnuorg.
98747 2006-03-01  Karl Berry  <karl@gnu.org>
98749         * config/srclist.txt (Copyright/*): new entries.
98751 2006-02-28  Simon Josefsson  <jas@extundo.com>
98753         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
98755 2006-02-27  Simon Josefsson  <jas@extundo.com>
98757         * lib/base64.h: Indent #define's.  From Jim Meyering
98758         <jim@meyering.net>.
98760 2006-02-27  Jim Meyering  <jim@meyering.net>
98762         Revert the change of 2006-02-24, so these files can continue
98763         to be sync'd from gettext.
98764         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
98765         of `config.h'.
98767 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
98769         * modules/intprops: New file.
98770         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
98771         Add intprops.
98772         * modules/getloadavg (Files): Remove lib/intprops.h.
98773         (Depends-on): Add intprops.
98774         * modules/human: Likewise.
98775         * modules/inttostr: Likewise.
98776         * modules/openat: Likewise.
98777         * modules/sig2str: Likewise.
98778         * modules/userspec: Likewise.
98779         * modules/utimecmp: Likewise.
98780         * modules/xnanosleep: Likewise.
98781         * modules/xstrtol: Likewise.
98783 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
98785         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
98786         * modules/lock-tests (TESTS): Use $(EXEEXT).
98787         * modules/tls-tests: Likewise.
98788         * modules/argp-tests: Likewise.
98789         (check_PROGRAMS): New var, replacing...
98790         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
98792 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98794         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
98795         `config.h'.
98797 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
98799         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
98801 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98803         Sync from coreutils.
98804         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
98805         gl_CHDIR_SAFER.
98807 2006-02-22  Jim Meyering  <jim@meyering.net>
98809         Sync from coreutils.
98810         * m4/chdir-safer.m4: New file.
98812 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
98814         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
98815         AT_FDCWD exceeds INT_MAX.
98816         * lib/openat.h (AT_FDCWD): Likewise.
98818 2006-02-17  Eric Blake  <address@hidden>
98820         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
98822 2006-02-16  Simon Josefsson  <jas@extundo.com>
98824         * modules/getaddrinfo (Depends-on): Add sys_socket.
98826 2006-02-15  Simon Josefsson  <jas@extundo.com>
98828         * build-aux/maint.mk: Add dsyntax-check rule.
98830 2006-02-15  Eric Blake  <ebb9@byu.net>
98832         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
98833         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
98834         'present but cannot compile' warnings on cygwin.
98835         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
98836         use ws2tcpip.h if sys/socket.h works.
98837         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
98838         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
98840 2006-02-14  Simon Josefsson  <jas@extundo.com>
98842         * modules/maintainer-makefile (Files): Rename.
98844         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
98845         and (the local) Makefile.cfg to maint-cfg.mk.
98847         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
98848         to the latter.
98850         * modules/maintainer-makefile: New module.
98852         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
98853         severaly stripped to make it possible to build it up from scratch
98854         with reliable tests.
98856         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
98857         fixes to permit overriding the default actions when configure and
98858         makefile are not available.
98860 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
98862         Sync from coreutils.
98863         * modules/lstat (Depends-on): Don't depend on xalloc.
98864         (License): Change from GPL to LGPL, since this is now simply a
98865         replacement for a libc function.
98867 2006-02-14  Jim Meyering  <jim@meyering.net>
98869         Sync from coreutils.
98871         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
98872         failure on deficient systems, and simplify gnulib lgpl dependencies.
98873         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
98874         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
98876         * lib/xalloc-die.c: Remove unused definition of N_.
98878 2006-02-14  Jim Meyering  <jim@meyering.net>
98880         Sync from coreutils.
98881         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
98882         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
98883         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
98884         double-quote uses of that variable, to accommodate the rare case in
98885         which getmntent is available in none of the libraries checked.  This
98886         happens at least on FreeBSD 5.0.
98888 2006-02-13  Simon Josefsson  <jas@extundo.com>
98890         * gnulib-tool (Usage): Fix --import, from
98891         karl@freefriends.org (Karl Berry).
98893 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
98895         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
98897 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
98899         * lib/argp-namefrob.h: Restore changes accidentally lost during the
98900         "autoupdate" on 2005-12-12.
98902 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
98904         * modules/closeout (Depends-on): Remove atexit.
98906 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
98908         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
98909         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
98911 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
98913         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
98914         __EXTENSIONS__ if this causes compilation to fail.  Problem
98915         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
98916         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
98918 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
98920         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
98921         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
98922         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
98923         All uses changed.
98925 2006-01-26  Simon Josefsson  <jas@extundo.com>
98927         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
98928         prototype is visible on mingw32.
98930         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
98931         for mingw32.
98933         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
98934         mingw32).
98936 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
98938         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
98939         attempt to open for write; this always fails, at least on POSIX
98940         hosts.  This reinstates the 2006-01-09 change, which was
98941         inadvertently removed.
98943 2006-01-26  Bruno Haible  <bruno@clisp.org>
98945         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
98946         Reported by Paul Eggert.
98948 2006-01-26  Bruno Haible  <bruno@clisp.org>
98949             Paul Eggert  <eggert@cs.ucla.edu>
98951         * lib/stdbool_.h (_Bool)
98952         [(! (defined __cplusplus || defined __BEOS__)
98953           && !defined __GNUC__
98954           && !(defined __HP_cc || defined __xlc__
98955                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
98956                || defined __sgi))]:
98957         #define to signed char in these cases too; this simplifies
98958         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
98959         etc., separately) and makes it more conservative.
98961 2006-01-25  Simon Josefsson  <jas@extundo.com>
98963         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
98964         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
98965         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
98967 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
98969         * lib/argp-namefrob.h: Bugfix. Remove stray #
98971 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
98973         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
98974         so that we test the test.
98975         Check for yet another HP-UX cc bug involving *bool |= bool.
98977 2006-01-25  Karl Berry  <karl@gnu.org>
98979         * config/srclist.txt (vasnprintf.c): sync lost.
98981 2006-01-25  Jim Meyering  <jim@meyering.net>
98983         Sync from the stable (b5) branch of coreutils:
98985         * lib/fts.c (fts_children): Don't let close() clobber errno from
98986         failed fchdir().
98988         * lib/fts.c (fts_stat): When following a symlink-to-directory,
98989         don't necessarily interpret stat-fails+lstat-succeeds as indicating
98990         a dangling symlink.  That can also happen at least for ELOOP.
98991         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
98992         FYI, this bug predates the inclusion of fts.c in coreutils.
98994         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
98995         in their own block, so pre-c99 compilers don't object.
98997         Avoid the double-free (first in fts_read, second in fts_close) that
98998         would occur when an `active' directory is made inaccessible (e.g.,
98999         via chmod a-x) during a traversal.
99000         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
99001         before returning.  Reproduce this failure by
99002         mkdir -p a/b; cd a; chmod a-x . b
99003         Reported by Stavros Passas.
99005 2006-01-25  Jim Meyering  <jim@meyering.net>
99007         * lib/fileblocks.c: Remove more useless parentheses.
99008         * lib/readutmp.h: Likewise.
99010 2006-01-25  Bruno Haible  <bruno@clisp.org>
99012         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
99013         warnings.
99014         Reported by Paul Eggert.
99016 2006-01-25  Bruno Haible  <bruno@clisp.org>
99018         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
99019         rid of a trap command. For Solaris sh.
99020         Reported by Mark D. Baushke <mdb@gnu.org>.
99022 2006-01-24  Simon Josefsson  <jas@extundo.com>
99024         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
99025         Bruno.
99027 2006-01-24  Karl Berry  <karl@gnu.org>
99029         * config/srclist.txt (argp-namefrob.h): sync lost.
99031 2006-01-24  Jim Meyering  <jim@meyering.net>
99033         * modules/openat (Files): Add lib/intprops.h.
99034         From Mark D. Baushke.
99036 2006-01-24  Jim Meyering  <jim@meyering.net>
99038         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
99039         Reported by Mark D. Baushke.
99041 2006-01-24  Jim Meyering  <jim@meyering.net>
99043         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
99045 2006-01-24  Bruno Haible  <bruno@clisp.org>
99047         * modules/strnlen (Maintainer): Change from glibc to all.
99049 2006-01-24  Bruno Haible  <bruno@clisp.org>
99051         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
99052         Patch by Paul Eggert.
99054 2006-01-24  Bruno Haible  <bruno@clisp.org>
99056         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
99057         already has it.
99058         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
99059         2005-11-26.
99061         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
99062         'signed char' to avoid problems with the built-in _Bool type.
99063         Reported by Paul Eggert on 2005-11-26.
99065 2006-01-24  Bruno Haible  <bruno@clisp.org>
99067         * gnulib-tool (func_import): Avoid constructing complicated sed
99068         expressions inside backquote.
99069         Report and solution by Mark D. Baushke <mdb@gnu.org>.
99071 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
99073         These changes imported from libc.
99074         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
99075         test and two separate function calls.
99076         * lib/strndup.c (__strndup): Add libc_hidden_def.
99078 2006-01-23  Simon Josefsson  <jas@extundo.com>
99080         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
99081         Remove the test_*_SOURCES variable: automake infers it by default.
99082         * modules/tls-tests: Likewise.
99084 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
99086         Work around porting bugs reported by Dieter in
99087         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
99088         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
99089         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
99090         Include "getopt.h" first, to check interface.
99091         (getenv): Declare only if defined HAVE_DECL_GETENV &&
99092         !HAVE_DECL_GETENV.
99093         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
99094         (__strndup): Revert to K&R-style function dfns, the glibc style.
99095         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
99096         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
99097         Include strnlen.h first, to get prototype properly.
99098         (strnlen): Renamed from __strnlen.
99099         Remove weak alias.
99101 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
99103         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
99105 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
99107         * config/srclist.txt: Adjust to reflect glibc reorganization.
99108         This affects only comments.
99110 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
99112          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
99113          Reported by Bruce Korb <bkorb@gnu.org>.
99115 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
99117         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
99118         to pacify gcc -Wswitch-default.
99120 2006-01-22  Bruno Haible  <bruno@clisp.org>
99122         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
99123         temporary buffer for sprintf, take into account the precision also
99124         for 'd', 'i', 'u', 'o', 'x', 'X'.
99126 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
99128         * modules/argp-tests: New module
99129         * tests/test-argp.c: New file
99130         * tests/test-argp-2.sh: New file
99132 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
99134         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
99135         (__argp_base_name): Removed
99136         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
99137         typo.
99138         (__argp_base_name): Provide macro definition or extern declaration
99139         depending on the configuration
99141 2006-01-20  Simon Josefsson  <jas@extundo.com>
99143         * modules/inet_ntop (Depends-on): Depend on sys_socket.
99145 2006-01-20  Simon Josefsson  <jas@extundo.com>
99147         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
99149 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
99151         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
99152         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
99153         Suggested by Bruno Haible.
99155 2006-01-20  Karl Berry  <karl@gnu.org>
99157         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
99158         until changes propagate, I guess.
99160 2006-01-19  Simon Josefsson  <jas@extundo.com>
99162         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
99164 2006-01-19  Simon Josefsson  <jas@extundo.com>
99166         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
99168 2006-01-19  Simon Josefsson  <jas@extundo.com>
99170         * gnulib-tool: Set check_PROGRAMS.
99172         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
99173         modules/des-tests, modules/gc-arcfour-tests,
99174         modules/gc-arctwo-tests, modules/gc-des-tests,
99175         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
99176         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
99177         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
99178         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
99179         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
99180         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
99181         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
99182         test_*_SOURCES.
99184 2006-01-18  Simon Josefsson  <jas@extundo.com>
99186         * modules/socklen (Depends-on): Depend on sys_socket.
99188 2006-01-18  Simon Josefsson  <jas@extundo.com>
99190         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
99191         modules/des-tests, modules/gc-arcfour-tests,
99192         modules/gc-arctwo-tests, modules/gc-des-tests,
99193         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
99194         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
99195         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
99196         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
99197         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
99198         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
99199         $(EXEEXT) to automake TESTS variable, for mingw32.
99201 2006-01-17  Simon Josefsson  <jas@extundo.com>
99203         * modules/socklen (Include): Need sys/socket.h.
99205 2006-01-17  Bruno Haible  <bruno@clisp.org>
99207         * modules/ssize_t (Include): Add <sys/types.h>.
99209 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
99211         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
99212         it's not portable and it doesn't work with cross-compiles.
99213         Problem reported by Bruno Haible.  Fix missing-$ typo in
99214         'test "gl_cv_ignore_unused_libraries" ...' that prevented
99215         -zignore from being used with Sun's C compiler.
99217 2006-01-12  Simon Josefsson  <jas@extundo.com>
99219         * lib/base64.c: Fix warning, reported by Bruno Haible
99220         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
99222 2006-01-12  Bruno Haible  <bruno@clisp.org>
99224         * modules/ldd: New file.
99225         * build-aux/ldd.sh.in: New file.
99226         * MODULES.html.sh (Support for building libraries and executables): Add
99227         ldd.
99229 2006-01-12  Bruno Haible  <bruno@clisp.org>
99231         * m4/ldd.m4: New file.
99233 2006-01-12  Bruno Haible  <bruno@clisp.org>
99235         * gnulib-tool (func_import, func_create_testdir): Don't go into an
99236         endless loop while replacing $auxdir with build-aux.
99238 2006-01-11  Simon Josefsson  <jas@extundo.com>
99240         * lib/stdint_.h (SIZE_MAX): Add missing (.
99242 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
99244         Sync from coreutils.
99245         * lib/md5.c: Fix commentary typos.
99246         (alignof, UNALIGNED_P): No need for a GCC-specific version.
99247         * lib/md5.h (__attribute__): Remove; unused.
99248         * lib/sha1.c: Fix commentary to match md5 better.
99249         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
99250         so that we don't need to worry about alignment.  All uses changed.
99251         This merges the 2005-10-28 md5 change into sha1.
99253 2006-01-11  Jim Meyering  <jim@meyering.net>
99255         Sync from coreutils.
99256         * lib/md5.c (OP): Fix spacing.
99258 2006-01-11  Bruno Haible  <bruno@clisp.org>
99260         Ensure automatic ordering between gl_LOCK and gl_ARGP.
99261         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
99262         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
99264 2006-01-11  Bruno Haible  <bruno@clisp.org>
99266         Ensure automatic ordering between gl_LOCK and gl_ARGP.
99267         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
99268         the "early" section as well.
99270 2006-01-11  Bruno Haible  <bruno@clisp.org>
99272         Avoid "ar: no archive members specified" error on MacOS X.
99273         * gnulib-tool (func_modules_add_dummy): New function.
99274         (func_import, func_create_testdir): Invoke it.
99276 2006-01-11  Bruno Haible  <bruno@clisp.org>
99278         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
99279         with $auxdir in AC_CONFIG_FILES statements.
99281 2006-01-11  Bruno Haible  <bruno@clisp.org>
99283         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
99284         Initialize also noinst_HEADERS to empty.
99286 2006-01-11  Bruno Haible  <bruno@clisp.org>
99288         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
99289         variables.
99290         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
99291         autoreconf.
99293 2006-01-11  Bruno Haible  <bruno@clisp.org>
99295         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
99296         overridable by the user.
99297         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
99299 2006-01-10  Simon Josefsson  <jas@extundo.com>
99301         * modules/sys_socket: New file.
99303 2006-01-10  Simon Josefsson  <jas@extundo.com>
99305         * m4/sys_socket_h.m4: New file.
99307 2006-01-10  Simon Josefsson  <jas@extundo.com>
99309         * lib/socket_.h: New file.
99311 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
99313         * modules/readutmp (Maintainer): Add myself.
99315 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
99317         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
99318         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
99319         People who are still concerned with buggy memcmp implementations
99320         can invoke gl_FUNC_MEMCMP themselves.
99322 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
99324         * lib/regex_internal.h (BITSET_WORD_BITS):
99325         Work around a bug in 64-bit PGC (before version 6.1-2), where the
99326         preprocessor mishandles large unsigned values as if they were signed.
99327         Problem reported by Claudio Fontana in
99328         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
99330 2006-01-10  Jim Meyering  <jim@meyering.net>
99332         Avoid the double-free (first in fts_read, second in fts_close) that
99333         would occur when an `active' directory is made inaccessible (e.g.,
99334         via chmod a-x) during a traversal.
99335         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
99336         before returning.  Reproduce this failure by
99337         mkdir -p a/b; cd a; chmod a-x . b
99338         Reported by Stavros Passas.
99340         Sync from coreutils.
99341         * lib/sha1.c: Tweak grammar in a comment.
99343 2006-01-10  Jim Meyering  <jim@meyering.net>
99345         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
99346         Patch by Joerg Sonnenberger.
99348 2006-01-10  Bruno Haible  <bruno@clisp.org>
99350         * modules/readutmp: Depend on module free.
99351         * modules/strtok_r: Depend on module restrict.
99353 2006-01-10  Bruno Haible  <bruno@clisp.org>
99355         * modules/gettext (configure.ac): Add an invocation of
99356         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
99358 2006-01-10  Bruno Haible  <bruno@clisp.org>
99360         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
99361         Reported by Werner Lemberg <wl@gnu.org>.
99363 2006-01-10  Bruno Haible  <bruno@clisp.org>
99365         * lib/localcharset.c: Update from GNU gettext.
99367 2006-01-10  Bruno Haible  <bruno@clisp.org>
99369         * lib/argp.h (__const): Remove macro. Use const instead.
99370         * lib/argp-fmtstream.h (__const): Likewise.
99371         * lib/glob_.h (__const): Remove macro.
99372         * lib/glob-libc.h: Use const instead of __const.
99374 2006-01-10  Bruno Haible  <bruno@clisp.org>
99376         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
99377         variable.
99378         Needed to avoid an automake error regarding the 'gettext' module.
99380 2006-01-09  Simon Josefsson  <jas@extundo.com>
99382         * modules/inet_ntop (Depends-on): Add restrict.
99384 2006-01-09  Simon Josefsson  <jas@extundo.com>
99386         * modules/gc-rijndael-tests (License): Put under LGPL.
99388         * modules/gc-des-tests (License): Likewise.
99390         * modules/gc-arcfour-tests (License): Likewise.
99392         * modules/gc-arctwo-tests (License): Likewise.
99394         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
99396         * modules/gc-hmac-sha1-tests (Files): Likewise.
99398         * modules/gc-hmac-md5-tests (License): Likewise.
99400         * modules/gc-sha1-tests (License): Likewise.
99402         * modules/gc-md5-tests (License): Likewise.
99404         * modules/gc-md4-tests (License): Likewise.
99406         * modules/gc-md2-tests (License): Likewise.
99408         * modules/gc-tests (License): Likewise.
99410         * modules/des-tests (License): Likewise.
99412         * modules/md4-tests (License): Likewise.
99414         * modules/md2-tests (License): Likewise.
99416 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
99418         Sync from coreutils:
99420         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
99421         * modules/lib-ignore: New file.
99422         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
99423         chdir-safer.m4, lchmod.m4.
99424         * modules/openat: Add mkdirat.c, openat-priv.h.
99426 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
99428         Sync from coreutils.
99429         * m4/lib-ignore.m4: New file.
99430         * m4/lchmod.m4: New file.
99432 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
99434         Sync from coreutils.
99435         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
99436         for write access: POSIX says that must fail.
99437         * lib/fts.c (diropen): Likewise.
99438         * lib/save-cwd.c (save_cwd): Likewise.
99439         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
99440         well, for minor improvements on hosts that lack O_DIRECTORY.
99441         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
99442         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
99443         Fall back on chown if open failed with EACCES.
99445         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
99446         Report an error at compile-time if only a 1-second nominal clock
99447         resolution is found.
99449         * lib/lchmod.h: New file.
99450         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
99451         (make_dir_parents): Use lchown rather than chown, and
99452         lchmod rather than chmod.
99454         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
99455         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
99456         "proc" reported by n0dalus.
99458         * lib/mountlist.c: Include <limits.h>.
99459         (dev_from_mount_options)
99460         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
99461         New function.  It no longer assumes "dev=" has the System V meaning
99462         on Linux (since it doesn't).  It also parses "dev=" more carefully.
99463         (read_file_system_list)
99464         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
99465         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
99466         dev= in that case.
99468         * lib/posixtm.h (PDS_PRE_2000): New macro.
99469         * lib/posixtm.c (year): Arg is now syntax_bits rather than
99470         allow_century.  All usages changed.  Reject dates outside the range
99471         1969-1999 if PDS_PRE_2000 is used.
99473 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
99475         Sync from coreutils.
99476         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
99477         (Time of day items): Mention the possibility of leap seconds.
99478         Problem reported by Dr. David Alan Gilbert.
99480 2006-01-09  Jim Meyering  <jim@meyering.net>
99482         Sync from coreutils.
99484         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
99486         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
99488         * lib/modechange.c (mode_compile): Reject an invalid mode string
99489         that starts with an octal digit.  From Andreas Gruenbacher.
99491         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
99492         and dup to open_safer and dup_safer, respectively.
99493         (openat_permissive): Fix typo in comment.
99495         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
99496         "gettext.h"; either no longer needed or are guaranteed by openat.h.
99497         (_): Remove; no longer needed.
99498         (openat): Renamed from rpl_openat; no need for rpl_openat
99499         since openat.h renames openat for us.
99500         Replace most of the body with a call to openat_permissive,
99501         to avoid duplicate code.
99502         Port to (probably hypothetical) environments were mode_t is
99503         wider than int.
99504         (openat_permissive): Require mode arg, so that we can check
99505         types better.  Put it just after flags.  Change cwd failure
99506         indicator from pointer-to-bool to pointer-to-errno-value.
99507         All callers changed.
99508         Invoke openat_save_fail and/or openat_restore_fail if
99509         cwd_errno is null, so that openat can call us.
99510         (openat_permissive, fdopendir, fstatat, unlinkat):
99511         Simplify errno handling to avoid some duplicate code,
99512         as it's OK to set errno on success.
99513         * lib/openat.h: Revamp code so that function macros depend on
99514         __OPENAT_PREFIX only, not also on AT_FDCWD.
99515         (openat_ro): Remove.  Caller changed to use openat_permissive.
99516         (openat_permissive): Now a macro, if not a function.
99517         (openat_restore_fail, openat_save_fail): Now always functions,
99518         since mkdirat needs them even if __OPENAT_PREFIX is defined.
99520         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
99521         and openat.c.
99522         * lib/mkdirat.c: Include openat-priv.h.
99523         Remove definitions of macros defined therein.
99524         * lib/openat.c: Likewise.
99526         * lib/mkdirat.c (mkdirat): New file and function.
99527         * lib/openat.h (mkdirat): Declare.
99529         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
99531         * lib/openat.h (openat_permissive): Declare.
99532         (openat_ro): Define.
99534         * lib/openat.c (EXPECTED_ERRNO): New macro.
99535         (openat_permissive): New function -- used in remove.c rewrite.
99536         (all functions): Set errno just before returning, only if there
99537         was an actual failure.
99538         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
99540         Emulate openat-family functions using Linux's procfs, if possible.
99541         Idea and some code based on Ulrich Drepper's glibc changes.
99543         * lib/openat.c: (BUILD_PROC_NAME): New macro.
99544         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
99545         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
99546         before falling back on save_cwd and restore_cwd.
99547         (fdopendir, fstatat, unlinkat): Likewise.
99549         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
99550         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
99552         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
99553         as second argument to va_arg.  Otherwise, some versions of gcc
99554         warn that `if this code is reached, the program will abort'.
99556 2006-01-09  Jim Meyering  <jim@meyering.net>
99558         Sync from coreutils.
99559         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
99560         Require openat-priv.h.
99562 2006-01-09  Bruno Haible  <bruno@clisp.org>
99564         * modules/strnlen (Include): Use strnlen.h.
99566 2006-01-09  Bruno Haible  <bruno@clisp.org>
99568         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
99570 2006-01-09  Bruno Haible  <bruno@clisp.org>
99572         * lib/sysexit_.h (EX_OK): New macro.
99573         Suggested by Martin Lambers <marlam@marlam.de>.
99575 2006-01-09  Bruno Haible  <bruno@clisp.org>
99577         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
99578         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
99580 2006-01-09  Bruno Haible  <bruno@clisp.org>
99582         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
99583         numbers.
99585 2006-01-09  Bruno Haible  <bruno@clisp.org>
99587         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
99588         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
99589         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
99590         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
99592 2006-01-09  Bruno Haible  <bruno@clisp.org>
99594         * build-aux/javacomp.sh.in: New file, moved from lib/.
99595         * modules/javacomp-script (Files): Update.
99596         (configure.ac): Add AC_CONFIG_FILES invocation.
99597         (EXTRA_DIST): Remove variable.
99599         * build-aux/javaexec.sh.in: New file, moved from lib/.
99600         * modules/javaexec (Files): Update.
99601         (configure.ac): Add AC_CONFIG_FILES invocation.
99602         (EXTRA_DIST): Remove javaexec.sh.in.
99604         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
99605         * modules/csharpcomp-script (Files): Update.
99606         (configure.ac): Add AC_CONFIG_FILES invocation.
99607         (EXTRA_DIST): Remove variable.
99609         * build-aux/csharpexec.sh.in: New file, moved from lib/.
99610         * modules/csharpexec (Files): Update.
99611         (configure.ac): Add AC_CONFIG_FILES invocation.
99612         (EXTRA_DIST): Remove csharpexec.sh.in.
99614 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
99616         Sync from coreutils.
99618         Add POSIX ACL support
99619         * lib/acl.h (copy_acl, set_acl): Add declarations.
99620         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
99621         systems other than Linux.
99622         (chmod_or_fchmod): New function: use fchmod when possible,
99623         and chmod otherwise.
99624         (file_has_acl): Add a POSIX ACL implementation, with a
99625         Linux-specific subcase.
99626         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
99627         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
99628         acls are unsupported.
99629         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
99630         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
99631         are unsupported.
99633 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
99635         Sync from coreutils.
99636         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
99638 2006-01-07  Bruno Haible  <bruno@clisp.org>
99640         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
99641         gl_EARLY.
99643 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
99645         * lib/strftime.c (tzname): Don't declare if it is already #defined.
99646         Problem reported for Mingw by Mark Junker.
99648 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
99650         * README: Gnulib normally doesn't generate a tarball.
99652 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
99654         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
99655         long int, not int, for nanosecond counts, so that people who are
99656         used to POSIX struct timespec won't be surprised.  Reported by Jim
99657         Meyering.
99659 2005-12-28  Bruno Haible  <bruno@clisp.org>
99661         * build-aux/config.rpath: Update from GNU gettext.
99663 2005-12-16  Jim Meyering  <jim@meyering.net>
99665         * modules/fprintftime: New module.
99666         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
99668 2005-12-16  Jim Meyering  <jim@meyering.net>
99670         * m4/fprintftime.m4: New file.
99672 2005-12-16  Jim Meyering  <jim@meyering.net>
99674         * lib/fprintftime.c, lib/fprintftime.h: New files.
99676 2005-12-15  Simon Josefsson  <jas@extundo.com>
99678         * modules/socklen (configure.ac): Fix M4 macro name, to align with
99679         new m4/socklen.m4.
99681 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
99683         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
99684         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
99686 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
99688         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
99689         * lib/argp-help.c (fill_in_uparams): Check if the constructed
99690         struct uparams is valid. Fall back to the default values if it is
99691         not.
99693 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
99695         * modules/argp (Files): Add argp-pin.c
99696         (Depends-on): dirname
99697         (lib_SOURCES): Add argp-pin.c
99699 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
99701         * m4/argp.m4:  Check if program_invocation_name and
99702         program_invocation_short_name are declared and define appropriate
99703         macros if they are not.
99705 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
99707         * lib/argp-help.c (__argp_base_name): New function
99708         (__argp_short_program_name): Rewrite using __argp_base_name
99709         * lib/argp-namefrob.h: Define program_invocation_name and
99710         program_invocation_short_name if requested
99711         (__argp_base_name): Add prototype
99712         * lib/argp-parse.c (argp_def): Use gettext wrappers
99713         (argp_default_parser): Use __argp_base_name
99714         * lib/argp-pin.c: New file. Defines program_invocation_name and
99715         program_invocation_short_name on systems that lack them.
99717 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
99719         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
99720         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
99721         porting problem reported by Georg Schwarz in
99722         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
99724 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
99726         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
99727         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
99728         porting problem reported by Georg Schwarz in
99729         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
99731 2005-12-05  Bruno Haible  <bruno@clisp.org>
99733         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
99734         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
99735         Reported by Mark Junker <mjscod@gmx.de>.
99737 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
99739         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
99740         Use implementation from Albert Chin, with some
99741         comments/corrections by Stepan Kasal and myself.
99743 2005-12-02  Bruno Haible  <bruno@clisp.org>
99745         * gnulib-tool (func_import): Accept GPLed build tool modules when
99746         --lgpl is given.
99747         * modules/csharpcomp-script: New file.
99748         * modules/csharpcomp: Depend on it.
99749         * modules/javacomp-script: New file.
99750         * modules/javacomp: Depend on it.
99751         Suggested by Simon Josefsson.
99753 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
99755         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
99756         statement, to work around an HP-UX 10.20 compiler bug reported by
99757         Peter O'Gorman.
99759 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
99761         * modules/savedir (Depends-on): Add openat.
99763 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
99765         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
99766         (uintmax_t) [defined uintmax_t]: Do not declare.
99767         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
99768         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
99769         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
99770         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
99771         sake of portability to weird hosts that C allows (though we don't
99772         know of any practical examples).
99774         * lib/savedir.h (fdsavedir): New decl.
99775         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
99776         contains most of the former guts of savedir.
99777         (savedir): Use savedirstream.
99778         Include "openat.h".
99780 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
99782         * modules/obstack (Files): Add m4/ulonglong.m4.
99783         Problem reported by Davide Angelocola.
99785 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
99787         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
99788         coreutils no longer futzes with rounding modes.
99790 2005-11-14  Jim Meyering  <jim@meyering.net>
99792         * lib/mkstemp-safer.c: Include <config.h>, required for possible
99793         replacement of mkstemp.
99795 2005-11-10  Simon Josefsson  <jas@extundo.com>
99797         * lib/readline.c: Remove EOL.
99799 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
99801         * modules/gethrxtime (Depends-on): Add gettime.
99803 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
99805         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
99806         or gettimeofday; no longer needed.
99808 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
99810         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
99811         time business.
99812         (gethrxtime) [! (HAVE_NANOUPTIME
99813         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
99814         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
99815         our own approximation.
99817 2005-11-08  Eric Blake  <ebb9@byu.net>
99819         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
99821 2005-11-08  Eric Blake  <ebb9@byu.net>
99823         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
99825 2005-11-04  Bruno Haible  <bruno@clisp.org>
99827         * gnulib-tool: Implement --update mode.
99829 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
99831         Fix porting problem reported by Theodoros V. Kalamatianos.
99832         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
99833         Don't assume that futimes failing means we must fail.
99835 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
99837         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
99838         variables to suggest the intended function of the PATH_MAX check.
99840 2005-10-30  Kean Johnston  <jkj@sco.com>
99842         Trivial changes to support SCO systems.
99843         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
99844         as PATH_MAX.
99845         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
99846         where __ptr is null when no I/O is pending.
99848 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
99850         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
99851         leave errno alone.  Problem reported by Dmitry V. Levin.
99853 2005-10-28  Simon Josefsson  <jas@extundo.com>
99855         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
99856         Test more.
99858         * tests/test-gc-md2.c, tests/test-md2.c: New files.
99860         * modules/md2, modules/md2-tests: New files.
99862 2005-10-28  Simon Josefsson  <jas@extundo.com>
99864         * m4/inet_ntop.m4: More tests.
99866         * m4/gc-md2.m4, md2.m4: New file.
99868 2005-10-28  Simon Josefsson  <jas@extundo.com>
99870         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
99871         "restrict" keywords, as per POSIX.  Protect the function
99872         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
99873         Don't use K&R prototypes.  Check the sprintf return values.
99874         Re-define EAFNOSUPPORT if not present.  Indent.
99876         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
99877         suggested by Bruno Haible <bruno@clisp.org>.
99879         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
99881         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
99883         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
99884         libgcrypt).
99886         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
99888         * lib/md2.h, lib/md2.c: New files.
99890 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
99892         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
99893         errno alone.  Problem reported by Frederic Jolliton.
99895 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
99897         * modules/verify (License): Change from GPL to LGPL.  This is a
99898         tiny module and there are apparently near-equivalents that are
99899         under the BSD license.
99901 2005-10-24  Simon Josefsson  <jas@extundo.com>
99903         * modules/sha1: Relicense to LGPL.
99905 2005-10-24  Simon Josefsson  <jas@extundo.com>
99907         * lib/md4.h: Shrink buffer size, now that we changed the type.
99909 2005-10-23  Simon Josefsson  <jas@extundo.com>
99911         * gnulib-tool (func_import): Fix --tests-base.
99913 2005-10-22  Simon Josefsson  <jas@extundo.com>
99915         * modules/arcfour (Depends-on): Need stdint.
99917 2005-10-22  Simon Josefsson  <jas@extundo.com>
99919         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
99920         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
99922 2005-10-22  Simon Josefsson  <jas@extundo.com>
99924         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
99925         suggested by Bruno Haible <bruno@clisp.org>.
99927 2005-10-22  Simon Josefsson  <jas@extundo.com>
99929         * lib/crc.h: Include stddef.h, for size_t.
99931 2005-10-22  Simon Josefsson  <jas@extundo.com>
99933         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
99934         arcfour_context struct (simplify test vector testing in GNU
99935         Shishi).
99937 2005-10-21  Simon Josefsson  <jas@extundo.com>
99939         * modules/des, modules/des-tests: New files.
99941         * modules/gc-des, modules/gc-des-tests: New files.
99943         * tests/test-des.c, tests/test-gc-des.c: New file.
99945 2005-10-21  Simon Josefsson  <jas@extundo.com>
99947         * modules/arctwo, modules/arctwo-tests: New files.
99949         * tests/test-arctwo.c: New file.
99951         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
99953         * tests/test-gc-arctwo.c: New file.
99955 2005-10-21  Simon Josefsson  <jas@extundo.com>
99957         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
99958         Bruno Haible <bruno@clisp.org>.
99960         * m4/gc-des.m4: New file.
99962 2005-10-21  Simon Josefsson  <jas@extundo.com>
99964         * m4/arctwo.m4: New file.
99966         * m4/gc-arctwo.m4: New file.
99968 2005-10-21  Simon Josefsson  <jas@extundo.com>
99970         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
99971         block.
99973 2005-10-21  Simon Josefsson  <jas@extundo.com>
99975         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
99976         <bruno@clisp.org>.
99978         * lib/hmac-sha1.c (hmac_sha1): Likewise.
99980         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
99981         Bruno Haible <bruno@clisp.org>.
99983         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
99984         <bruno@clisp.org>.
99986 2005-10-21  Simon Josefsson  <jas@extundo.com>
99988         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
99990 2005-10-21  Simon Josefsson  <jas@extundo.com>
99992         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
99994 2005-10-21  Simon Josefsson  <jas@extundo.com>
99996         * lib/des.h, lib/des.c: New files.
99998         * lib/gc-gnulib.c: Support DES.c
100000 2005-10-21  Simon Josefsson  <jas@extundo.com>
100002         * lib/arctwo.h, lib/arctwo.c: New files.
100004         * lib/gc-gnulib.c: Support ARCTWO.
100006 2005-10-21  Simon Josefsson  <jas@extundo.com>
100008         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
100009         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
100011 2005-10-21  Simon Josefsson  <jas@extundo.com>
100013         * gnulib-tool (func_import, func_create_testdir): Define automake
100014         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
100015         Makefile.am snippet),
100016         suggested by Bruno Haible <bruno@clisp.org>.
100018         * modules/gc (Makefile.am): Use it.
100020 2005-10-21  Bruno Haible  <bruno@clisp.org>
100022         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
100023         patch.
100025 2005-10-19  Simon Josefsson  <jas@extundo.com>
100027         * tests/test-gc-rijndael.c: New file.
100029         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
100031 2005-10-19  Simon Josefsson  <jas@extundo.com>
100033         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
100034         interface too.
100036 2005-10-19  Simon Josefsson  <jas@extundo.com>
100038         * tests/test-gc-arcfour.c: New file.
100040         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
100042 2005-10-19  Simon Josefsson  <jas@extundo.com>
100044         * modules/gc-md4, modules/gc-md4-tests: New file.
100046         * tests/test-gc-md4.c: New file.
100048 2005-10-19  Simon Josefsson  <jas@extundo.com>
100050         * m4/gc-md4.m4: New file.
100052 2005-10-19  Simon Josefsson  <jas@extundo.com>
100054         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
100055         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
100056         <kasal@ucw.cz>.
100058 2005-10-19  Simon Josefsson  <jas@extundo.com>
100060         * m4/gc-arcfour.m4: New file.
100062         * m4/gc-rijndael.m4: New file.
100064 2005-10-19  Simon Josefsson  <jas@extundo.com>
100066         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
100068 2005-10-19  Simon Josefsson  <jas@extundo.com>
100070         * lib/gc-gnulib.c: Support ARCFOUR.
100072 2005-10-19  Simon Josefsson  <jas@extundo.com>
100074         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
100075         support.
100077         * lib/gc.h: Add ECB enum type.
100079         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
100081 2005-10-18  Simon Josefsson  <jas@extundo.com>
100083         * tests/test-md5.c: New file.
100085         * modules/md5-tests: New file.
100087 2005-10-18  Simon Josefsson  <jas@extundo.com>
100089         * tests/test-md4.c: New file.
100091         * modules/md4, modules/md4-tests: New files.
100093 2005-10-18  Simon Josefsson  <jas@extundo.com>
100095         * m4/md4.m4: New file.
100097 2005-10-18  Simon Josefsson  <jas@extundo.com>
100099         * lib/md4.h, lib/md4.c: New files, based on md5.?.
100101 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
100103         * gnulib-tool (func_create_testdir): Omit the second check whether
100104         BUILT_SOURCES in nonempty.
100106 2005-10-17  Simon Josefsson  <jas@extundo.com>
100108         * tests/test-rijndael.c: New file.
100110 2005-10-17  Simon Josefsson  <jas@extundo.com>
100112         * modules/sha1: Depend on stdint instead of md5.
100114         * modules/md5: Depend on stdint, remove uint32_t.
100116 2005-10-17  Simon Josefsson  <jas@extundo.com>
100118         * modules/gc-sha1-tests: New file.
100120         * tests/test-gc-sha1.c: New file.
100122 2005-10-17  Simon Josefsson  <jas@extundo.com>
100124         * m4/md5.m4: Remove call to uint32_t.m4.
100126 2005-10-17  Simon Josefsson  <jas@extundo.com>
100128         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
100130         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
100131         md5.h.
100133         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
100135         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
100137 2005-10-17  Simon Josefsson  <jas@extundo.com>
100139         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
100141 2005-10-17  Simon Josefsson  <jas@extundo.com>
100143         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
100145 2005-10-17  Simon Josefsson  <jas@extundo.com>
100147         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
100149         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
100151 2005-10-17  Bruno Haible  <bruno@clisp.org>
100153         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
100154         that it can also be used in a test.
100156 2005-10-16  Bruno Haible  <bruno@clisp.org>
100158         * gnulib-tool (func_emit_tests_Makefile_am): Also define
100159         TESTS_ENVIRONMENT, so that individual tests can augment it.
100161         * gnulib-tool (func_create_testdir): Use an intermediate target for
100162         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
100163         macros, like $(ALLOCA_H), which cannot be passed through the command
100164         line.
100166 2005-10-15  Simon Josefsson  <jas@extundo.com>
100168         * modules/rijndael-tests: New file.
100170         * modules/rijndael: New file.
100172 2005-10-15  Simon Josefsson  <jas@extundo.com>
100174         * m4/rijndael.m4: New file.
100176 2005-10-15  Simon Josefsson  <jas@extundo.com>
100178         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
100180         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
100182 2005-10-14  Simon Josefsson  <jas@extundo.com>
100184         * tests/test-arcfour.c: New file.
100186         * modules/arcfour, modules/arcfour-tests: New files.
100188 2005-10-14  Simon Josefsson  <jas@extundo.com>
100190         * m4/arcfour.m4: New file.
100192 2005-10-14  Simon Josefsson  <jas@extundo.com>
100194         * lib/arcfour.h, lib/arcfour.c: New files.
100196 2005-10-14  Roland McGrath  <roland@redhat.com>
100198         Import from libc.  [BZ #1331]
100199         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
100200         macro argument.
100201         Reported by Matej Vela <vela@debian.org>.
100203 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
100205         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
100206         include <wchar.h>; no longer needed.
100208 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
100210         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
100212 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
100213         and  Ulrich Drepper  <drepper@redhat.com>
100215         Import from libc.
100216         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
100217         instead of inline stream orientation test and two separate
100218         function calls.  Pay no attention to USE_IN_LIBIO.
100220 2005-10-13  Simon Josefsson  <jas@extundo.com>
100222         * modules/gc-hmac-md5-tests: New file.
100224         * tests/test-gc-hmac-sha1.c: New file.
100226         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
100228         * modules/gc-hmac-md5-tests: New file.
100230         * tests/test-gc-md5.c: New file.
100232         * modules/gc-md5-tests: New file.
100234 2005-10-13  Simon Josefsson  <jas@extundo.com>
100236         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
100237         Move memory allocation outside of loop.
100239 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
100241         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
100242         intermediate directory is in a read-only file system.  Problem
100243         reported by Eric Blake.
100245 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
100247         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
100249 2005-10-12  Simon Josefsson  <jas@extundo.com>
100251         * tests/test-hmac-sha1.c: New file.
100253         * modules/hmac-sha1-tests: New file.
100255         * modules/hmac-sha1: New file.
100257 2005-10-12  Simon Josefsson  <jas@extundo.com>
100259         * modules/gc-sha1: New file.
100261 2005-10-12  Simon Josefsson  <jas@extundo.com>
100263         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
100265         * tests/test-gc-pbkdf2-sha1.c: New file.
100267 2005-10-12  Simon Josefsson  <jas@extundo.com>
100269         * modules/gc-md5, modules/gc-hmac-md5: New files.
100271         * modules/gc (Files): Remove md5, memxor and hmac files.
100273 2005-10-12  Simon Josefsson  <jas@extundo.com>
100275         * m4/gc-pbkdf2-sha1.m4: New file.
100277         * m4/gc-hmac-sha1.m4: New file.
100279         * m4/gc-sha1: New file.
100281         * m4/hmac-sha1.m4: New file.
100283 2005-10-12  Simon Josefsson  <jas@extundo.com>
100285         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
100287         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
100289 2005-10-12  Simon Josefsson  <jas@extundo.com>
100291         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
100292         suggested by Bruno Haible <bruno@clisp.org>.
100294 2005-10-12  Simon Josefsson  <jas@extundo.com>
100296         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
100298 2005-10-12  Simon Josefsson  <jas@extundo.com>
100300         * lib/gc-pbkdf2-sha1.c: New file.
100302         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
100304 2005-10-12  Simon Josefsson  <jas@extundo.com>
100306         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
100308         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
100310 2005-10-12  Simon Josefsson  <jas@extundo.com>
100312         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
100313         GC_USE_HMAC_MD5, respectively.
100315         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
100316         (gc_md5): Fix typo.
100318         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
100320         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
100322         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
100324 2005-10-12  Bruno Haible  <bruno@clisp.org>
100326         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
100327         Reported by Stepan Kasal <kasal@ucw.cz>.
100329 2005-10-11  Simon Josefsson  <jas@extundo.com>
100331         * tests/test-crc.c: New file.
100333         * modules/crc, modules/crc-tests: New files.
100335 2005-10-11  Simon Josefsson  <jas@extundo.com>
100337         * m4/crc.m4: New file.
100339 2005-10-11  Simon Josefsson  <jas@extundo.com>
100341         * lib/gc.h: Add gc_hash and gc_hash_buffer.
100343         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
100345         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
100347 2005-10-11  Simon Josefsson  <jas@extundo.com>
100349         * lib/crc.h, lib/crc.c: New files.
100351         * lib/gc.h (gc_hash_buffer): Add doc.
100353 2005-10-11  Bruno Haible  <bruno@clisp.org>
100355         * modules/c-strcasestr: New file.
100356         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
100358 2005-10-11  Bruno Haible  <bruno@clisp.org>
100360         * modules/c-strcase: New file.
100361         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
100363 2005-10-11  Bruno Haible  <bruno@clisp.org>
100365         * lib/strcasecmp.c: Include limits.h.
100366         (strcasecmp): Avoid integer overflow on exotic platforms.
100367         * lib/strncasecmp.c: Include limits.h.
100368         (strncasecmp): Avoid integer overflow on exotic platforms.
100369         Reported by Paul Eggert.
100371 2005-10-11  Bruno Haible  <bruno@clisp.org>
100373         * lib/c-strcasestr.h: New file, from GNU gettext.
100374         * lib/c-strcasestr.c: New file, from GNU gettext.
100376 2005-10-11  Bruno Haible  <bruno@clisp.org>
100378         * lib/c-strcase.h: New file, from GNU gettext.
100379         * lib/c-strcasecmp.c: New file, from GNU gettext.
100380         * lib/c-strncasecmp.c: New file, from GNU gettext.
100382 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
100384         * modules/mempcpy (License): GPL -> LGPL.
100385         * modules/strchrnul (License): Likewise.
100386         * modules/sysexits (License): Likewise.
100388 2005-10-08  Simon Josefsson  <jas@extundo.com>
100390         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
100392 2005-10-07  Simon Josefsson  <jas@extundo.com>
100394         * m4/memxor.m4: Remove gl_C_RESTRICT call.
100396 2005-10-06  Simon Josefsson  <jas@extundo.com>
100398         * tests/test-hmac-md5.c: New file.
100400         * modules/hmac-md5-tests: New file.
100402         * modules/hmac-md5: New file.
100404 2005-10-06  Simon Josefsson  <jas@extundo.com>
100406         * m4/hmac-md5.m4: New file.
100408         * m4/memxor.m4: Require gl_C_RESTRICT.
100410 2005-10-06  Simon Josefsson  <jas@extundo.com>
100412         * lib/memxor.c (memxor): Avoid casts and warnings.
100414 2005-10-06  Simon Josefsson  <jas@extundo.com>
100416         * lib/hmac-md5.c: New file.
100418         * lib/hmac.h: New file.
100420 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
100422         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
100423         promotes to int, not unsigned int, to catch the AIX 5.3
100424         compiler bug.
100426 2005-10-05  Simon Josefsson  <jas@extundo.com>
100428         * modules/memxor: New file.
100430         * modules/iconv (Files): Move config.rpath to havelib, it is used
100431         there.
100433         * modules/havelib (Files): Add config.rpath.
100435 2005-10-05  Simon Josefsson  <jas@extundo.com>
100437         * m4/memxor.m4: New file.
100439 2005-10-05  Simon Josefsson  <jas@extundo.com>
100441         * lib/memxor.c (memxor): Fix compiler error.
100443         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
100444         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
100446         * lib/memxor.h, lib/memxor.c: New files.
100448         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
100449         we assume all systems have it, suggested by Jim Meyering
100450         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
100451         any systems lack sys/socket.h; mingw32 is known to lack it, but we
100452         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
100453         same reasons.
100455 2005-10-05  Simon Josefsson  <jas@extundo.com>
100457         * config/srclist.txt: Add glibc bug 1423 for md5.h.
100459 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
100461         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
100462         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
100463         needed, since the source code now assumes these .h files.
100465 2005-10-05  Derek Price  <derek@ximbiot.com>
100467         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
100469 2005-10-05  Bruno Haible  <bruno@clisp.org>
100471         * modules/stdint (License): Change to LGPL.
100473 2005-10-04  Simon Josefsson  <jas@extundo.com>
100475         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
100476         D. Baushke" <mdb@gnu.org>.
100478 2005-10-04  Bruno Haible  <bruno@clisp.org>
100480         * lib/verify.h (verify_true): Provide alternative definition for C++.
100482 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
100484         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
100485         (SSIZE_MAX): New macro, if not already defined.
100486         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
100487         than 2 GiB.
100489 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
100491         Sync from coreutils.
100492         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
100493         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
100494         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
100495         ULLONG_MAX doesn't work with 2.7.2.1.
100497 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
100499         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
100500         From Ben Pfaff.
100502         * modules/exclude (Depends-on): Depend on verify.
100503         * modules/strtoimax (Depends-on): Likewise.
100504         * modules/utimecmp (Depends-on): Likewise.
100506 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
100508         * lib/exclude.c: Include verify.h.
100509         (verify): Remove.  All callers changed to use verify.h's version.
100510         * lib/strtoimax.c: Likewise.
100511         * lib/utimecmp.c: Likewis.e
100513         Sync from coreutils.
100514         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
100515         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
100516         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
100517         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
100518         bother returning ENOSYS if settimeofday or stime fails; just let
100519         them return whatever errno they want to return.
100520         * lib/utimens.c: Include unistd.h, for dup2.
100521         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
100522         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
100524 2005-10-02  Jim Meyering  <jim@meyering.net>
100526         Sync from coreutils.
100527         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
100528         from glibc-2.2.5 that fails for read-only files.
100530 2005-10-02  Jim Meyering  <jim@meyering.net>
100532         Sync from coreutils.
100533         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
100534         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
100535         `#if HAVE_CONFIG_H'.
100536         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
100537         Remove AT_FDCWD test.
100538         Do not consume the fd unless successful.
100539         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
100540         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
100541         block, so that we don't even try to compile it if settimeofday is
100542         available.  This works around a compilation failure on OSF1 V5.1,
100543         due to stime requiring a `long int*' while tv_sec is `int'.
100545 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
100547         Sync from coreutils.
100548         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
100549         against `yes', rather than just testing for nonempty.
100551 2005-10-01  Simon Josefsson  <jas@extundo.com>
100553         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
100554         and Darwin.
100556         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
100557         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
100558         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
100559         freeaddrinfo and gai_strerror are declared by the POSIX headers.
100560         Check if struct addrinfo is declared.
100562 2005-10-01  Simon Josefsson  <jas@extundo.com>
100564         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
100565         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
100566         AI_* and EAI_* definitions.  Protect function declarations.
100568 2005-10-01  Jim Meyering  <jim@meyering.net>
100570         Sync from coreutils.
100572         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
100573         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
100574         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
100575         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
100576         in the inet and nsl libraries.  Required on Solaris 5.7.
100578 2005-10-01  Jim Meyering  <jim@meyering.net>
100580         Sync from coreutils.
100581         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
100582         in the inet and nsl libraries.  Required on Solaris 5.7.
100584 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
100586         * lib/getdelim.c (getdelim): Remove unused variables.
100588 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
100590         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
100591         so that the code works even with ancient cpp.  Portability problem
100592         with GCC 2.7.2.1 reported by Thomas M.Ott.
100594 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
100596         * modules/regex (Depends-on): Add strcase.
100598         * modules/gethostname (Licence): Change from GPL to LGPL, since
100599         gethostname.c is a trivial implementation of a standard library
100600         function.
100601         * modules/poll (License): Change from GPL to LGPL, since it's
100602         derived from LGPL code.
100604 2005-09-27  Jim Meyering  <jim@meyering.net>
100606         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
100607         HAVE_CONFIG_H.
100609         * lib/intprops.h (signed_type_or_expr__): Define.
100610         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
100611         for unsigned types.
100613 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
100615         * lib/verify.h (verify_expr): Remove, replacing with:
100616         (verify_true): New macro that returns true instead of void.
100617         (verify_type__): Remove.
100618         (verify): Use verify_true rather than verify_type__.
100620 2005-09-26  Bruno Haible  <bruno@clisp.org>
100622         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
100623         is necessary.
100624         (lib_SOURCES): Remove mbchar.c.
100625         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
100626         (Files): Add m4/mbrtowc.m4.
100627         * modules/mbiter: Likewise.
100628         * modules/mbuiter: Likewise.
100630 2005-09-26  Bruno Haible  <bruno@clisp.org>
100632         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
100633         compile mbchar.c if they are not both present.
100634         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
100635         * m4/mbiter.m4 (gl_MBITER): Likewise.
100636         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
100637         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
100638         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
100640 2005-09-25  Jim Meyering  <jim@meyering.net>
100642         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
100643         also uses socklen_t.
100645 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
100647         * lib/utimens.c (ENOSYS): Define if not already defined.
100648         (futimens): Support having a null PATH if the file descriptor
100649         is nonnegative.
100651         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
100652         Remove.
100653         (__attribute): Define to empty unless GCC 3.1 or later.
100654         This works around a core dump on OpenBSD 3.4, which has GCC
100655         2.95.3, which dumps core when given __attribute__(()).  It also
100656         simplifies other tests, since we really don't want to bother with
100657         worrying about which ancient version of GCC supported what.
100658         Original problem reported by Yoann Vandoorselaere, with part of
100659         the fix suggested by Derek Price.
100661 2005-09-24  Jim Meyering  <jim@meyering.net>
100663         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
100664         so we can once again use a positive bitfield width of 1 -- now we
100665         don't have to explain why we were using a bitfield width of 2.
100667 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
100669         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
100670         and similarly for the other external symbols.  Problem reported
100671         by James Gallager.
100673         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
100674         bug reported by Jim Meyering.
100676         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
100677         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
100678         not needed, since socklen is a prerequisite module.
100680 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
100682         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
100683         Problem reported by Eric Blake.
100684         (getaddrinfo): Initialize se so that it's not garbage.
100685         Redo internal storage allocation so that it doesn't make unportable
100686         assumptions about alignment.
100687         Fix a memory leak.
100689         * lib/utimens.c (futimens): Use futimesat if available.
100690         Prefer it to futimes since it doesn't have the futimes bug.
100692         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
100693         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
100694         Instead, declare a function that returns a pointer to an array,
100695         and use verify_type__ to declare the size of the array.
100696         Problem and germ of a solution reported by Bruno Haible.
100697         (verify_type__): Use 2, not 1, for bitfield size, to avoid
100698         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
100700 2005-09-23  Jim Meyering  <jim@meyering.net>
100702         Sync from coreutils.
100703         Correct build failure (socklen_t not defined) on at least
100704         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
100705         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
100707 2005-09-23  Jim Meyering  <jim@meyering.net>
100709         * modules/getaddrinfo (Depends-on): Add socklen.
100711 2005-09-23  Bruno Haible  <bruno@clisp.org>
100713         * tests/test-verify.c: New file.
100715 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
100717         Sync from coreutils.
100719         * modules/argmatch (Depends-on): Add verify.
100720         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
100721         unistd-safer.
100722         * modules/save-cwd (Depends-on): Likewise.
100724         * modules/openat (Files): Add lib/openat-die.c.
100725         (Depends-on): Remove error, exitfail.
100726         Add dirname.
100728         * modules/verify: New file.
100729         * MODULES.html.sh (Diagnostics <assert.h>): New section,
100730         with "verify" module.
100732 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
100734         Sync from coreutils.
100736         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
100737         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
100738         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
100739         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
100740         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
100741         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
100742         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
100743         Don't bother checking for string.h, stdlib.h, unistd.h.
100744         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
100745         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
100746         module's job.
100747         * m4/jm-macros.m4 (gl_MACROS): Likewise.
100748         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
100750         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
100751         (gl_GETDATE): Use it.
100753         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
100755 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
100757         Sync from coreutils.
100759         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
100760         stat-time.h.
100761         * lib/argmatch.h: Include verify.h
100762         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
100763         (ARGMATCH_ASSERT): Remove; unused.
100764         * lib/canonicalize.c: Assume STDC_HEADERS.
100765         * lib/exclude.c: Include "strcase.h".
100766         * lib/regex_internal.h [!defined _LIBC]: Likewise.
100767         * lib/getusershell.c: Include stdio--.h rather than stdio.h
100768         and stdio-safer.h.
100769         (getusershell): Call fopen, not fopen_safer.
100770         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
100771         Do not include unistd-safer.h.
100772         (save_cwd): Don't call fd_safer; no longer needed
100773         now that we include fcntl--.h.
100775         * lib/getdate.y (relative_time): New type.
100776         (RELATIVE_TIME_0): New constant.
100777         (parser_control): Use relative_time instead of doing it ourselves.
100778         (%union): Add new relative_time rel member.
100779         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
100780         Now typeless.
100781         (relunit, relunit_snumber): Now of type rel.
100782         (zone, rel, relunit, get_date): Adjust to above changes.
100784         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
100785         Do not include unistd-safer.h.
100786         (getloadavg): Don't call fd_safer; no longer needed
100787         now that we include fcntl--.h.
100789         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
100790         (make_dir_parents): Treat ENOSYS like EEXIST.
100792         Improve quality of diagnostics on restore_cwd failure.
100793         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
100794         (make_dir_parents): Last arg is now int * (for errno), not bool *.
100795         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
100796         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
100797         each time through the loop.  Do not diagnose restore_cwd failure;
100798         that is the caller's job (and perhaps the caller does not care).
100800         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
100801         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
100802         If the file already exists but is not a directory, don't bother
100803         to try to make its parents.
100804         Close potential file descriptor leak if we can't chdir("/") (!).
100805         Don't always return true if chdir($PWD) fails; return true only
100806         if the requested action was done successfully (except for the
100807         chdir($PWD)).
100808         Don't log final directory unless we actually made it.
100809         Refactor to avoid duplicate code to fix up permissions.
100810         Don't attempt to fix up parent permissions if chdir($PWD) fails.
100812         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
100813         to make it a bit faster and (I hope) clearer.
100814         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
100815         Fix bug in formats like %2N.
100817         * lib/verify.h: New file.
100819 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
100821         Sync from coreutils.
100822         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
100824 2005-09-22  Jim Meyering  <jim@meyering.net>
100826         Sync from coreutils.
100828         * m4/lstat.m4 (gl_FUNC_LSTAT):
100829         Use AC_LIBSOURCES to require lstat.c and lstat.h.
100830         Remove obsolete comment.
100831         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
100832         * m4/xstrtod.m4: Likewise.
100834         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
100836 2005-09-22  Jim Meyering  <jim@meyering.net>
100838         Sync from coreutils.
100840         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
100842         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
100843         the .tm_year member, since otherwise gcc-4.0 would now warn about
100844         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
100846         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
100847         order to avoid an unsuppressible warning from gcc on 64-bit systems.
100849         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
100850         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
100851         when run in a time zone for which daylight savings time is in effect
100852         for the starting date.
100854         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
100855         stop us from restricting permissions of just-created absolute-named
100856         directories.
100857         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
100858         to restore initial working directory.
100859         * lib/mkdir-p.c (make_dir_parents): New parameter:
100860         different_working_dir, to tell caller if/when we change the working
100861         directory and are unable to return to the initial one.
100862         * lib/mkdir-p.h (make_dir_parents): Update prototype.
100863         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
100864         `return false'.  This fixes a bug introduced on 2004-07-30.
100866         * lib/openat.c (fdopendir): Be sure to close the supplied
100867         file descriptor before returning.  This makes our replacement
100868         implementation a little closer to Solaris's, where fdopendir
100869         ties the file descriptor to the returned DIR* pointer.
100870         * lib/openat.c (unlinkat): New function.
100871         * lib/openat.h (unlinkat): Add prototype.
100872         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
100873         (openat_restore_fail): Rename from openat_restore_die.
100874         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
100876         Provide an alternative to exiting immediately upon save_cwd or
100877         restore_cwd failure.  Now, an application can arrange e.g.,
100878         to perform a longjump in that case.
100879         * lib/openat.c: Include dirname.h.
100880         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
100881         (rpl_openat, fdopendir, fstatat): Call openat_save_die
100882         and openat_restore_die rather than calling error directly.
100883         Don't include "error.h" or "exitfail.h"; they're no longer needed.
100885         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
100886         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
100887         define.
100889         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
100890         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
100891                             int utc, int nanoseconds);
100892         Background:
100893         date should not have to allocate a megabyte of virtual memory to
100894         handle a format argument like +%1048575T.  When implemented with
100895         strftime, it must allocate such a buffer, use strftime to fill it
100896         in, print it, then free it.
100897         With fprintftime, it simply prints everything and exits.
100898         With no need for memory allocation, that's one fewer way to fail.
100899         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
100900         optional field width, not before, so we accept %9:z, not %:9z.
100901         (my_strftime): Be sure to use L_('x') for literals.
100903         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
100904         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
100905         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
100906         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
100907         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
100908         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
100909         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
100910         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
100911         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
100912         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
100913         * lib/xgethostname.c, lib/xreadlink.c:
100914         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
100916         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
100917         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
100918         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
100919         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
100920         and don't include <sys/file.h>).
100922 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
100924         Sync from coreutils.
100926         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
100927         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
100928         [!LDAV_DONE]: Avoid unused variable warning.
100930 2005-09-21  Bruno Haible  <bruno@clisp.org>
100932         * lib/unicodeio.h (unicode_to_mb): New declaration.
100934 2005-09-20  Derek Price  <derek@ximbiot.com>
100936         * lib/getaddrinfo.c: Don't include <netdb.h> included from
100937         getaddrinfo.h.
100939 2005-09-20  Bruno Haible  <bruno@clisp.org>
100941         * gnulib-tool: Remove trailing slashes from the values specified for
100942         --source-base, --m4-base, --tests-base, --aux-dir.
100943         Suggested by Simon Josefsson <jas@extundo.com>.
100945 2005-09-20  Bruno Haible  <bruno@clisp.org>
100947         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
100948         func_modules_to_filelist, func_import, func_create_testdir): Make all
100949         sorting results locale-independent, so that gnulib-cache.m4 doesn't
100950         change when gnulib-tool is invoked in a different locale.
100952 2005-09-19  Simon Josefsson  <jas@extundo.com>
100954         * m4/socklen.m4: Fix typo.
100956 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100958         Use a consistent style for including <config.h>.
100959         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
100960         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
100961         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
100962         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
100963         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
100964         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
100965         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
100966         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
100967         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
100968         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
100969         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
100970         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
100971         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
100972         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
100973         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
100974         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
100975         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
100976         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
100977         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
100978         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
100979         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
100980         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
100981         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
100982         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
100983         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
100984         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
100985         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
100986         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
100987         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
100988         lib/xstrtoumax.c, lib/yesno.c:
100989         Standardize inclusion of config.h.
100990         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
100991         lib/inttostr.h:  Removed inclusion of config.h from header files.
100992         * lib/inttostr.c:  Adjusted in-tree users.
100993         * lib/timespec.h: Remove superfluous warning to include config.h.
100994         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
100995         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
100996         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
100997         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
100998         config.h with HAVE_CONFIG_H.
101000 2005-09-19  Jim Meyering  <jim@meyering.net>
101002         * modules/pathmax (License): Change to LGPL.
101004 2005-09-19  Derek Price  <derek@ximbiot.com>
101006         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
101008 2005-09-19  Bruno Haible  <bruno@clisp.org>
101010         * gnulib-tool (import): Provide default for --tests-base.
101012 2005-09-19  Bruno Haible  <bruno@clisp.org>
101014         * doc/quote.texi: New file, extracted from gnulib.texi.
101015         * doc/ctime.texi: New file, extracted from gnulib.texi.
101016         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
101017         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
101018         * doc/gnulib.texi: Include them.
101020 2005-09-18  Bruno Haible  <bruno@clisp.org>
101022         Portability fix.
101023         * gnulib-tool (func_readlink): New function.
101024         (func_ln_if_changed): Use it.
101026 2005-09-18  Bruno Haible  <bruno@clisp.org>
101028         * gnulib-tool: Support --with-tests also with --import.
101029         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
101030         (func_import): Use variables $testsbase and $inctests. Emit a
101031         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
101032         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
101033         SUBDIRS += $testsdir.
101034         (func_create_testdir): Update.
101036 2005-09-18  Bruno Haible  <bruno@clisp.org>
101038         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
101039         instead of $dry_run.
101040         (func_cp_if_changed, func_mv_if_changed): Remove functions.
101041         (func_ln_if_changed): Don't handle dry-run here.
101042         (func_import): In dry-run mode, detect more precisely which actions
101043         would be performed, and don't use "...ing" verbs.
101045 2005-09-18  Bruno Haible  <bruno@clisp.org>
101047         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
101048         (func_import): Use join on two temporary files instead of three nested
101049         loops, in order to determine which files are new or old.
101051 2005-09-18  Bruno Haible  <bruno@clisp.org>
101053         * gnulib-tool (func_import): Comment out code that spits out the
101054         new files with --dry-run.
101056 2005-09-18  Bruno Haible  <bruno@clisp.org>
101058         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
101060 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
101062         * lib/stat-time.h: New file.
101063         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
101064         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
101065         in a different way.
101066         (timespec_cmp): New function.
101067         * lib/utimecmp.c: Include stat-time.h.
101068         (SYSCALL_RESOLUTION): Depend on whether various struct stat
101069         members exist, not on the obsolescent ST_MTIM_NSEC.
101070         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
101072 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
101074         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
101076 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
101078         * MODULES.html.sh (File system functions): Add stat-time.
101079         * modules/stat-time: New file.
101080         * modules/timespec (Files): Remove m4/st_mtim.m4; this
101081         is now done in a different way, by the stat-time module.
101082         * modules/utimecmp (Depends-on): Add stat-time.
101084 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
101086         * m4/st_mtim.m4: Remove.  Superseded by...
101087         * m4/stat-time.m4: New file.
101088         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
101089         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
101091 2005-09-15  Derek Price  <derek@ximbiot.com>
101093         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
101095 2005-09-15  Derek Price  <derek@ximbiot.com>
101097         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
101098         * lib/regex_internal.c: Ditto, using this...
101099         (__GNUC_PREREQ): ...new macro.
101100         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
101101         using...
101102         (__GNUC_PREREQ): ...this new macro.
101104         * lib/strstr.h: Include string.h. Define strstr as a macro here.
101106 2005-09-15  Derek Price  <derek@ximbiot.com>
101107             Paul Eggert  <eggert@cs.ucla.edu>
101109         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
101110         changes, consolidating in...
101111         * lib/regex_internal.h: ...this file.
101113 2005-09-13  Jim Meyering  <jim@meyering.net>
101115         * lib/canon-host.c: Filter through gnu indent and reword comments
101116         slightly.
101117         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
101119 2005-09-13  Derek Price  <derek@ximbiot.com>
101121         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
101122         failure.
101123         Reported by Jim Meyering  <jim@meyering.net>.
101125 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
101127         * lib/base64.c: Typo.
101128         (base64_encode): Put b64str in initialized data section.
101130 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
101132         Merge glibc and coreutils changes into gnulib, plus a few
101133         extra fixes.
101134         * lib/md5.c: Use #error rather than a string.
101135         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
101136         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
101137         (__attribute__): Define to empty for non recent-GCC.
101138         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
101139         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
101140         Renamed from their non-__ counterparts, with new macros replacing
101141         them if not _LIBC.  Add __THROW attribute.
101142         (rol): Remove.
101143         (struct md5_ctx): Align buffer if using GCC.
101144         * lib/sha1.h (struct sha1_ctx): Likewise.
101145         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
101146         The old name was backwards.
101147         (NOTSWAP): Remove; not used.
101148         (rol): New macro, moved here from md5.h.
101149         (sha1_process_block): Remove a FIXME that doesn't make sense.
101151 2005-09-12  Derek Price  <derek@ximbiot.com>
101153         Return usable errors from canon-host.
101154         * lib/canon-host.h: New file.
101155         * lib/canon-host.c (canon_host): Wrap...
101156         (canon_host_r): ...this new function, which now relies exclusively on
101157         getaddrinfo.
101158         (ch_strerror): New function.
101159         (last_cherror): New global.
101160         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
101161         interface.
101162         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
101163         void *.
101164         (freeaddrinfo): Free ai->ai_canonname when set.
101166 2005-09-12  Derek Price  <derek@ximbiot.com>
101168         Make canon-host require getaddrinfo.
101169         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
101170         AC_LIBSOURCE canon-host.h.  Call...
101171         (gl_PREREQ_CANON_HOST): ...this new function, which requires
101172         gl_GETADDRINFO.
101173         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
101175 2005-09-12  Derek Price  <derek@ximbiot.com>
101177         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
101178         LGPL.
101179         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
101181 2005-09-12  Derek Price  <derek@ximbiot.com>
101183         * lib/gai_strerror.c: Include config.h when available.  Include
101184         getaddrinfo.h before other headers to test interface.
101185         Reported by Larry Jones <lawrence.jones@ugs.com>.
101187 2005-09-12  Derek Price  <derek@ximbiot.com>
101188             Paul Eggert  <eggert@cs.ucla.edu>
101190         * modules/glob (Files): Add glob-libc.h.
101192 2005-09-12  Derek Price  <derek@ximbiot.com>
101193             Paul Eggert  <eggert@cs.ucla.edu>
101195         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
101196         glob_.h, glob-libc.h.
101197         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
101199 2005-09-12  Derek Price  <derek@ximbiot.com>
101200             Paul Eggert  <eggert@cs.ucla.edu>
101202         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
101203         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
101204         protecting things that should be done only in gnulib contexts.
101205         * lib/glob_.h: New file, containing only the glob things needed for
101206         gnulib.
101207         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
101208         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
101209         (glob, globfree, glob_pattern_p): Now defined simply in terms of
101210         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
101211         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
101212         and to respect the namespace rules better.
101214 2005-09-08  Simon Josefsson  <jas@extundo.com>
101216         * modules/socklen: New file.
101218 2005-09-08  Simon Josefsson  <jas@extundo.com>
101220         * m4/socklen.m4: New file.
101222 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
101224         * modules/utimens (Files): Add m4/utimbuf.m4, since
101225         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
101226         Reported by Sergey Poznyakoff.
101228 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
101230         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
101231         definitions, since that's the preferred style in glibc.
101232         Fix a minor spacing issue, and update copyright notice to match
101233         glibc's.
101235 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
101237         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
101239 2005-09-06  Simon Josefsson  <jas@extundo.com>
101241         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
101242         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
101244 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
101246         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
101247         warning.
101249 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
101251         * config/srclist.txt: Add glibc bug 1302.
101253 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
101255         Change bitset word type from unsigned int to unsigned long int,
101256         as this has better performance on typical 64-bit hosts.
101257         Port bitset code to hosts with unusual word sizes.
101258         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
101259         (build_collating_symbol):
101260         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
101261         argument is a bitset.  This is merely a style issue, but it makes
101262         it clearer that an entire array is expected.
101263         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
101264         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
101265         Port to the case where bitset_word is not the same as unsigned int.
101266         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
101267         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
101268         Likewise.
101269         * lib/regexec.c (check_dst_limits_calc_pos_1,
101270         check_subexp_matching_top):
101271         (build_trtable, group_nodes_into_DFAstates):
101272         Likewise.
101273         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
101274         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
101275         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
101276         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
101277         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
101278         * lib/regcomp.c (optimize_subexps, lower_subexp):
101279         Work even if bitset_word has holes in its bitwise representation.
101280         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
101281         * lib/regexec.c (check_dst_limits_calc_pos_1,
101282         check_subexp_matching_top):
101283         Likewise.
101284         * lib/regex_internal.c (re_string_reconstruct):
101285         Don't assume UCHAR_MAX == 255.
101286         * lib/regex_internal.h (bitset_set_all): Likewise.
101287         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
101288         All uses changed.
101289         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
101290         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
101291         All uses changed.
101292         (BITSET_WORD_MAX): New macro.
101293         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
101294         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
101295         (bitset_empty, bitset_copy):
101296         Prefer sizeof (bitset) to multiplying it out ourselves.
101297         (bitset_not_merge): Remove; unused.
101298         (bitset_contain): Return bool, not unsigned int with one bit on.
101299         All callers changed.
101300         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
101301         alignment than re_node_set; do this by defining a new internal
101302         type struct dests_alloc and using it to allocate memory.
101304 2005-09-05  Bruno Haible  <bruno@clisp.org>
101306         * gnulib-tool (func_import): Fix comparison in handling of symbolic
101307         links.
101309 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
101311         * modules/size_max (Makefile.am): Add size_max.h
101313 2005-09-04  Derek Price  <derek@ximbiot.com>
101315         * gnulib-tool (func_import): Fix reversed $symbolic logic.
101317 2005-09-03  Simon Josefsson  <jas@extundo.com>
101319         * gnulib-tool: Fix typo.
101321 2005-09-03  Simon Josefsson  <jas@extundo.com>
101323         * config/srclist.txt: Add glibc bug 1293.
101325 2005-09-03  Derek Price  <derek@ximbiot.com>
101327         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
101328         From Larry Jones <lawrence.jones@ugs.com>.
101330 2005-09-02  Simon Josefsson  <jas@extundo.com>
101332         * modules/socklen: New file.
101334 2005-09-02  Simon Josefsson  <jas@extundo.com>
101336         * modules/havelib: New module.
101338         * modules/gettext, modules/iconv, modules/lock, modules/readline:
101339         Use havelib.
101341 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
101343         Check for arithmetic overflow when calculating sizes, to prevent
101344         some buffer-overflow issues.  These patches are conservative, in the
101345         sense that when I couldn't determine whether an overflow was possible,
101346         I inserted a run-time check.
101347         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
101348         macros.
101349         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
101350         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
101351         (re_xnrealloc, re_x2nrealloc): New inline functions.
101352         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
101353         parse_bracket_exp):
101354         (build_equiv_class, build_charclass): Check for arithmetic overflow
101355         in size expression calculations.
101356         * lib/regex_internal.c (re_string_realloc_buffers):
101357         (build_wcs_upper_buffer, re_node_set_add_intersect):
101358         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
101359         (re_dfa_add_node, register_state): Likewise.
101360         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
101361         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
101362         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
101363         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
101365 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
101367         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
101368         m4/ulonglong.m4.  Problem reported by Martin Lambers.
101370 2005-09-02  Bruno Haible  <bruno@clisp.org>
101372         Support for lib vs. lib64 distinction on biarch platforms.
101373         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
101374         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
101375         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
101377 2005-09-02  Bruno Haible  <bruno@clisp.org>
101379         * gnulib-tool (import): In the other first-use case, provide defaults
101380         as well.
101382 2005-09-02  Bruno Haible  <bruno@clisp.org>
101384         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
101385         patches not yet found in the latest gettext release.
101387 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
101389         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
101390         to avoid a collision with bits/local_lim.h in glibc.
101391         All uses changed.  Problem reported by Dmitry V. Levin in
101392         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
101394         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
101395         bugs in int versus size_t comparisons.
101396         (re_string_context_at): Fix bug where the code assumed that
101397         Idx is signed.
101399         Use bool where appropriate.
101400         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
101401         All callers changed.
101402         (calc_eclosure_iter): Likewise, for ROOT arg.
101403         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
101404         (build_charclass_op): Likewise, for NON_MATCH arg.
101405         * lib/regex_internal.c (re_string_allocate, re_string_construct):
101406         (re_string_construct_common): Likewise, for ICASE arg.
101407         * lib/regexec.c (re_search_2_stub, re_search_stub):
101408         Likewise, for RET_LEN arg.
101409         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
101410         (set_regs): Likewise, for FL_BACKTRACK arg.
101411         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
101412         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
101413         (calc_eclosure_iter, parse_bracket_exp):
101414         Use bool for internal variables that are booleans.
101415         * lib/regexec.c (re_search_internal, check_matching,
101416         proceed_next_node):
101417         (set_regs, build_sifted_states, sift_states_bkref):
101418         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
101419         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
101420         (find_collation_sequence_value):
101421         Likewise.
101422         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
101423         (re_node_set_compare):
101424         Return bool, not int. All callers changed.
101425         * lib/regexec.c (check_halt_node_context, check_dst_limits):
101426         (build_trtable, check_node_accept): Likewise.
101427         * lib/regex_internal.h: Include stdbool.h.
101429         Fix bugs uncovered when converting to bool.
101430         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
101431         failure instead of charging ahead blindly.
101432         * lib/regex_internal.c (register_state): Likewise.
101433         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
101434         for freeing internal storage.
101435         (group_nodes_into_DFA_states): Use unsigned int, not int, for
101436         bitset pieces used as boolean, to avoid undefined behavior
101437         on hosts that do int overflow checking.
101439 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
101441         * config/srclist.txt: Add glibc bugs 1285-1287.
101443 2005-09-01  Jim Meyering  <jim@meyering.net>
101445         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
101446         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
101447         Require gl_STAT_MACROS, too.
101449 2005-09-01  Bruno Haible  <bruno@clisp.org>
101451         * gnulib-tool (import): In the first-use case, provide defaults.
101453 2005-09-01  Bruno Haible  <bruno@clisp.org>
101455         * gnulib-tool (func_import): Remove the .tmp files.
101457 2005-09-01  Bruno Haible  <bruno@clisp.org>
101459         * gnulib-tool (func_import): Fix handling of symbolic links.
101461 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
101463         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
101464         old glibc regex code mishandles strings longer than 2**31 bytes.
101465         This patch fixes this when the regex code is used in gnulib
101466         (i.e., outside glibc).
101468         This patch should not affect the use of the regex code inside
101469         glibc.  No doubt this problem also needs to be handled for glibc
101470         as well, but the result will be an incompatible change to the
101471         glibc ABI, and the old ABI will have to be supported too.  That
101472         can be the subject for another patch.
101474         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
101475         governing whether the rest of this patch is active.  By default,
101476         the macro is disabled and the patch has no effect.
101477         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
101478         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
101479         (struct re_pattern_buffer, re_search, re_search_2, re_match):
101480         (re_match_2, re_set_registers): Use the new types.
101481         * lib/regex_internal.h (Idx, re_hashval_t): New types.
101482         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
101483         New macros.
101484         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
101485         (re_string_context_at, bin_tree_t, re_dfastate_t):
101486         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
101487         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
101488         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
101489         (re_string_char_size_at, re_string_wchar_at):
101490         (re_string_elem_size_at):
101491         Use the new types and macros to port to 64-bit hosts.
101492         Use unsigned types for internal values, so that the code
101493         mostly works even for arrays larger than SSIZE_MAX.
101494         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
101495         (search_duplicated_node, calc_eclosure_iter, fetch_number):
101496         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
101497         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
101498         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
101499         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
101500         (calc_inveclosure, parse_dup_op, build_range_exp):
101501         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
101502         (fetch_number, create_token_tree, mark_opt_subexp):
101503         Likewise.
101504         * lib/regex_internal.c (re_string_construct_common,
101505         create_ci_newstate):
101506         (create_cd_newstate, re_string_allocate, re_string_construct):
101507         (re_string_realloc_buffers, build_wcs_upper_buffer):
101508         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
101509         (re_string_reconstruct, re_string_peek_byte_case):
101510         (re_string_fetch_byte_case, re_string_context_at):
101511         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
101512         (re_node_set_init_copy, re_node_set_add_intersect):
101513         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
101514         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
101515         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
101516         (re_acquire_state, re_acquire_state_context, register_state):
101517         Likewise.
101518         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
101519         search_cur_bkref_entry):
101520         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
101521         (re_search_internal, re_search_2_stub, re_search_stub)
101522         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
101523         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
101524         (update_cur_sifted_state, check_dst_limits):
101525         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
101526         (check_subexp_limits, sift_states_bkref, merge_state_array):
101527         (check_subexp_matching_top, get_subexp, get_subexp_sub):
101528         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
101529         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
101530         (expand_bkref_cache, check_node_accept_bytes):
101531         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
101532         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
101533         (acquire_init_state_context, check_halt_node_context):
101534         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
101535         (sift_states_backward, clean_state_log_if_needed):
101536         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
101537         (find_recover_state, transit_state_sb, transit_state_mb):
101538         (transit_state_bkref, build_trtable, match_ctx_clean):
101539         Likewise.
101540         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
101541         to work around an assumption that REG_MISSING is negative.
101543         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
101544         (seek_collating_symbol_entry) [defined _LIBC]:
101545         (lookup_collation_sequence_value) [defined _LIBC]:
101546         (build_range_exp, build_collating_symbol) [defined _LIBC]:
101547         Use prototypes rather than old-style function definitions.
101548         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
101549         (transit_state_sb) [0]:
101550         (find_collation_sequence_value) [defined _LIBC]: Likewise.
101552         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
101553         rm_eo.
101555         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
101556         (optimize_subexps, lower_subexp):
101557         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
101558         since the signed shift might overflow.  Use 1u<<31 instead.
101559         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
101560         Likewise.
101561         * lib/regexec.c (check_dst_limits_calc_pos_1,
101562         check_subexp_matching_top): Likewise.
101564         * lib/regcomp.c (optimize_subexps, lower_subexp):
101565         Use CHAR_BIT rather than 8, for clarity.
101566         * lib/regexec.c (check_dst_limits_calc_pos_1):
101567         (check_subexp_matching_top): Likewise.
101568         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
101569         have to worry about portability issues when shifting it left.
101570         Remove no-longer-needed test for table_size > 0.
101571         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
101572         in a word, as the resulting behavior is undefined.
101573         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
101574         in one case, a <= should have been an <, and in another case the
101575         whole test was missing.
101576         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
101577         the standard name CHAR_BIT.
101578         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
101579         this is not true on one's complement and signed-magnitude hosts.
101581         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
101582         next_last_offset.
101583         (struct re_dfa_t): Remove unused member states_alloc.
101584         * lib/regcomp.c (init_dfa): Don't initialize unused members.
101586 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
101588         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
101589         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
101590         and large-file glibc and in 32-bit large-file Solaris.
101592 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
101594         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
101595         lengths fit in regoff_t; this isn't true if regoff_t is the same
101596         width as size_t.
101597         * lib/regex.c (re_search_internal): 5th arg is LAST_START
101598         (= START + RANGE) instead of RANGE.  This avoids overflow
101599         problems when regoff_t is the same width as size_t.
101600         All callers changed.
101601         (re_search_2_stub): Check for overflow when adding the
101602         sizes of the two strings.
101603         (re_search_stub): Check for overflow when adding START
101604         to RANGE; if it occurs, substitute the extreme value.
101606 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
101608         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
101610 2005-08-31  Jim Meyering  <jim@meyering.net>
101612         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
101613         a pointer-to-const.
101614         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
101615         (register_state): Likewise.
101616         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
101617         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
101618         (group_nodes_into_DFAstates): Likewise.
101620 2005-08-31  Jim Meyering  <jim@meyering.net>
101622         * check-module: Add a FIXME comment.
101624 2005-08-31  Eric Blake  <ebb9@byu.net>
101626         * modules/unistd-safer (Files): Add unistd--.h.
101627         * modules/stdio-safer (Files): Add stdio--.h.
101629 2005-08-31  Derek Price  <derek@ximbiot.com>
101631         * lib/getdelim.c (getdelim): Return EOF on EOF.
101632         Reported by Larry Jones <lawrence.jones@ugs.com>.
101634 2005-08-31  Bruno Haible  <bruno@clisp.org>
101636         Avoid unnecessary diffs in the generated lib/Makefile.am.
101637         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
101638         the generated files.
101639         (func_import): Don't set cmd.
101641 2005-08-31  Bruno Haible  <bruno@clisp.org>
101643         * lib/strstr.c: Include <stddef.h>, for NULL.
101644         * lib/strcasestr.c: Likewise.
101645         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
101647 2005-08-31  Bruno Haible  <bruno@clisp.org>
101649         * gnulib-tool: New option --macro-prefix.
101650         (func_import): Use macro_prefix.
101651         (import): Handle option --macro-prefix.
101653 2005-08-31  Bruno Haible  <bruno@clisp.org>
101655         * gnulib-tool (import): Rename most ac_* variables to cached_*.
101656         Also use new variables cached_lgpl, cached_libtool.
101658 2005-08-31  Bruno Haible  <bruno@clisp.org>
101660         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
101661         always instantiating them.
101663 2005-08-31  Bruno Haible  <bruno@clisp.org>
101665         * gnulib-tool (func_import): Read the previous cached settings
101666         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
101667         earlier added by gnulib but are now dropped. Warn when a gnulib file
101668         overwrites a non-gnulib file.
101670 2005-08-31  Bruno Haible  <bruno@clisp.org>
101672         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
101673         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
101674         projects that don't keep autogenerated files in CVS. Put into
101675         actioncmd only the specified modules, not the transitive closure.
101677 2005-08-31  Bruno Haible  <bruno@clisp.org>
101679         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
101680         Create directories that shall be filled.
101681         (import): Don't look for gl_* macros in configure.ac. Recurse across
101682         all directories containing a gnulib-cache.m4 files, if meaningful.
101684 2005-08-31  Bruno Haible  <bruno@clisp.org>
101686         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
101687         (import): Set seen_libtool when we see gl_LIBTOOL.
101689 2005-08-31  Bruno Haible  <bruno@clisp.org>
101691         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
101692         declaration macro definitions from generated gnulib.m4.
101694 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
101696         * lib/iconvme.h: Add prototype for iconv_alloc.
101698 2005-08-29  Simon Josefsson  <jas@extundo.com>
101700         * lib/iconvme.c: Fix errno.
101702 2005-08-29  Bruno Haible  <bruno@clisp.org>
101704         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
101705         that it works when the directory contains spaces.
101707 2005-08-29  Bruno Haible  <bruno@clisp.org>
101709         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
101711 2005-08-29  Bruno Haible  <bruno@clisp.org>
101713         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
101714         Emit more advice.
101716 2005-08-29  Bruno Haible  <bruno@clisp.org>
101717         and Stepan Kasal  <kasal@ucw.cz>
101719         * check-module: If more parameters are given, check each of them
101720         separately; add more exceptions, as noted by Jim Meyering.
101721         (check_module): New procedure.
101722         (%exempt_header): Now contains all exceptions.
101724 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
101726         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
101728 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
101730         * lib/iconvme.c: Split iconv_string into iconv_alloc.
101732 2005-08-28  Bruno Haible  <bruno@clisp.org>
101734         * m4/gnulib-tool.m4: New file.
101736 2005-08-27  Jim Meyering  <jim@meyering.net>
101738         * modules/unistd-safer (Files): Add pipe-safer.c.
101739         * modules/fcntl-safer (Files): Add creat-safer.c.
101741 2005-08-27  Jim Meyering  <jim@meyering.net>
101743         * m4/stdlib-safer.m4: New file.  From coreutils.
101744         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
101745         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
101746         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
101747         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
101748         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
101750 2005-08-27  Jim Meyering  <jim@meyering.net>
101752         * lib/fopen-safer.c: Merge minor changes from coreutils.
101753         * lib/dup-safer.c: Likewise.
101754         * lib/fd-safer.c: Likewise.
101756         Merge from coreutils.
101757         * lib/stdio--.h: New file.
101758         * lib/stdlib--.h: New file.
101759         * lib/mkstemp-safer.c: New file.
101761         GNU tar needs these.
101762         * lib/pipe-safer.c: New file.
101763         * lib/creat-safer.c: New file.
101764         * lib/fcntl--.h (creat): Define to creat_safer.
101765         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
101766         * lib/unistd--.h (pipe): Define to pipe_safer.
101767         * lib/unistd-safer.h: Declare pipe_safer.
101769 2005-08-26  Simon Josefsson  <jas@extundo.com>
101771         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
101772         Haible <bruno@clisp.org>.
101774 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
101776         * lib/regex_internal.h: Remove all references to
101777         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
101778         or better.
101779         (bitset_not, bitset_merge, bitset_not_merge):
101780         (bitset_mask, re_string_allocate, re_string_construct):
101781         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
101782         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
101783         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
101784         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
101785         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
101786         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
101787         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
101788         (re_acquire_state_context):
101789         Remove unnecessary forward decls.
101790         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
101791         Put __attribute at function definition,
101792         now that the function decl has been removed.
101793         * lib/regex_internal.c (re_string_peek_byte_case):
101794         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
101795         Likewise.
101797 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
101799         * m4/regex.m4: Add AC_PREREQ(2.50).
101800         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
101802 2005-08-25  Simon Josefsson  <jas@extundo.com>
101804         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
101805         __fsetlocking.
101807 2005-08-25  Simon Josefsson  <jas@extundo.com>
101809         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
101810         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
101811         GLIBC specific code.
101813 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
101815         Make regex safe for g++.  This fixes one real bug (an "err"
101816         that should have been "*err").  g++ problem reported by
101817         Sam Steingold.
101818         * lib/regex_internal.h (re_calloc): New macro, consistent with
101819         re_malloc etc.  All callers of calloc changed to use re_calloc.
101820         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
101821         not int.  All callers changed.
101822         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
101823         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
101824         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
101825         (find_recover_state): Change "err" to "*err"; this fixes what
101826         appears to be a real bug.
101827         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
101828         versus int.
101830 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
101832         * modules/regex (Depends-on): Add malloc, since the code
101833         assumes that !malloc(0) means failure.
101835 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
101837         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
101839         alloca modernization/simplification for regex.
101840         * lib/regex.c: Remove portability cruft for alloca.  This no longer
101841         needs to be at the start of the file, and can be moved into
101842         regex_internal.h and simplified.
101843         * lib/regex_internal.h: Include <alloca.h>.
101844         (__libc_use_alloca) [!defined _LIBC]: New macro.
101845         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
101846         now works outside glibc.
101848 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
101850         * config/srclist.txt: Add glibc bugs 1241, 1245.
101852 2005-08-25  Jim Meyering  <jim@meyering.net>
101854         * lib/open-safer.c: Include <config.h>.
101855         Otherwise, we'd lose LARGEFILE support in any file using
101856         e.g. "fcntl--.h"
101858 2005-08-25  Bruno Haible  <bruno@clisp.org>
101860         * m4/minmax.m4: Require autoconf 2.52.
101861         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
101862         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
101863         alternatives of translit over the alphabet.
101864         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
101866 2005-08-24  Simon Josefsson  <jas@extundo.com>
101868         * tests/test-getpass.c: New file.
101870 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
101872         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
101873         for GNU regex features.
101875 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
101877         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
101878         * lib/regex.h (regerror): Likewise.
101880         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
101881         requires this.  (The code never needed it.)
101883         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
101884         All uses of recently-renamed identifiers changed to use the new,
101885         POSIX-compliant names.  The code will build and run just fine
101886         without these changes, but it's better to eat our own dog food
101887         and use the standard-conforming names.
101889         * lib/regex.h: Fix a multitude of POSIX name space violations.
101890         These changes have an effect only for programs that define
101891         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
101892         do not change anything for programs compiled in the normal way.
101893         Also, there is no effect on the ABI.
101895         (_REGEX_SOURCE): New macro.
101896         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
101897         defined and _GNU_SOURCE is not; this fixes a name space violation.
101899         Rename the following macros to obey POSIX requirements.
101900         The old names are still visible as macros if _REGEX_SOURCE is defined.
101901         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
101902         RE_BACKSLASH_ESCAPE_IN_LISTS.
101903         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
101904         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
101905         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
101906         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
101907         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
101908         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
101909         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
101910         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
101911         (REG_INTERVALS): renamed from RE_INTERVALS.
101912         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
101913         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
101914         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
101915         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
101916         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
101917         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
101918         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
101919         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
101920         RE_UNMATCHED_RIGHT_PAREN_ORD.
101921         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
101922         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
101923         (REG_DEBUG): renamed from RE_DEBUG.
101924         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
101925         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
101926         unusual, since we can't clash with the POSIX REG_ICASE.
101927         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
101928         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
101929         (REG_NO_SUB): renamed from RE_NO_SUB.
101930         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
101931         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
101932         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
101933         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
101934         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
101935         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
101936         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
101937         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
101938         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
101939         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
101940         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
101941         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
101942         RE_SYNTAX_POSIX_MINIMAL_BASIC.
101943         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
101944         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
101945         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
101946         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
101947         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
101948         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
101949         (REG_FIXED): Renamed from REGS_FIXED.
101950         (REG_NREGS): Renamed from RE_NREGS.
101952         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
101953         of other REG_* macros, since POSIX says the user is allowed to
101954         #undef these macros selectively.
101956         (reg_errcode_t): Update comment stating what other tables need
101957         to be consistent.
101959         Rename the following enum values to obey POSIX requirements.
101960         The old names are still visible as macros.
101961         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
101962         is not defined, since GNU is supposed to be a superset of POSIX as
101963         much as possible, and since we want reg_errcode_t to be a signed
101964         type for implementation consistency.
101965         (_REG_NOERROR): Renamed from REG_NOERROR.
101966         (_REG_NOMATCH): Renamed from REG_NOMATCH.
101967         (_REG_BADPAT): Renamed from REG_BADPAT.
101968         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
101969         (_REG_ECTYPE): Renamed from REG_ECTYPE.
101970         (_REG_EESCAPE): Renamed from REG_EESCAPE.
101971         (_REG_ESUBREG): Renamed from REG_ESUBREG.
101972         (_REG_EBRACK): Renamed from REG_EBRACK.
101973         (_REG_EPAREN): Renamed from REG_EPAREN.
101974         (_REG_EBRACE): Renamed from REG_EBRACE.
101975         (_REG_BADBR): Renamed from REG_BADBR.
101976         (_REG_ERANGE): Renamed from REG_ERANGE.
101977         (_REG_ESPACE): Renamed from REG_ESPACE.
101978         (_REG_BADRPT): Renamed from REG_BADRPT.
101979         (_REG_EEND): Renamed from REG_EEND.
101980         (_REG_ESIZE): Renamed from REG_ESIZE.
101981         (_REG_ERPAREN): Renamed from REG_ERPAREN.
101982         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
101983         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
101984         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
101985         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
101987         (_REG_RE_NAME, _REG_RM_NAME): New macros.
101988         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
101989         changed.  But support the old name if the new one is not defined
101990         and if _REGEX_SOURCE.
101992         Change the following member names in struct re_pattern_buffer.
101993         The old names are still supported if !_REGEX_SOURCE.
101994         The new names are always supported, regardless of _REGEX_SOURCE.
101995         (re_buffer): Renamed from buffer.
101996         (re_allocated): Renamed from allocated.
101997         (re_used): Renamed from used.
101998         (re_syntax): Renamed from syntax.
101999         (re_fastmap): Renamed from fastmap.
102000         (re_translate): Renamed from translate.
102001         (re_can_be_null): Renamed from can_be_null.
102002         (re_regs_allocated): Renamed from regs_allocated.
102003         (re_fastmap_accurate): Renamed from fastmap_accurate.
102004         (re_no_sub): Renamed from no_sub.
102005         (re_not_bol): Renamed from not_bol.
102006         (re_not_eol): Renamed from not_eol.
102007         (re_newline_anchor): Renamed from newline_anchor.
102009         Change the following member names in struct re_registers.
102010         The old names are still supported if !_REGEX_SOURCE.
102011         The new names are always supported, regardless of _REGEX_SOURCE.
102012         (rm_num_regs): Renamed from num_regs.
102013         (rm_start): Renamed from start.
102014         (rm_end): Renamed from end.
102016         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
102017         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
102018         Prepend __ to parameter names.
102020         Undo yesterday's changes.
102022 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
102024         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
102025         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
102026         lib/regex.c.
102028 2005-08-24  Jim Meyering  <jim@meyering.net>
102030         Sync from coreutils.
102031         * m4/fcntl-safer.m4: New file.
102033         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
102034         and object files for this module.
102036 2005-08-24  Jim Meyering  <jim@meyering.net>
102038         Sync from coreutils.
102039         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
102041 2005-08-24  Jim Meyering  <jim@meyering.net>
102043         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
102044         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
102046 2005-08-24  Jim Meyering  <jim@meyering.net>
102048         * modules/fcntl-safer: New module.
102049         * modules/fts (Depends-on): Add fcntl-safer.
102050         * MODULES.html.sh (File descriptor based Input/Output):
102051         Add fcntl-safer.
102053 2005-08-24  Bruno Haible  <bruno@clisp.org>
102055         Support for unit test modules.
102056         * modules/README: Mention tests modules.
102057         * modules/TEMPLATE-TESTS: New file.
102058         * gnulib-tool: New options --extract-tests-module, --with-tests and
102059         --tests-base (unused for the moment).
102060         (testsbase, inctests): New variables.
102061         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
102062         (func_verify_module): Exclude TEMPLATE-TESTS.
102063         (func_verify_nontests_module, func_verify_tests_module): New functions.
102064         (func_get_dependencies): Add implicit dependency for tests modules.
102065         (func_get_tests_module): New function.
102066         (func_modules_transitive_closure): When --with-tests was specified,
102067         include the unit tests as well, unless explicitly avoided.
102068         (func_emit_lib_Makefile_am): Ignore the tests modules here.
102069         (func_emit_tests_Makefile_am): New function.
102070         (func_create_testdir): When --with-tests was specified, emit a
102071         tests/ directory.
102072         * MODULES.html.sh (Future developments): Update.
102074 2005-08-24  Bruno Haible  <bruno@clisp.org>
102076         * modules/tls-tests: New file.
102077         * tests/test-tls.c: New file, from GNU gettext.
102079 2005-08-24  Bruno Haible  <bruno@clisp.org>
102081         * modules/lock-tests: New file.
102082         * tests/test-lock.c: New file, from GNU gettext.
102084 2005-08-24  Bruno Haible  <bruno@clisp.org>
102086         * lib/lock.h: Add multiple inclusion guard.
102087         * lib/tls.h: Add multiple inclusion guard.
102089 2005-08-24  Bruno Haible  <bruno@clisp.org>
102091         * gnulib-tool: Add support for the --aux-dir option to
102092         --create-testdir, --create-megatestdir, --test, --megatest.
102093         (func_create_testdir, func_create_megatestdir): Optionally emit a
102094         AC_CONFIG_AUX_DIR directive.
102095         (create-testdir, create-megatestdir, test, megatest): Provide a
102096         default value for $auxdir.
102098 2005-08-24  Bruno Haible  <bruno@clisp.org>
102100         * gnulib-tool (import): Use compound statement instead of subshell
102101         where possible.
102103 2005-08-24  Bruno Haible  <bruno@clisp.org>
102105         * gnulib-tool (import): Change --aux-dir default to "build-aux".
102107 2005-08-24  Bruno Haible  <bruno@clisp.org>
102109         * gnulib-tool (func_version): Update.
102111 2005-08-24  Bruno Haible  <bruno@clisp.org>
102113         * gnulib-tool (func_import, func_create_testdir,
102114         func_create_megatestdir): Quote all autoconf macro arguments.
102116 2005-08-24  Bruno Haible  <bruno@clisp.org>
102118         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
102119         option --force, because --force causes the aclocal.m4 of each
102120         subdirectory to be newer than the corresponding config.h.in.
102122 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
102124         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
102125         All contents moved to gl_REGEX.
102126         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
102127         assume that it does.
102129 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
102131         * lib/regex.h (REG_NOSYS)
102132         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
102133         Define, since POSIX requires it as of 2001.
102134         (_REG_ENOSYS)
102135         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
102136         New private symbol, used to keep the enum signed in all cases.
102137         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
102138         Youngman in
102139         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
102141         * lib/regex_internal.c (re_string_skip_chars, register_state):
102142         (calc_state_hash):
102143         Remove forward decls; no longer needed now that we use prototypes.
102144         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
102145         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
102146         (clean_state_log_if_needed): Likewise.
102148 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
102150         * config/srclist.txt: Add glibc bugs 1231-1233.
102152 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
102154         Fix problems reported by Sam Steingold in
102155         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
102156         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
102157         assumed that reg_errcode_t is a signed type, which is not
102158         necessarily true if _XOPEN_SOURCE is not defined.
102159         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
102160         since some compilers warn about it otherwise.
102162 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
102164         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
102165         (init_word_char, create_initial_state, duplicate_node_closure):
102166         (fetch_token, peek_token_bracket, build_range_exp):
102167         (build_collating_symbol): Remove forward decls; no longer needed
102168         now that we use prototypes.
102170         * lib/regcomp.c:
102171         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
102172         (re_compile_fastmap_iter, regcomp, regerror, regfree):
102173         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
102174         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
102175         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
102176         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
102177         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
102178         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
102179         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
102180         (build_range_exp, build_collating_symbol, parse_bracket_exp):
102181         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
102182         (build_charclass, build_charclass_op, fetch_number, create_tree):
102183         (create_token_tree, mark_opt_subexp, duplicate_tree):
102184         Use prototypes rather than old-style definitions.
102186         * lib/regex_internal.c:
102187         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
102188         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
102189         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
102190         (re_string_reconstruct, re_string_peek_byte_case):
102191         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
102192         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
102193         (re_node_set_init_copy, re_node_set_add_intersect):
102194         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
102195         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
102196         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
102197         (re_acquire_state, re_acquire_state_context, register_state):
102198         (create_ci_newstate, create_cd_newstate, free_state):
102199         Likewise.
102200         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
102201         re_search_2):
102202         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
102203         (re_search_internal, prune_impossible_nodes):
102204         (acquire_init_state_context, check_matching, static):
102205         (check_halt_node_context, check_halt_state_context, proceed_next_node):
102206         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
102207         (update_regs, sift_states_backward, build_sifted_states):
102208         (clean_state_log_if_needed, merge_state_array):
102209         (update_cur_sifted_state, add_epsilon_src_nodes):
102210         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
102211         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
102212         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
102213         (find_recover_state, check_subexp_matching_top, transit_state_mb):
102214         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
102215         (check_arrival, check_arrival_add_next_nodes):
102216         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
102217         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
102218         (check_node_accept_bytes, check_node_accept, extend_buffers):
102219         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
102220         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
102221         (sift_ctx_init):
102222         Likewise.
102224         * lib/regex_internal.h:
102225         (re_string_allocate, re_string_construct, re_string_reconstruct):
102226         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
102227         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
102228         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
102229         (re_string_context_at, re_string_peek_byte_case):
102230         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
102231         is defined, since we now use prototypes always.
102233         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
102234         C89 or better.  All uses removed.
102236 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
102238         * config/srclist.txt: Add glibc bugs 1220-1227.
102240 2005-08-20  Jim Meyering  <jim@meyering.net>
102242         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
102243         of unused local, dfa.
102245 2005-08-20  Bruno Haible  <bruno@clisp.org>
102247         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
102249 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
102251         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
102252         (re_node_set_insert_last, re_dfa_add_node):
102253         Rename local variables to avoid GCC shadowing warnings.
102255 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
102257         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
102258         [defined lint]: Suppress bogus uninitialized-variable warnings.
102260         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
102261         and let the caller return REG_ESPACE if out of space.  This
102262         removes an uninitialied-variable warning with GCC 4.0.1, and also
102263         avoids taking the address of a local variable.  All callers
102264         changed.
102266 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
102268         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
102269         $LIBCSRC/posix/regexec.c.
102270         Add glibc bug 1217 for regcomp.c.
102272 2005-08-19  Jim Meyering  <jim@meyering.net>
102274         * lib/regexec.c (proceed_next_node): Redo local variables to
102275         avoid GCC shadowing warnings.
102277 2005-08-18  Bruno Haible  <bruno@clisp.org>
102279         * lib/strstr.c (strstr): Fix return value in multibyte case.
102280         * lib/strcasestr.c (strcasestr): Likewise.
102282 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
102284         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
102286 2005-08-17  Jim Meyering  <jim@meyering.net>
102288         Make the %s format (seconds since the epoch) work for a negative
102289         number and when used with a zero-padded field width, e.g. %015s.
102291         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
102292         label so that it precedes the code to set `digits'.  Otherwise,
102293         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
102294         print `00-22'.  Now, it prints `-0022', as it should.
102296 2005-08-17  Bruno Haible  <bruno@clisp.org>
102298         * modules/strstr (Files): Add m4/mbrtowc.m4.
102299         (Depends-on): Add mbuiter.
102301 2005-08-17  Bruno Haible  <bruno@clisp.org>
102303         * modules/strcasestr: New file.
102304         * MODULES.html.sh (String handling, based on ANSI C 89): Add
102305         strcasestr.
102307 2005-08-17  Bruno Haible  <bruno@clisp.org>
102309         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
102311 2005-08-17  Bruno Haible  <bruno@clisp.org>
102313         * modules/mbuiter: New file.
102314         * MODULES.html.sh (Extended multibyte and wide character utilities):
102315         Add mbuiter.
102317 2005-08-17  Bruno Haible  <bruno@clisp.org>
102319         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
102320         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
102322 2005-08-17  Bruno Haible  <bruno@clisp.org>
102324         * m4/strcasestr.m4: New file.
102326 2005-08-17  Bruno Haible  <bruno@clisp.org>
102328         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
102329         * lib/strstr.c: Completely rewritten, with multibyte locale support.
102331 2005-08-17  Bruno Haible  <bruno@clisp.org>
102333         * lib/strcasestr.h: New file.
102334         * lib/strcasestr.c: New file.
102336 2005-08-17  Bruno Haible  <bruno@clisp.org>
102338         * lib/strcasecmp.c: Use mbuiter.h.
102340 2005-08-17  Bruno Haible  <bruno@clisp.org>
102342         * lib/mbuiter.h: New file.
102344 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
102346         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
102347         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
102348         and gl_GETOPT are both invoked via different paths (as happens
102349         with GNU tar CVS because it uses both argp and getopt), the former
102350         wins.
102352 2005-08-16  Bruno Haible  <bruno@clisp.org>
102354         * modules/tls: New file.
102355         * MODULES.html.sh (Multithreading): Add tls.
102357 2005-08-16  Bruno Haible  <bruno@clisp.org>
102359         * modules/strnlen1: New file.
102360         * MODULES.html.sh (String handling): Add strnlen1.
102362 2005-08-16  Bruno Haible  <bruno@clisp.org>
102364         * modules/strcase (Files): Add m4/mbrtowc.m4.
102365         (Depends-on): Add strnlen1, mbchar.
102367 2005-08-16  Bruno Haible  <bruno@clisp.org>
102369         * modules/mbiter: New file.
102370         * MODULES.html.sh (Extended multibyte and wide character utilities):
102371         Add mbiter.
102373 2005-08-16  Bruno Haible  <bruno@clisp.org>
102375         * modules/mbfile: New file.
102376         * MODULES.html.sh (Extended multibyte and wide character utilities):
102377         Add mbfile.
102379 2005-08-16  Bruno Haible  <bruno@clisp.org>
102381         * modules/mbchar: New file.
102382         * MODULES.html.sh (Extended multibyte and wide character utilities):
102383         New section.
102385 2005-08-16  Bruno Haible  <bruno@clisp.org>
102387         * m4/tls.m4: New file, from GNU gettext.
102389 2005-08-16  Bruno Haible  <bruno@clisp.org>
102391         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
102392         always.
102393         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
102395 2005-08-16  Bruno Haible  <bruno@clisp.org>
102397         * m4/mbiter.m4: New file.
102399 2005-08-16  Bruno Haible  <bruno@clisp.org>
102401         * m4/mbfile.m4: New file.
102403 2005-08-16  Bruno Haible  <bruno@clisp.org>
102405         * m4/mbchar.m4: New file.
102407 2005-08-16  Bruno Haible  <bruno@clisp.org>
102409         * lib/tls.h: New file, from GNU gettext.
102410         * lib/tls.c: New file, from GNU gettext.
102412 2005-08-16  Bruno Haible  <bruno@clisp.org>
102414         * lib/strnlen1.h: New file.
102415         * lib/strnlen1.c: New file.
102417 2005-08-16  Bruno Haible  <bruno@clisp.org>
102419         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
102420         (mbi_init): Update.
102421         (mbi_avail, mbi_advance): Let the iteration end before the terminating
102422         NUL byte, not after it.
102424 2005-08-16  Bruno Haible  <bruno@clisp.org>
102426         * lib/strcase.h (strcasecmp): Add note in comments.
102427         * lib/strncasecmp.c: Use code from strcasecmp.c.
102428         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
102429         (strcasecmp): Work correctly in multibyte locales.
102431 2005-08-16  Bruno Haible  <bruno@clisp.org>
102433         * lib/mbiter.h: New file.
102435 2005-08-16  Bruno Haible  <bruno@clisp.org>
102437         * lib/mbfile.h: New file.
102439 2005-08-16  Bruno Haible  <bruno@clisp.org>
102441         * lib/mbchar.h: New file.
102442         * lib/mbchar.c: New file.
102444 2005-08-16  Bruno Haible  <bruno@clisp.org>
102446         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
102447         the valid ones. Makes the comparison operations transitive:
102448         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
102449         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
102451 2005-08-15  Simon Josefsson  <jas@extundo.com>
102453         * modules/ssize_t (License): Change to 'unlimited'.
102455         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
102457 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
102459         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
102460         Add comments for each pending glibc patch.
102462 2005-08-15  Bruno Haible  <bruno@clisp.org>
102464         * lib/regex.h (__restrict_arr): Don't define to __restrict if
102465         __cplusplus is defined.
102467 2005-08-14  Jim Meyering  <jim@meyering.net>
102469         Sync from coreutils.
102471         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
102472         Use the hash-table-based cycle-detection code not just when
102473         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
102474         Reported by James Youngman in
102475         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
102476         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
102477         FTS_TIGHT_CYCLE_CHECK.
102478         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
102479         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
102480         once again.
102481         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
102482         * lib/fts.c (fd_safer): Remove decl.
102483         Include fcntl--.h rather than unistd-safer.h
102484         (fts_safe_changedir): Don't call fd_safer; no longer needed
102485         now that we include fcntl--.h.
102487 2005-08-12  Simon Josefsson  <jas@extundo.com>
102489         * modules/getndelim2: Use ssize_t module.
102490         * modules/getnline: Likewise.
102491         * modules/safe-read: Likewise.
102492         * modules/xreadlink: Likewise.
102494         * modules/ssize_t: New file.
102496 2005-08-12  Simon Josefsson  <jas@extundo.com>
102498         * m4/readline.m4: Look for termcap, curses or ncurses if required.
102500 2005-08-12  Simon Josefsson  <jas@extundo.com>
102502         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
102503         ssize_t.
102505 2005-08-12  Simon Josefsson  <jas@extundo.com>
102507         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
102508         readline, getdelim and check_version.
102509         (Support for systems lacking ISO C 99: Sizes of integer types):
102510         Add size_max.
102512 2005-08-12  Bruno Haible  <bruno@clisp.org>
102514         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
102516 2005-08-11  Simon Josefsson  <jas@extundo.com>
102518         * modules/readline: New file.
102520         * modules/strnlen (Files): Add strnlen.h.
102522 2005-08-11  Simon Josefsson  <jas@extundo.com>
102524         * m4/readline.m4: New file.
102526 2005-08-11  Simon Josefsson  <jas@extundo.com>
102528         * lib/readline.h, readline.c: New file.
102530 2005-08-11  Simon Josefsson  <jas@extundo.com>
102532         * doc/gnulib.texi (Initial import, Finishing touches): Mention
102533         gl_AVOID.
102535 2005-08-11  Bruno Haible  <bruno@clisp.org>
102537         * lib/strnlen.h (strnlen): Change parameter name to match comment.
102539 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
102541         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
102543 2005-08-10  Simon Josefsson  <jas@extundo.com>
102545         * tests/test-iconvme.c: New file.
102547 2005-08-10  Simon Josefsson  <jas@extundo.com>
102549         * m4/strnlen.m4: New file.
102551         * m4/strndup.m4: Don't check for strnlen declaration, done in
102552         strnlen.m4.
102554 2005-08-10  Simon Josefsson  <jas@extundo.com>
102556         * lib/strndup.c: Use strnlen.h.
102558         * lib/strnlen.h: New file.
102560 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
102562         * README: Typos.
102564 2005-08-02  Simon Josefsson  <jas@extundo.com>
102566         * modules/readline: New file.
102568 2005-08-02  Simon Josefsson  <jas@extundo.com>
102570         * modules/getdelim: New file.
102572         * modules/getline: Rewrite, don't use getndelim2.
102574 2005-08-02  Simon Josefsson  <jas@extundo.com>
102576         * m4/getline.m4: Separate out getdelim stuff into separate module.
102578         * m4/getdelim.m4: New file.
102580 2005-08-02  Simon Josefsson  <jas@extundo.com>
102582         * lib/getline.h, getline.c: Rewrite.
102584         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
102586 2005-07-31  Bruno Haible  <bruno@clisp.org>
102588         * lib/lock.h (gl_lock_initializer): New macro.
102589         (gl_lock_define_initialized): Use it.
102590         (gl_rwlock_initializer): New macro.
102591         (gl_rwlock_define_initialized): Use it.
102592         (gl_recursive_lock_initializer): New macro.
102593         (gl_recursive_lock_define_initialized): Use it.
102595 2005-07-30  Karl Berry  <karl@gnu.org>
102597         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
102598         Report from Ben Pfaff, regarding getopt.
102600 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
102602         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
102603         normal way.
102604         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
102605         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
102606         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
102607         (gl_GETOPT): Use the new macros.  Most of the implementation
102608         is moved to the new macros.  This is for programs like Emacs
102609         that don't want all the functionality of gl_GETOPT.
102611 2005-07-26  Bruno Haible  <bruno@clisp.org>
102613         * m4/lock.m4: Update from GNU gettext.
102615 2005-07-26  Bruno Haible  <bruno@clisp.org>
102617         * lib/lock.h: Update from GNU gettext.
102618         * lib/lock.c: Update from GNU gettext.
102620 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
102622         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
102623         obsolescent AC_TRY_RUN.  Include the default includes files, for
102624         'exit'.
102626 2005-07-24  Bruno Haible  <bruno@clisp.org>
102628         * modules/visibility: New file.
102629         * MODULES.html.sh (Misc): Add visibility.
102631 2005-07-24  Bruno Haible  <bruno@clisp.org>
102633         * m4/visibility.m4: New file.
102635 2005-07-24  Bruno Haible  <bruno@clisp.org>
102637         * doc/visibility.texi: New file.
102639 2005-07-22  Bruno Haible  <bruno@clisp.org>
102641         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
102642         $(ALLOCA_H), redundant through BUILT_SOURCES.
102643         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
102644         redundant through BUILT_SOURCES.
102645         * modules/byteswap (Makefile.am): Remove explicit dependency on
102646         $(BYTESWAP_H), redundant through BUILT_SOURCES.
102647         * modules/fnmatch (Makefile.am): Remove explicit dependency on
102648         $(FNMATCH_H), redundant through BUILT_SOURCES.
102649         * modules/getopt (Makefile.am): Remove explicit dependency on
102650         $(GETOPT_H), redundant through BUILT_SOURCES.
102651         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
102652         redundant through BUILT_SOURCES.
102653         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
102654         redundant through BUILT_SOURCES.
102655         * modules/stdbool (Makefile.am): Remove explicit dependency on
102656         $(STDBOOL_H), redundant through BUILT_SOURCES.
102657         * modules/stdint (Makefile.am): Remove explicit dependency on
102658         $(STDINT_H), redundant through BUILT_SOURCES.
102659         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
102660         Remove explicit dependency on $(SYSEXITS_H).
102661         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
102663 2005-07-18  Simon Josefsson  <jas@extundo.com>
102665         * lib/check-version.c (check_version): Accept identical versions too.
102667 2005-07-18  Bruno Haible  <bruno@clisp.org>
102669         * modules/lock: New file.
102670         * MODULES.html.sh (Multithreading): New section.
102672 2005-07-18  Bruno Haible  <bruno@clisp.org>
102674         * m4/lock.m4: New file, from GNU gettext.
102676 2005-07-18  Bruno Haible  <bruno@clisp.org>
102678         * lib/lock.h: New file, from GNU gettext.
102679         * lib/lock.c: New file, from GNU gettext.
102681 2005-07-18  Bruno Haible  <bruno@clisp.org>
102683         * lib/lock.h (gl_once_t): New type.
102684         (gl_once_define, gl_once): New macros.
102685         * lib/lock.c (fresh_once): New variable.
102686         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
102687         functions.
102689 2005-07-16  Simon Josefsson  <jas@extundo.com>
102691         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
102692         workaround, suggested by Bruno.
102694 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
102696         * modules/xalloc (Depends-on): Add xalloc-die.
102697         * modules/xvasprintf (Depends-on): Add xalloc-die.
102699 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
102701         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
102702         with a minor change.
102704 2005-07-15  Bruno Haible  <bruno@clisp.org>
102706         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
102707         When using lib/poll.c, define poll as rpl_poll.
102709 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
102711         * modules/argp (Depends-on): Remove unlocked-io.
102713 2005-07-14  Derek Price  <derek@ximbiot.com>
102715         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
102716         for glob symlink bug.
102718 2005-07-14  Bruno Haible  <bruno@clisp.org>
102720         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
102721         Instead, test for *_unlocked function declarations directly.
102723 2005-07-11  Simon Josefsson  <jas@extundo.com>
102725         * modules/size_max: New file.
102727         * modules/xsize: Depend on size_max module for size_max.m4.
102729 2005-07-11  Simon Josefsson  <jas@extundo.com>
102731         * lib/size_max.h: New file.
102733 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
102735         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
102736         copyright symbol and the year.
102737         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
102738         (version_etc_va): Use parameterized copyright notice.
102739         Reword to conform to the current GNU coding standards.
102741 2005-07-11  Karl Berry  <karl@gnu.org>
102743         * doc/gnulib.texi (Quoting): new node.
102744         (Initial import): more info, from Patrice.
102746 2005-07-11  Bruno Haible  <bruno@clisp.org>
102748         * gnulib-tool (func_usage): Document option --avoid.
102749         (Command line options): Handle --avoid.
102750         (func_acceptable): New function.
102751         (func_modules_transitive_closure): Use it.
102753 2005-07-11  Bruno Haible  <bruno@clisp.org>
102755         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
102756         Reported by Jim Meyering.
102758 2005-07-10  Bruno Haible  <bruno@clisp.org>
102760         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
102761         Needed when size_t is smaller than 'unsigned int'.
102762         Reported by Paul Eggert.
102764 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
102766         * modules/argp (Depends-on): Add unlocked-io
102768 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
102770         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
102771         block of defines.
102773 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
102775         * config/srclist.txt: Comment out regcomp.c, since we have a porting
102776         fix now.
102778 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
102779         and Paul Eggert  <eggert@cs.ucla.edu>
102781         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
102782         in wint_t, not wchar_t.  Remove now-unnecessary cast.
102784 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
102786         * modules/regex (Files): Add lib/regex_internal.c,
102787         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
102788         (Depends-on): Add extensions.
102789         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
102791 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
102793         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
102794         pathconf.
102795         * m4/same.m4 (gl_SAME): Likewise.
102796         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
102798         * m4/regex.m4: Adjust to new libc regex implementation.
102799         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
102800         all the .c and .h parts of (the new) regex.
102801         Quote the m4 stuff better.
102802         Check for RE_ICASE bug of old gnulib.
102803         Check for REG_STARTEND of recent libc.
102804         Rename local variables from jm_* to gl_*.
102805         Quote operand of "test -f".
102806         Say "recent enough" version of libc, not "version 2".
102807         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
102808         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
102809         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
102810         Remove check for btowc, isascii.
102811         Require AM_LANGINFO_CODESET.
102813 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
102815         * lib/regex.c, regex.h: Sync from libc.
102816         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
102817         * lib/regexec.c:
102818         New files, synced from libc, except that regex_internal.h
102819         currently has a small porting fix.
102821 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
102823         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
102824         regex_internal.c, regexec.c.
102825         Add regex_internal.h too, but as a comment, since the libc version
102826         is currently broken in gnulib mode.
102828 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
102830         Support programs like Emacs that use gnulib but not gettext.
102831         * MODULES.html.sh (Internationalization functions): Add gettext-h.
102832         * modules/gettext-h: New file.
102833         * modules/gettext (Files): Remove lib/gettext.h.
102834         (Depends-on): Add gettext-h.
102835         (Makefile.am): Remove lib_SOURCES.
102836         * modules/argmatch, modules/c-stack, modules/closeout:
102837         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
102838         * modules/execute, modules/file-type, modules/getaddrinfo:
102839         * modules/getopt, modules/human, modules/javacomp:
102840         * modules/javaexec, modules/mkdir-p, modules/obstack:
102841         * modules/openat, modules/pagealign_alloc, modules/pipe:
102842         * modules/quotearg, modules/regex, modules/rpmatch:
102843         * modules/unicodeio, modules/userspec, modules/version-etc:
102844         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
102845         * modules/xsetenv:
102846         Depend on gettext-h, not gettext.
102848 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
102850         * gnulib-tool (func_import): Add support for 'public domain' license.
102851         * modules/alloca, modules/atexit, modules/memmove:
102852         Now public domain, not GPL.
102853         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
102854         * modules/realloc, modules/strerror, modules/strtod:
102855         Now LGPL, not GPL.
102857 2005-07-05  Bruno Haible  <bruno@clisp.org>
102859         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
102860         autoconf CVS. Needed for mingw.
102862 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
102864         Remove the dependency of the strftime module on the tzset module.
102865         * modules/strftime (Depends-on): Remove dependency on tzset.
102867 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
102869         Remove the dependency of the strftime module on the tzset module.
102870         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
102871         gl_FUNC_TZSET_CLOBBER.
102873 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
102875         Remove the dependency of the strftime module on the tzset module.
102876         * lib/strftime.c (my_strftime)
102877         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
102878         Copy the input structure, to work around some of the bug with
102879         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
102880         Solaris releases, you should also use the tzset module, but we won't
102881         require it as a dependency any more since we don't want LGPLed code
102882         to depend on GPLed code.
102884 2005-07-02  Jim Meyering  <jim@meyering.net>
102886         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
102887         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
102888         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
102889         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
102891 2005-07-02  Jim Meyering  <jim@meyering.net>
102893         * lib/backupfile.c (backup_args): Change a `0' to NULL.
102895 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
102897         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
102898         declares only 'struct timespec;' (!).
102900 2005-07-01  Jim Meyering  <jim@meyering.net>
102902         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
102903         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
102904         * lib/save-cwd.c, tempname.c:
102905         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
102906         and don't include <sys/file.h>).
102908 2005-06-29  Jim Meyering  <jim@meyering.net>
102910         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
102911         type name.  Use the variable name instead.
102912         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
102913         Likewise.
102915 2005-06-28  Simon Josefsson  <jas@extundo.com>
102917         * modules/check-version (Files): Add check-version.m4.
102919 2005-06-28  Simon Josefsson  <jas@extundo.com>
102921         * m4/check-version.m4: New file, suggested by Jim Meyering
102922         <jim@meyering.net>.
102924 2005-06-28  Simon Josefsson  <jas@extundo.com>
102926         * lib/check-version.h, lib/check-version.c: New files.
102928 2005-06-28  Simon Josefsson  <jas@extundo.com>
102930         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
102931         collision with global variable.  Better indentation.  Don't
102932         increment buffer pointer beyond buffer end.  Based on comments
102933         from Paul Eggert <eggert@cs.ucla.edu>.
102935         * lib/base64.h: Indent.
102937 2005-06-28  Simon Josefsson  <jas@extundo.com>
102939         * doc/gnulib.texi (Library version handling): New section.
102941 2005-06-28  Jim Meyering  <jim@meyering.net>
102943         * check-module (find_included_lib_files): Hard-code another
102944         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
102945         but modules/fts-lgpl (correctly) does not list those files.
102947         * modules/canonicalize (Files): Add lib/pathmax.h.
102949 2005-06-25  Simon Josefsson  <jas@extundo.com>
102951         * modules/check-version: New file.
102953 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
102955         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
102956         initializer of struct addrinfo, as an indication that we don't
102957         care how many members the structure has.
102959 2005-06-24  Derek Price  <derek@ximbiot.com>
102960         and Bruno Haible  <bruno@clisp.org>
102962         Remove stat module & update lstat.
102963         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
102964         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
102965         * m4/stat.m4: Remove this file.
102967 2005-06-24  Derek Price  <derek@ximbiot.com>
102968         and Bruno Haible  <bruno@clisp.org>
102970         Remove stat module & update lstat.
102971         * lib/stat.c: Remove this file...
102972         (slash_aware_lstat): ...moving this content and its support...
102973         * lib/lstat.c (rpl_lstat): ...into here.
102974         * lib/lstat.h: New file.
102976 2005-06-24  Derek Price  <derek@ximbiot.com>
102977         and Bruno Haible  <bruno@clisp.org>
102979         Remove stat module & update lstat.
102980         * config/srclist.txt (libc sources): Remove stat.
102982 2005-06-24  Derek Price  <derek@ximbiot.com>
102983         and Bruno Haible  <bruno@clisp.org>
102985         Remove stat module & update lstat.
102986         * MODULES.html.sh (stat): Remove.
102987         * MODULES.html: Regenerated.
102988         * modules/lstat (Description): Correct function name.
102989         (Files): Add "lstat.h".
102990         (Depends-on): Remove stat, add xalloc, stat-macros.
102991         * modules/stat: Remove this file.
102992         (Include): Add "lstat.h", remove <sys/stat.h>.
102994 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
102996         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
102997         (ranged_convert): Don't save conversion in a temporary struct.
102998         This causes a warning with GCC 4.0.0, and anyway in the typical
102999         case it's not worth the extra 100 bytes or so of code.
103000         (ranged_convert, __mktime_internal): When calling a function via a
103001         pointer P, use P () rather than (*P) (), as we now assume C89 or
103002         better.
103004 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
103006         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
103007         "who -r" failed to give output.  Problem reported by Tim Waugh.
103009         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
103010         (xcalloc): Use it to avoid needless tests.
103011         Problem reported by Jim Meyering.
103013 2005-06-20  Derek Price  <derek@ximbiot.com>
103015         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
103016         unnecessary for Autoconfs > 2.59c.
103018 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
103020         * lib/argp.h (__option_is_short): Check upper limit of
103021         __key. Isprint() requires its argument to have the value
103022         of an unsigned char or EOF.
103024 2005-06-16  Jim Meyering  <jim@meyering.net>
103026         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
103027         when either N or S is zero.
103029 2005-06-16  Derek Price  <derek@ximbiot.com>
103031         * m4/bison.m4: Declare YACC & YFLAGS precious.
103033 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
103035         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
103036         multibyte string or pattern, fall back on unibyte matching.
103037         Problem reported by James Youngman.
103039 2005-06-08  Bruno Haible  <bruno@clisp.org>
103041         * modules/csharpcomp: New file.
103042         * MODULES.html.sh (C#): Add csharpcomp.
103044 2005-06-08  Bruno Haible  <bruno@clisp.org>
103046         * m4/csharpcomp.m4: New file, from GNU gettext.
103048 2005-06-08  Bruno Haible  <bruno@clisp.org>
103050         * lib/csharpcomp.h: New file, from GNU gettext.
103051         * lib/csharpcomp.c: New file, from GNU gettext.
103052         * lib/csharpcomp.sh.in: New file, from GNU gettext.
103054 2005-06-08  Bruno Haible  <bruno@clisp.org>
103056         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
103057         warning on mingw.
103059 2005-06-07  Derek Price  <derek@ximbiot.com>
103061         Sync from CVS.
103062         * lib/glob_.h: Indent nested #ifdef.
103064 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
103066         Sync from coreutils.
103067         Use "file name" when talking about file names, instead of "filename"
103068         or "path", as per the GNU coding standards.
103069         * lib/mkdir-p.c: Renamed from makepath.c.
103070         (make_dir_parents): Renamed from make_path.  All callers changed.
103071         * lib/mkdir-p.h: Likewise.  All includers changed.
103072         * lib/filenamecat.c: Renamed from path-concat.c.
103073         (file_name_concat): Renamed from path_concat.  All callers changed.
103074         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
103075         * lib/filenamecat.h: Likewise.  All includers changed.
103076         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
103077         in comments or local variable names.
103078         * lib/basename.c: Likewise.
103079         * lib/canonicalize.c, canonicalize.h: Likewise.
103080         * lib/dirname.c, dirname.h: Likewise.
103081         * lib/euidaccess.c: Likewise.
103082         * lib/exclude.c: Likewise
103083         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
103084         * lib/fsusage.c, fsuage.h: Likewise.
103085         * lib/fts.c, fts_.h: Likewise.
103086         * lib/getcwd.c: Likewise.
103087         * lib/getloadavg.c: Likewise.
103088         * lib/mkstemp.c: Likewise.
103089         * lib/mountlist.c, mountlist.h: Likewise.
103090         * lib/openat.c, openat.h: Likewise.
103091         * lib/readlink-stub.c: Likewise.
103092         * lib/readutmp.c, readutmp.h: Likewise.
103093         * lib/rename.c: Likewise.
103094         * lib/rmdir.c: Likewise.
103095         * lib/same.c: Likewise.
103096         * lib/savedir.c: Likewise.
103097         * lib/stripslash.c: Likewise.
103098         * lib/tempname.c: Likewise.
103099         * lib/xreadlink.c: Likewise.
103100         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
103101         All uses changed.
103102         * lib/exclude.h: Likewise.
103104         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
103105         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
103106         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
103107         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
103108         * lib/pathmax.h: Include <limits.h> unconditionally, since other
103109         files have been getting away with it for years (MORE/BSD 4.3
103110         is extinct now).
103111         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
103112         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
103114         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
103115         Define to 256, not 255, as per modern POSIX.
103117 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
103119         Sync from coreutils.
103120         Use "file name" when talking about file names, instead of "filename"
103121         or "path", as per the GNU coding standards.
103122         * MODULES.html.sh: mkdir-p renamed from makepath.
103123         filenamecat renamed from path-concat.
103124         * modules/filenamecat: Renamed from modules/path-concat.
103125         (Files): filenamecat.h and filenamecat.c renamed from
103126         path-concat.h and path-concat.c.
103127         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
103128         (Include): filenamecat.h, not path-concat.h.
103129         * modules/mkdir-p: Renamed from modules/makepath.
103130         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
103131         makepath.c.
103132         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
103133         (Include): mkdir-p.h, not makepath.h.
103135 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
103137         Sync from coreutils.
103138         * m4/mkdir-p.m4: Renamed from makepath.m4.
103139         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
103140         Rename files from makepath.c to mkdir-p.c, and from
103141         makepath.h to mkdir-p.h.
103142         * m4/filenamecat.m4: Renamed from path-concat.m4.
103143         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
103144         Rename files from path-concat.c to filenamecat.c,
103145         and from path-concat.h to filenamecat.h.
103146         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
103147         "file name" in local variables or comments.
103148         * m4/rename.m4: Likewise.
103150 2005-06-01  Bruno Haible  <bruno@clisp.org>
103152         * modules/csharpexec: New file.
103153         * MODULES.html.sh (C#): New section.
103155 2005-06-01  Bruno Haible  <bruno@clisp.org>
103157         * m4/csharp.m4: New file, from GNU gettext.
103158         * m4/csharpexec.m4: New file, from GNU gettext.
103160 2005-06-01  Bruno Haible  <bruno@clisp.org>
103162         * lib/csharpexec.h: New file, from GNU gettext.
103163         * lib/csharpexec.c: New file, from GNU gettext.
103164         * lib/csharpexec.sh.in: New file, from GNU gettext.
103166 2005-05-31  Derek Price  <derek@ximbiot.com>
103167             Paul Eggert  <eggert@cs.ucla.edu>
103169         Sync from cvs.
103170         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
103172 2005-05-31  Derek Price  <derek@ximbiot.com>
103173             Paul Eggert  <eggert@cs.ucla.edu>
103175         Sync from cvs.
103176         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
103178 2005-05-29  Derek Price  <derek@ximbiot.com>
103180         * config/srclist.txt (glob_.h, glob.c): Add these files.
103182 2005-05-29  Derek Price  <derek@ximbiot.com>
103184         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
103185         * modules/glob: New file.
103186         * modules/getlogin_r: Add link to POSIX spec in description.
103188 2005-05-29  Derek Price  <derek@ximbiot.com>
103189             Paul Eggert  <eggert@cs.ucla.edu>
103191         * m4/glob.m4: New file.
103193 2005-05-29  Derek Price  <derek@ximbiot.com>
103194             Paul Eggert  <eggert@cs.ucla.edu>
103196         * lib/glob_.h, lib/glob.c: New files.
103198 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
103200         * modules/fts (Files): Remove m4/inttypes-pri.m4.
103201         * modules/fts-lgpl (Depends-on): Remove gettext.
103203 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
103205         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
103206         and don't require gt_INTTYPES_PRI.
103208 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
103210         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
103212         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
103213         the configuration hassle isn't worth it.
103214         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
103215         (LONGEST_MODIFIER, PRIuMAX): Remove.
103217 2005-05-27  Bruno Haible  <bruno@clisp.org>
103219         * lib/getlogin_r.h: Remove second include of <stddef.h>.
103221 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
103223         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
103224         _POSIX_PTHREAD_SEMANTICS for Solaris.
103226 2005-05-25  Derek Price  <derek@ximbiot.com>
103228         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
103230 2005-05-25  Derek Price  <derek@ximbiot.com>
103231             Paul Eggert  <eggert@cs.ucla.edu>
103233         * modules/getlogin_r, m4/getlogin_r.m4: New files.
103234         * lib/getlogin_r.c, getlogin_r.h: New files.
103236 2005-05-25  Bruno Haible  <bruno@clisp.org>
103237             Derek Price  <derek@ximbiot.com>
103239         * lib/getlogin_r.h: Simplify API documentation.
103241 2005-05-23  Derek Price  <derek@ximbiot.com>
103243         * modules/minmax (Files): Add m4/minmax.m4.
103244         (configure.ac): Add gl_MINMAX.
103246 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
103248         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
103249         so that unistd-safer.h (GPL'ed code) need not be included.
103251 2005-05-22  Bruno Haible  <bruno@clisp.org>
103253         * m4/minmax.m4: New file.
103254         Based on a patch by Derek Price <derek@ximbiot.com>.
103256 2005-05-22  Bruno Haible  <bruno@clisp.org>
103258         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
103259         (INT64_MIN): Fix definition.
103260         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
103262         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
103263         NEED_SIGNED_INT_TYPES.
103265         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
103266         HAVE_SYSTEM_INTTYPES.
103268 2005-05-22  Bruno Haible  <bruno@clisp.org>
103270         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
103271         Also include <sys/param.h> if it defines MIN, MAX.
103272         Based on a patch by Derek Price <derek@ximbiot.com>.
103274 2005-05-21  Jim Meyering  <jim@meyering.net>
103276         * modules/fts (Files): Add m4/inttypes-pri.m4.
103277         (Depends-on): Add lstat and remove gettext.  Alphabetize.
103279 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
103281         New fts module.
103282         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
103283         (setup_dir, free_dir): New functions.
103284         (enter_dir, leave_dir): Define trivial
103285         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
103286         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
103287         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
103288         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
103289         Move to fts-cycle.c.
103290         (fts_open): Use setup_dir.
103291         (fts_close): Use free_dir.
103292         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
103293         This adds a label and some gotos, but the alternatives were messier.
103294         Check for memory allocation failure when entering a dir.
103295         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
103296         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
103297         (FTS): New member fts_cycle, that is a union that contains the
103298         old active_dir_ht and cycle_state.  All uses changed to mention
103299         fts_cycle.ht and fts_cycle.state.
103300         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
103301         fts.c, with the following changes:
103302         (setup_dir, free_dir): New functions.
103303         (enter_dir): Now returns bool.  Return true if successful, false
103304         if memory exhausted.  All callers changed.
103305         Do not bother partly cleaning up on
103306         memory allocation failure; that is free_dir's job.
103307         However, free ad if hash_insert fails, to avoid memory leak.
103308         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
103309         fts->fts_options to see which union member to use.
103311 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
103313         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
103314         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
103316 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
103318         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
103320 2005-05-20  Jim Meyering  <jim@meyering.net>
103322         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
103323         Now a macro, to pacify GCC.
103325 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
103327         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
103328         of -1.
103330 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
103332         * lib/chown.c (rpl_chown): Return -1 on failure.
103334 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
103336         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
103337         Don't check for stddef.h.
103338         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
103339         don't use its results.
103340         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
103341         since we include them unconditionally.  Don't require
103342         AM_STDBOOL_H, since stdbool is a prerequisite.
103343         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
103344         since we assume C89 or better.
103345         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
103346         as we don't use their results.
103347         Don't check for fchdir, memmove, memset, strrchr, as we use
103348         them unconditionally.
103349         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
103350         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
103352 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
103354         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
103355         Include <stddef.h> unconditionally, since we assume C89 now.
103356         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
103357         * lib/fts.c: Include fts_.h first, to check interface.
103358         Do not include intprops.h; no longer needed.
103359         Include cycle-check.h and hash.h, since fts_.h no longer does.
103360         Remove unnecessary casts of closedir to void.
103361         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
103362         decide whether to decrement nlinks.
103363         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
103364         (FTS): Use struct hash_table * instead of Hash_table, so that
103365         we no longer need to include hash.h here.
103367 2005-05-18  Jim Meyering  <jim@meyering.net>
103369         * modules/dirfd (License): Change to LGPL.  Most of the code
103370         is already in the public domain.
103372 2005-05-18  Jim Meyering  <jim@meyering.net>
103374         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
103375         Reported by Yoann Vandoorselaere.
103377 2005-05-17  Jim Meyering  <jim@meyering.net>
103379         * m4/fts.m4: New file, from coreutils.
103381 2005-05-17  Jim Meyering  <jim@meyering.net>
103383         * lib/fts.c, lib/fts_.h: New files, from coreutils.
103385 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
103387         Sync from coreutils.
103388         * m4/unlinkdir.m4: New file.
103390 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
103392         Sync from coreutils.
103393         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
103394         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
103395         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
103396         White space changes only.
103397         * lib/makepath.c (make_path): Port to hosts where leading "//" is
103398         special.
103399         * lib/yesno.c: Include getline.h, not ctype.h.
103400         (yesno): Don't remove leading white space; POSIX doesn't allow it.
103401         Use getline to remove arbitrary restriction on response length.
103403 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
103405         * config/srclist-update: Spell out "Street" in FSF postal
103406         mail address; this is the style the FSF seems to prefer.
103408         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
103409         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
103410         this updates FSF postal mail address.
103412         Sync from coreutils.
103413         * modules/unlinkdir: New file.
103414         * modules/yesno (Depends-on): Add getline.
103415         * MODULES.html.sh (File system functions): Add unlinkdir.
103417 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
103419         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
103420         lib/strsep.h:
103421         Change the initial comment to refer to GPL, not LGPL.
103422         gnulib-tool will change it to LGPL as needed.
103424         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
103425         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
103426         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
103427         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
103428         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
103429         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
103430         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
103431         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
103432         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
103433         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
103434         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
103435         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
103436         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
103437         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
103438         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
103439         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
103440         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
103441         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
103442         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
103443         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
103444         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
103445         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
103446         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
103447         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
103448         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
103449         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
103450         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
103451         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
103452         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
103453         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
103454         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
103455         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
103456         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
103457         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
103458         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
103459         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
103460         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
103461         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
103462         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
103463         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
103464         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
103465         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
103466         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
103467         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
103468         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
103469         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
103470         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
103471         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
103472         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
103473         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
103474         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
103475         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
103476         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
103477         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
103478         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
103479         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
103480         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
103481         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
103482         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
103483         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
103484         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
103485         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
103486         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
103487         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
103488         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
103489         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
103490         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
103491         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
103492         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
103493         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
103494         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
103495         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
103496         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
103497         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
103498         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
103499         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
103500         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
103501         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
103502         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
103503         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
103504         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
103505         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
103506         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
103507         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
103508         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
103509         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
103510         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
103511         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
103512         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
103513         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
103514         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
103515         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
103516         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
103517         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
103518         lib/yesno.c, lib/yesno.h:
103519         Update FSF postal mail address.
103521 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
103523         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
103524         tests/test-memmem.c, tests/test-stpncpy.c:
103525         Update FSF postal mail address.
103527 2005-05-13  Bruno Haible  <bruno@clisp.org>
103529         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
103530         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
103531         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
103532         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
103533         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
103534         Add support for 64-bit integers in the MSVC compiler.
103536 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
103538         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
103540 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
103542         * gnulib-tool (func_import): Sort and uniquify recommended includes.
103544 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
103546         * doc/getdate.texi (General date syntax): Don't say that date
103547         date --iso-8601=ns generates acceptable dates; it doesn't yet.
103548         Problem reported by Nic Ferrier.
103550 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
103552         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
103553         specified in ai_socktype. Fix invalid ai_protocol
103554         check. ai_protocol is usually set to 0 or depending on
103555         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
103556         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
103557         ai_socktype / ai_protocol in the returned addrinfo structure.
103559 2005-05-10  Simon Josefsson  <jas@extundo.com>
103561         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
103562         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
103564 2005-05-10  Karl Berry  <karl@gnu.org>
103566         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
103567         (from http://www.gnu.org/licenses).
103568         * doc/COPYING.LIB: also rename to COPYING.LESSER.
103569         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
103570         fdl.texi suffices.
103572 2005-05-10  Karl Berry  <karl@gnu.org>
103574         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
103575         (COPYING.DOC): remove.
103577         * config/srclist-update: new FSF address.
103579 2005-05-10  Derek Price  <derek@ximbiot.com>
103581         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
103582         possible.
103584 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
103585             Bruno Haible  <bruno@clisp.org>
103587         * modules/inet_ntop: New file.
103588         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
103589         inet_ntop.
103591 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
103592             Bruno Haible  <bruno@clisp.org>
103594         * m4/inet_ntop.m4: New file.
103596 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
103597             Bruno Haible  <bruno@clisp.org>
103599         * lib/inet_ntop.h: New file.
103600         * lib/inet_ntop.c: New file, from glibc with modifications.
103602 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
103604         * modules/time_r (License): Change to LGPL.
103605         * modules/extensions (License): Change to LGPL.  Actually,
103606         the license is more permissive than that, but currently gnulib-tool
103607         doesn't know how to handle more-permissive licenses.
103609         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
103610         Problem reported by Dave Love.
103612 2005-05-08  Jim Meyering  <jim@meyering.net>
103614         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
103615         blank.
103617 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
103619         * modules/argmatch (Depends-on): Add stdbool.
103620         * modules/backupfile (Depends-on): Likewise.
103621         * modules/chdir-long (Depends-on): Likewise.
103622         * modules/closeout (Depends-on): Likewise.
103623         * modules/cycle-check (Depends-on): Likewise.
103624         * modules/dirname (Depends-on): Likewise.
103625         * modules/fnmatch (Depends-on): Likewise.
103626         * modules/fsusage (Depends-on): Likewise.
103627         * modules/fwriteerror (Depends-on): Likewise.
103628         * modules/getcwd (Depends-on): Likewise.
103629         * modules/getloadavg (Depends-on): Likewise.
103630         * modules/hard-locale (Depends-on): Likewise.
103631         * modules/makepath (Depends-on): Likewise.
103632         * modules/mountlist (Depends-on): Likewise.
103633         * modules/nanosleep (Depends-on): Likewise.
103634         * modules/posixtm (Depends-on): Likewise.
103635         * modules/quotearg (Depends-on): Likewise.
103636         * modules/readtokens (Depends-on): Likewise.
103637         * modules/readtokens0 (Depends-on): Likewise.
103638         * modules/readutmp (Depends-on): Likewise.
103639         * modules/save-cwd (Depends-on): Likewise.
103640         * modules/strftime (Depends-on): Likewise.
103641         * modules/userspec (Depends-on): Likewise.
103642         * modules/utimecmp (Depends-on): Likewise.
103643         * modules/xgetcwd (Depends-on): Likewise.
103644         * modules/xnanosleep (Depends-on): Likewise.
103645         * modules/xstrtod (Depends-on): Likewise.
103646         * modules/yesno (Depends-on): Likewise.
103648 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
103650         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
103651         needless checks.
103653 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
103655         Merge from coreutils.  Among other things,
103656         add bulletproofing for cases where stdin, stdout, or stderr are closed.
103657         * lib/fd-safer.c: New file.
103658         * lib/fcntl-safer.h, open-safer.c: Remove.
103659         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
103660         * lib/dup-safer.c: Include unistd-safer.h first.
103661         Don't include errno.h.
103662         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
103663         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
103664         * lib/file-type.c: Rely on file-type.h change.
103665         * lib/getloadavg.c: Include unistd-safer.h.
103666         (getloadavg): Use safer open.
103667         * lib/getusershell.c: Include "stdio-safer.h".
103668         (getusershell): Use safer fopen.
103669         * lib/long-options.c (long_options): Use NULL rather than 0.
103670         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
103671         'free'.
103672         * lib/modechange.c: Likewise.
103673         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
103674         (MODE_DONE): New constant.
103675         (struct mode_change): Remove 'next' member.
103676         (make_node_op_equals): New function; like the old one of the
103677         same name, except it allocates an array.
103678         (mode_compile, mode_create_from_ref): Use it.
103679         (mode_compile): Allocate result as an array, not a linked list.
103680         Parse octal string ourself, so that we catch mistakes like "+0".
103681         (mode_adjust): Arg is an array, not a linked list.
103682         * lib/modechange.c: Include stat-macros.h, xalloc.h.
103683         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
103684         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
103685         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
103686         Remove.  This is now stat-macros.h's job.
103687         (talloc): Remove.  All callers replaced by xalloc, so that
103688         our invokers don't have to worry about reporting memory failures.
103689         (make_node_op_equals): Remove.
103690         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
103691         New constants.
103692         (struct mode_change): Moved here from modechange.h.
103693         (mode_append_entry): Remove.
103694         (mode_compile): Remove MASKED_OPS arg, since it encouraged
103695         apps to have incorrect behavior.  Use simpler algorithm for head
103696         and tail.  Don't futz with umask; that's now the job of mode_adjust.
103697         Detect more invalid usages rather than having somewhat-random behavior.
103698         Don't insert an "a=" action, as that leads to incorrect behavior.
103699         (mode_compile, mode_create_from_ref): Return NULL on error instead
103700         of an enum, since now there's only one way to have an error.  All
103701         callers changed.
103702         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
103703         at the correct time.  Simplify calculation of "+u" and its ilk.
103704         Don't mishandle "+X".
103705         (mode_free): Remove "register" and localize decls.
103706         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
103707         (struct mode_change): Move to modechange.c; callers don't
103708         need to see this stuff.
103709         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
103710         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
103711         (mode_change, mode_adjust): Reflect the new signatures noted above.
103712         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
103713         that might redefine system include files.
103714         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
103715         (my_usleep): Use NULL rather than (void *) 0.
103716         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
103717         Use siginterrupt to specify that system calls should be interrupted.
103718         (rpl_nanosleep): Move initialization of suspended closer to call of
103719         my_usleep.
103720         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
103721         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
103722         (desirable_utmp_entry): New function.
103723         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
103724         using x2nrealloc, to simplify logic.
103725         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
103726         size calculation.  Do not assume utmp file is a regular file.
103727         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
103728         (READ_UTMP_CHECK_PIDS): New constant.
103729         * lib/save-cwd.c: Include unistd-safer.h.
103730         (save_cwd): Use fd_safer.
103731         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
103732         [!_LIBC] Include "stat-macros.h" instead.
103733         * lib/unistd-safer.h (fd_safer): New decl.
103735 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
103737         * modules/getloadavg (Depends-on): Add unistd-safer.
103738         * modules/getusershell (Depends-on): Add stdio-safer.
103739         * modules/lstat (Depends-on): Remove xalloc.
103740         * modules/mkstemp (Depends-on): Add stat-macros.
103741         * modules/modechange (Depends-on): Remove xstrtol.
103742         Add stat-macros, xalloc.
103743         * modules/save-cwd (Depends-on): Add unistd-safer.
103744         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
103745         * modules/unistd-safer (Files): Add lib/fd-safer.c
103746         (Makefile.am): Remove lib_SOURCES.
103748         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
103749         Remove fcntl-safer; unistd-safer supersedes it.
103751 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
103753         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
103754         AC_HEADER_STAT.
103755         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
103756         (gl_PREREQ_CHOWN): Remove.
103757         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
103758         it.  Don't require AC_HEADER_STAT.
103759         (gl_PREREQ_LSTAT): Remove.
103760         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
103761         Don't require AC_HEADER_STAT.
103762         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
103763         (gl_PREREQ_RMDIR): Remove.
103764         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
103765         mention stat-macros.h or AC_HEADER_STAT, since we'll make
103766         the stat-macros module a prerequisite.
103767         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
103768         * m4/filemode.m4 (gl_FILEMODE): Likewise.
103769         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
103770         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
103771         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
103772         variable names.
103773         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
103774         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
103775         variable prefixes.
103776         * m4/fcntl-safer.m4: Remove.
103777         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
103778         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
103779         Invoke gl_PREREQ_FD_SAFER.
103780         (gl_PREREQ_FD_SAFER): New macro.
103781         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
103782         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
103783         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
103784         Remove duplicate call to AC_LIBOBJ(readutmp).
103785         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
103787         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
103788         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
103790 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
103792         * MODULES.html.sh (Misc): Add byteswap.
103794 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
103796         * modules/getcwd (Depends-on): Add extensions.
103797         * modules/openat (Depends-on): Likewise.
103799 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
103801         * modules/byteswap: New file.
103803 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
103805         * m4/byteswap.m4: New file.
103807 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
103809         * lib/byteswap_.h: New file.
103811 2005-04-25  Karl Berry  <karl@gnu.org>
103813         * m4/gettext.m4: Update from GNU gettext 0.14.4.
103815 2005-04-25  Albert Chin  <china@thewrittenword.com>
103817         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
103818         Toolkit C bug.
103820 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
103822         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
103823         (func_ln_if_changed): Remove forcibly for no error message
103824         in case file does not exist.
103826 2005-04-19  Simon Josefsson  <jas@extundo.com>
103828         * gnulib-tool (Options): Make --symlink mean --symbolic.
103830 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
103832         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
103834 2005-04-16  Simon Josefsson  <jas@extundo.com>
103836         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
103838 2005-04-15  Simon Josefsson  <jas@extundo.com>
103840         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
103842 2005-04-15  Simon Josefsson  <jas@extundo.com>
103844         * gnulib-tool: Rename --symlink to --symbolic.
103846 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
103848         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
103849         symbolic links to files instead of copying/moving.  Add --aux-dir,
103850         specifying directory relative --dir where auxiliary build tools
103851         are placed.
103853 2005-04-14  Bruno Haible  <bruno@clisp.org>
103855         * modules/allocsa (License): Change to LGPL.
103856         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
103858 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
103860         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
103861         that "UTC +1 second" continues to work.  Problem reported
103862         by Dmitry V. Levin.
103863         (relunit_snumber): New rule.
103864         (relunit): Use it.
103866 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
103868         * lib/getdate.y (universal_time_zone_table): New constant.
103869         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
103870         universal_time_zone_table.
103871         (lookup_zone): Prefer universal_time_zone_table to
103872         local_time_zone_table, so that "GMT" time stamps are allowed in
103873         London during the summer.  Problem reported by Ian Abbott.
103875 2005-04-12  Jim Meyering  <jim@meyering.net>
103877         * lib/human.c (humblock): Set *options even when returning due to
103878         xstrtoumax conversion failure.  Thanks to a used-uninitialized
103879         warning from gcc-4.
103881 2005-04-09  Jim Meyering  <jim@meyering.net>
103883         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
103884         -Wuninitialized: initialize tm0.tm_year.
103886 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
103888         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
103889         count, since there's no maximum.  All uses changed.
103890         Add member dsts_seen.
103891         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
103892         not being INT_MAX.
103893         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
103894         Use pc_rels_seen to decide whether a date is absolute.
103896         * lib/getdate.y (number): Don't overwrite year.
103897         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
103898         check.
103900 2005-04-02  Simon Josefsson  <jas@extundo.com>
103902         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
103903         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
103905 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
103907         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
103908         where no absolute path name can be longer than PATH_MAX.
103910 2005-03-27  Jim Meyering  <jim@meyering.net>
103912         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
103914 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
103916         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
103917         "one's complement" -> "ones' complement" in comment, as per Knuth.
103918         "value of type" -> "type or expression" in comment.
103919         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
103921 2005-03-26  Jim Meyering  <jim@meyering.net>
103923         Comment nits.
103924         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
103925         Correct typos: s/or/of/.
103927 2005-03-26  Jim Meyering  <jim@meyering.net>
103929         * modules/check-include-files: Move to ../ and rename to...
103930         * check-module: ...this.
103932 2005-03-25  Jim Meyering  <jim@meyering.net>
103934         * modules/xvasprintf (Files): Add xalloc.h.
103936 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
103938         * modules/gettext (Files): config/config.rpath ->
103939         build-aux/config.rpath
103940         * modules/iconv (Files): Likewise.
103941         Problem reported by Oskar Liljeblad.
103943 2005-03-23  Jim Meyering  <jim@meyering.net>
103945         * modules/check-include-files: New script to check for
103946         missing dependencies, multiple includes, etc.
103948         * modules/c-strtold (Depends-on): Add xalloc.
103949         * modules/c-strtod (Depends-on): Add xalloc.
103950         * modules/hash (Depends-on): Add xalloc.
103951         (Files): Remove lib/xalloc.h.
103953         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
103954         * modules/userspec (Files): Add lib/inttostr.h.
103956 2005-03-23  Jim Meyering  <jim@meyering.net>
103958         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
103960 2005-03-22  Jim Meyering  <jim@meyering.net>
103962         * modules/stat-macros: New module.
103963         * modules/canonicalize, modules/euidaccess, modules/file-type,
103964         * modules/filemode, modules/lchown, modules/makepath,
103965         * modules/rmdir, modules/stat: Depend on new stat-macros module
103966         rather than listing lib/stat-macros.h manually.
103967         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
103969 2005-03-22  Jim Meyering  <jim@meyering.net>
103971         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
103973 2005-03-22  Bruno Haible  <bruno@clisp.org>
103975         * config/srclist.txt: Replace target directory 'config' with
103976         'build-aux'.
103977         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
103978         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
103979         ../build-aux/.
103981 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
103983         * modules/chdir-long (Depends-on): Add mempcpy.
103985         * modules/acl, modules/backupfile, modules/c-strtod,
103986         modules/c-strtold, modules/canon-host, modules/canonicalize,
103987         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
103988         modules/exclude, modules/exitfail, modules/file-type,
103989         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
103990         modules/getdate, modules/getline, modules/getpagesize,
103991         modules/getpass, modules/getugroups, modules/group-member,
103992         modules/hard-locale, modules/hash, modules/human, modules/idcache,
103993         modules/inttostr, modules/long-options, modules/makepath,
103994         modules/md5, modules/memcasecmp, modules/memcoll,
103995         modules/modechange, modules/mountlist, modules/path-concat,
103996         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
103997         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
103998         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
103999         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
104000         modules/strftime, modules/strndup, modules/strverscmp,
104001         modules/timespec, modules/unlocked-io, modules/userspec,
104002         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
104003         modules/yesno:
104004         Remove lib_SOURCES line from Makefile.am section, as this is now
104005         done automatically by the corresponding Autoconf macro.
104007 2005-03-21  Jim Meyering  <jim@meyering.net>
104009         Changes imported from coreutils.
104011         * lib/cycle-check.c: Don't include xalloc.h.
104013         * lib/path-concat.c: Don't include assert.h.
104014         (path_concat): Remove assertion that would have triggered
104015         for ABASE starting with more than one slash.
104016         Reported by Andreas Schwab.
104018         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
104019         properly when ABASE is an absolute file name.
104020         Correct the description of this function.
104021         Include <assert.h>.
104022         Add an assertion and a test driver.
104023         This fixes a bug introduced on 2004-07-02.
104024         Andreas Schwab reported the resulting failure of cp --parents:
104025         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
104027 2005-03-21  Jim Meyering  <jim@meyering.net>
104029         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
104030         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
104032 2005-03-21  Jim Meyering  <jim@meyering.net>
104033         and  Paul Eggert  <eggert@cs.ucla.edu>
104035         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
104036         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
104037         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
104038         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
104039         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
104040         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
104041         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
104042         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
104043         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
104044         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
104045         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
104046         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
104047         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
104048         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
104049         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
104050         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
104051         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
104052         for these modules.
104054 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
104056         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
104057         (which shouldn't happen), generate nothing instead of returning 0
104058         immediately, so that nstrftime (NULL, ...) doesn't return 0.
104060 2005-03-16  Bruno Haible  <bruno@clisp.org>
104062         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
104063         HAVE_LONGLONG_64BIT.
104065 2005-03-16  Bruno Haible  <bruno@clisp.org>
104067         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
104068         HAVE_LONGLONG_64BIT.
104070 2005-03-16  Bruno Haible  <bruno@clisp.org>
104072         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
104073         HAVE_LONGLONG_64BIT.
104075 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
104077         * lib/strftime.c (my_strftime): Prepend space to format so that we can
104078         reliably distinguish strftime failure from empty output on POSIX
104079         hosts.
104081 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
104083         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
104084         (iconv_string): Don't guess a size-zero buffer, as that might cause
104085         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
104086         result would be 'too large', where 'too large' is (heuristically)
104087         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
104088         overflow concerns.  This will prevent some unwanted malloc failures
104089         when the inputs are very large.
104091 2005-03-15  Karl Berry  <karl@gnu.org>
104093         * config/srclist.txt (config.rpath): from gettext.
104094         * config/config.rpath: update.
104096 2005-03-15  Bruno Haible  <bruno@clisp.org>
104098         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
104099         to 'negate'.
104101         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
104102         variable.
104104         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
104105         results.
104107 2005-03-14  Simon Josefsson  <jas@extundo.com>
104109         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
104110         <fx@gnu.org>.
104112 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
104114         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
104115         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
104116         intprops.h.
104117         * lib/strtol.c: Likewise.
104119 2005-03-14  Jim Meyering  <jim@meyering.net>
104121         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
104122         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
104123         to be nonzero so that we (and caller) can detect the difference
104124         between a valid zero-length expansion and an error return, even
104125         when the underlying strftime fails before writing anything into
104126         that location.
104128 2005-03-14  Bruno Haible  <bruno@clisp.org>
104130         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
104131         Update from GNU gettext 0.14.3.
104133 2005-03-10  Jim Meyering  <jim@meyering.net>
104135         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
104137 2005-03-10  Jim Meyering  <jim@meyering.net>
104139         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
104140         so that this module works on systems without fchdir.
104142 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
104144         Factor int-properties macros into a single file, except for
104145         glibc-related files.
104146         * lib/intprops.h: New file.
104147         * lib/getloadavg.c: Include it instead of limits.h.
104148         (INT_STRLEN_BOUND): Remove.
104149         * lib/human.c: Include intprops.h.
104150         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
104151         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
104152         302/1000.
104153         * lib/inttostr.h: Include intprops.h instead of limits.h.
104154         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
104155         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
104156         for consistency with intprops.h.
104157         (time_t_is_integer, twos_complement_arithmetic): Use them.
104158         * lib/sig2str.h: Include <signal.h>, intprops.h.
104159         (INT_STRLEN_BOUND): Remove.
104160         * lib/strftime.c (TYPE_SIGNED): Remove.
104161         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
104162         * lib/strtol.c: Adjust comments to match intprops.h.
104163         * lib/userspec.c: Include intprops.h.
104164         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
104165         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
104166         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
104167         instead of rolling our own expressions.
104168         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
104170         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
104171         instead of int.
104172         (my_strftime): Do not mishandle years close to INT_MAX, by doing
104173         the right thing even if adding 1900 would overflow.  Similarly
104174         for tm_mon + 1 and tm_yday + 1.
104175         Make %Y always equivalent to %C%y, and similarly for %G and %g.
104176         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
104177         (DO_SIGNED_NUMBER): New macro.
104178         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
104180 2005-03-07  Bruno Haible  <bruno@clisp.org>
104182         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
104184 2005-03-07  Bruno Haible  <bruno@clisp.org>
104186         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
104188 2005-03-04  Derek R. Price  <derek@ximbiot.com>
104190         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
104191         (func_import): Only replace files via --import when they have actually
104192         changed.
104194 2005-03-03  Derek R. Price  <derek@ximbiot.com>
104196         * m4/mmap-anon.m4: New file.
104197         * m4/pagealign_alloc.m4: New file.
104199 2005-03-03  Derek R. Price  <derek@ximbiot.com>
104200             Bruno Haible  <bruno@clisp.org>
104202         * modules/pagealign_alloc: New file.
104203         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
104205 2005-03-03  Derek R. Price  <derek@ximbiot.com>
104206             Bruno Haible  <bruno@clisp.org>
104208         * lib/pagealign_alloc.h: New file.
104209         * lib/pagealign_alloc.c: New file.
104211 2005-03-03  Bruno Haible  <bruno@clisp.org>
104213         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
104214         Use an all-permissive copyright notice, recommended by RMS.
104216 2005-03-02  Bruno Haible  <bruno@clisp.org>
104218         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
104219         of AIX, the replacement has to be done only after <string.h> is
104220         included, therefore not in config.h. stpncpy.h does the replacement,
104221         and stpncpy.c uses it.
104223 2005-03-02  Bruno Haible  <bruno@clisp.org>
104225         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
104226         stpncpy.c uses it.
104228 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
104230         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
104231         The workaround isn't strictly needed for POSIX conformance, and
104232         it's too much of a pain to configure and maintain.  We'll ask
104233         people to fix their kernels instead.
104234         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
104235         (NANOSLEEP_BUG_WORKAROUND): Remove.
104236         (xnanosleep): Remove the workaround.
104238 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
104240         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
104241         Reported by Derek Price.
104242         (Include): Add "timespec.h".
104244         * modules/xnanosleep (Depends-on): Remove gethrxtime.
104246 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
104248         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
104249         to detect nanosleep bug.
104251 2005-03-01  Bruno Haible  <bruno@clisp.org>
104253         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
104255 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
104257         * modules/gethrxtime: New file.
104258         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
104259         (Depends-on): Add gethrxtime.
104260         (configure.ac): Add gl_XNANOSLEEP.
104261         (Makefile.am): Remove lib_SOURCES line.
104263 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
104265         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
104266         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
104268 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
104270         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
104271         * lib/timespec.h (gettime): Return void, since it always
104272         succeeds now.  All uses changed.
104273         * lib/gettime.c (gettime): Likewise.
104274         [HAVE_NANOTIME]: Prefer nanotime.
104275         Assume gettimeofday succeeds, as POSIX requires.
104276         Assime time () succeeds, since other code already does.
104277         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
104278         (timespec_subtract): Remove.
104279         (NANOSLEEP_BUG_WORKAROUND): New constant.
104280         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
104281         things considerably.  Use it only on GNU/Linux hosts, since the
104282         workaround shouldn't be needed elsewhere.
104284 2005-02-24  Bruno Haible  <bruno@clisp.org>
104286         * modules/gettext (Files): Add m4/glibc2.m4.
104288 2005-02-24  Bruno Haible  <bruno@clisp.org>
104290         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
104291         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
104292         * m4/progtest.m4:
104293         Update from GNU gettext 0.14.2.
104294         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
104296 2005-02-24  Bruno Haible  <bruno@clisp.org>
104298         * lib/localcharset.c: Update from GNU gettext 0.14.2.
104299         * lib/config.charset: Update from GNU gettext 0.14.2.
104301 2005-02-24  Bruno Haible  <bruno@clisp.org>
104303         * lib/gettext.h: Update from GNU gettext 0.14.2.
104305 2005-02-23  Simon Josefsson  <jas@extundo.com>
104307         * m4/iconvme.m4: New file.
104309 2005-02-23  Jim Meyering  <jim@meyering.net>
104311         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
104312         change.
104313         Thanks to Bruno Haible for catching it.
104315 2005-02-22  Simon Josefsson  <jas@extundo.com>
104317         * modules/iconvme: New file.
104319         * MODULES.html.sh: Add iconvme.
104321 2005-02-22  Simon Josefsson  <jas@extundo.com>
104323         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
104325 2005-02-22  Simon Josefsson  <jas@extundo.com>
104327         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
104329 2005-02-22  Jim Meyering  <jim@meyering.net>
104331         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
104332         s/ifndef/ifdef/.
104334 2005-02-20  Neil Conway  <neilc@samurai.com>
104336         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
104337         returned by OSX/Darwin if the specified buffer is not large
104338         enough for the hostname.
104340 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
104342         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
104343         pass it to _help, otherwise the latter coredumps trying to
104344         dereference state.root_argp.
104346 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
104348         * modules/chdir-long (Depends-on): Add memrchr.
104349         * modules/memrchr (Files): Add lib/memrchr.h.
104350         (Include): "memrchr.h".
104352 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
104354         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
104356 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
104358         * lib/memrchr.h: New file.
104359         * lib/chdir-long.c: Include it.
104360         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
104361         Don't bother including stddef.h.
104363 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
104365         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
104366         inclusion.
104367         Include <sys/types.h>, for dev_t.
104368         (ME_DUMMY, ME_REMOTE): Move from here....
104369         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
104370         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
104371         Dmitry V. Levin.
104372         Include mountlist.h first, to test the interface.
104374 2005-01-29  Bruno Haible  <bruno@clisp.org>
104376         * lib/progname.c (program_name): Initialize.
104377         Needed when linking statically on MacOS X.
104379 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
104381         Sync from coreutils.
104382         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
104383         (Depends-on): Add c-strtod.
104384         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
104386 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
104388         Sync from coreutils.
104389         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
104391         Remove files that are specific to coreutils.
104392         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
104394 2005-01-28  Bruno Haible  <bruno@clisp.org>
104396         * modules/javacomp: New file.
104397         * MODULES.html.sh (Java): Add javacomp.
104399 2005-01-28  Bruno Haible  <bruno@clisp.org>
104401         * m4/javacomp.m4: New file, from GNU gettext.
104403 2005-01-28  Bruno Haible  <bruno@clisp.org>
104405         * lib/javacomp.sh.in: New file, from GNU gettext.
104406         * lib/javacomp.h: New file, from GNU gettext.
104407         * lib/javacomp.c: New file, from GNU gettext.
104409 2005-01-26  Simon Josefsson  <jas@extundo.com>
104411         * lib/gai_strerror.c: Use GPL in header.
104413 2005-01-26  Bruno Haible  <bruno@clisp.org>
104415         * modules/javaexec: New file.
104416         * MODULES.html.sh (Java): Add javaexec.
104418 2005-01-26  Bruno Haible  <bruno@clisp.org>
104420         * m4/javaexec.m4: New file, from GNU gettext.
104422 2005-01-26  Bruno Haible  <bruno@clisp.org>
104424         * lib/javaexec.sh.in: New file, from GNU gettext.
104425         * lib/javaexec.h: New file, from GNU gettext.
104426         * lib/javaexec.c: New file, from GNU gettext.
104428 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
104430         * modules/lchown (Depends-on): Remove lchown.h
104432 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
104434         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
104435         must be defined if the header file was not found, in order
104436         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
104438 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
104440         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
104441         initializers for struct pentry_state.
104442         (__argp_error): Check return value of __asprintf
104443         (__argp_failure): Translate error message
104445         * lib/argp-parse.c: Removed braces around the expansion of N_()
104447 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
104449         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
104450         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
104451         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
104452         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
104453         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
104454         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
104455         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
104456         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
104457         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
104458         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
104459         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
104460         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
104461         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
104462         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
104463         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
104464         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
104465         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
104466         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
104467         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
104468         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
104469         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
104470         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
104471         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
104472         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
104473         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
104474         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
104475         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
104476         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
104477         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
104478         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
104479         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
104480         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
104481         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
104482         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
104483         xstrtol.m4, xstrtoumax.m4, yesno.m4:
104484         Use an all-permissive copyright notice, recommended by RMS.
104486 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
104488         * modules/chdir-long (Depends-on): Remove mempcpy.
104490 2005-01-21  Jim Meyering  <jim@meyering.net>
104492         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
104493         same value as for Solaris 9.
104495         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
104496         component length.  This included changing the parameter to be
104497         of type `char *' rather than `char const *'.
104498         * lib/chdir-long.h (chdir_long): Update prototype.
104500         * lib/openat.c (fdopendir, fstatat): New functions.
104501         * lib/openat.h: Include headers required for use of DIR and struct
104502         stat.
104503         [AT_SYMLINK_NOFOLLOW]: Define.
104504         (fdopendir, fstatat): Add prototypes.
104506 2005-01-21  Bruno Haible  <bruno@clisp.org>
104508         * modules/classpath: New file.
104509         * MODULES.html.sh (Java): Add classpath.
104511 2005-01-21  Bruno Haible  <bruno@clisp.org>
104513         * lib/classpath.h: New file, from GNU gettext.
104514         * lib/classpath.c: New file, from GNU gettext.
104516 2005-01-20  Simon Josefsson  <jas@extundo.com>
104518         * modules/version-etc-fsf: New file.
104520 2005-01-20  Simon Josefsson  <jas@extundo.com>
104522         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
104523         * lib/version-etc.c: Remove version_etc_copyright.
104524         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
104525         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
104527 2005-01-20  Simon Josefsson  <jas@extundo.com>
104529         * lib/base64.h (isbase64): Add.
104531         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
104532         using a unsigned prototype, don't inline.
104533         (base64_decode): Use it.
104535 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
104537         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
104538         it.
104540 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
104542         * lib/save-cwd.c (save_cwd): Remove code to support the case
104543         where fchdir is missing or flaky.
104545 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
104547         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
104549 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
104551         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
104552         AC_LIBSOURCES now does this.
104553         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
104554         with new ullong_max module.
104556 2005-01-19  Bruno Haible  <bruno@clisp.org>
104558         * modules/sh-quote: New file.
104559         * MODULES.html.sh (Executing programs): Add sh-quote.
104561 2005-01-19  Bruno Haible  <bruno@clisp.org>
104563         * lib/sh-quote.h: New file, from GNU gettext.
104564         * lib/sh-quote.c: New file, from GNU gettext.
104566 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
104568         Merge from coreutils.
104569         * m4/ullong_max.m4: New file.
104570         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
104571         (gl_MACROS): Assume localeconv exists.
104573 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
104575         Merge changes from coreutils, as described below in several
104576         changelogs dated today.
104578         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
104579         (O_DIRECTORY): Remove; not needed here, since "." must be
104580         a directory.  All uses removed.
104581         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
104582         universal on Suns, and we also need to test for IRIX.
104583         Revamp code to use 'if' rather than '#if'.
104584         Avoid unnecessary comparison of cwd->desc to 0.
104586         * lib/utimens.c (futimens): Robustify the previous patch, by checking
104587         for known valid error numbers rather than observed invalid ones.
104589 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
104591         * modules/ullong_max: New file.
104593         * modules/chdir-long, modules/openat: New files.
104594         * modules/save-cwd (Depends-on): Depend on chdir-long.
104595         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
104597 2005-01-18  Jim Meyering  <jim@meyering.net>
104599         Merge from coreutils.
104600         * m4/chdir-long.m4, m4/openat.m4: New files.
104601         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
104602         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
104603         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
104604         is sane and DOES follow symlinks.  Besides, testing 20 different
104605         systems found no broken chown implementations.
104606         Prompted by a change in rsync's copy of this macro.
104607         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
104609         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
104611         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
104612         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
104613         NULL-means-set-to-current-time semantics.
104614         Remove temporary file immediately, rather than waiting
104615         for configure's at-exit trap code to do it.
104617 2005-01-18  Jim Meyering  <jim@meyering.net>
104619         * lib/version-etc.c (version_etc_copyright): Update copyright date.
104621         * lib/utimens.c (futimens): Account for the fact that futimes
104622         can also fail with errno == ENOSYS or errno == ENOENT.
104623         Patch from Dmitry V. Levin.
104625         Change the name of the robust chdir function from chdir to chdir_long.
104626         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
104627         (restore_cwd): Use chdir_long, not chdir.
104628         * lib/chdir-long.c: Renamed from chdir.c.
104629         * lib/chdir-long.h: Renamed from chdir.h.
104630         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
104631         Hurd.
104633 2005-01-18  Bruno Haible  <bruno@clisp.org>
104635         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
104636         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
104637         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
104638         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
104639         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
104640         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
104641         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
104642         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
104643         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
104644         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
104645         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
104646         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
104647         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
104648         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
104649         Use an all-permissive copyright notice, recommended by RMS.
104651 2005-01-18  Bob Proulx  <bob@proulx.com>
104653         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
104654         simplify offsetof() macro construct to avoid compile failure with
104655         native HP-UX 11.0 ANSI C compiler.
104657 2005-01-17  Bruno Haible  <bruno@clisp.org>
104659         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
104660         redundant because stpncpy.m4 takes care of it.
104662 2005-01-17  Bruno Haible  <bruno@clisp.org>
104664         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
104666 2005-01-17  Bruno Haible  <bruno@clisp.org>
104668         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
104669         used.
104671 2005-01-17  Bruno Haible  <bruno@clisp.org>
104673         * lib/fwriteerror.h (fwriteerror): Change specification to include
104674         fclose.
104675         * lib/fwriteerror.c: Include <stdbool.h>.
104676         (fwriteerror): At the end, close the file stream. Record whether
104677         stdout was already closed.
104679 2005-01-17  Bruno Haible  <bruno@clisp.org>
104681         * lib/execute.c (environ): Declare if needed.
104682         * lib/pipe.c (environ): Likewise.
104683         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
104685 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
104687         * modules/argp: Depend on vsnprintf
104689 2005-01-10  Jim Meyering  <jim@meyering.net>
104691         * modules/closeout (Depends-on): Add atexit.
104693 2005-01-06  Bruno Haible  <bruno@clisp.org>
104695         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
104697 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
104699         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
104700         definitions to be after all include files, to avoid collisions.
104701         Problem reported by Bob Proulx.
104703 2005-01-04  Jim Meyering  <jim@meyering.net>
104705         Changes imported from coreutils.
104706         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
104707         as the mkstemp template, use a temporary directory and an
104708         8.3-friendly template to avoid trouble on systems like DJGPP.
104709         Reported by Juan M. Guerrero via Stepan Kasal.
104710         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
104711         close. Remove the temporary directory right away, rather than waiting
104712         for configure's at-exit trap code to do it.
104713         Suggestion from Stepan Kasal.
104715 2005-01-01  Simon Josefsson  <jas@extundo.com>
104717         * gnulib-tool: Print #include directives when --import'ing.
104719 2004-12-28  Simon Josefsson  <jas@extundo.com>
104721         * tests/test-base64.c: Include required header files.  Remove
104722         unused variables.
104724 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
104726         * modules/error (Depends-on): Remove gettext.
104728 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
104730         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
104731         not needed.  This removes a dependency on the gettext module.
104732         [defined _LIBC]: Do not include <libintl.h>; not needed.
104734 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
104736         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
104737         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
104739 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
104741         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
104742         HAVE_DECL_STRTOLD.
104744 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
104746         * modules/getdate (Depends-on): Remove alloca-opt.
104748 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
104750         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
104752 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
104754         * lib/argp-parse.c: Include <stddef.h>.
104755         (alignof, alignto): New macros.
104756         (parser_init): Don't assume that void * is aligned sufficiently
104757         for struct option.
104759         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
104760         need to extend the stack.
104761         (YYINITDEPTH): New macro, so that the initial stack isn't overly
104762         large.
104764 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
104766         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
104768 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
104770         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
104771         (2004-10-24) change.  Apparently this was a false alarm.
104773         * modules/getdate: Depend on alloca-opt, not alloca.
104775 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
104777         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
104778         Remove now-obsolete comment about AIX.
104779         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
104780         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
104781         (YYMAXDEPTH): New macro.
104783 2004-12-18  Simon Josefsson  <jas@extundo.com>
104785         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
104787 2004-12-18  Bruno Haible  <bruno@clisp.org>
104789         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
104791 2004-12-18  Bruno Haible  <bruno@clisp.org>
104793         * lib/fatal-signal.c (fatal_signals): Make non-const.
104794         (init_fatal_signals): New function.
104795         (uninstall_handlers, install_handlers): Ignore signals that were set to
104796         SIG_IGN.
104797         (at_fatal_signal): Call init_fatal_signals.
104798         (init_fatal_signal_set): Likewise. Ignore signals that were set to
104799         SIG_IGN.
104800         Reported by Paul Eggert.
104802 2004-12-18  Bruno Haible  <bruno@clisp.org>
104804         * doc/alloca.texi: New file.
104805         * doc/alloca-opt.texi: New file.
104807 2004-12-17  Jim Meyering  <jim@meyering.net>
104809         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
104810         Otherwise, install-sh could exit with improper exit status when
104811         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
104813 2004-12-16  Simon Josefsson  <jas@extundo.com>
104815         * tests/test-base64.c: Add license.
104817 2004-12-15  Stepan Kasal  <address@hidden>
104819         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
104821 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
104823         * modules/getcwd (Files): Add m4/d-ino.m4.
104824         Suggested by Mark D. Baushke.
104826 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
104828         * lib/getdate.y (textint): New member "negative".
104829         (time_zone_hhmm): New function.
104830         Expect 14 shift-reduce conflicts, not 13.
104831         (o_colon_minutes): New rule.
104832         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
104833         (yylex): Set the "negative" member of signed numbers.
104835 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
104837         * doc/getdate.texi (Time of day items, Time zone items):
104838         Describe new formats +00:00, UTC+00:00.
104840 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
104842         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
104843         spurious "-l"s.  Problem reported by Stepan Kasal.
104845 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
104847         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
104848         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
104850 2004-12-04  Simon Josefsson  <jas@extundo.com>
104852         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
104853         Vandoorselaere <yoann@prelude-ids.org>.
104855 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
104857         Changes imported from coreutils.
104858         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
104859         exist.
104860         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
104862 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
104864         Changes imported from coreutils.
104865         * lib/hard-locale.c: Assume <locale.h> exists.
104866         Include "strdup.h".
104867         (GLIBC_VERSION): New macro.
104868         (hard_locale): Assume setlocale exists.
104869         Rewrite to avoid #ifdef.
104870         Use strdup rather than malloc + strcpy.
104871         * lib/human.c: Assume <locale.h> exists.
104872         (human_readable): Assume localeconv exists.
104874 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
104876         * modules/hard-locale (Depends-on): Add strdup.
104878 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
104880         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
104881         convert T2, not T.  (Imported from libc.)
104883 2004-11-30  Simon Josefsson  <jas@extundo.com>
104885         * modules/restrict (License): Change to LGPL.
104887 2004-11-30  Simon Josefsson  <jas@extundo.com>
104889         * m4/restrict.m4: Add copyright and copying conditions.
104891 2004-11-30  Simon Josefsson  <jas@extundo.com>
104893         * m4/base64.m4: New file.
104895 2004-11-30  Simon Josefsson  <jas@extundo.com>
104897         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
104898         base64.
104900         * tests/test-base64.c: New file.
104902         * modules/base64: New file.
104904 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
104906         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
104907         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
104909         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
104911 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
104913         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
104914         (__getcwd.c): Don't restore errno; glibc doesn't.
104915         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
104916         first, falling back to our code only if its results look suspicious.
104917         Ensure that the resulting buffer is only as large as necessary.
104919         * lib/readutmp.c: Include readutmp.h first.
104920         Include <errno.h>, since readutmp.h no longer does that.
104921         * lib/readutmp.h: Don't include <errno.h>,
104922         <sys/param.h>, <time.h>; not needed to establish interface.
104923         (errno): Remove decl.
104924         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
104925         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
104926         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
104928 2004-11-28  Simon Josefsson  <jas@extundo.com>
104930         * lib/base64.h, base64.c: New file.
104932 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
104934         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
104936 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
104938         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
104939         (Depends-on): Remove pathmax, same.  Add mempcpy.
104940         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
104941         (Makefile.am): Append getcwd.h to lib_SOURCES.
104942         (Include): Add getcwd.h.
104943         (Maintainer): Change from Jim Meyering to "all, glibc",
104944         since getdate now uses intended-for-glibc code.
104945         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
104946         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
104948 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
104950         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
104951         HP's ANSI C compiler.
104952         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
104953         Declaring int functions causes warnings on some modern systems and
104954         shouldn't be needed to compile on ancient ones.
104955         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
104956         defined.
104958         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
104959         with the following changes.
104960         (__set_errno): Parenthesize properly.
104961         Include <stdbool.h>.
104962         (MIN, MAX, MATCHING_INO): New macros.
104963         (__getcwd): Define with prototype, not K&R form.
104964         Use heuristics to allocate default buffer on stack if possible.
104965         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
104966         behavior, and to avoid the PATH_MAX limit when computing
104967         ../../../../...
104968         Use MATCHING_INO to compare inode number to file.
104969         Check for arithmetic overflow in size calculations.
104970         Fix bug in reallocation of dot array that caused getcwd to fail
104971         on directories nested deeper than 75.
104972         Be more careful about saving errno on error.
104973         Do not use realloc; use only free+malloc, as this is a bit
104974         more flexible and avoids a needless copy operation.
104975         Do not inspect st_dev and st_ino for symbolic links; POSIX
104976         doesn't specify the latter.
104977         Check for closedir errors.
104978         Avoid needless casts.
104979         Use "#ifdef weak_alias" around weak_alias, to be like other
104980         glibc code.
104981         The following changes to getcwd.c have effect only when used in
104982         gnulib; they have no effect inside glibc proper.
104983         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
104984         as alloca isn't used.
104985         (alloca, __alloca): Likewise.
104986         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
104987         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
104988         unconditionally, as gnulib assumes C89 or better.
104989         Do not include <sys/param.h>.
104990         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
104991         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
104992         better.
104993         (NULL) [!defined NULL]: Remove; we assume C89 or better.
104994         Include <dirent.h> in a way that is compatible with modern Autoconf.
104995         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
104996         New macros, if not already defined.
104997         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
104998         Use "_LIBC", not "defined _LIBC", for consistency.
104999         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
105000         a mempcpy module.
105001         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
105002         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
105003         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
105004         credit only to Jim Meyering and adjust the copyright dates.
105005         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
105006         <stdlib.h>, <unistd.h>, "pathmax.h".
105007         Instead, include "xgetcwd.h" (first) and "getcwd.h".
105008         (INITIAL_BUFFER_SIZE): Remove.
105009         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
105011 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
105013         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
105014         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
105015         Use the _ONCE methods, for efficiency.
105016         Check for fcntl.h.  In test program, include <errno.h>
105017         and <fcntl.h> if available.  Remove old K&R cruft from
105018         test program.  Check for common errors in GNU/Linux,
105019         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
105020         don't do AC_LIBOBJ, as that's getcwd.m4's job.
105021         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
105022         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
105023         name accordingly.
105024         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
105025         accommodate new getcwd.c.
105026         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
105027         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
105028         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
105029         that's all we need now.
105031 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
105033         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
105034         argp-parse.c depends on getopt internals, that means we should
105035         always use our getopt, to be on the safe side.
105036         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
105037         order not to spoil the result of an eventual previous invocation
105038         of gl_GETOPT_SUBSTITUTE.
105040 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
105042         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
105043         redefinition warnings. To avoid them, include the defines
105044         in `#if !defined __need_getopt ... #endif'. The only place
105045         where __getopt_argv_const is used is in definitions
105046         of getopt_long and getopt_long_only below, which are as well
105047         protected by `#ifndef __need_getopt'.
105048         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
105049         __need_getopt after including <stdio.h> and <unistd.h> These
105050         headers might have defined it.
105052 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
105054         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
105056 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
105058         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
105059         (futimens): New function, which uses futimes if available.
105060         (futimens, utimens): Support timespec==NULL, with same semantics
105061         as utime and utimens.
105062         * lib/utimens.h (futimens): New decl.
105064 2004-11-23  Jim Meyering  <jim@meyering.net>
105066         * lib/getopt_.h: Remove trailing blanks.
105068 2004-11-23  Jim Meyering  <jim@meyering.net>
105070         * lib/__fpending.c: Add comment.
105072 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
105074         * modules/canonicalize (Depends-on): Add xreadlink.
105075         Problem reported by James Youngman.
105077 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
105079         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
105080         New macros.
105081         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
105082         optopt): Use them instead of invoking ## directly; otherwise, the
105083         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
105085 2004-11-19  Bruno Haible  <bruno@clisp.org>
105087         * lib/strtok_r.c: Move comments from here...
105088         * lib/strtok_r.h: ... to here.
105090 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
105092         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
105093         implementations that mishandle size_t overflow.
105095 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
105097         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
105098         might fail.  Problem reported by Yoann Vandoorselaere.
105099         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
105100         implementations that mishandle size_t overflow.
105102 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
105104         * modules/canon-host (Depends-on): Add strdup.
105106 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
105108         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
105110 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
105112         * lib/canon-host.c: Include "strdup.h".
105113         (canon_host): Use getaddrinfo if available, so that IPv6 works.
105114         Use strdup instead of malloc/strcpy to duplicate strings.
105116         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
105117         (human_space_before_unit): New constant.
105118         * lib/human.c (human_readable): Support it.
105120         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
105121         (xgetcwd): Set errno correctly when failing.
105122         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
105123         the failure is actually due to a PATH_MAX problem.
105125         Further getopt changes to make it more likely that glibc will
105126         buy the changes back.
105127         * lib/getopt.c (POSIXLY_CORRECT): New constant.
105128         (getopt): Use it, so to preserve glibc semantic
105129         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
105130         when compiling for libc.
105131         * lib/getopt_.h (__getopt_argv_const): Bring it back.
105132         (getopt_long, getopt_long_only): Use it.
105134         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
105135         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
105136         (getopt): Argv is now char * const *, as per standard.
105137         (_getopt_internal_r, _getopt_internal): Argv is now char **,
105138         not char *__getopt_argv_const *.
105139         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
105140         _getopt_long_only_r): Likewise.
105141         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
105142         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
105143         _getopt_long_r, _getopt_long_only_r): Likewise.
105144         * lib/getopt_.h (__getopt_argv_const): Remove.
105145         (getopt): Argv is now char * const *, as per standard.
105147         * lib/getdate.y (tORDINAL): New token.
105148         (day, relunit): Allow it for relative times.
105149         (relative_time_table): Use tORDINAL for ordinals.
105151 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
105153         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
105154         Document that "second" isn't allowed as an ordinal number.
105156 2004-11-16  Jim Meyering  <jim@meyering.net>
105158         * modules/closeout (Depends-on): Add fpending.
105160 2004-11-15  Jim Meyering  <jim@meyering.net>
105162         * lib/closeout.c: Include "__fpending.h" once again.
105163         Include <stdbool.h>.
105164         (close_stdout): Don't fail just because stdout was closed initially,
105165         since some programs don't write to stdout in the normal course of
105166         operation (other than --version and --help), and we don't want this
105167         function to make e.g. `touch file >&-' fail.
105168         But do fail if it was closed and someone has tried to write to it.
105169         E.g., `printf foo >&-' must fail.
105171 2004-11-13  Jim Meyering  <jim@meyering.net>
105173         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
105175 2004-11-12  Simon Josefsson  <jas@extundo.com>
105177         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
105178         small doc fix is still pending.
105180 2004-11-11  Simon Josefsson  <jas@extundo.com>
105182         * modules/strtok_r: New file.
105184         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
105185         strtok_r.
105187 2004-11-11  Simon Josefsson  <jas@extundo.com>
105189         * m4/strtok_r.m4: New file.
105191         * m4/getopt.m4: Replace opterr.
105193 2004-11-11  Simon Josefsson  <jas@extundo.com>
105195         * lib/strtok_r.h, strtok_r.c: New file.
105197 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
105199         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
105200         of replacing opterr, getopt, etc.  This should handle the
105201         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
105203 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
105205         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
105206         we can stop lying to compilers about the constness of argv when we
105207         are compiled outside glibc.
105208         (getopt, getopt_long, getopt_long_only): Use it.
105209         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
105210         _getopt_internal, getopt): Likewise.
105211         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
105212         _getopt_long_only_r): Likewise.
105213         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
105214         _getopt_long_r, _getopt_long_only_r): Likewise.
105216         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
105217         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
105218         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
105219         the other external symbols.
105220         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
105221         declaration, since the above renaming now works around collisions.
105223 2004-11-11  Jim Meyering  <jim@meyering.net>
105225         * lib/linebreak.c: Remove trailing blanks.
105226         * lib/alloca_.h: Likewise.
105227         * lib/acosl.c: Likewise.
105228         * lib/euidaccess.c: Likewise.
105229         * lib/allocsa.h: Likewise.
105231 2004-11-10  Simon Josefsson  <jas@extundo.com>
105233         * m4/getaddrinfo.m4: New file.
105235 2004-11-10  Simon Josefsson  <jas@extundo.com>
105237         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
105239 2004-11-10  Simon Josefsson  <jas@extundo.com>
105241         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
105242         getaddrinfo.
105244         * modules/getaddrinfo: New file.
105246 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
105248         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
105250 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
105252         * lib/mktime.c (SHR): New macro, which is a portable
105253         substitute for >> that should work even on Crays.
105254         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
105255         Problem reported by Mark D. Baushke in
105256         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
105257         * lib/getdate.y (SHR): Likewise.
105258         (tm_diff): Use it.
105259         * lib/strftime.c (SHR): Likewise.
105260         (tm_diff): Use it.
105261         * lib/quotearg.c (struct quoting_options): Use unsigned int for
105262         quote_these_too, so that right shifts are well defined.  All uses
105263         changed.
105265 2004-11-10  Jim Meyering  <jim@meyering.net>
105267         Ensure that no close failure goes unreported.
105268         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
105269         return early when it seems there's nothing to flush.
105270         Don't include __fpending.h.
105272 2004-11-10  Jim Meyering  <jim@meyering.net>
105274         * modules/closeout (Depends-on): Remove fpending.
105276 2004-11-10  Jim Meyering  <jim@meyering.net>
105278         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
105280 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
105282         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
105283         gl_FUNC_STRFTIME.
105284         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
105285         and AC_REQUIRE when possible, to avoid duplicate checks.
105286         Check for <wchar.h>.
105288 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
105290         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
105292 2004-11-09  Bruno Haible  <bruno@clisp.org>
105294         * m4/sockpfaf.m4: New file.
105296 2004-11-05  Bruno Haible  <bruno@clisp.org>
105298         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
105299         Reported by Mark D. Baushke <mdb@cvshome.org>.
105301 2004-11-04  Bruno Haible  <bruno@clisp.org>
105303         2004-09-11  Bruno Haible  <bruno@clisp.org>
105304                 * allocsa.valgrind: New file.
105305         2004-02-06  Bruno Haible  <bruno@clisp.org>
105306                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
105307                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
105308                 Reported by Christopher Seip <chris.seip@hp.com>.
105310 2004-11-04  Bruno Haible  <bruno@clisp.org>
105312         * modules/allocsa (Files): Add lib/allocsa.valgrind.
105313         (Makefile.am): Distribute it.
105315 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
105317         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
105318         with errno == ERANGE if the buffer is too small.
105319         Problem reported by Mark D. Baushke.
105321 2004-11-03  Albert Chin  <china@thewrittenword.com>
105322             Paul Eggert  <eggert@cs.ucla.edu>
105324         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
105325         equivalent, substitute $ac_type for equivalent type rather than
105326         blindly using uint32_t *always* which won't work if uint32_t is not
105327         available.  Define _UINT32_T to work around typedef of uint32_t if
105328         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
105329         2.5.1.
105331 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
105333         * m4/jm-macros.m4: Sync from coreutils.
105334         (gl_MACROS): Check for mbrlen, for pathchk.
105335         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
105337 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
105339         * lib/xreadlink.c (MAXSIZE): New macro.
105340         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
105341         size does not exceed MAXSIZE.  Avoid cast.
105342         As suggested by Mark D. Baushke in
105343         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
105344         if readlink fails with buffer size just under MAXSIZE, try again
105345         with MAXSIZE.
105347 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
105349         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
105351 2004-11-02  Derek R. Price  <derek@ximbiot.com>
105352         and  Paul Eggert  <eggert@cs.ucla.edu>
105354         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
105355         (get_date): Overparenthesize to avoid GCC warning.
105357 2004-11-02  Bruno Haible  <bruno@clisp.org>
105359         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
105360         returns void.
105362 2004-11-02  Bruno Haible  <bruno@clisp.org>
105364         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
105365         function returns void.
105367 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
105369         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
105370         fflush_unlocked, flockfile, funlockfile, funlockfile,
105371         fputs_unlocked, putc_unlocked.
105373 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
105375         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
105376         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
105377         already declared.
105379 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
105381         * modules/getdate (Files): Add doc/getdate.texi.
105382         (Depends-on): Add setenv, xalloc.
105384 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
105386         * lib/getdate.y: Add support for TZ="foo" within a date string.
105387         Fix some bugs near time_t boundaries.  Reject dates with
105388         out-of-range components, e.g., "Sept 31".
105389         Include <stdlib.h>, "setenv.h", "xalloc.h".
105390         (ISDIGIT_LOCALE): Remove; unused.
105391         Note that the TZ and time functions used here are not reentrant.
105392         (mktime_ok, get_tz): New functions.
105393         (TZBUFSIZE): New constant.
105394         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
105395         This requires that we sometimes generate our own TZ="XXX..." setting.
105397 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
105399         * doc/getdate.texi: New file, from coreutils with modifications for
105400         the new TZ parsing.
105402 2004-10-27  Derek R. Price  <derek@ximbiot.com>
105404         * lib/mktime.c (not_equal_tm): Remove redundant check.
105406 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
105408         * modules/regex (lib_SOURCES): Add regex.c.
105409         Reported by James Youngman in
105410         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
105412 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
105414         * lib/getdate.y: Use Bison 1.875 features, and some minor
105415         code cleanups.  This change does not affect semantics.
105416         Don't include <stdlib.h>; no longer needed.
105417         Don't include unlocked-io.h; only the "#if TEST" code uses
105418         stdio, and performance isn't crucial there.
105419         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
105420         Bison 1.875 features as described below.
105421         All uses of "PC." replaced by "pc->".
105422         (YYSTYPE): Add a forward declaration.
105423         (yylex, yyerror): Use full prototypes in forward decls.
105424         Use "%pure-parser" rather than obsolescent "%pure_parser".
105425         Use %parse-param and %lex-param instead of obsolescent
105426         YYPARSE_PARAM and YYLEX_PARAM.
105427         (meridian_table, month_and_day_table, time_units_table,
105428         relative_time_table, time_zone_table, military_table,
105429         lookup_zone, lookup_word, get_date):
105430         Use NULL instead of 0 where appropriate.
105431         (to_hour): Avoid abort (), to avoid a dependency on
105432         stdlib.h.
105433         (yyerror, yylex): Now accepts parser_control * arg.
105434         (main) [TEST]: Use '\0' rather than 0 for char.
105436 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
105438         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
105440 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
105442         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
105443         It's now the caller's responsibility to handle the case where
105444         !HAVE_GETPAGESIZE && !defined getpagesize.
105446         * lib/mktime.c (leapyear): Arg is long int, not int.
105448 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
105450         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
105452 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
105454         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
105455         missing.  Problem reported by James Youngman.
105457 2004-10-16  Simon Josefsson  <jas@extundo.com>
105459         * gnulib-tool: Fix comments.  Fix parse problem.
105460         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
105462 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
105464         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
105465         implementation of getopt_long.  Problem reported by Alexander Taler in:
105466         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
105468 2004-10-15  Bruno Haible  <bruno@clisp.org>
105470         * gnulib-tool: Untabify. Initialize supplied_libname.
105471         (func_usage): More homogenous output.
105472         (func_modules_transitive_closure, func_modules_to_filelist,
105473         func_emit_lib_Makefile_am): New functions.
105474         (func_import): New function, extracted from big case statement. Use
105475         func_get_license, func_modules_transitive_closure,
105476         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
105477         opt_lgpl. Don't use test -a, as it's not portable.
105478         (func_create_testdir): Use func_modules_transitive_closure,
105479         func_modules_to_filelist, func_emit_lib_Makefile_am.
105481 2004-10-15  Bruno Haible  <bruno@clisp.org>
105483         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
105485 2004-10-15  Bruno Haible  <bruno@clisp.org>
105487         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
105488         the portions belonging to each module.
105489         Suggested by Derek Robert Price <derek@ximbiot.com>.
105491 2004-10-12  Simon Josefsson  <jas@extundo.com>
105493         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
105494         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
105495         to real functions.
105497 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
105499         * modules/vsnprintf: New file.
105501 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
105503         * m4/vsnprintf.m4: New file.
105505 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
105507         * lib/vsnprintf.h: New file.
105508         * lib/vsnprintf.c: New file.
105510 2004-10-11  Bruno Haible  <bruno@clisp.org>
105512         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
105513         vsnprintf.
105515 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
105517         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
105519 2004-10-07  Bruno Haible  <bruno@clisp.org>
105521         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
105522         fits into the provided buffer.
105524 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
105526         * lib/diacrit.c, diacrit.h: Add GPL notice.
105528         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
105529         notice.
105530         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
105531         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
105532         This avoids a potential constant-folding bug.
105534 2004-10-05  Bruno Haible  <bruno@clisp.org>
105536         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
105537         for the declaration of strsep.
105539 2004-10-05  Bruno Haible  <bruno@clisp.org>
105541         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
105543 2004-10-04  Simon Josefsson  <jas@extundo.com>
105545         * modules/memmem: New file.
105546         * tests/test-memmem.c: New file.
105547         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
105549 2004-10-04  Simon Josefsson  <jas@extundo.com>
105551         * m4/memmem.m4: New file.
105553 2004-10-04  Simon Josefsson  <jas@extundo.com>
105555         * lib/memmem.h: New file.
105556         * lib/memmem.c: New file, taken from glibc.
105558 2004-10-04  Simon Josefsson  <jas@extundo.com>
105560         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
105561         '#ifdef USE_UNLOCKED_IO'.
105563 2004-10-04  Simon Josefsson  <jas@extundo.com>
105565         * config/srclist.txt: Add memmem from glibc.
105567 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
105569         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
105571         * modules/argmatch, modules/argp, modules/closeout, modules/error,
105572         modules/exclude, modules/getdate, modules/getline,
105573         modules/getndelim2, modules/getpass, modules/getpass-gnu,
105574         modules/getusershell, modules/linebuffer, modules/md5,
105575         modules/mountlist, modules/posixtm, modules/readtokens,
105576         modules/readutmp, modules/regex, modules/sha1,
105577         modules/version-etc, modules/yesno:
105578         Remove dependency on unlocked-io.
105580 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
105582         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
105584         * m4/unlocked-io.m4: Add copyright notice.
105585         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
105587 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
105589         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
105590         * lib/xmalloc.c (xmemdup): Likewise.
105591         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
105592         XFREE): Remove these long-obsolescent macros.
105593         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
105594         * lib/xstrdup.c: Remove.
105596         * lib/regex.c (re_comp): Cast gettext return value to char *,
105597         Problem reported by Martin Neitzel via Mark D. Baushke.
105599 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
105601         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
105602         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
105603         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
105604         regex.c, sha1.c, version-etc.c, yesno.c:
105605         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
105606         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
105607         the includer's responsibility.
105609         Sync from coreutils.
105611         * lib/modechange.c (mode_compile): Don't decrement a pointer that
105612         points to the start of a string, as the C Standard says the
105613         resulting behavior is undefined.
105615         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
105616         simple -> simple_backups, numbered_existing ->
105617         numbered_existing_backups, numbered -> numbered_backups
105618         to avoid shadowing problems.  All uses changed.
105619         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
105620         * lib/backupfile.c (check_extension, numbered_backup):
105621         Rename locals to avoid shadowing 'basename'.
105622         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
105623         once.
105625         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
105626         * lib/.cvsignore: Add getopt.h.
105628 2004-10-04  Bruno Haible  <bruno@clisp.org>
105630         * modules/README: New file.
105631         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
105632         not a module.
105634 2004-10-02  Jim Meyering  <jim@meyering.net>
105636         * lib/dirfd.h, getpagesize.h: Add copyright notice.
105638 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
105640         * modules/strsep: New file.
105642 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
105644         * m4/strsep.m4: New file.
105646 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
105648         * lib/strsep.h: New file.
105649         * lib/strsep.c: New file.
105651 2004-10-01  Simon Josefsson  <jas@extundo.com>
105653         * lib/snprintf.c (snprintf): Handle size==0.
105655 2004-10-01  Simon Josefsson  <jas@extundo.com>
105656             Bruno Haible  <bruno@clisp.org>
105658         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
105659         (snprintf): Declare 'args'.
105661 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
105663         * lib/snprintf.c: Remove comments as to why each header is needed.
105665 2004-10-01  Bruno Haible  <bruno@clisp.org>
105667         * MODULES.html.sh: Add strsep.
105669 2004-09-30  Simon Josefsson  <jas@extundo.com>
105671         * modules/snprintf: New file.
105673 2004-09-30  Simon Josefsson  <jas@extundo.com>
105675         * m4/snprintf.m4: New file.
105677 2004-09-30  Simon Josefsson  <jas@extundo.com>
105679         * lib/snprintf.h, lib/snprintf.c: New files.
105681 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
105683         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
105684         (hol_entry_help): Never translate an empty string.
105685         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
105686         * lib/argp.h (OPTION_NO_TRANS): New option.
105688 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
105690         * modules/argp (Maintainer): Replace Simon Josefsson
105691         by Sergey Poznyakoff.
105693 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
105695         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
105696         changes merged back into glibc.
105698 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
105700         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
105702 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
105704         * lib/xvasprintf.c: Include xalloc.h.
105705         (xvasprintf): Use xalloc_die, not xmalloc_die.
105707 2004-09-29  Bruno Haible  <bruno@clisp.org>
105709         * modules/alloca-opt: New file, derived from modules/alloca.
105710         * modules/allocsa: Depend on alloca-opt instead of alloca.
105711         * modules/setenv: Likewise.
105712         * modules/vasnprintf: Likewise.
105713         * MODULES.html.sh: Add alloca-opt.
105715 2004-09-28  Simon Josefsson  <jas@extundo.com>
105717         * gnulib-tool: New parameter --lgpl, to asseert that modules are
105718         LGPL, and to replace license template from GPL to LGPL.
105720 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
105722         * modules/dummy: Change license to LGPL.
105724 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
105726         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
105728 2004-09-24  Simon Josefsson  <jas@extundo.com>
105730         * modules/minmax (License): Change from GPL to LGPL.
105732 2004-09-23  Simon Josefsson  <jas@extundo.com>
105734         * gnulib-tool (--import): Typo.
105736 2004-09-23  Simon Josefsson  <jas@extundo.com>
105738         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
105740 2004-09-22  Bruno Haible  <bruno@clisp.org>
105742         * modules/*: Add 'License' field.
105743         * gnulib-tool: Accept --extract-license option.
105744         (func_get_license): New function.
105746 2004-09-21  Bruno Haible  <bruno@clisp.org>
105748         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
105749         Reported by Simon Josefsson.
105751 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
105753         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
105754         gl_AC_TYPE_LONG_LONG.
105756 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
105758         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
105760 2004-09-18  Simon Josefsson  <jas@extundo.com>
105761         and  Paul Eggert  <eggert@cs.ucla.edu>
105763         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
105764         calls with autoreconf.  Define GL_LIB.
105766 2004-09-14  Karl Berry  <karl@gnu.org>
105768         * config/srclist.txt: unsync setenv.c, sigh.
105770 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
105772         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
105773         Problem reported by Bruno Haible in:
105774         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
105776 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
105778         * config/srclist.txt: Comment out argp-pvh.c.
105780 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
105782         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
105783         in case some system header has #define'd it.  Problem reported by
105784         Soeren D. Schulze in
105785         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
105787 2004-09-09  Karl Berry  <karl@gnu.org>
105789         * regex.[ch]: delete from the root.  These were supposed to be
105790                 synced with emacs cvs, but this has not happened for about
105791                 a year, and anyway nothing else uses emacs regex.[ch].
105792                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
105793                 lib/regex[.ch] is untouched.
105795 2004-09-09  Bruno Haible  <bruno@clisp.org>
105797         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
105799 2004-09-09  Bruno Haible  <bruno@clisp.org>
105801         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
105802         modifications.
105803         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
105805 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
105807         * modules/xvasprintf: New file.
105808         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
105810 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
105812         * lib/xvasprintf.h: New file.
105813         * lib/xvasprintf.c: New file.
105814         * lib/xasprintf.c: New file.
105816 2004-09-08  Bruno Haible  <bruno@clisp.org>
105818         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
105820 2004-09-08  Bruno Haible  <bruno@clisp.org>
105822         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
105823         length is > INT_MAX.
105824         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
105825         more.
105827 2004-09-08  Bruno Haible  <bruno@clisp.org>
105829         * lib/stdint_.h: New file, taken from GNU clisp.
105831 2004-09-08  Bruno Haible  <bruno@clisp.org>
105832             Oskar Liljeblad  <oskar@osk.mine.nu>
105834         * modules/stdint: New file.
105835         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
105837 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
105839         Import from coreutils.
105840         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
105841         strings on unbounded length.  alloca's performance benefits aren't
105842         that important here.
105843         (V_STRDUP): Remove.
105844         (parse_with_separator): New function, with most of the internals
105845         of the old parse_user_spec.  Allow user to omit both user and group,
105846         for compatibility with FreeBSD.
105847         Clone only the user name, not the entire spec.
105848         Do not set *uid, *gid unless entirely successful.
105849         Avoid memory leak in some failing cases.
105850         Fix regression for USER.GROUP reported by Dmitry V. Levin in
105851         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
105852         (parse_user_spec): Rewrite to use parse_with_separator.
105854 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
105856         * modules/userspec: Don't depend on alloca.
105858 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
105860         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
105862 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
105864         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
105865         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
105866         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
105868 2004-08-16  Simon Josefsson  <jas@extundo.com>
105870         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
105871         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
105872         Add --dry-run for --import.
105873         Let user provided command line parameters override configure.ac
105874         settings.
105876 2004-08-12  Simon Josefsson  <jas@extundo.com>
105878         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
105879         as discussed with Paul Eggert in threads rooted at
105880         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
105881         and
105882         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
105883         Before, the test was empty, and relied on ELIDE_CODE in source
105884         code.)
105885         (gl_PREREQ_GETOPT): New macro.
105886         (gl_GETOPT): Use them.
105888 2004-08-12  Simon Josefsson  <jas@extundo.com>
105890         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
105891         * lib/getopt_.h: Renamed from getopt.h.
105893 2004-08-12  Simon Josefsson  <jas@extundo.com>
105895         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
105896         Change default library name from libfoo to libgnu.
105897         Now, if you have a configure.ac that says:
105898                 gl_SOURCE_BASE(gl)
105899                 gl_M4_BASE(gl/m4)
105900                 gl_MODULES(error getopt etcetera)
105901                 gl_INIT
105902         you can import all you need by running:
105903                 ../gnulib/gnulib-tool --import
105905         * modules/getopt (Files): Rename getopt.h to getopt_.h.
105906         (Makefile.am): Rewrite, use logic from argz.
105907         (Include): Use <getopt.h> instead of "getopt.h".
105909 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
105911         * modules/argp (Files): Add m4/unlocked-io.m4.
105912         (Depends-on): Add extensions.
105914 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
105916         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
105917         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
105918         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
105919         Check for program_invocation_name, program_invocation_short_name,
105920         flockfile, funlockfile, features.h, _getopt_long_only_r.
105922 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
105924         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
105925         its complicated substitute.
105926         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
105927         and program_invocation_name.
105928         (__argp_basename) [!_LIBC]: Remove; the only use was
105929         replaced by its body.
105930         (__argp_short_program_name): Change condition from
105931         !defined __argp_short_program_name to
105932         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
105933         to match argp-namefrob.h.
105934         (__argp_failure): Don't assume strerror_r returns char *.
105935         * lib/argp-parse.c (N_): Define unconditionally.
105936         (argp_default_options): Fill out initializers with 0 to avoid
105937         gcc warnings.
105939 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
105941         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
105942         getopt1.c.
105944 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
105946         Merge from coreutils.
105948         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
105950         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
105951         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
105953 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
105955         Merge from coreutils.
105957         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
105958         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
105959         for Reliant Unix 5.43.
105961         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
105962         (union fooround): Use uintmax_t, not long int.
105963         The rest is a merge from libc:
105964         [defined _LIBC]: Include <shlib-compat.h>.
105965         (_obstack) [defined _LIBC]: Remove after 2.3.4.
105967         * lib/settime.c (settime): Recode to avoid warning with
105968         Sun Forte C 6U2.
105970         * lib/strverscmp.c: Convert to UTF-8.
105972 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
105974         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
105975         m4/uintmax_t.m4.
105977 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
105979         * modules/xalloc-die: New file.
105980         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
105982         * modules/md5 (Files): Add m4/uint32_t.m4.
105983         * modules/sha1: Renamed from modules/sha.
105984         (Files):
105985         Rename lib/sha.h to lib/sha1.h.
105986         Rename lib/sha.c to lib/sha1.c.
105987         Rename m4/sha.m4 to m4/sha1.m4.
105988         (lib_SOURCES): Likewise.
105989         (configure.ac): Rename gl_SHA to gl_SHA1.
105990         (Include): sha.h -> sha1.h.
105992 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
105994         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
105995         * m4/sha1.m4: Renamed from sha.m4.
105996         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
105998 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
106000         * lib/obstack.h (obstack_empty_p):
106001         Don't assume that chunk->contents is suitably aligned.
106002         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
106003         Likewise. Problem reported by Benno in
106004         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
106006         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
106007         readable.  This could be improved further but it'd take some work.
106009 2004-08-08  Simon Josefsson  <jas@extundo.com>
106011         * modules/xgethostname (Depends-on): Remove exit and error (not
106012         used).
106014         * modules/getpass-gnu: Add getpass.h.
106015         (Depends-on): Add stdbool.
106016         * modules/getpass: Add getpass.h.
106018 2004-08-08  Simon Josefsson  <jas@extundo.com>
106020         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
106021         Check getpass declaration.
106023 2004-08-08  Simon Josefsson  <jas@extundo.com>
106025         * lib/xgethostname.c: Don't include error.h (not used).
106027         * lib/getpass.h: Add.
106028         * lib/getpass.c: Include getpass.h first.
106030 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
106032         * lib/xalloc-die.c: New file.
106033         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
106034         All uses removed.
106035         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
106036         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
106037         xalloc-die.c.
106038         (_, N_, xalloc_die): Move to xalloc-die.c.
106039         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
106040         so that we needn't mess with xalloc_msg_memory_exhausted.
106042         * lib/sha1.h: Renamed from sha.h.
106043         (SHA1_H): Renamed from _SHA_H.
106044         (sha1_ctx): Renamed from sha_ctx.
106045         (sha1_init_ctx): Renamed from sha_init_ctx.
106046         (sha1_process_block): Renamed from sha_process_block.
106047         (sha1_process_bytes): Renamed from sha_process_bytes.
106048         (sha1_finish_ctx): Renamed from sha_finish_ctx.
106049         (sha1_read_ctx): Renamed from sha_read_ctx.
106050         (sha1_stream): Renamed from sha_stream.
106051         (sha1_buffer): Renamed from sha_buffer.
106052         * lib/sha1.c: Likewise; renamed from sha.c.
106053         Do not include <sys/types.h>.
106054         Include <stddef.h> rather than <stdlib.h>.
106056 2004-08-08  Bruno Haible  <bruno@clisp.org>
106058         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
106059         FILESYSTEM_PREFIX_LEN.
106060         * lib/progreloc.c: Likewise.
106061         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
106063 2004-08-06  Simon Josefsson  <jas@extundo.com>
106065         * modules/progname (Depends-on): Don't depend on stdbool.
106067 2004-08-06  Simon Josefsson  <jas@extundo.com>
106069         * modules/getsubopt: New file.
106070         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
106071         getsubopt.
106073 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
106075         More merge from coreutils.
106077         * m4/utimens.m4, m4/utimecmp.m4: New files.
106078         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
106079         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
106080         prereq.m4, sha.m4: Import changes from coreutils.
106082 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
106084         More merge from coreutils.
106085         * modules/raise, modules/readtokens0, modules/utimens:
106086         * modules/utimecmp, module/xnanosleep: New files.
106087         * modules/strftime: Add lib/strftime.h.
106088         Change include from <time.h> to "strftime.h".
106089         * modules/yesno: Add lib/yesno.h.
106090         * modules/backupfile: Remove lib/addext.c.
106091         * modules/euidaccess: Add stat-macros.h.
106092         * modules/canonicalize, modules/euidaccess,
106093         modules/filemode, modules/lchown, modules/makepath,
106094         modules/rmdir, modules/stat: Likewise.
106096 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
106098         Merge from tar.
106099         * lib/argp-help.c (make_hol, hol_append): Don't assume that
106100         SIZE_MAX is a valid preprocessor constant.
106101         (__argp_basename): Change from "#ifndef _LIBC"
106102         to "#ifndef __argp_short_program_name", so that
106103         we don't compile these functions for tar.
106105         More merges from coreutils.
106106         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
106107         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
106108         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
106109         * lib/addext.c: Remove; no longer needed.
106110         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
106111         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
106112         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
106113         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
106114         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
106115         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
106116         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
106117         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
106118         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
106119         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
106120         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
106121         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
106122         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
106123         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
106124         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
106125         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
106126         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
106127         Import changes from coreutils.
106129 2004-08-05  Simon Josefsson  <jas@extundo.com>
106131         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
106133 2004-08-05  Simon Josefsson  <jas@extundo.com>
106135         * m4/getsubopt.m4: New file.
106137 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
106139         Merge from coreutils.
106141         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
106142         * m4/getcwd-path-max.m4: New files.
106144         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
106145         FILESYSTEM_PREFIX_LEN ->
106146         FILE_SYSTEM_PREFIX_LEN.
106147         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
106148         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
106149         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
106150         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
106152         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
106153         prerequisite modules now handle the DOS stuff.
106154         Don't check for unistd.h.
106156 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
106158         Merge from coreutils.
106160         * lib/.gdb-history: Remove; this doesn't belong here.
106162         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
106163         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
106164         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
106165         * lib/getcwd.c: New files.
106167         * lib/dirname.h: Include <stdbool.h>.
106168         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
106169         for consistency with POSIX terminology.  All uses changed.
106170         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
106171         (strip_trailing_slashes): Use bool for booleans.
106172         * lib/stripslash.c (strip_trailing_slashes): Likewise.
106174         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
106175         sometimes returns a positive errno value even when it succeeds.
106176         (print_errno_message) [!LIBC]: Fall back on strerror if
106177         __strerror_r fails.
106179         * lib/path-concat.c (mempcpy): Don't define if a system header defines
106180         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
106181         (longest_relative_suffix): New function.
106182         (path_concat): Use it.  Assume first argument is not NULL.
106183         Port to DOS.  Omit redundant separators.
106184         Report an error instead of returning NULL.
106185         Use mempcpy instead of memcpy.
106186         (xpath_concat): Remove: not declared or used.
106188         * lib/same.h: Include <stdbool.h>
106189         (same_name): Return bool, not int.
106190         * lib/same.c (same_name): Likewise.
106191         (errno): Don't declare; we assume C89 or better now.
106193         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
106194         if not already defined.
106196         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
106197         * lib/dup-safer.c (errno): Likewise.
106199 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
106201         Merge from coreutils.
106202         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
106203         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
106204         * modules/path-concat: Don't depend on strdup.
106206 2004-08-03  Simon Josefsson  <jas@extundo.com>
106208         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
106209         * lib/progname.h: Don't include stdbool.h.
106211 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
106213         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
106214         * MODULES.html.sh (func_all_modules): Remove fatal.
106216 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
106218         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
106220 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
106222         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
106223         working.
106225 2004-08-02  Simon Josefsson  <jas@extundo.com>
106227         * lib/getsubopt.h: New file, with comments from Bruno Haible.
106228         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
106229         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
106231 2004-08-01  Simon Josefsson  <jas@extundo.com>
106233         * lib/xgetdomainname.c: Include stdlib.h, for free().
106235 2004-07-19  Bruno Haible  <bruno@clisp.org>
106237         * MODULES.html.sh (func_all_modules): Add dummy.
106239 2004-07-16  Simon Josefsson  <jas@extundo.com>
106241         * modules/dummy: New file.
106243 2004-07-16  Simon Josefsson  <jas@extundo.com>
106245         * lib/dummy.c: New file.
106247 2004-07-16  Bruno Haible  <bruno@clisp.org>
106249         * lib/backupfile.h: Add extern "C" for C++.
106250         * lib/closeout.h: Likewise.
106251         * lib/copy-file.h: Likewise.
106252         * lib/findprog.h: Likewise.
106253         * lib/full-write.h: Likewise.
106254         * lib/pathname.h: Likewise.
106255         * lib/progname.h: Likewise.
106256         * lib/stpcpy.h: Likewise.
106257         * lib/stpncpy.h: Likewise.
106258         * lib/strcase.h: Likewise.
106259         * lib/strstr.h: Likewise.
106260         * lib/xalloc.h: Likewise.
106262         * lib/mbswidth.h: Add extern "C" for C++.
106263         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
106265 2004-07-13  Robert Millan  <robertmh@gnu.org>
106267         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
106269 2004-07-09  Simon Josefsson  <jas@extundo.com>
106271         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
106272         failed without this.)
106274 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
106276         * modules/chown (Files): Add lib/fchown-stub.c, since
106277         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
106279 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
106281         * lib/fchown-stub.c: New file.
106283 2004-06-24  Jim Meyering  <jim@meyering.net>
106285         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
106287 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
106289         * modules/argz: Omit "#include".
106291         * MODULES.html.sh (func_all_modules): Add calloc, to match
106292         2004-06-01 addition of calloc module.
106294 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
106296         * m4/argz.m4: New file, which is autoupdated from libtool.
106298 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
106300         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
106301         libtool.
106303 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
106305         * config/srclist-update: Don't insist on "USA." before the
106306         close-comment, as libtool omits the period and puts the */ on a
106307         separate line.
106308         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
106309         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
106311 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
106313         * modules/argz: New file.
106314         * MODULES.html.sh (func_all_modules): Add argz.
106316 2004-06-12  Jim Meyering  <jim@meyering.net>
106317         and  Paul Eggert  <eggert@cs.ucla.edu>
106319         * modules/hash (Files): Add lib/xalloc.h.
106320         * modules/pipe (Depends-on): Add wait-process.
106321         * modules/stat (Depends-on): Add xalloc.
106322         * modules/userspec (Files): Add lib/userspec.h.
106323         * modules/xstrto
106325         Upgrade from gettext-0.13.
106326         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
106327         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
106328         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
106330 2004-06-10  Jim Meyering  <jim@meyering.net>
106332         * lib/calloc.c: New file.
106334 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
106336         * lib/getdate.y (yylex): Allow space between sign and number.
106337         Problem reported by Dan Jacobson.
106339 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
106341         Merge from coreutils CVS.
106343         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
106344         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
106345         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
106346         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
106347         xstrtol.m4: Fix copyright date and/or serial number.
106349         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
106350         See if we need an fchown replacement.
106351         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
106352         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
106353         and use the replacement function if we detect either defect.
106355         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
106356         gl_UTIMECMP.
106358 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
106359         and  Jim Meyering  <jim@meyering.net>
106361         Merge from coreutils CVS.
106363         * lib/stat-macros.h: New file, with contents from file-type.h
106364         and coreutils' system.h.
106365         * lib/file-type.c: Include "stat-macros.h".
106366         * lib/file-type.h (file_type): Move all macro definitions to new file,
106367         stat-macros.h.
106369         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
106370         Wrap old code with this conditional.
106371         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
106372         function that does not dereference symlinks.
106373         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
106375         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
106376         dependency problems.
106377         (xreadlink): Accept new arg SIZE, for efficiency.
106378         All decls and uses changed.
106379         * lib/xreadlink.h: Include <stddef.h>, for size_t.
106381         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
106382         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
106384         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
106385         sysexits.h.
106387 2004-06-01  Jim Meyering  <jim@meyering.net>
106389         * m4/calloc.m4: New file.
106391 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
106393         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
106394         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
106395         Also, fix a typo in a diagnostic.
106397 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
106399         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
106400         or AC_FUNC_REALLOC.
106402 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
106404         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
106405         macros to be defined.
106406         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
106407         the allocator returns NULL because the requested size is zero.
106409 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
106411         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
106412         var.  Add comment explaining why libc still defines it.  This
106413         merges the following patch from glibc:
106414         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
106416 2004-05-20  Andreas Schwab  <schwab@suse.de>
106418         * m4/free.m4: Replace free if it not known to work, not the other
106419         way round.
106421 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
106423         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
106424         present in glibc since revision 1.1 of this file.
106425         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
106426         obstack_alignment_mask, obstack_alloc, obstack_base,
106427         obstack_blank, obstack_blank_fast, obstack_chunk_size,
106428         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
106429         obstack_grow0, obstack_init, obstack_int_grow,
106430         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
106431         obstack_next_free, obstack_object_size, obstack_ptr_grow,
106432         obstack_ptr_grow_fast, obstack_room): Remove declarations of
106433         nonexistent functions.
106435 2004-05-18  Karl Berry  <karl@gnu.org>
106437         * config/srclist.txt: break link for vasnprintf.c.
106439 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
106441         Port obstack to the AS/400, where pointers are 16 bytes wide and
106442         you cannot cast an integer to a valid pointer.  This patch is
106443         currently waiting to be integrated into glibc; see
106444         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
106446         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
106447         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
106448         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
106449         (struct obstack): temp member is now a union of a pointer and
106450         an integer, instead of an integer.  All integer uses changed.
106451         This does not affect the physical layout of struct obstack,
106452         except on hosts (like the AS/400) where the size or alignment of
106453         void * is greater than that of ptrdiff_t.
106454         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
106455         __STDC__)]: Store temporary in pointer member of union, not
106456         integer member.
106457         * lib/obstack.c: Include <stddef.h>, for offsetof.
106458         (struct fooalign): Remove; it doesn't need a name.
106459         (union fooround): Change double to long double, and add void *.
106460         (DEFAULT_ALIGNMENT): Use offsetof to compute.
106461         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
106462         not a macro.  Hence the values are always int; so remove all
106463         casts-to-int in uses.
106465 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
106467         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
106468         we can get this patch merged into glibc.
106470 2004-05-17  Derek R. Price  <derek@ximbiot.com>
106471             Paul Eggert  <eggert@cs.ucla.edu>
106473         * m4/argp: Depend on alloca.
106475 2004-05-17  Derek R. Price  <derek@ximbiot.com>
106476             Paul Eggert  <eggert@cs.ucla.edu>
106478         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
106479         freecoding.
106481 2004-05-17  Bruno Haible  <bruno@clisp.org>
106483         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
106484         precision that consists of a '.' followed by an empty digit string.
106485         Patch by Tor Lillqvist <tml@iki.fi>.
106487 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
106489         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
106490         for backward compatibility with older code.  We need our own
106491         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
106492         it under some other name, and our alloca.h will define it.
106494 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
106495             Derek Price  <derek@ximbiot.com>
106497         * lib/alloca.c: Include <alloca.h>, to get our interface.
106498         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
106499         include <alloca.h> first.  Use C89 prototype for alloca; this
106500         requires including <stddef.h> for size_t.  Use extern "C" if C++.
106501         Use #elif for simplicity, since we can assume C89 now.
106502         Don't try to source the system alloca.h since it will not be found
106503         and to prevent recursively including its replacement.
106504         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
106505         * lib/regex.c: Likewise.
106507 2004-05-16  Derek Price  <derek@ximbiot.com>
106508             Paul Eggert  <eggert@cs.ucla.edu>
106510         getline cleanup.  This changes the getndelim2 API: both order of
106511         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
106512         no delimiter).
106514         * lib/getline.c: Don't include stddef.h or stdio.h, since our
106515         interface does that.
106516         (getline): Always use getdelim, so that we don't have two
106517         copies of this code.
106518         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
106519         if available.
106520         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
106521         (GETNDELIM2_MAXIMUM): New macro.
106522         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
106523         instead of the old practice of delim2==0.  All callers changed.
106524         Return -1 on overflow, instead of returning junk.
106525         Do not set *linesize unless allocation succeeds.
106526         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
106527         that we include sys/types.h.
106528         * lib/getnline.h: Likewise.
106529         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
106530         (getndelim2): Reorder arguments.
106531         * lib/getnline.c (getnline, getndelim):
106532         Don't discard the NMAX argument.
106533         (getnline): Invoke getndelim, to avoid code duplication.
106534         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
106535         of (size_t) -1 by callers of the getnline family.
106537 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
106539         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
106540         Check for gettimeofday.
106541         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
106542         Check for settimeofday, stime.
106544 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
106546         * lib/nanosleep.c (suspended): Change its type from int to
106547         sig_atomic_t volatile.
106548         (first_call): Make it private to rpl_nanosleep, and have it
106549         be zero initially as that's a bit faster.
106550         (my_usleep): Round up fractional times instead of truncating them,
106551         as this is the usual meaning for 'sleep'.
106553         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
106554         doesn't work.
106555         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
106556         (ENOSYS): Define if not defined.
106557         (settime): Fall back on stime if it exists and settimeofday fails.
106558         But don't bother with fallbacks if a method fails with errno == EPERM.
106560 2004-05-11  Jim Meyering  <jim@meyering.net>
106562         Prior to this change, the save_cwd caller required read access to the
106563         current directory on most systems (ones with the fchdir function).
106565         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
106566         fails, try write-only, and finally, resort to using xgetcwd.
106568 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
106570         * lib/obstack.c, obstack.h: Import changes from libc.
106572 2004-04-28  Bruno Haible  <bruno@clisp.org>
106574         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
106575         also implicitly appends .exe to executables.
106576         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
106577         accepts Windows pathnames.
106578         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
106579         Treat Cygwin like Windows, since it now accepts Windows pathnames.
106580         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
106581         Treat Cygwin like Windows, since it now accepts Windows pathnames.
106582         Reported by Derek Robert Price <derek@ximbiot.com>.
106584 2004-04-21  Karl Berry  <karl@gnu.org>
106586         * config/srclist.txt (localcharset.c): break sync.
106588 2004-04-20  Paul Eggert  <eggert@twinsun.com>
106590         * m4/host-os.m4: Add a copyright notice.
106592 2004-04-20  Jim Meyering  <jim@meyering.net>
106594         Change UTILS_ to gl_ in AC_DEFINE'd names.
106595         Change utils_- and jm_-prefixed variables, too.
106596         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
106597         UTILS_FUNC_MKDIR_TRAILING_SLASH.
106598         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
106600         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
106601         Don't emit trailing blanks.
106602         Also rename jm_-prefixed variables to have gl_ prefix.
106604         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
106605         Also rename jm_-prefixed variables to have gl_ prefix.
106607         * m4/jm-macros.m4: Reflect the renamings.
106608         * m4/prereq.m4: Likewise.
106610 2004-04-20  Jim Meyering  <jim@meyering.net>
106612         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
106613         memory.
106615 2004-04-20  Jim Meyering  <jim@meyering.net>
106616             Bruno Haible  <bruno@clisp.org>
106618         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
106619         memory when realloc fails.
106621 2004-04-19  Jim Meyering  <jim@meyering.net>
106623         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
106624         now that readutmp.c may call `free (0)'.
106626 2004-04-19  Bruno Haible  <bruno@clisp.org>
106628         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
106629         * m4/inttypes_h.m4: Likewise.
106630         * m4/stdint_h.m4: Likewise.
106631         * m4/intmax_t.m4: Likewise.
106632         * m4/uintmax_t.m4: Likewise.
106634 2004-04-18  Jim Meyering  <jim@meyering.net>
106636         * m4/prereq.m4: Don't forbid jm_ prefix.
106638         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
106639         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
106640         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
106641         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
106642         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
106643         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
106644         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
106645         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
106646         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
106647         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
106648         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
106649         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
106650         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
106651         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
106652         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
106653         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
106654         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
106655         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
106656         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
106658 2004-04-18  Jim Meyering  <jim@meyering.net>
106660         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
106661         failure, don't leak memory and do call END_UTMP_ENT.
106663 2004-04-16  Jim Meyering  <jim@meyering.net>
106665         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
106666         coreutils' stat program.
106667         (gl_PREREQ): Don't require jm_PREREQ_STAT.
106669 2004-04-11  Paul Eggert  <eggert@twinsun.com>
106671         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
106672         C89.
106673         (CHAR_BIT): Remove, since we assume C89.
106674         Include <stdint.h> if available, as per current Autoconf CVS advice.
106676 2004-03-31  Jim Meyering  <jim@meyering.net>
106678         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
106679         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
106680         * m4/xalloc.m4: Likewise.
106682 2004-03-30  Paul Eggert  <eggert@twinsun.com>
106684         Merge from coreutils.
106686         * m4/inttostr.m4: New file.
106687         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
106688         Require AM_STDBOOL_H and gl_TIMESPEC instead.
106689         Require gl_CLOCK_TIME.
106690         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
106692 2004-03-30  Paul Eggert  <eggert@twinsun.com>
106694         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
106695         not bool, to be more consistent with Unix conventions.
106696         Suggested by Bruno Haible.
106698         Merge from coreutils.
106700         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
106701         * lib/umaxtostr.c: New files.
106703         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
106704         the usual <time.h> dance.
106705         (get_date): Change signature to support fractional time stamps.
106706         All callers changed.
106707         * lib/getdate.y: Include "getdate.h" first, as we can now
106708         assume C89 and don't need to worry about 'const'.
106709         Similarly, include "unlocked-io.h" near start, not in middle.
106710         Include <limits.h>.
106711         (textint.value): Use long int rather than int.
106712         (textint.digits): Use size_t rather than int.
106713         (BILLION, LOG10_BILLION): New constants.
106714         (parser_control): New member rel_ns.  Members day_ordinal,
106715         time_zone, month, day, hour, minutes, rel_year, rel_month,
106716         rel_day, rel_hour, rel_minutes, rel_seconds
106717         are now long int, not int.  Member seconds is now struct timespec,
106718         not int.  New member timespec_seen.  Members dates_seen, days_seen,
106719         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
106720         not int.
106721         (%union.intval): Now long int, not int.
106722         New member timespec.
106723         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
106724         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
106725         (spec): Now is a timespec or an item list.
106726         (timespec, items): New nonterminals.
106727         (time, rel, relunit, number, get_date):
106728         Add support for fractional seconds.
106729         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
106730         (gmtime, localtime, mktime): Remove decls; not needed with C89.
106731         (to_hour): First arg is now long int, not int.
106732         (to_year): Returns long int, not int.
106733         Don't treat year -70 like 70.
106734         (tm_diff): Returns long int, not int.
106735         (lookup_word): Use bool instead of int when appropriate.
106736         (yylex): Use size_t for count, not int.
106737         Detect overflow when parsing large integer constants.
106738         Add support for fractions.
106739         (get_date): Make pointers 'const' if possible.
106740         Use more-portable code to detect integer overflow.
106741         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
106742         Don't use ctime; it's not reliable if the year has >4 digits.
106744         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
106745         This is for compatibility with BSD.
106747         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
106748         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
106749         From coreutils' system.h.
106751         * lib/userspec.c: Don't include "posixver.h".
106752         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
106753         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
106754         compatible extension.  Simplify code by removing a boolean int
106755         that was always nonzero if a string was nonnull.
106757 2004-03-30  Jim Meyering  <jim@meyering.net>
106759         Merge from coreutils.
106761         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
106762         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
106763         on some systems one must include <grp.h> before it.
106764         Reported by Christian Krackowizer.
106766 2004-03-30  Jim Meyering  <jim@meyering.net>
106768         Merge from coreutils.
106770         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
106772         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
106773         an empty input stream.
106775         * lib/readtokens.c: Include <stdbool.h>.
106776         (readtoken): Use `size_t' rather than int/long.
106777         All callers adjusted.
106778         Use `bool' rather than `int' where appropriate.
106779         Use memset rather than an explicit loop.
106780         Use x2nrealloc rather than xrealloc.
106781         Allow the use of `\0' as a delimiter.
106782         (readtokens): Likewise.
106783         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
106785 2004-03-30  Jim Meyering  <jim@meyering.net>
106787         * m4/realloc.m4: Remove file, since now it does no more than
106788         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
106789         the `configure.ac' section of module/realloc.
106790         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
106792 2004-03-30  Bruno Haible  <bruno@clisp.org>
106794         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
106795         nonnull.
106797 2004-03-29  Paul Eggert  <eggert@twinsun.com>
106799         Merge changes to getloadavg.c from coreutils and Emacs.
106801         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
106802         Define to an expression, not to the empty string.
106803         Include cloexec.h and xalloc.h.
106804         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
106805         Use set_cloexec_flag rather than rolling our own.
106806         * lib/cloexec.c, lib/cloexec.h: New files.
106808 2004-03-29  Paul Eggert  <eggert@twinsun.com>
106810         * m4/cloexec.m4: New file.
106812 2004-03-18  Paul Eggert  <eggert@twinsun.com>
106814         * lib/getopt.h: Sync with libc CVS.
106816 2004-03-18  Paul Eggert  <eggert@twinsun.com>
106817             Bruno Haible  <bruno@clisp.org>
106819         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
106820         mbswidth.
106822 2004-03-18  Paul Eggert  <eggert@twinsun.com>
106823             Bruno Haible  <bruno@clisp.org>
106825         * lib/mbswidth.h: Include <wchar.h> only if
106826         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
106827         <wchar.h>.
106828         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
106830 2004-03-09  Paul Eggert  <eggert@twinsun.com>
106832         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
106833         Sync with libc CVS.
106834         * lib/getopt_int.h: New file, also synced from libc.
106836 2004-03-09  Paul Eggert  <eggert@twinsun.com>
106838         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
106839         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
106840         Bring back getopt.c, getopt.h, getopt1.c.
106842 2004-03-07  Paul Eggert  <eggert@twinsun.com>
106844         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
106845         All uses changed.  Check for sa_sigaction member; this fixes
106846         a bug first reported by Jason Andrade in
106847         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
106849 2004-03-07  Paul Eggert  <eggert@twinsun.com>
106851         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
106852         '#if' expressions.  Unlike the code it replaces, it does not
106853         depend on (defined _SC_PAGESIZE).  However, it does depend on
106854         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
106855         first reported by Jason Andrade in
106856         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
106858 2004-02-25  Simon Josefsson  <jas@extundo.com>
106860         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
106862 2004-02-25  Simon Josefsson  <jas@extundo.com>
106864         * lib/strdup.h: New file.
106865         * lib/strdup.c: Include it.
106866         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
106867         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
106869 2004-02-23  Karl Berry  <karl@gnu.org>
106871         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
106872         (from fencepost.gnu.org:/gd/gnuorg).
106874 2004-02-23  Karl Berry  <karl@gnu.org>
106876         * config/srclistvars.sh (GNUORG) [karl]: redefine.
106877         * config/srclist.txt: add maintain/standards documents.
106879 2004-02-18  Bruno Haible  <bruno@clisp.org>
106881         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
106882         Reported by Derek Robert Price <derek@ximbiot.com>.
106884 2004-02-16  Karl Berry  <karl@gnu.org>
106886         * config/mkinstalldirs, install-sh: update from automake.
106888 2004-02-06  Karl Berry  <karl@gnu.org>
106890         * m4/po.m4: update from gettext 0.14.1.
106892 2004-02-06  Karl Berry  <karl@gnu.org>
106894         * lib/config.charset: update from gettext 0.14.1.
106896 2004-02-05  Paul Eggert  <eggert@twinsun.com>
106898         Add comments and code, prompted by suggestions from Bruno Haible
106899         for sh-quote.
106900         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
106901         describing the enum quoting_style values.
106902         * lib/quotearg.c (quotearg_alloc): New function.
106903         (quotearg_buffer_restyled): Treat lone { and } as special.
106904         Treat = as special.  Work around bug with older shells
106905         that "see" a '\' that is really the 2nd byte of a multibyte char.
106906         Quote empty string with shell_quoting_style.
106908 2004-02-03  Bruno Haible  <bruno@clisp.org>
106910         * m4/pipe.m4: New file, from GNU gettext.
106912 2004-02-03  Bruno Haible  <bruno@clisp.org>
106914         * lib/pipe.h: New file, from GNU gettext.
106915         * lib/pipe.c: New file, from GNU gettext.
106917 2004-01-27  Bruno Haible  <bruno@clisp.org>
106919         * m4/execute.m4: New file, from GNU gettext.
106921 2004-01-27  Bruno Haible  <bruno@clisp.org>
106923         * lib/execute.h: New file, from GNU gettext.
106924         * lib/execute.c: New file, from GNU gettext.
106925         * lib/w32spawn.h: New file, from GNU gettext.
106927 2004-01-24  Paul Eggert  <eggert@twinsun.com>
106929         Merge from diffutils.
106931         * lib/file-type.c (file_type): Add typed memory objects.
106932         * lib/file-type.h (S_TYPEISTMO): New macro.
106934         * lib/c-stack.h (c_stack_action): Remove argv argument.
106935         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
106936         (die): Don't calculate message unless segv_action returns.
106937         (get_stack_location, min_address_from_argv, max_address_from_argv,
106938         volatile stack_base, volatile_stack_size): Remove.
106939         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
106940         that every segmentation violation is a stack overflow.  (Ouch!)
106941         See Debian bug 136249 (still outstanding) for more info about why
106942         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
106944 2004-01-24  Paul Eggert  <eggert@twinsun.com>
106946         Exit-status fix from coreutils.
106948         Use exit_failure consistently in place of EXIT_FAILURE,
106949         so that program exit statuses are consistent on failure.
106951         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
106952         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
106953         * lib/argmatch.h: Comment fix to match the above.
106954         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
106955         Now a macro referring to exit_failure, instead of a separate
106956         variable.  Include "exitfail.h" to get it.
106957         * lib/xstrtol.h: Include "exitfail.h".
106958         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
106960         * lib/long-options.c (parse_long_options): Use prototype
106961         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
106962         for clarity.
106964 2004-01-21  Jim Meyering  <jim@meyering.net>
106966         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
106967         so as not to conflict with a different-sized __mktime_internal
106968         function in GNU libc.
106969         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
106970         Problem building statically-linked `ls' reported by Michael Brunnbauer.
106972 2004-01-20  Karl Berry  <karl@gnu.org>
106974         * config/config.guess: update from config.
106976         * config/srclistvars.sh: GNUWWWLICENSES for karl.
106978 2004-01-20  Bruno Haible  <bruno@clisp.org>
106980         Safer stack allocation.
106981         * lib/setenv.c: Include allocsa.h.
106982         (alloca): Remove fallback definition.
106983         (freea): Remove macro.
106984         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
106985         instead of freea.
106987 2004-01-20  Bruno Haible  <bruno@clisp.org>
106989         * m4/eealloc.m4: New file, from GNU gettext.
106991 2004-01-20  Bruno Haible  <bruno@clisp.org>
106993         * m4/allocsa.m4: New file, from GNU gettext.
106995 2004-01-20  Bruno Haible  <bruno@clisp.org>
106997         * lib/xallocsa.h: New file, from GNU gettext.
106998         * lib/xallocsa.c: New file, from GNU gettext.
107000 2004-01-20  Bruno Haible  <bruno@clisp.org>
107002         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
107004 2004-01-20  Bruno Haible  <bruno@clisp.org>
107006         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
107007         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
107008         specially.
107010 2004-01-20  Bruno Haible  <bruno@clisp.org>
107012         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
107013         patch.
107015 2004-01-20  Bruno Haible  <bruno@clisp.org>
107017         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
107019 2004-01-20  Bruno Haible  <bruno@clisp.org>
107021         * lib/eealloc.h: New file.
107023 2004-01-20  Bruno Haible  <bruno@clisp.org>
107025         * lib/binary-io.h: Avoid warnings on Cygwin.
107027 2004-01-20  Bruno Haible  <bruno@clisp.org>
107029         * lib/allocsa.h: New file, from GNU gettext.
107030         * lib/allocsa.c: New file, from GNU gettext.
107032 2004-01-18  Karl Berry  <karl@gnu.org>
107034         * doc/gpl.texi, doc/lgpl.texi: new files.
107036 2004-01-18  Karl Berry  <karl@gnu.org>
107038         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
107039         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
107041 2004-01-15  Paul Eggert  <eggert@twinsun.com>
107043         Merge from coreutils.
107045         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
107046         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
107047         (gl_DEFAULT_POSIX2_VERSION): Move
107048         the documentation from 'configure' into 'config.hin',
107049         so that 'configure --help' isn't burdened by it and
107050         we don't have to worry about its formatting there.
107051         Reword the documentation so that it's more succinct
107052         and can be run together into a single paragraph.
107053         * m4/same.m4 (gl_SAME): Check for pathconf.
107055 2004-01-15  Paul Eggert  <eggert@twinsun.com>
107057         Merge from coreutils.
107059         * lib/posixver.c: Include posixver.h.
107061         * lib/same.c: Include <stdbool.h>, <limits.h>.
107062         (_POSIX_NAME_MAX): Define if not defined.
107063         (MIN): New macro.
107064         (same_name): If file names are silently truncated, report
107065         that the file names are the same if they are the same after
107066         the silent truncation.
107068         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
107069         conversion function.
107070         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
107071         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
107072         longer needed.
107074 2004-01-15  Jim Meyering  <jim@meyering.net>
107076         Merge from coreutils.
107078         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
107079         if no library is required.
107080         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
107081         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
107082         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
107083         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
107084         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
107085         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
107086         value, $ac_cv_search_crypt, if it's "none required".
107087         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
107088         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
107089         not gl_FUNC_GETLOADAVG.
107090         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
107091         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
107093 2004-01-15  Jim Meyering  <jim@meyering.net>
107095         Merge from coreutils.
107097         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
107098         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
107099         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
107101         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
107102         optional configure-time default.
107104         * lib/version-etc.c (version_etc_copyright): Update copyright date.
107106         * lib/xreadlink.c (xreadlink): Correct outdated comment.
107108 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
107110         Merge from coreutils.
107112         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
107113         value, $ac_cv_search_nanosleep, if it's "none required".
107115 2004-01-14  Paul Eggert  <eggert@twinsun.com>
107117         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
107118         with like-named macro in fnmatch.c.
107119         (EXT): Use an internal constant instead.
107121         Merge fnmatch patches from glibc.
107122         * lib/fnmatch.c (mbsinit): Remove define.
107123         Add libc_hidden_ver (__fnmatch, fnmatch).
107124         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
107125         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
107127 2004-01-14  Karl Berry  <karl@gnu.org>
107129         * config/install-sh: update from automake.
107131 2004-01-13  Karl Berry  <karl@gnu.org>
107133         * config/install-sh: update from automake.
107135 2004-01-09  Karl Berry  <karl@gnu.org>
107137         * config/install-sh: update from automake.
107139 2004-01-05  Karl Berry  <karl@gnu.org>
107141         * config/config.{sub,guess}: update from config.
107143 2003-12-31  Karl Berry  <karl@gnu.org>
107145         * config/depcomp: update from automake.
107147 2003-12-14  Karl Berry  <karl@gnu.org>
107149         * lib/config.charset: update from gettext-runtime.
107151 2003-12-03  Paul Eggert  <eggert@twinsun.com>
107153         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
107154         Bug reported by Alfred M. Szmidt.
107156 2003-12-03  Bruno Haible  <bruno@clisp.org>
107158         * m4/gettext.m4: Upgrade from gettext-0.13.
107159         * m4/po.m4: Upgrade from gettext-0.13.
107160         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
107161         * m4/intmax.m4: New file, from gettext-0.13.
107162         * m4/printf-posix.m4: New file, from gettext-0.13.
107164 2003-11-29  Karl Berry  <karl@gnu.org>
107166         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
107168 2003-11-25  Paul Eggert  <eggert@twinsun.com>
107169             Bruno Haible  <bruno@clisp.org>
107171         * lib/printf-parse.h: Don't include sys/types.h.
107172         (ARG_NONE): New macro.
107173         (char_directive): Change type of *arg_index fields to size_t.
107174         * lib/printf-parse.c: Don't include sys/types.h.
107175         (SSIZE_MAX): Remove macro.
107176         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
107177         Remove unnecessary overflow check.
107178         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
107179         fields.
107181 2003-11-25  Bruno Haible  <bruno@clisp.org>
107183         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
107185 2003-11-25  Bruno Haible  <bruno@clisp.org>
107187         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
107188         gt_TYPE_SSIZE_T.
107190 2003-11-24  Paul Eggert  <eggert@twinsun.com>
107192         * modules/alloca: Remove dependency on xalloc.
107194 2003-11-24  Paul Eggert  <eggert@twinsun.com>
107196         * lib/alloca.c: Remove dependency on xalloc module.
107197         (xalloc_die): Remove.
107198         (memory_full) [!defined emacs]: New macro.
107199         [!defined emacs]: Don't include xalloc.h.
107200         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
107201         address arithmetic overflows.  Change datatypes a bit to avoid
107202         unnecessary casts.
107204 2003-11-22  Jim Meyering  <jim@meyering.net>
107206         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
107207         s/size/size_t/.
107209 2003-11-21  Karl Berry  <karl@gnu.org>
107211         * config/config.{sub,guess}: update from config.
107213 2003-11-18  Karl Berry  <karl@gnu.org>
107215         * config/config.{sub,guess}: update from config.
107217         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
107219 2003-11-17  Paul Eggert  <eggert@twinsun.com>
107221         * README: Mention that S+T cannot overflow if S is the size of
107222         an existing object and T is sufficiently small.
107224 2003-11-17  Jim Meyering  <jim@meyering.net>
107226         On systems without utime and without a utimes function capable of
107227         dealing with a NULL struct utimbuf* argument, this utime replacement
107228         could -- in unusual circumstances -- leak a file descriptor.
107229         * lib/utime.c: Include <unistd.h> and <errno.h>.
107230         (utime_null): Be sure to close `fd' and to preserve errno.
107231         Reported by Geoff Collyer via Arnold Robbins.
107233 2003-11-17  Bruno Haible  <bruno@clisp.org>
107235         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
107236         (Depends-on): Add xsize.
107238 2003-11-17  Bruno Haible  <bruno@clisp.org>
107240         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
107242 2003-11-17  Bruno Haible  <bruno@clisp.org>
107244         * lib/vasnprintf.c (alloca): Remove fallback definition.
107245         (freea): Remove definition.
107246         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
107247         Reported by Paul Eggert.
107249 2003-11-16  Paul Eggert  <eggert@twinsun.com>
107250             Bruno Haible  <bruno@clisp.org>
107252         Protect against address arithmetic overflow.
107253         * lib/printf-args.h: Include stddef.h.
107254         (arguments): Change type of field 'count' to size_t.
107255         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
107256         'unsigned int' where appropriate.
107257         * lib/printf-parse.h: Include sys/types.h.
107258         (char_directive): Change type of *arg_index fields to ssize_t.
107259         (char_directives): Change type of fields 'count', max_*_length to
107260         size_t.
107261         * lib/printf-parse.c: Include sys/types.h and xsize.h.
107262         (SSIZE_MAX): Define fallback value.
107263         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
107264         instead of 'int' where appropriate. Check a_allocated, d_allocated
107265         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
107266         * lib/vasnprintf.c: Include xsize.h.
107267         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
107268         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
107269         overflow. Avoid wraparound when converting a width or precision from
107270         decimal to binary.
107272 2003-11-16  Bruno Haible  <bruno@clisp.org>
107274         Update from GNU gettext.
107275         * lib/printf-parse.c: Generalize to it can be compiled for wide
107276         strings.
107277         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
107278         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
107279         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
107280         SNPRINTF): New macros.
107281         Don't include <alloca.h> if the file is used inside libintl.
107282         (local_wcslen): New function, for Solaris 2.5.1.
107283         (VASNPRINTF): Use it instead of wcslen.
107285 2003-11-16  Bruno Haible  <bruno@clisp.org>
107287         * lib/xsize.h (xmax): New function.
107288         (xsum, xsum3, xsum4): Declare as "pure" functions.
107290 2003-11-12  Paul Eggert  <eggert@twinsun.com>
107292         * modules/xalloc (Files): Undo latest change, since xalloc.h
107293         no longer needs SIZE_MAX or PTRDIFF_MAX.
107295 2003-11-12  Paul Eggert  <eggert@twinsun.com>
107297         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
107298         gl_PTRDIFF_MAX.
107300 2003-11-12  Paul Eggert  <eggert@twinsun.com>
107302         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
107303         "return", to pacify some unknown compiler.  Problem reported
107304         by Joerg Schilling.
107306 2003-11-12  Paul Eggert  <eggert@twinsun.com>
107308         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
107309         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
107310         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
107311         heuristic is just as accurate as far as we know, and it removes a
107312         dependency on size_max.m4 and ptrdiff_max.m4.
107314 2003-11-11  Bruno Haible  <bruno@clisp.org>
107316         * modules/xsize (Files): Add m4/size_max.m4.
107317         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
107319 2003-11-11  Bruno Haible  <bruno@clisp.org>
107321         * m4/size_max.m4: New file.
107322         * m4/ptrdiff_max.m4: New file.
107323         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
107324         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
107325         (gl_XALLOC): Invoke it.
107327 2003-11-11  Bruno Haible  <bruno@clisp.org>
107329         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
107330         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
107331         defined.
107333 2003-11-10  Paul Eggert  <eggert@twinsun.com>
107335         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
107336         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
107337         rejected some allocations of exactly SIZE_MAX - 2 bytes.
107338         From Bruno Haible.
107339         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
107340         not (size_t) -1, since it's defined here.
107342 2003-11-09  Karl Berry  <karl@gnu.org>
107344         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
107346 2003-11-06  Paul Eggert  <eggert@twinsun.com>
107348         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
107349         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
107350         Reject sizes of exactly SIZE_MAX bytes.
107351         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
107352         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
107354 2003-11-05  Bruno Haible  <bruno@clisp.org>
107356         * lib/xsize.h: Include limits.h, to avoid a possible collision with
107357         SIZE_MAX defined in <limits.h> on Solaris.
107359 2003-11-04  Jim Meyering  <jim@meyering.net>
107361         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
107362         variable names, rather than @VAR@.
107363         * modules/poll: Likewise.
107365 2003-11-04  Bruno Haible  <bruno@clisp.org>
107367         * modules/xsize: New file.
107368         * modules/linebreak: Depend on xsize.
107369         * MODULES.html.sh (func_all_modules): Add xsize.
107371 2003-11-04  Bruno Haible  <bruno@clisp.org>
107373         * m4/xsize.m4: New file.
107375 2003-11-04  Bruno Haible  <bruno@clisp.org>
107377         * lib/xsize.h: New file.
107378         * lib/linebreak.c: Include xsize.h.
107379         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
107380         argument for overflow.
107381         Suggested by Paul Eggert.
107383 2003-11-03  Karl Berry  <karl@gnu.org>
107385         * config/config.{guess,sub}: update from config.
107387 2003-11-03  Jim Meyering  <jim@meyering.net>
107389         * modules/userspec (lib_SOURCES): Add userspec.h.
107390         (Include): Add "userspec.h".
107391         Improve description.
107393 2003-11-03  Jim Meyering  <jim@meyering.net>
107395         * lib/userspec.c: Include "userspec.h".
107396         * lib/userspec.h: New file.
107398 2003-11-03  Bruno Haible  <bruno@clisp.org>
107400         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
107402 2003-11-03  Bruno Haible  <bruno@clisp.org>
107404         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
107405         available, to avoid (extremely rare) race condition.
107406         Suggested by Paul Eggert.
107408 2003-11-02  Karl Berry  <karl@gnu.org>
107410         * config/srclist.txt (vasprintf.c): sync broken, sigh.
107412 2003-10-31  Paul Eggert  <eggert@twinsun.com>
107414         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
107415         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
107416         (read_filesystem_list): Set and use me_type_malloced.
107417         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
107418         whatever the type happens to be), for brevity and consistency.
107419         Check for size calculation overflow on Alphas running OSF/1.
107421 2003-10-31  Jim Meyering  <jim@meyering.net>
107423         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
107425         * lib/linebuffer.c: Include <string.h> for declaration of memset.
107427 2003-10-30  Paul Eggert  <eggert@twinsun.com>
107428             Bruno Haible  <bruno@clisp.org>
107430         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
107431         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
107433 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
107435         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
107436         netbsd*-gnu*.  Suggested by Robert Millan.
107438 2003-10-29  Paul Eggert  <eggert@twinsun.com>
107440         * modules/group-member: Depend on stdbool.
107442 2003-10-29  Paul Eggert  <eggert@twinsun.com>
107444         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
107446 2003-10-29  Paul Eggert  <eggert@twinsun.com>
107448         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
107449         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
107450         after the 'gnu' in these cases.  This fixes some bugs in the
107451         previous change, and is based on suggestions by Robert Millan.
107453 2003-10-29  Paul Eggert  <eggert@twinsun.com>
107455         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
107456         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
107457         no longer needed.
107458         * lib/quotearg.c (quotearg_n_options): Use it.
107459         * lib/group-member.c: Include <stdbool.h>.
107460         (free_group_info): Arg is now const *; don't free arg.
107461         (get_group_info): Now returns bool and accepts struct group_info *,
107462         rather than returning a malloc'ed struct group_info *.
107463         All uses changed.  Check for overflow in internal size calculation.
107465         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
107466         rather than xmalloc/xrealloc.
107467         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
107468         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
107469         conformance bug: the old code used a pointer after freeing the
107470         storage that it addressed.
107471         * lib/hash.c (hash_initialize): Simplify the code by using
107472         xalloc_oversized rather than doing it by hand.
107473         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
107474         the buffer preserved.  Use free and xmalloc instead.
107475         * lib/quotearg.c (quotearg_n_options): Likewise.
107476         Use a simpler test for size overflow.  Don't use xalloc_oversized
107477         because unsigned int might be wider than size_t (!); this suggests
107478         that we should switch from unsigned int to size_t for slot numbers.
107480 2003-10-28  Paul Eggert  <eggert@twinsun.com>
107482         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
107483         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
107484         NetBSD kernels.  Requested by Richard Stallman.
107486 2003-10-27  Paul Eggert  <eggert@twinsun.com>
107488         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
107489         to allocate the returned structure.  Do not allocate a subarray,
107490         as x2nrealloc will do that.
107491         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
107492         instead of xnrealloc.
107493         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
107495 2003-10-27  Bruno Haible  <bruno@clisp.org>
107497         * lib/stdbool_.h: Better support for BeOS.
107499 2003-10-26  Paul Eggert  <eggert@twinsun.com>
107501         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
107502         now uses inline.
107504 2003-10-26  Paul Eggert  <eggert@twinsun.com>
107506         * lib/xalloc.h (xalloc_oversized): New static inline function, for
107507         callers that want to do their own size-overflow checking.  Include
107508         <stdbool.h>, since xalloc_oversized returns bool.
107509         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
107510         to use xalloc_oversized.
107512         Add two functions x2realloc, x2nrealloc, for programs that grow
107513         arrays dynamically by doubling their sizes.
107514         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
107515         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
107516         New functions.
107518         Port to C99 semantics for 'inline' of external functions.
107519         Bug reported by Bruno Haible.
107520         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
107521         with the old contents of xnmalloc.
107522         (xnmalloc, xmalloc): Use it.
107523         (xnrealloc_inline): New static inline function,
107524         with the old contents of xnrealloc.
107525         (xnrealloc, xrealloc): Use it.
107527         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
107528         that.
107530 2003-10-26  Karl Berry  <karl@gnu.org>
107532         * config/srclist.txt (COPYING.DOC): no longer available from
107533         /gd/gnuorg; don't know where the ultimate source is.
107535 2003-10-25  Paul Eggert  <eggert@twinsun.com>
107537         Fix several address-calculation bugs in the hash modules,
107538         plus some minor code cleanup.
107540         * lib/hash.h: Include <stdbool.h>, for bool.
107541         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
107542         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
107543         hash_get_n_entries, hash_get_max_bucket_length,
107544         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
107545         hash_rehash): Use size_t rather than unsigned.
107546         * lib/hash.c (struct hash_table, hash_get_n_buckets,
107547         hash_get_n_buckets_used, hash_get_n_entries,
107548         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
107549         hash_get_entries, hash_do_for_each, hash_string, is_prime,
107550         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
107551         Likewise.
107552         (SIZE_MAX): Define if not defined.
107553         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
107554         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
107555         hash_print):
107556         Use const * when possible.
107557         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
107558         (check_tuning): Fix bug: if tuning parameters were very close to
107559         0 or 1, rounding errors could have caused subscript violations.
107560         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
107561         (hash_initialize): Add 'fail:' label
107562         to free table and return NULL, and use it to simplify code.
107563         Use calloc rather than clearing the storage ourself.
107564         (hash_initialize, hash_rehash): Check for arithmetic overflow in
107565         buffer size calculations.
107566         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
107567         Include <stddef.h>, for size_t.
107568         * lib/hash-pjw.c (hash_pjw): Likewise.
107569         Switch to method described by Bruno Haible.
107570         Include <limits.h>, for CHAR_BIT.
107571         (SIZE_BITS): New macro.
107573 2003-10-23  Paul Eggert  <eggert@twinsun.com>
107575         * m4/getline.m4 (AM_FUNC_GETLINE):
107576         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
107577         hosts.  Problem reported by Derek Robert Price in
107578         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
107579         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
107580         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
107582 2003-10-21  Paul Eggert  <eggert@twinsun.com>
107584         * lib/getndelim2.c (getndelim2): When size calculation overflows,
107585         ceiling the allocation at NMAX bytes rather than silently
107586         discarding input bytes before NMAX is reached.  This makes
107587         a difference only if NMAX exceeds SIZE_MAX / 2.
107589         * lib/obstack.c: Merge from glibc.
107590         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
107591         Add libc_hidden_def (_obstack_newchunk).
107592         (_obstack_free) [! defined _LIBC]: Remove.
107593         [defined _LIBC]: Make a strong alias from obstack_free, rather than
107594         a clone of the function body.
107595         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
107596         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
107598         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
107599         glibc.
107600         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
107601         arg to memcpy.
107603         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
107604         (obstack_ptr_grow_fast, obstack_int_grow_fast):
107605         Don't use lvalue casts, as GCC plans to remove support for them
107606         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
107607         was also present in the non-GCC version, indicating that this
107608         code had always been buggy and had never been widely used.
107609         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
107610         Use the fast variant of each macro, rather than copying the
107611         definiens of the fast variant; that way, we'll be more likely to
107612         catch future bugs in the fast variants.
107614 2003-10-20  Bruno Haible  <bruno@clisp.org>
107616         * modules/wait-process: New file.
107617         * MODULES.html.sh (func_all_modules): Add wait-process.
107619 2003-10-20  Bruno Haible  <bruno@clisp.org>
107621         * m4/wait-process.m4: New file.
107623 2003-10-20  Bruno Haible  <bruno@clisp.org>
107625         * lib/wait-process.h: New file, from GNU gettext.
107626         * lib/wait-process.c: New file, from GNU gettext.
107628 2003-10-19  Jim Meyering  <jim@meyering.net>
107630         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
107631         HPUX 10.20.
107633 2003-10-18  Karl Berry  <karl@gnu.org>
107635         * config/config.guess: update from config.
107637 2003-10-16  Paul Eggert  <eggert@twinsun.com>
107639         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
107640         (getgroups): First arg is int, not size_t.
107641         Don't let 'free' mangle errno.
107643 2003-10-16  Paul Eggert  <eggert@twinsun.com>
107645         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
107647 2003-10-16  Karl Berry  <karl@gnu.org>
107649         * config/config.{guess,sub}: update from config.
107651 2003-10-16  Jim Meyering  <jim@meyering.net>
107653         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
107654         memcpy.
107656 2003-10-15  Paul Eggert  <eggert@twinsun.com>
107658         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
107659         (SIZE_MAX): Remove.
107660         (new_exclude, add_exclude_file): Initial size no longer needs to
107661         be a power of 2.
107662         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
107663         our own address arithmetic overflow checking.
107665         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
107666         (fnmatch): Do not alloca more than 2000 wide characters;
107667         instead, use malloc for large buffers.
107668         Check for address arithmetic overflow, and return -1
107669         with errno set to ENOMEM in that case.
107670         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
107671         (NEW_PATTERN): Do not alloca more than 8000 bytes;
107672         instead, return -1.  Check for address arithmetic overflow.
107674 2003-10-14  Paul Eggert  <eggert@twinsun.com>
107676         Handle invalid suffixes and overflow independently, so that
107677         callers can treat them independently as needed.  Fix some bugs in
107678         suffix handling, e.g., "100k@" was not diagnosed as an invalid
107679         suffix for a human-readable blocksize.  The major caller-visible
107680         change is the addition of a new
107681         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
107682         that both overflow and suffix chars were found.
107684         * lib/human.c (humblock): Don't check separately for invalid suffix
107685         char; that is xstrtoumax's job (now that its bug is fixed).
107686         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
107687         INTMAX_MAX]: New macros.
107688         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
107689         TYPE_MAXIMUM): New macros.
107690         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
107691         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
107692         if overflow occurs, as it's what __strtol does and it's more useful
107693         in practice.
107694         (__xstrtol): If __strtol reports some error other than ERANGE,
107695         reflect it to the caller as LONGINT_INVALID.  If it reports
107696         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
107697         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
107698         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
107699         value.
107700         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
107701         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
107702         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
107703         [defined UINTMAX_MAX]: New macros.
107705 2003-10-14  Bruno Haible  <bruno@clisp.org>
107707         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
107709 2003-10-14  Bruno Haible  <bruno@clisp.org>
107711         * m4/sig_atomic_t: New file, from GNU gettext.
107712         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
107714 2003-10-14  Bruno Haible  <bruno@clisp.org>
107716         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
107717         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
107718         Also use volatile where needed.
107720 2003-10-12  Paul Eggert  <eggert@twinsun.com>
107722         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
107723         Change maintainer from Bruno Haible to 'all'.
107725 2003-10-12  Paul Eggert  <eggert@twinsun.com>
107727         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
107729 2003-10-12  Paul Eggert  <eggert@twinsun.com>
107731         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
107732         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
107733         and define in terms of the other primitives.
107734         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
107735         (SIZE_MAX): Define if not already defined.
107736         (array_size_overflow): New function.
107737         (xalloc_die): Abort instead of exiting if 'error' returns.
107738         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
107739         (xmalloc, xrealloc): Use them.
107740         (xcalloc): Check for address arithmetic overflow.
107741         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
107742         a bit faster than strcpy.
107744 2003-10-10  Simon Josefsson  <jas@extundo.com>
107746         * modules/argp (Depends-on): Add restrict and strcase.
107748 2003-10-10  Simon Josefsson  <jas@extundo.com>
107750         * m4/argp.m4: Add AC_C_INLINE.
107752 2003-10-08  Paul Eggert  <eggert@twinsun.com>
107754         Merge getpass from libc, plus a few fixes.
107756         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
107757         Include <stdbool.h>.
107758         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
107759         __fsetlocking to empty.
107760         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
107761         do include <bits/libc-lock.h>.
107762         Do not include <fcntl.h>; not needed.
107763         [_LIBC]: Include <wchar.h>.
107764         (NOTCANCEL_MODE): New macro.
107765         (flockfile, funlockfile) [_LIBC]: New macros.
107766         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
107767         [!_LIBC]: New macros.
107768         (call_fclose): New function.
107769         (getpass): Use it.  Save tty stream separately; this simplifies the
107770         code and makes it more reliable if stdin happens to equal stdout.
107771         Invoke __fsetlocking on tty.
107772         Handle thread cancellation if needed.
107773         Namespace cleanup (use __tcgetattr, __getline).
107774         Use bool for Booleans.
107775         [USE_IN_LIBIO]: Handle wide streams.
107776         [!_LIBC]: Unconditionally do the fseek, since we don't know what
107777         stream might go where.
107779         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
107780         doesn't have to include <stdio.h> before us.
107781         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
107782         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
107783         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
107784         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
107785         if not declared, so that we can use getpass.c code from libc without
107786         rewriting it.
107787         (flockfile, ftrylockfile, funlockfile): New macros.
107789 2003-10-08  Paul Eggert  <eggert@twinsun.com>
107791         * modules/getpass: Depend on stdbool.
107793 2003-10-08  Paul Eggert  <eggert@twinsun.com>
107795         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
107797 2003-10-07  Karl Berry  <karl@gnu.org>
107799         * config/config.{guess,sub}: update from config.
107801 2003-10-06  Jim Meyering  <jim@meyering.net>
107802             Bruno Haible  <bruno@clisp.org>
107804         This lets translators provide better translations for the
107805         "Written by ..." part of --version output.
107806         * lib/version-etc.h: Include stdarg.h.
107807         (version_etc_copyright): Declare as readonly.
107808         (version_etc): Make this function variadic with a NULL-terminated list
107809         of author name strings.
107810         (version_etc_va): New declaration.
107811         * lib/version-etc.c: Include stdarg.h, stdlib.h.
107812         (version_etc_copyright): Declare as readonly.
107813         (version_etc_va): New function. Provide a different translatable string
107814         for each possible number of authors < 10. Abbreviate when there are 10
107815         authors or more.
107816         (version_etc): Make this function variadic. Call version_etc_va.
107817         Suggestion from Gary V. Vaughan.
107819         * lib/long-options.h (parse_long_options): Change prototype: the
107820         authors string is moved to the end and becomes variadic.
107821         * lib/long-options.c: Include stdarg.h.
107822         (parse_long_options): Make this function variadic, too.
107823         Call version_etc_va, not version_etc.
107825 2003-10-06  Bruno Haible  <bruno@clisp.org>
107827         * modules/version-etc-2: Remove file.
107828         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
107830 2003-10-06  Bruno Haible  <bruno@clisp.org>
107832         * modules/fatal-signal: New file.
107833         * MODULES.html.sh (func_all_modules): Add fatal-signal.
107835 2003-10-06  Bruno Haible  <bruno@clisp.org>
107837         * m4/fatal-signal.m4: New file.
107838         * m4/signalblocking.m4: New file, from GNU gettext.
107840 2003-10-06  Bruno Haible  <bruno@clisp.org>
107842         * lib/version-etc-2.h: Remove file.
107843         * lib/version-etc-2.c: Remove file.
107845 2003-10-06  Bruno Haible  <bruno@clisp.org>
107847         * lib/fatal-signal.h: New file, from GNU gettext.
107848         * lib/fatal-signal.c: New file, from GNU gettext.
107850 2003-10-05  Paul Eggert  <eggert@twinsun.com>
107852         * README: Rework advice for preventing empty .o files.
107853         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
107854         not <sys/types.h>.
107856 2003-10-04  Karl Berry  <karl@gnu.org>
107858         * lib/argp*: update from libc.
107860 2003-10-04  Karl Berry  <karl@gnu.org>
107862         * config/config.{guess,sub}: update from config.
107864 2003-10-02  Bruno Haible  <bruno@clisp.org>
107866         * modules/lchown (Include): Add lchown.h.
107867         * modules/time_r (Include): Use "..." syntax.
107868         * modules/xgetdomainname (Include): Add xgetdomainname.h.
107870 2003-10-01  Simon Josefsson  <jas@extundo.com>
107872         * MODULES.html.sh (func_all_modules): Move gethostname from section
107873         'based on' to section 'lacking' POSIX:2001.
107875 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
107877         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
107878         to output mode on the same stream.
107880 2003-09-29  Paul Eggert  <eggert@twinsun.com>
107882         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
107883         Fix arg typo in previous patch.
107885 2003-09-28  Jim Meyering  <jim@meyering.net>
107887         * lib/error.c: Correct cpp indentation.
107889 2003-09-27  Paul Eggert  <eggert@twinsun.com>
107891         * modules/free: New file.
107893 2003-09-27  Paul Eggert  <eggert@twinsun.com>
107895         * m4/free.m4: New file.
107897 2003-09-27  Paul Eggert  <eggert@twinsun.com>
107899         * lib/minmax.h (MIN, MAX)
107900         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
107901         Omit the special code that used __typeof__, since we worry that
107902         it could be more trouble than it's worth.  See:
107903         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
107904         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
107906         * lib/free.c: New file.
107908 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
107910         Trivial fixes to Makefile.am parts of module listings.
107911         * modules/strstr: Append strstr.h to lib_SOURCES.
107912         * modules/strcase: Likewise, for strcase.h.
107914 2003-09-27  Karl Berry  <karl@gnu.org>
107916         * config/mkinstalldirs: update from automake.
107918 2003-09-26  Paul Eggert  <eggert@twinsun.com>
107920         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
107921         (error_tail): Do not loop, reallocating temporary buffer, since
107922         the output cannot contain more wide characters than the input
107923         contains bytes, the size must be big enough already.  This avoids
107924         one potential size overflow calculation.  Check for size overflow
107925         when calculating temporary buffer size.  Free temporary buffer
107926         when done, if it was allocated with malloc; this plugs a memory
107927         leak.  Remove casts from void * to pointers, that are no longer
107928         needed now that we're assuming C89 or better.
107930         Merge error changes from glibc.
107932         * lib/error.c, error.h: Update copyright notice header to match glibc.
107933         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
107934         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
107935         Disable cancellation while printing error.
107936         * lib/error.h: Prepend __ to parameter names.
107938 2003-09-26  Jim Meyering  <jim@meyering.net>
107940         * lib/error.c (error_tail): Move some declarations
107941         into inner scope where the local variables are used.
107943 2003-09-26  Bruno Haible  <bruno@clisp.org>
107945         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
107946         stpncpy().
107947         Don't define stpncpy through config.h; it's now done through stpncpy.h.
107949 2003-09-26  Bruno Haible  <bruno@clisp.org>
107951         * lib/stpncpy.h (gnu_stpncpy): New declaration.
107952         (stpncpy): Define as alias for gnu_stpncpy.
107953         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
107955 2003-09-25  Simon Josefsson  <jas@extundo.com>
107957         * lib/xgetdomainname.h: New file.
107958         * lib/xgetdomainname.c: New file.
107960 2003-09-25  Simon Josefsson  <jas@extundo.com>
107961             Bruno Haible  <bruno@clisp.org>
107963         * modules/getdomainname: New file.
107964         * modules/xgetdomainname: New file.
107965         * MODULES.html.sh (func_all_modules): Add getdomainname,
107966         xgetdomainname.
107968 2003-09-25  Simon Josefsson  <jas@extundo.com>
107969             Bruno Haible  <bruno@clisp.org>
107971         * m4/getdomainname.m4: New file.
107973 2003-09-25  Simon Josefsson  <jas@extundo.com>
107974             Bruno Haible  <bruno@clisp.org>
107976         * lib/getdomainname.h: New file.
107977         * lib/getdomainname.c: New file.
107979 2003-09-25  Karl Berry  <karl@gnu.org>
107981         * lib/argp-fmtstream.c, argp-help.c: update from libc.
107983 2003-09-25  Karl Berry  <karl@gnu.org>
107985         * config/install-sh: update from automake.
107987 2003-09-25  Bruno Haible  <bruno@clisp.org>
107989         * modules/version-etc-2: New file, from modules/version-etc with
107990         modifications.
107991         * MODULES.html.sh (func_all_modules): Add version-etc-2.
107993 2003-09-25  Bruno Haible  <bruno@clisp.org>
107995         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
107996         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
107998 2003-09-24  Simon Josefsson  <jas@extundo.com>
108000         * modules/xgethostname: Add xgethostname.h.
108002 2003-09-24  Paul Eggert  <eggert@twinsun.com>
108004         * lib/linebuffer.c (freebuffer): Don't free the argument, just
108005         the buffer associated with the argument.  Bug reported by
108006         Simon Josefsson.
108008 2003-09-24  Paul Eggert  <eggert@twinsun.com>
108010         * README: Document assumptions that 'int' is at least 32 bits
108011         wide, that integer arithmetic is 2's complement without overflow,
108012         that there are no holes in integer values, that adding sizes of
108013         two nonoverlapping objects can't overflow, and that all-bits-zero
108014         yields scalar zero.  Fix spelling and capitalization typos.
108016 2003-09-19  Karl Berry  <karl@gnu.org>
108018         * lib/argp.h: update from libc.
108020 2003-09-17  Paul Eggert  <eggert@twinsun.com>
108022         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
108023         to avoid spurious warnings like "AC_RUN_IFELSE was called before
108024         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
108026 2003-09-17  Paul Eggert  <eggert@twinsun.com>
108028         * gnulib-tool: Use "test -h", not "test -L", for portability
108029         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
108030         (tags_regexp): Remove, since \| doesn't conform to POSIX.
108031         (sed_extract_prog): Issue s commands one-by-one, rather than
108032         using \| in one s command.
108034 2003-09-16  Paul Eggert  <eggert@twinsun.com>
108036         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
108037         input error, instead of returning NULL the next time we are called
108038         (and therefore losing track of errno).
108040 2003-09-16  Bruno Haible  <bruno@clisp.org>
108042         * gnulib-tool (func_create_testdir): Warn about duplicated
108043         dependencies.
108045 2003-09-15  Paul Eggert  <eggert@twinsun.com>
108047         * modules/argmatch, modules/fatal, modules/obstack,
108048         modules/xalloc, modules/xgethostname: Sort dependencies by
108049         importance, not alphabetically.
108051 2003-09-15  Paul Eggert  <eggert@twinsun.com>
108053         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
108054         fails, so that the caller gets the proper errno.
108056         * lib/readutmp.c (read_utmp): Likewise.
108057         Check for fstat error.  Close stream and free storage
108058         when failing.
108060 2003-09-14  Karl Berry  <karl@gnu.org>
108062         * config/srclist.txt (strdup.c): disable for c89 changes.
108064 2003-09-14  Jim Meyering  <jim@meyering.net>
108066         * lib/getloadavg.c: Correct cpp indentation.
108067         * lib/strdup.c: Likewise.
108068         * lib/vasnprintf.c: Likewise.
108070 2003-09-14  Bruno Haible  <bruno@clisp.org>
108072         * modules/fwriteerror: New file.
108073         * MODULES.html.sh (func_all_modules): Add fwriteerror.
108075 2003-09-14  Bruno Haible  <bruno@clisp.org>
108077         * lib/fwriteerror.h: New file.
108078         * lib/fwriteerror.c: New file.
108080 2003-09-12  Paul Eggert  <eggert@twinsun.com>
108082         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
108083         modules/xgethostname, modules/xalloc: Depend on exit.
108085 2003-09-12  Paul Eggert  <eggert@twinsun.com>
108087         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
108089         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
108090         and AC_MINIX, too, so that their extensions are available.
108092         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
108093         This macro has been superseded by gl_BACKUPFILE.
108095         More patches to assume C89 or better.
108097         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
108099         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
108100         unconditionally.
108101         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
108102         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
108103         Include <string.h>, <stdlib.h> unconditionally.
108104         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
108105         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
108106         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
108107         headers or for string.h.
108108         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
108109         or strtoul.
108111         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
108112         headers.
108113         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
108114         * m4/userspec.m4 (gl_USERSPEC): Likewise.
108115         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
108116         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
108117         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
108118         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
108119         memcpy, memset.
108120         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
108121         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
108122         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
108123         strtol.
108124         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
108125         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
108126         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
108127         strtoul.
108129 2003-09-12  Paul Eggert  <eggert@twinsun.com>
108131         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
108132         * lib/obstack.c [!defined _LIBC]: Likewise.
108133         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
108134         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
108135         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
108137         More changes to assume C89 or better.
108139         * lib/error.c (error_tail): Assume vprintf.
108141         * lib/argmatch.c (getenv): Remove decl.
108142         * lib/progreloc.c (get_full_program_name): Define via prototype.
108143         * lib/setenv.c (clearenv): Likewise.
108144         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
108145         needed.
108146         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
108147         (malloc, memcpy): Remove decls.
108148         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
108149         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
108150         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
108151         (memcpy): Remove macro.
108152         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
108153         (__P): Remove.  All uses removed.
108154         (PTR): Remove.  All uses changed to void *.
108155         (CHAR_BIT, NULL): Remove.
108156         (spaces, zeros, memset_space, memset_zero)
108157         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
108158         Remove.
108159         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
108160         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
108161         Define with prototype.
108162         Remove now-unnecessary prototype decl.
108163         (extra_args_spec): Assume ANSI C.  All uses changed.
108164         (extra_args_spec_iso): Remove.
108165         (my_strftime, emacs_strftimeu): Define via prototype.
108166         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
108167         unconditionally.
108168         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
108169         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
108170         (strtoul, strtol): Remove decls.
108171         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
108172         LONG_MAX): Remove.
108173         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
108174         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
108175         (LOCALE_PARAM_PROTO): New macro.
108176         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
108177         (INTERNAL (strtol), strtol): Define with a prototype.
108178         (PARAMS): Remove.  All uses removed.
108179         * lib/tempname.c: Include <string.h> unconditionally.
108180         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
108181         * lib/xgethostname.c (main): Define with a prototype.
108182         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
108183         Include <stdlib.h> unconditionally.
108184         (calloc, malloc, realloc, free): Remove decls.
108185         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
108186         Include <stdlib.h> unconditionally.  Sort include file names.
108187         (strtod): Remove.
108188         (xstrtod): Define with a prototype.
108189         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
108190         (strtol, strtoul): Remove decls.
108192 2003-09-11  Paul Eggert  <eggert@twinsun.com>
108194         More patches to assume C89 or better.
108195         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
108196         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
108197         string.h, memchr, STDC_HEADERS.
108199 2003-09-11  Paul Eggert  <eggert@twinsun.com>
108201         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
108202         Include <stdlib.h>, <string.h> unconditionally.
108203         Remove now-unnecessary cast to char *.
108204         * lib/strnlen.c: Include <string.h> unconditionally.
108205         * lib/yesno.c (yesno): Define with a prototype.
108207 2003-09-11  Bruno Haible  <bruno@clisp.org>
108209         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
108211 2003-09-10  Jim Meyering  <jim@meyering.net>
108213         * lib/error.c: Correct indentation of cpp directives.
108215 2003-09-10  Bruno Haible  <bruno@clisp.org>
108217         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
108218         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
108219         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
108220         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
108221         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
108222         <stdlib.h> and <string.h> checks.
108223         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
108224         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
108226 2003-09-10  Bruno Haible  <bruno@clisp.org>
108228         * lib/strcspn.c: Include <string.h> unconditionally.
108229         * lib/strpbrk.c: Include <string.h> unconditionally.
108230         * lib/strstr.c: Include <string.h> unconditionally.
108231         * lib/unicodeio.c: Include <string.h> unconditionally.
108232         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
108233         * lib/unsetenv.c: Likewise.
108234         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
108235         * lib/yesno.c: Include <stdlib.h> unconditionally.
108236         (rpmatch): Add prototype.
108238 2003-09-09  Paul Eggert  <eggert@twinsun.com>
108240         More patches to assume C89 or better.
108241         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
108242         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
108243         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
108244         or for string.h.
108245         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
108246         stdlib.h.
108247         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
108248         C headers.
108249         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
108250         string.h.
108251         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
108252         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
108253         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
108254         or for string.h.
108255         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
108256         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
108257         C headers.
108258         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
108259         memcpy.
108260         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
108261         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
108262         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
108263         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
108264         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
108265         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
108266         string.h, free.
108267         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
108268         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
108269         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
108270         C headers, or for string.h.
108271         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
108272         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
108273         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
108274         headers, memory.h, stdlib.h, string.h, strings.h.
108275         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
108276         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
108277         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
108278         strchr.
108279         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
108280         headers, memory.h, string.h.
108281         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
108282         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
108283         free.
108284         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
108285         headers.
108286         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
108287         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
108288         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
108289         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
108290         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
108292 2003-09-09  Paul Eggert  <eggert@twinsun.com>
108294         More K&R removal.
108296         * lib/acosl.c (main): Use a prototype.
108297         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
108298         tanl.c: Likewise.
108300         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
108302         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
108303         (getopt, etopt_long, getopt_long_only, _getopt_internal)
108304         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
108305         with a prototype.
108306         * lib/getopt.c (const): Remove macro.
108307         Include <string.h> unconditionally.
108308         (my_index): Remove; all uses changed to strchr.
108309         (strlen): Remove decl.
108310         (exchange): Remove forward decl; no longer needed.
108311         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
108312         Define with prototype.
108313         * lib/getopt1.c (const): Remove macro.
108314         (getopt_long, getopt_long_only, main): Define with prototype.
108316         * lib/getugroups.c: Include <string.h> unconditionally.
108318         * lib/getusershell.c: Include <stdlib.h> unconditionally.
108319         (getusershell, setusershell, endusershell, readname, main):
108320         Define with prototypes.
108322         * lib/group-member.c: Include group-member.h first.
108323         Include <stdlib.h> unconditionally.
108325         * lib/hard-locale.c: Include hard-locale.h first.
108326         Include <stdlib.h>, <string.h> unconditionally.
108328         * lib/hash.c (free, malloc): Remove decls.
108329         Include <stdlib.h> unconditionally.
108331         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
108332         (getenv): Do not declare.
108334         * lib/idcache.c: Include <string.h> unconditionally.
108336         * lib/long-options.c: Include long-options.h first, to test interface.
108337         Include <stdlib.h> unconditionally.
108339         * lib/makepath.c: Include makepath.h first, to test interface.
108340         Include <stdlib.h> and <string.h> unconditionally.
108342         * lib/linebuffer.c: Include <stdlib.h>.
108343         (free): Remove decl.
108345         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
108346         stddef.h. rpl_malloc returns void *, not char *.
108347         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
108348         prototype.
108350         * lib/md5.h: Include <limits.h> unconditionally.
108351         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
108352         (__P): Remove; all uses removed.
108353         * lib/md5.c: Include "md5.h" first.
108354         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
108355         md5_buffer, md5_process_bytes, md5_process_block):
108356         Define with prototypes.
108357         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
108358         * lib/sha.c: Include "sha.h" first.
108359         Include <stdlib.h>, <string.h> unconditionally.
108361         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
108362         * lib/memcmp.c (__ptr_t): Likewise.
108363         * lib/memrchr.c (__ptr_t): Likewise.
108364         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
108365         Include <string.h> unconditionally.
108366         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
108367         * lib/memchr.c: Include <stdlib.h> unconditionally.
108368         * lib/memchr.c (LONG_MAX): Remove.
108369         * lib/memrchr.c (LONG_MAX): Likewise.
108370         * lib/memchr.c (__memchr): Define via a prototype.
108371         * lib/memrchr.c (__memrchr): Likewise.
108372         * lib/memcmp.c (__P): Remove, and remove all uses.
108373         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
108374         Remove forward decls; no longer needed.
108375         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
108376         Use types required by C89 in prototype.
108378         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
108379         * lib/savedir.c: Likewise.
108380         * lib/mkdir.c (free): Remove decl.
108381         * lib/rmdir.c (rmdir): Define with a prototype.
108382         * lib/savedir.c: Include savedir.h first, to test interface.
108384         * lib/mktime.c (STDC_HEADERS): Remove.
108385         Include <stdlib.h>, <string.h> unconditionally.
108387         * lib/modechange.c: Include <stdlib.h> unconditionally.
108388         (malloc): Remove decl.
108390         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
108391         (free): Remove decl.
108393         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
108394         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
108395         (This type really should be intptr_t, but that's a C99ism.)
108396         (_obstack_memcpy): Remove: all uses changed to memcpy.
108397         Include <string.h> unconditionally.
108398         (struct obstack): Assume __STDC__ for types of members
108399         chunkfun, freefun, extra_arg.
108400         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
108401         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
108402         obstack_begin, obstack_specify_allocation,
108403         obstack_specify_allocation_with_arg, obstack_chunkfun,
108404         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
108405         Remove unprototyped decls and the macros that use them.
108406         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
108407         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
108408         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
108409         (defined __STDC__ && __STDC__)]:
108410         Remove nonprototyped code.
108411         Include <stdlib.h> unconditionally.
108412         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
108413         _obstack_allocated_p, _obstack_free, obstack_free,
108414         _obstack_memory_used, print_and_abort):
108415         Define using prototypes.
108416         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
108417         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
108418         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
108419         obstack_next_free, obstack_object_size, obstack_room) [0]:
108420         Remove unused, unprototyped code.
108422         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
108424         * lib/physmem.c (physmem_total, physmem_available, main): Define
108425         with prototypes.
108427         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
108428         (main): Define with a prototype.
108430         * lib/posixver.c (getenv): Remove decl.
108432         * lib/putenv.c (malloc): Returns void *, not char *.
108433         Include <string.h> unconditionally.
108434         (strchr, memcpy, NULL): Do not define.
108436         * lib/readtokens.c: Include readtokens.h first, to test interface.
108437         Include <stdlib.h>, <string.h> unconditionally.
108438         (init_tokenbuffer): Define with a prototype.
108440         * lib/regex.c (PARAMS): Remove.  All uses removed.
108441         All uses of _RE_ARGS removed, too.
108442         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
108443         unconditionally.
108444         (bzero): Assume memset exists.
108445         (memcmp, memcpy, NULL): Remove.
108446         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
108447         char, or assignments to local vars of type signed char.
108448         (init_syntax_once, PREFIX(extract_number_and_incr),
108449         PREFIX(print_partial_compiled_pattern),
108450         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
108451         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
108452         PREFIX(regex_grow_registers), PREFIX(regex_compile),
108453         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
108454         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
108455         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
108456         wcs_compile_range, byte_compile_range, truncate_wchar,
108457         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
108458         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
108459         count_mbs_length, wcs_re_match_2_internal,
108460         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
108461         PREFIX(alt_match_null_string_p),
108462         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
108463         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
108464         regfree, PREFIX(extract_number)): Define with prototype.  Remove
108465         now-unnecessary declaration, if any.
108466         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
108467         regcomp, regexec):
108468         Remove now-unnecessary casts among pointer types.
108469         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
108471         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
108472         (free): Remove decl.
108474         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
108476         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
108477         (free): Remove decl.
108479         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
108480         * lib/xgetcwd.c: Likewise.
108482         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
108483         (free): Remove decl.
108485         * lib/strchrnul.c (strchrnul): Define with a prototype.
108486         Fix bug: c_in was not converted to char before searching.
108488         The following changes are not K&R related:
108490         * lib/group-member.h: Include <sys/types.h>, so that this file is
108491         self-contained.
108492         * lib/makepath.h: Likewise.
108494         * lib/getusershell.c (readname, default_index, line_size, readname):
108495         Use size_t, not int, for sizes.
108496         (readname): If the size overflows, report an error instead of
108497         looping forever.
108499 2003-09-09  Paul Eggert  <eggert@twinsun.com>
108501         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
108502         libc.
108504 2003-09-09  Paul Eggert  <eggert@twinsun.com>
108506         * README: New section: portability guidelines.
108508 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
108510         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
108511         C89 spec.
108513 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
108515         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
108517 2003-09-08  Paul Eggert  <eggert@twinsun.com>
108519         Assume C89 or better; remove K&R cruft.
108520         A few of these changes were first proposed by Derek Robert Price
108521         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
108523         * lib/addext.c: Include <string.h> unconditionally.
108524         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
108525         Don't declare getenv or malloc.
108527         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
108528         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
108529         (NULL): Remove.
108530         (find_stack_direction, alloca): Use prototypes.
108532         * lib/atexit.c (atexit): Define using a prototype.
108534         * lib/basename.c, dirname.c, stripslash.c:
108535         Include <string.h> unconditionally.
108537         * lib/bcopy.c: Include <stddef.h>.
108538         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
108540         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
108542         * lib/error.h (error, error_at_line, error_print_progname)
108543         [! (defined (__STDC__) && __STDC__)]: Remove decls.
108544         * lib/error.c: Include error.h first, to check interface.
108545         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
108546         (VA_START): Remove; all uses changeed to va_start.
108547         (exit, strerror): Remove decls.
108548         (error_print_progname): Prototype uncondionally.
108549         Don't include <errno.h>; no longer needed.
108550         (private_strerror): Remove.
108551         (error_tail): Always define.
108552         (error, error_at_line): Assume C89 or better; always use prototypes.
108553         * lib/fatal.c: Include "fatal.h" first, to test interface.
108554         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
108555         (VA_START): Remove; all uses changed to va_start.
108556         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
108557         this case.
108558         (exit): Remove decl.
108559         (fatal): Prototype unconditionally.  Assume va_start works.
108560         Abort at end, to pacify gcc.
108562         * lib/euidaccess.c (main): Define with a prototype.
108564         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
108566         * lib/exitfail.c: Include <stdlib.h> unconditionally.
108568         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
108569         prototypes.
108570         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
108571         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
108572         (getenv): Remove decl.
108573         (fnmatch): Define using a prototype.
108574         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
108575         (FCT): Define using a prototype.
108577         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
108579         * lib/gethostname.c: Include <stddef.h>.
108580         (gethostname): Define with prototype.  Length is size_t, not int.
108582 2003-09-08  Paul Eggert  <eggert@twinsun.com>
108584         Assume C89 or better; remove K&R cruft.
108585         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
108586         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
108587         string.h, getenv, malloc.
108588         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
108589         headers.
108590         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
108591         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
108592         do not check for strerror.
108593         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
108594         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
108595         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
108596         do not check for doprnt or vprintf.
108597         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
108598         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
108600 2003-09-08  Paul Eggert  <eggert@twinsun.com>
108602         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
108603         getversion.c should have been removed then, but was accidentally
108604         preserved.
108606         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
108607         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
108609 2003-09-08  Karl Berry  <karl@gnu.org>
108611         * config/config.sub, config.guess, srclistvars.sh: update from savannah
108612                 config, forget about prep.
108614         * config/depcomp, missing: update from automake.
108616 2003-09-07  Paul Eggert  <eggert@twinsun.com>
108618         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
108619         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
108621 2003-09-07  Paul Eggert  <eggert@twinsun.com>
108623         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
108624         copy_tm_result.  Bug reported by Simon Josefsson in
108625         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
108627 2003-09-06  Paul Eggert  <eggert@twinsun.com>
108629         * m4/time_r.m4: New file.
108630         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
108631         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
108632         is. Check for timegm declaration.
108633         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
108634         Do not check for gmtime_r.
108635         Replace mktime if __mktime_internal does not exist and if mktime
108636         hasn't been replaced already.
108638 2003-09-06  Paul Eggert  <eggert@twinsun.com>
108640         * lib/time_r.c, lib/time_r.h: New files.
108642         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
108643         __localtime_r.
108644         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
108645         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
108647         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
108648         __gmtime_r.
108649         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
108650         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
108651         Include <time_r.h>.
108653         * lib/timegm.c: Switch to glibc implementation, with the following
108654         changes:
108655         [defined HAVE_CONFIG_H]: Include <config.h>.
108656         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
108657         (__mktime_internal) [!defined _LIBC]: New decl.
108658         (__gmtime_r) [!defined _LIBC]: New macro and function.
108659         (timegm): Use a prototype, since gnulib assumes C89.
108660         Do not bother declaring tmp to be const, as it's not really usefu.
108661         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
108662         (timegm): Declare only if HAVE_DECL_TIMEGM.
108664 2003-09-06  Paul Eggert  <eggert@twinsun.com>
108666         * MODULES.html.sh (func_all_modules): Add time_r.
108667         * modules/time_r: New file.
108668         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
108669         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
108671 2003-09-03  Paul Eggert  <eggert@twinsun.com>
108673         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
108674         Bug reported by Lute Kamstra in
108675         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
108677         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
108678         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
108679         course with correspondingly smaller numbers for tomorrow and
108680         yesterday.  From Tadayoshi Funaba.  Originally installed into
108681         sh-utils on 1999-08-07, but the patch got lost (I guess during the
108682         coreutils merge?).
108684 2003-08-31  Simon Josefsson  <jas@extundo.com>
108686         * modules/timegm: New file.
108687         * MODULES.html.sh (func_all_modules): Add timegm.
108689 2003-08-31  Simon Josefsson  <jas@extundo.com>
108691         * m4/timegm.m4: New file.
108693 2003-08-31  Simon Josefsson  <jas@extundo.com>
108695         * lib/timegm.h: New file.
108696         * lib/timegm.c: New file.  Based on
108697         wget-1.8.2/src/http.c:mktime_from_utc.
108699 2003-08-31  Karl Berry  <karl@gnu.org>
108701         * lib/argp.h: update from libc.
108703 2003-08-28  Bruno Haible  <bruno@clisp.org>
108705         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
108706         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
108707         followed by '#define fnmatch fnmatch_posix' gives an error.
108709 2003-08-28  Bruno Haible  <bruno@clisp.org>
108711         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
108712         warning on QNX, which defines O_BINARY to 000000.
108714 2003-08-27  Jim Meyering  <jim@meyering.net>
108716         * m4/mkstemp.m4: Require that the system mkstemp be able to create
108717         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
108718         would fail after 32.  Reported by Danny Levinson.  Details here:
108719         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
108721 2003-08-24  Bruno Haible  <bruno@clisp.org>
108723         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
108724         MSVC7 <stdio.h> is included later.
108726 2003-08-22  Simon Josefsson  <jas@extundo.com>
108728         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
108730 2003-08-20  Karl Berry  <karl@gnu.org>
108732         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
108734 2003-08-20  Bruno Haible  <bruno@clisp.org>
108736         * modules/progname: New file.
108737         * MODULES.html.sh (func_all_modules): Add progname.
108739 2003-08-20  Bruno Haible  <bruno@clisp.org>
108741         * lib/progname.h: New file, from GNU gettext.
108742         * lib/progname.c: New file, from GNU gettext.
108743         * lib/progreloc.c: New file, from GNU gettext.
108745 2003-08-19  Jim Meyering  <jim@meyering.net>
108747         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
108748         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
108750 2003-08-19  Bruno Haible  <bruno@clisp.org>
108752         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
108753         more.
108755 2003-08-19  Bruno Haible  <bruno@clisp.org>
108757         * lib/xstrdup.c: Assume <string.h> exists.
108759 2003-08-18  Paul Eggert  <eggert@twinsun.com>
108761         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
108762         in makefile rules.
108764 2003-08-18  Jim Meyering  <jim@meyering.net>
108766         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
108767         * m4/lib-ld.m4: Likewise.
108769 2003-08-18  Jim Meyering  <jim@meyering.net>
108771         * lib/setenv.h: Indent nested cpp directive.
108772         * lib/vasnprintf.c: Remove trailing blanks.
108774 2003-08-17  Simon Josefsson  <jas@extundo.com>
108776         * modules/xstrndup: New file.
108777         * MODULES.html.sh (func_all_modules): Add xstrndup.
108779 2003-08-17  Simon Josefsson  <jas@extundo.com>
108781         * modules/argp: Fix autoconf macro name. Add more dependencies.
108783 2003-08-17  Simon Josefsson  <jas@extundo.com>
108785         * m4/xstrndup.m4: New file.
108787 2003-08-17  Simon Josefsson  <jas@extundo.com>
108789         * m4/argp.m4: New file.
108791 2003-08-17  Simon Josefsson  <jas@extundo.com>
108792             Bruno Haible  <bruno@clisp.org>
108794         * lib/xstrndup.h: New file.
108795         * lib/xstrndup.c: New file.
108797 2003-08-17  Bruno Haible  <bruno@clisp.org>
108799         * modules/strndup (Files, Include): Add lib/strndup.h.
108801 2003-08-17  Bruno Haible  <bruno@clisp.org>
108803         * modules/euidaccess (Files): Add lib/euidaccess.h.
108805 2003-08-17  Bruno Haible  <bruno@clisp.org>
108807         * lib/strndup.h: New file.
108809 2003-08-17  Bruno Haible  <bruno@clisp.org>
108811         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
108812         like AC_GNU_SOURCE.
108813         * modules/extensions (configure.ac): Comment out the invocation of
108814         gl_USE_SYSTEM_EXTENSIONS.
108816 2003-08-16  Paul Eggert  <eggert@twinsun.com>
108818         Merges from coreutils, etc.
108819         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
108820         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
108821         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
108822         fixing a typo.
108823         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
108824         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
108826 2003-08-16  Paul Eggert  <eggert@twinsun.com>
108828         Document merge from coreutils.
108829         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
108830         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
108831         * modules/utime: Add m4/utimes-null.m4.
108833 2003-08-16  Paul Eggert  <eggert@twinsun.com>
108835         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
108836         space, undoing this 2003-08-12 change:
108837         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
108839 2003-08-16  Paul Eggert  <eggert@twinsun.com>
108841         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
108842         strtoul.c from libc, undoing this 2003-08-12 change:
108843         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
108845 2003-08-16  Jim Meyering  <jim@meyering.net>
108847         Merges from coreutils.
108848         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
108849         prefix.  Adjust cache variables similarly.  Create 500 rather than
108850         just 300 files, to exercise bug on Darwin6.5, too.
108851         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
108852         $missing_dir.
108853         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
108854         AM_SYS_POSIX_TERMIOS.
108855         Reported by mkc@mathdogs.com.
108856         Also change use of $am_cv_sys_posix_termios
108857         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
108858         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
108859         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
108860         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
108861         in /proc/mounts until it finds one with matching device number.  This
108862         is unnecessary when the FILE argument *is* a mount point.  No stat call
108863         is necessary in that case.  So, disable the statvfs-testing code on
108864         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
108865         as RedHat bug# 84846.
108866         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
108867         to 1MB, so as not to render systems with no stack size limit (e.g.,
108868         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
108869         Include <unistd.h>.  On some systems,
108870         it is required for the definition of _SC_PAGESIZE.
108872 2003-08-16  Jim Meyering  <jim@meyering.net>
108874         Merge from coreutils.
108875         * lib/xstrtoimax.c: #else #if -> #elif.
108876         * lib/xstrtoumax.c: Likewise.
108878 2003-08-16  Jim Meyering  <jim@meyering.net>
108880         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
108881         * m4/utimes.m4: Removed.
108882         * m4/utimes-null.m4: Renamed from utimes.m4.
108884         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
108885         to 1MB, so as not to render systems with no stack size limit (e.g.,
108886         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
108887         Include <unistd.h>.  On some systems,
108888         it is required for the definition of _SC_PAGESIZE.
108890 2003-08-16  Jim Meyering  <jim@meyering.net>
108891         and Paul Eggert  <eggert@cs.ucla.edu>
108893         Merges from coreutils, etc.
108895         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
108896         using the latest version from cvs.  This avoids problems with #line
108897         directives using a vendor (Sun) compiler.
108898         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
108899         Don't set GETGROUPS_LIB here; now it's
108900         done via getgroups.m4's wrapper function.
108901         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
108902         rather than just in sh-util/configure.in, so that the
108903         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
108904         same.
108905         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
108906         AC_FUNC_GETLOADAVG where to find getloadavg.c.
108907         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
108908         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
108909         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
108910         Remove code that is now done by the newly-required macros.
108911         Append $(EXEEXT) to DF_PROG.
108912         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
108913         Do not invoke or require the following here,
108914         since prereq.m4 or some gnulib .m4 now does this for us:
108915         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
108916         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
108917         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
108918         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
108919         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
108920         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
108921         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
108922         AC_FUNC_OBSTACK.
108923         Do not replace the following functions, as this is now the job
108924         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
108925         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
108926         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
108927         atexit getpass, strdup, getpagesize.
108928         Replace 'raise'.
108929         Do not check for the following functions, as this is now the job
108930         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
108931         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
108932         setregid.
108933         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
108934         Check for sys/sysctl.h.
108935         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
108936         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
108937         of checking for ssize_t ourselves.
108939         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
108940         Require every macro that gnulib/modules/* suggests for us.
108941         (jm_PREREQ_ADDEXT): New macro.
108942         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
108943         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
108945         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
108946         (gl_PHYSMEM): Use it.
108947         Also check for `table' function.
108948         Check for new headers and functions.
108949         Add check for sys/sysmp.h.
108950         With suggestions from Kaveh Ghazi.
108951         Ignore headers that are present but cannot be compiled.  This
108952         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
108953         C 5.4.
108955 2003-08-15  Paul Eggert  <eggert@twinsun.com>
108957         Document merge from coreutils.
108958         * modules/userspec: Depend on posixver.
108959         * modules/strftime: Depend on tzset.
108961 2003-08-15  Paul Eggert  <eggert@twinsun.com>
108963         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
108964         rather than tab, after '#' in shell-script copyright notices.
108965         Suggested by Bruno Haible.
108967 2003-08-15  Paul Eggert  <eggert@twinsun.com>
108969         * config/srclist-update: Use three spaces, rather than tab, after '#'
108970         in shell-script copyright notices.  Suggested by Bruno Haible.
108971         Remove unnecessary parenthesization in regular expression.
108973 2003-08-15  Jim Meyering  <jim@meyering.net>
108975         Merge from coreutils.
108976         * lib/xgethostname.c: Include <stdlib.h>.
108977         (xghostname): Don't exit for anything other than memory-related
108978         failure; just return NULL.
108979         * lib/userspec.c: Include "posixver.h".
108980         (parse_user_spec): Accept `.' as a separator only
108981         in pre-POSIX-200112 mode.
108982         * lib/strtoimax.c: Use #elif rather than #else #if.
108983         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
108984         Remove function, now that we can rely on a working tzset function.
108985         [!_LIBC]: Ensure that the required autoconf test has been run.
108986         [!defined _NL_CURRENT && HAVE_STRFTIME]:
108987         Use underlying_strftime for %r.
108988         * lib/sha.c: Merge in some clean-up and optimization changes from
108989         glibc.
108990         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
108991         Ensure that it is a multiple of 64.
108992         Rearrange loop exit tests so as to avoid performing an
108993         additional fread after encountering an error or EOF.
108994         * lib/realloc.c: Update copyright date.
108996 2003-08-15  Jim Meyering  <jim@meyering.net>
108997         and Paul Eggert  <eggert@twinsun.com>
108999         Merge from coreutils.
109000         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
109001         member but strut utmpx does not.  Needed for AIX 4.3.3.
109002         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
109004 2003-08-15  Jim Meyering  <jim@meyering.net>
109005         and Paul Eggert  <eggert@cs.ucla.edu>
109007         Merges from coreutils, etc.
109008         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
109009         Require gl_FUNC_TZSET_CLOBBER.
109010         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
109011         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
109012         members.
109014 2003-08-14  Paul Eggert  <eggert@twinsun.com>
109016         Help the merge from coreutils.
109017         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
109018         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
109019         * m4/tzset.m4: Use it too.
109021 2003-08-14  Paul Eggert  <eggert@twinsun.com>
109023         * modules/tzset: New file.
109025 2003-08-14  Jim Meyering  <jim@meyering.net>
109027         Merges from coreutils.
109028         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
109029         variable names, rather than @FNMATCH_H@.
109030         * modules/alloca: Likewise for $(ALLOCA_H).
109032         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
109033         the three copies of the literal target, `fnmatch.h'.
109034         * modules/alloca (alloca.h): Likewise.
109036 2003-08-14  Jim Meyering  <jim@meyering.net>
109038         Merge from coreutils.
109039         * m4/tzset.m4: New file.
109040         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
109041         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
109042         otherwise, AIX 5.1 systems would end up using the latter.
109043         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
109044         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
109045         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
109046         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
109048 2003-08-14  Jim Meyering  <jim@meyering.net>
109050         Merge from coreutils.
109051         * lib/obstack.h: Whitespace changes.
109052         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
109053         and xcalloc return values.
109054         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
109055         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
109056         hang on OSF/1 5.1 for DIR on both local and remote file systems.
109057         Reported by (and fix confirmed by) Nelson H. F. Beebe.
109058         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
109059         error from mntctl.
109060         Use mntctl's return value to drive the entry-processing loop, since
109061         we can't rely on the value of the vmt_length member in the last
109062         entry.  On some systems doing so could result in exhausting
109063         virtual memory.  Based in part on a patch from Mike Jetzer.
109065 2003-08-14  Jim Meyering  <jim@meyering.net>
109066         and Paul Eggert  <eggert@twinsun.com>
109068         Merges from coreutils, plus other fixes.
109069         * lib/physmem.c: Merge in portability changes from gcc/libiberty
109070         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
109071         for credits and details.  Thanks to Kaveh Ghazi for helping
109072         to keep these files in sync.
109073         (ARRAY_SIZE): Define it.
109074         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
109075         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
109076         (memcasecmp): Don't assume size_t fits in unsigned int.
109077         Remove casts and duplicate code.
109078         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
109079         (memcpy): Remove definition.
109080         Merge in some clean-up and optimization changes from glibc.
109081         [BLOCKSIZE]: Move definition to top of file.
109082         Ensure that it is a multiple of 64.
109083         Rearrange loop exit tests so as to avoid performing an
109084         additional fread after encountering an error or EOF.
109085         * lib/md5.h (md5_uintptr): Define.
109086         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
109087         return to the initial working directory.  Preserve errno
109088         for caller.
109089         * lib/idcache.c: Include "xalloc.h".
109090         (xmalloc, xrealloc): Remove decls.
109091         (getuser): Remove casts no longer required in C89.
109092         * lib/human.c: Include stdio.h, for sprintf.
109093         * lib/group-member.c: Include "xalloc.h".
109094         (xmalloc, xrealloc): Remove decls.
109095         (get_group_info): Remove casts no longer required in C89.
109096         * lib/getusershell.c (readname): Remove casts no longer required in
109097         C89.
109098         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
109099         * lib/getline.c: Whitespace fix, from coreutils.
109101 2003-08-13  Paul Eggert  <eggert@twinsun.com>
109103         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
109104         Check for isascii.
109106         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
109107         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
109108         Undo previous (whitespace-only) change.
109110 2003-08-13  Paul Eggert  <eggert@twinsun.com>
109112         * lib/exclude.c: Include <ctype.h>
109113         (IN_CTYPE_DOMAIN): New macro.
109114         (is_space): New fn.
109115         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
109116         and empty lines.
109118         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
109119         Undo previous (whitespace-only) change.
109121 2003-08-13  Paul Eggert  <eggert@twinsun.com>
109123         * config/srclist-update: Change update back to the old behavior,
109124         leaving whitespace alone.  Use one 'sed' command rather than a
109125         pipeline.
109126         (fixlicense): Now a variable, not a function.
109127         (remove_trailing_blanks): Remove.
109128         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
109129         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
109130         Undo previous (whitespace-only) change.
109132 2003-08-12  Paul Eggert  <eggert@twinsun.com>
109134         Merge from coreutils.
109135         * modules/euidaccess: Add lib_SOURCES, include for new
109136         file euidaccess.h
109138 2003-08-12  Paul Eggert  <eggert@twinsun.com>
109140         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
109141         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
109142         Normalize leading white space and remove trailing white space.
109144         Merge from coreutils
109145         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
109147         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
109148         0.12.1.  These files are now being upgraded automatically by
109149         ../config/srclist-update.
109151 2003-08-12  Paul Eggert  <eggert@twinsun.com>
109153         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
109154         Normalize leading white space and remove trailing white space.
109155         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
109156         notice, as per ../config/srclist-update.
109158         Merge from coreutils.
109159         * lib/euidaccess.h: New file.
109160         * lib/euidaccess.c: Include it.
109161         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
109162         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
109163         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
109165 2003-08-12  Paul Eggert  <eggert@twinsun.com>
109167         * config/srclist-update: Add copyright notice.
109168         (remove_id_lines, remove_trailing_blanks): New constants.
109169         (fixfile): Use them to normalize spacing a bit in copied files.
109170         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
109171         Normalize leading white space and remove trailing white space.
109173         * config/texinfo.tex: Sync with texinfo.
109175         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
109176         strtoul.c from libc, to merge coreutils whitespace changes.
109178         * config/srclist.txt: Get the following m4 files from gettext:
109179         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
109180         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
109181         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
109182         wint_t.m4.
109184 2003-08-12  Karl Berry  <karl@gnu.org>
109186         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
109187         been made.
109189 2003-08-11  Paul Eggert  <eggert@twinsun.com>
109191         * modules/gnu-source, m4/gnu-source.m4:
109192         Remove; we're assuming Autoconf 2.54 or later now.
109193         Suggested by Bruno Haible.
109194         * MODULES.html.sh (func_all_modules): Remove gnu-source.
109196 2003-08-11  Bruno Haible  <bruno@clisp.org>
109198         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
109200 2003-08-11  Bruno Haible  <bruno@clisp.org>
109202         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
109203         (vasnprintf): Use it instead of wcslen.
109205 2003-08-11  Bruno Haible  <bruno@clisp.org>
109207         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
109208         value to ensure that _Bool promotes to int. Use #define for _Bool when
109209         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
109211 2003-08-10  Karl Berry  <karl@gnu.org>
109213         * lib/regex.h: update from libc (whitespace fix).
109215 2003-08-09  Paul Eggert  <eggert@twinsun.com>
109217         Merge some files from coreutils.  These changes were
109218         originally made by Jim Meyering.
109219         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
109220         many older Unixes require this.
109221         * lib/alloca.c (alloca): Remove cast to argument of free;
109222         no longer needed in C89.
109223         * lib/alloca_.h, regex.h: Fix white space to match
109224         what GNU indent does.
109226 2003-08-09  Paul Eggert  <eggert@twinsun.com>
109228         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
109229         apparently Emacs's Unicode mode got confused before my 2003-08-05
109230         checkin.
109232 2003-08-08  Paul Eggert  <eggert@twinsun.com>
109234         * m4/extensions.m4: New file.
109235         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
109236         Require gl_USE_SYSTEM_EXTENSIONS.
109237         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
109238         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
109240 2003-08-08  Paul Eggert  <eggert@twinsun.com>
109242         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
109243         * modules/extensions, modules/gnu-source: New files.
109244         * modules/timespec, modules/unlocked-io: Depend on extensions.
109246 2003-08-07  Paul Eggert  <eggert@twinsun.com>
109248         * modules/restrict: New file.
109249         * MODULES.html.sh (func_all_modules): Add restrict.
109250         * modules/regex: Depend on restrict.
109252 2003-08-07  Paul Eggert  <eggert@twinsun.com>
109254         * m4/restrict.m4: New file.
109255         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
109257 2003-08-07  Bruno Haible  <bruno@clisp.org>
109259         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
109260         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
109262 2003-08-07  Bruno Haible  <bruno@clisp.org>
109264         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
109265         makes the module 'getndelim2' compatible with the module 'getline'.
109267 2003-08-05  Paul Eggert  <eggert@twinsun.com>
109269         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
109270         byte with "\201" to avoid glitches when editing that source file
109271         with multi-gnome-terminal.
109273 2003-08-05  Paul Eggert  <eggert@twinsun.com>
109275         * lib/bumpalloc.h: Remove.
109277 2003-08-05  Paul Eggert  <eggert@twinsun.com>
109279         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
109280         * modules/bumpalloc: Remove.
109282 2003-08-04  Paul Eggert  <eggert@twinsun.com>
109284         * lib/getloadavg.c: Change copyright notice and spacing to conform to
109285         GNU coding style.
109287         Merge from coreutils.
109288         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
109289         1. From glibc.
109290         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
109291         from Karl Berry, implemented by Jim Meyering.
109292         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
109293         from Dmitry V. Levin.
109294         Remove anachronistic cast of xrealloc.
109295         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
109296         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
109297         type. Otherwise, it wouldn't compile with at least /bin/cc on
109298         ymp-cray-unicos9.0.2.X.
109299         Combine two mostly-identical uses of alloca into one.
109300         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
109302 2003-08-04  Dave Love  <d.love@dl.ac.uk>
109304         [From Emacs.]
109306         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
109307         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
109308         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
109309         obsolete NLIST_NAME_UNION.
109310         [__GNU__]: Undef BSD and FSCALE.
109311         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
109313 2003-08-03  Paul Eggert  <eggert@twinsun.com>
109315         * lib/stdbool_.h (_Bool): Make it signed char, instead of
109316         an enum type, so that it's guaranteed to promote to int.  See:
109317         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
109319 2003-08-03  Karl Berry  <karl@gnu.org>
109321         * config/depcomp: update from automake.
109323 2003-07-31  Paul Eggert  <eggert@twinsun.com>
109325         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
109326         (strerror): Don't assume that a printable int fits in 14 bytes.
109328 2003-07-31  Bruno Haible  <bruno@clisp.org>
109330         * modules/getpass-gnu: New file.
109331         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
109333 2003-07-31  Bruno Haible  <bruno@clisp.org>
109335         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
109337 2003-07-24  Karl Berry  <karl@gnu.org>
109339         * config/missing: update from automake.
109341 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
109342             Bruno Haible  <bruno@clisp.org>
109344         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
109345         * lib/getline.c (getline, getdelim): Likewise.
109346         Remove _GNU_SOURCE define; now it's defined in config.h through
109347         m4/getline.m4.
109349 2003-07-23  Karl Berry  <karl@gnu.org>
109351         * config/config.sub: update from prep.
109353 2003-07-22  Paul Eggert  <eggert@twinsun.com>
109355         * modules/xalloc (Depends-on): Add exitfail.
109356         * modules/xmemcoll: Likewise.
109358 2003-07-22  Paul Eggert  <eggert@twinsun.com>
109360         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
109361         over-parenthesization in macros.
109363         Sync with coreutils.
109365         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
109366         required by C99.
109368         Use `exit_failure' for xalloc and xmemcoll instead of their own
109369         private exit-failure variables.
109370         * lib/xalloc.h (xalloc_exit_failure): Remove.
109371         * lib/xmalloc.c: Likewise.  Include exitfail.h.
109372         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
109373         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
109374         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
109375         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
109377 2003-07-20  Jim Meyering  <jim@meyering.net>
109379         * modules/closeout (Depends-on): Add exitfail.
109380         Suggestion from Bruno Haible.
109382 2003-07-19  Karl Berry  <karl@gnu.org>
109384         * config/config.sub: update from prep.
109386 2003-07-18  Paul Eggert  <eggert@twinsun.com>
109388         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
109389         Remove.
109390         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
109391         to test that it can stand by itself.  Include "exitfail.h".
109392         Clients should set exit_failure instead.
109393         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
109395 2003-07-18  Bruno Haible  <bruno@clisp.org>
109397         * modules/getndelim2: New file.
109398         * modules/getline: Share files with module getndelim2.
109399         * modules/getnline: Depend on getndelim2 instead of sharing files with
109400         it. Add getnline.c to lib_SOURCES.
109401         * MODULES.html.sh (func_all_modules): Add getndelim2.
109403 2003-07-18  Bruno Haible  <bruno@clisp.org>
109405         * m4/getndelim2.m4: New file.
109406         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
109407         invoke gl_PREREQ_GETNDELIM2.
109408         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
109409         gl_PREREQ_GETNDELIM2.
109410         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
109411         gl_GETNDELIM2.
109413 2003-07-18  Bruno Haible  <bruno@clisp.org>
109415         * lib/getndelim2.h: New file.
109416         * lib/getndelim2.c: Make into a module of its own. Include config.h,
109417         getndelim2.h.
109418         (getndelim2): Make non-static. Change return type to ssize_t.
109419         * lib/getline.h: Change argument names.
109420         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
109421         * lib/getnline.c: Include getndelim2.h.
109423 2003-07-18  Andreas Schwab  <schwab@suse.de>
109425         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
109427 2003-07-17  Karl Berry  <karl@gnu.org>
109429         * config/config.sub: update from prep.
109431 2003-07-17  Bruno Haible  <bruno@clisp.org>
109433         * modules/getnline: New file.
109434         * modules/getline: Add lib/getndelim2.c to source file list.
109435         * MODULES.html.sh (func_all_modules): Add getnline.
109437 2003-07-17  Bruno Haible  <bruno@clisp.org>
109439         * m4/getnline.m4: New file.
109441 2003-07-17  Bruno Haible  <bruno@clisp.org>
109443         * m4/Makefile.am.in: Remove file.
109444         * m4/Makefile.am: Remove file.
109445         * m4/Makefile.in: Remove file.
109447 2003-07-17  Bruno Haible  <bruno@clisp.org>
109449         * lib/getnline.h: New file.
109450         * lib/getnline.c: New file.
109451         * lib/getndelim2.c: New file, extracted from getline.c.
109452         (getndelim2): Renamed from getdelim2, with added nmax argument.
109453         * lib/getline.c: Include getndelim2.c.
109454         (getdelim2): Moved out to getndelim2.c.
109455         (getline, getdelim): Update.
109457 2003-07-17  Bruno Haible  <bruno@clisp.org>
109459         * lib/Makefile.am: Remove file.
109460         * lib/Makefile.in: Remove file.
109462 2003-07-17  Bruno Haible  <bruno@clisp.org>
109464         * configure.in: Remove file.
109465         * Makefile.in: Remove file.
109467 2003-07-17  Bruno Haible  <bruno@clisp.org>
109469         * MODULES.html.sh: Put the </BODY> right before </HTML>.
109471 2003-07-16  Karl Berry  <karl@gnu.org>
109473         * config/srclist-update: was running fixlicense twice, which caused
109474                 texinfo.tex to be nullified for some reason.  Simplify,
109475                 $gplsrc is no longer needed as far as I can see?
109477 2003-07-16  Jim Meyering  <jim@meyering.net>
109479         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
109481 2003-07-15  Paul Eggert  <eggert@twinsun.com>
109483         * config/srclist.txt: Get the following files from gettext-runtime/intl
109484         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
109485         ref-del.sin.  From Bruno Haible.
109486         * config/srclist-update (fixfile): Change grep pattern again, since the
109487         previous fix didn't work (there was another trailing $).  Use
109488         '[$]' to escape the $s.
109490 2003-07-15  Karl Berry  <karl@gnu.org>
109492         * lib/vasnprintf.c: update from gettext.
109494 2003-07-15  Karl Berry  <karl@gnu.org>
109496         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
109497         gets expanded when surrounded by '$'.
109499 2003-07-15  Jim Meyering  <jim@meyering.net>
109501         * modules/save-cwd: Don't depend on error.  From Derek Price.
109503 2003-07-15  Jim Meyering  <jim@meyering.net>
109505         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
109507 2003-07-14  Simon Josefsson  <jas@extundo.com>
109509         * modules/mempcpy: New file.
109510         * MODULES.html.sh (func_all_modules): Add mempcpy.
109512 2003-07-14  Simon Josefsson  <jas@extundo.com>
109514         * m4/mempcpy.m4: New file.
109516 2003-07-14  Simon Josefsson  <jas@extundo.com>
109518         * lib/mempcpy.h: New file.
109519         * lib/mempcpy.c: New file.
109521 2003-07-14  Paul Eggert  <eggert@twinsun.com>
109523         * modules/getdate, modules/posixtm: Depend on mktime.
109525 2003-07-14  Paul Eggert  <eggert@twinsun.com>
109527         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
109528         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
109529         unicodeio.c, unicodeio.h, unlocked-io.h:
109530         Switch from LGPL to GPL.
109532 2003-07-14  Paul Eggert  <eggert@twinsun.com>
109534         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
109535         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
109536         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
109537         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
109538         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
109539         updated automatically by ../config/srclist-update.  This changes
109540         their license from LPGL to GPL.
109542 2003-07-14  Paul Eggert  <eggert@twinsun.com>
109544         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
109545         assumed to refer to the root of the most recent stable gettext version.
109546         * config/srclistvars.sh: Add defaults for eggert.
109547         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
109548         Match "This program" as well as "The program".  This is needed
109549         for gettext.
109551 2003-07-14  Jim Meyering  <jim@meyering.net>
109553         Don't emit diagnostics.  Let callers do that.
109554         * lib/save-cwd.c: Don't include "error.h".
109555         (save_cwd): Don't call error.  Ensure that errno is valid
109556         when returning nonzero.
109558         * lib/save-cwd.h (restore_cwd): Update prototype.
109559         * lib/save-cwd.c (restore_cwd): Remove two parameters.
109560         Simplify.  Don't call error upon failure.  Let callers do that.
109561         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
109562         when auditing is enabled.  But don't bother updating the #if.
109564 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
109566         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
109567         it breaks C++ compilation.
109568         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
109570 2003-07-10  Simon Josefsson  <jas@extundo.com>
109572         * modules/strchrnul (Makefile.am): Add strchrnul.h.
109574 2003-07-10  Jim Meyering  <jim@meyering.net>
109576         * m4/clock_time.m4: Remove trailing blank.
109577         * m4/intmax_t.m4: Likewise.
109579 2003-07-10  Jim Meyering  <jim@meyering.net>
109581         * lib/vasnprintf.c: Remove trailing blanks.
109582         Make cpp indentation consistent.
109584 2003-07-09  Paul Eggert  <eggert@twinsun.com>
109586         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
109587         posixver.c, strftime.c, strnlen.c, strverscmp.c:
109588         Switch from LGPL to GPL.
109590 2003-07-09  Paul Eggert  <eggert@twinsun.com>
109592         * config/srclist.txt: Sort sublists.  Add
109593         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
109594         that differ from gnulib for one reason or another; we'd like this list
109595         to be smaller but for now let's document what we have.
109597 2003-07-08  Paul Eggert  <eggert@twinsun.com>
109599         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
109600         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
109601         and sweeter "eval x=$x".
109602         * config/srclist.txt: Get lib/argp* from glibc.
109604 2003-07-07  Paul Eggert  <eggert@twinsun.com>
109606         * lib/mktime.c: Fix some boundary cases and remove need for floating
109607         point.
109609         Issue a compile-time diagnostic if time_t is floating point, or if
109610         two's complement arithmetic is not in effect, or if arithmetic
109611         right shift does not propagate the sign.  These assumptions were
109612         all in the original code but they weren't checked.
109614         (TIME_T_MIDPOINT, verify): New macros.
109615         (__isleap): Remove; it has integer overflow problems.
109616         (leapyear): New function, without those problems.
109617         (ydhms_tm_diff): Remove; splitting into two parts.
109618         (ydhms_diff): New function, containing the arithmetic part of
109619         the old ydhms_tm_diff function.  Issue a compile-time
109620         diagnostic if we are not using C99 integer division.
109621         Avoid casts when possible.
109622         (guess_time_tm): New function, containing the checking part of
109623         the old ydhms_tm_diff function.  Return the new value, rather than
109624         the difference between it and the old.  Accept a new argument T
109625         so that *T specifies the old value.  Check for overflow in the result.
109627         (__mktime_internal): Use a time_t offset, not a long int offset.
109628         This undoes the 2003-06-04 change, which is no longer needed now
109629         that we have better overflow checking.
109630         (localtime_offset): Likewise.
109632         (__mktime_internal): Avoid harmful overflow on hosts where time_t
109633         and long are 64-bit but int is only 32-bit.
109634         (ydhms_diff): Use long int to store year1 and yday1.
109635         Issue a compile-time diagnostic if long int is not wide enough.
109637         (__mktime_internal): Use long int to store adjusted year and yday.
109638         Use plain C rather than preprocessor commands, if that doesn't
109639         affect efficiency.
109640         Check for overflow (and try to repair) after each probe
109641         rather than checking only at the very end.  This avoids some bugs
109642         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
109643         does not equal GMT offset at maximum time).
109644         Use integer to check for overflow rather than floating point; this
109645         is more portable to non-IEEE hosts, and is a tad faster.
109646         When we detect that we are oscillating between two values,
109647         don't check whether tm_isdst has the requested value, since
109648         we already know the answer.  When tm_isdst has the wrong value,
109649         use a different heuristic to find the right one, based on the
109650         extreme values actually observed in practice in tz2003a,
109651         rather than the (overly optimistic) "previous 3 calendar quarters".
109653         (not_equal_tm, print_tm, check_result): Use "const T" rather than
109654         "T const" to accommodate glibc style.
109655         (check_result): Use less-confusing report format.  "long" -> "long int.
109656         (main): Likewise.
109657         Don't loop if the iteration overflows time_t.
109658         Allow a negative step in the iteration.
109660 2003-07-06  Karl Berry  <karl@gnu.org>
109662         * config/depcomp: update from automake.
109663         * config/config.sub: update from prep.
109665 2003-07-03  Karl Berry  <karl@gnu.org>
109667         * config/config.guess: update from prep.
109669 2003-07-01  Paul Eggert  <eggert@twinsun.com>
109671         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
109672         xreadlink.c now includes it unconditionally.
109674 2003-07-01  Paul Eggert  <eggert@twinsun.com>
109676         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
109677         having it depend on HAVE_SYS_TYPES_H.
109679 2003-07-01  Bruno Haible  <bruno@clisp.org>
109681         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
109682         <sys/types.h> should be sufficient.
109683         Reported by Paul Eggert.
109685 2003-06-26  Karl Berry  <karl@gnu.org>
109687         * config/depcomp: update from automake.
109689 2003-06-26  Bruno Haible  <bruno@clisp.org>
109691         * modules/human: Depend on module stdbool.
109693 2003-06-25  Bruno Haible  <bruno@clisp.org>
109695         * modules/readlink: New file.
109696         * modules/xreadlink: Depend on it.
109697         * MODULES.html.sh (func_all_modules): Add readlink.
109699 2003-06-25  Bruno Haible  <bruno@clisp.org>
109701         * m4/readlink.m4: New file.
109703 2003-06-25  Bruno Haible  <bruno@clisp.org>
109705         * lib/readlink.c: New file.
109707 2003-06-22  Karl Berry  <karl@gnu.org>
109709         * config/srclist.txt: update mkinstalldirs from automake.
109710         * config/mkinstalldirs: update.
109712 2003-06-22  Bruno Haible  <bruno@clisp.org>
109714         Portability to mingw32.
109715         * m4/ssize_t.m4: New file, from GNU gettext.
109716         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
109717         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
109719 2003-06-22  Bruno Haible  <bruno@clisp.org>
109721         * modules/safe-read: Add m4/ssize_t.m4.
109722         * modules/xreadlink: Add m4/ssize_t.m4.
109724 2003-06-20  Bruno Haible  <bruno@clisp.org>
109726         Assume C89, so PARAMS isn't needed.
109727         * lib/unicodeio.h (PARAMS): Remove.
109728         * lib/unicodeio.c: Don't use PARAMS.
109730 2003-06-18  Karl Berry  <karl@gnu.org>
109732         * config/config.{guess,sub}: update from prep.
109734 2003-06-18  Jim Meyering  <jim@meyering.net>
109736         Merge changes from coreutils.
109737         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
109738         Remove explicit declarations of xmalloc and realloc.
109739         Include xalloc.h.
109740         (read_utmp): Remove anachronistic cast of xmalloc.
109742 2003-06-17  Paul Eggert  <eggert@twinsun.com>
109744         Assume C89, so PARAMS isn't needed.
109745         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
109746         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
109747         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
109748         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
109749         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
109750         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
109751         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
109752         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
109753         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
109754         lib/xstrtod.h, lib/xstrtol.h: Likewise.
109755         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
109756         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
109757         no longer needed. Anyway, config.h should always be included before any
109758         other file.
109760 2003-06-11  Simon Josefsson  <jas@extundo.com>
109762         * modules/sysexits: New file.
109763         * MODULES.html.sh (func_all_modules): Add sysexits.
109765 2003-06-11  Simon Josefsson  <jas@extundo.com>
109767         * lib/sysexit_.h: New file.
109769 2003-06-11  Derek Price  <derek@ximbiot.com>
109771         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
109772         necessary.
109774 2003-06-11  Bruno Haible  <bruno@clisp.org>
109776         * m4/sysexits.m4: New file.
109778 2003-06-10  Simon Josefsson  <jas@extundo.com>
109780         * lib/argp.h: New file, from glibc.
109781         * lib/argp-ba.c: New file, from glibc.
109782         * lib/argp-eexst.c: New file, from glibc.
109783         * lib/argp-fmtstream.c: New file, from glibc.
109784         * lib/argp-fmtstream.h: New file, from glibc.
109785         * lib/argp-fs-xinl.c: New file, from glibc.
109786         * lib/argp-help.c: New file, from glibc.
109787         * lib/argp-namefrob.h: New file, from glibc.
109788         * lib/argp-parse.c: New file, from glibc.
109789         * lib/argp-pv.c: New file, from glibc.
109790         * lib/argp-pvh.c: New file, from glibc.
109791         * lib/argp-xinl.c: New file, from glibc.
109793 2003-06-10  Simon Josefsson  <jas@extundo.com>
109795         * modules/strchrnul: New file.
109797 2003-06-10  Simon Josefsson  <jas@extundo.com>
109799         * modules/argp: New file.
109801 2003-06-10  Simon Josefsson  <jas@extundo.com>
109803         * m4/strchrnul.m4: New file.
109805 2003-06-10  Simon Josefsson  <jas@extundo.com>
109807         * lib/strchrnul.h: New file.
109808         * lib/strchrnul.c: New file.
109810 2003-06-10  Bruno Haible  <bruno@clisp.org>
109812         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
109814 2003-06-07  Karl Berry  <karl@gnu.org>
109816         * config/config.{guess,sub}: update from prep.
109818 2003-06-07  Jim Meyering  <jim@meyering.net>
109820         * modules/strtod: Use $(...) notation, not @...@ for
109821         AC_REPLACE'd variables.
109822         * modules/localcharset: Likewise.
109824 2003-06-07  Jim Meyering  <jim@meyering.net>
109826         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
109827         in place of my name in the copyright comment.
109828         Remove definition and uses of __P.
109830         From coreutils.
109831         * lib/stat.c: Don't declare xmalloc explicitly.
109832         Instead, include "xalloc.h".
109833         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
109834         xrealloc, and xcalloc return values.
109835         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
109836         Improve comment.
109837         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
109839 2003-06-07  Bruno Haible  <bruno@clisp.org>
109841         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
109842         avoid AC_CONFIG_LINKS.
109843         * modules/fnmatch (Makefile.am): Use explicit creation rule for
109844         fnmatch.h, to avoid AC_CONFIG_LINKS.
109845         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
109847 2003-06-07  Bruno Haible  <bruno@clisp.org>
109849         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
109850         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
109851         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
109852         directory.
109853         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
109854         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
109855         directory.
109857 2003-06-06  Jim Meyering  <jim@meyering.net>
109859         Merge from coreutils.
109860         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
109861         Consolidate declarations and initializations of *_base* locals.
109863         Merge from coreutils.
109864         This avoids a core dump on systems without GNU putenv,
109865         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
109866         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
109867         (unsetenv): New static function, from GNU libc.
109868         (rpl_putenv): Use it.
109870         * lib/modechange.c: Remove trailing blanks.
109872         Merge from coreutils.
109873         * lib/fsusage.c: Remove declaration of statfs.
109874         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
109876         * lib/posixtm.c: Include <stdbool.h> unconditionally.
109878 2003-06-06  Jim Meyering  <jim@meyering.net>
109880         * lib/stdbool_.h: Renamed from stdbool.h.in.
109882 2003-06-06  Jim Meyering  <jim@meyering.net>
109883             Bruno Haible  <bruno@clisp.org>
109885         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
109886         Adjust Makefile.am snippet not to redirect directly to target.
109887         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
109889 2003-06-05  Paul Eggert  <eggert@twinsun.com>
109891         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
109892         mismatch, look in future quarters as well as past.  This fixes a
109893         bug when processing fall-backwards gaps immediately after a long
109894         period of daylight-saving time.
109896         * lib/mktime.c: Assume freestanding C89 or better.
109897         (HAVE_LIMITS_H): Remove.  Assume it's 1.
109898         (__P): Remove; not used.
109899         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
109900         (mktime, not_equal_tm, print_tm, check_result,
109901         main): Use prototypes.  Use const * where appropriate.
109902         (main): Fix typo in testing code that uncovered by above changes.
109903         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
109905 2003-06-04  Paul Eggert  <eggert@twinsun.com>
109907         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
109908         locale.h, localeconv.  This merges changes from coreutils.
109910         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
109911         It can be removed after the next Autoconf is released.
109912         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
109913         needed.
109915 2003-06-04  Paul Eggert  <eggert@twinsun.com>
109917         * lib/mktime.c: Fix Debian bug 177940
109918         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
109919         (localtime_offset): Now long int, not time_t, because we want it
109920         to be guaranteed to be signed.  All uses changed.
109921         (__mktime_internal): If overflow would occur when adding offset,
109922         don't add it.
109924         Merge 'human' changes from coreutils.  Rewrite to support
109925         locale-specific notations like thousands separators.
109926         * lib/human.c: Simplify authorship notice.
109927         Include human.h immediately after config.h.
109928         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
109929         <limits.h>: Do not include, since human.h does.
109930         (SIZE_MAX, UINTMAX_MAX): New macros.
109931         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
109932         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
109933         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
109934         (power_letter): Renamed from suffixes.
109935         (generate_suffix_backwards): Remove.
109936         (adjust_value): Now takes int style (because of human.h changes)
109937         and long double value (for greater precision on some platforms).
109938         (group_number): New function.
109939         (human_readable): Use it.  Use integer options, not enum.
109940         Put the options before the sizes in the arg list.
109941         Support all the new options.
109942         The old human_readable function has been removed;
109943         use inttostr.h instead.
109944         (human_readable, default_block_size, humblock):
109945         Use uintmax_t, not int, for block sizes.
109946         (human_readable_inexact, block_size_types): Remove.
109947         (block_size_opts): New constant.
109948         (human_options): Renamed from human_block_size, with new signature
109949         that allows block sizes up to UINTMAX_MAX.  All callers changed.
109950         * lib/human.h: Add copyright and authorship notice.
109951         Include <limits.h> and <stdbool.h> unconditionally.
109952         (PARAMS): Remove.  All uses removed.
109953         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
109954         (enum human_inexact_style): Remove tag; now a nameless enum.
109955         (human_floor, human_ceiling, human_round_to_even): Now have
109956         values 2, 0, 1 rather than -1, 1, 0.
109957         (human_group_digits, human_suppress_point_zero, human_autoscale,
109958         human_base_1024, human_SI, human_B): New constants.
109959         (human_readable_inexact, human_block_size): Remove.
109960         (human_readable): Size args are now uintmax_t, not int.
109961         (human_options): New decl.
109963         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
109964         unnecessary now that we assume C89 or better.  This change
109965         imported from coreutils.
109967         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
109968         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
109969         in the 2003-05-30 sync from glibc.
109971         .h files should stand alone, but we shouldn't include <sys/types.h>
109972         if we can get away with just <stddef.h>.
109974         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
109975         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
109976         rather than <sys/types.h>, as we merely need size_t.
109977         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
109978         to get size_t.
109979         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
109980         Include <stdio.h>, to get FILE.
109981         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
109982         memcasecmp.h has included <stddef.h> and all we need is size_t.
109983         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
109984         our interface, instead of including <sys/types.h>
109986 2003-06-04  Paul Eggert  <eggert@twinsun.com>
109988         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
109989         now, as glibc mktime is buggy on non-glibc systems.
109991 2003-06-03  Karl Berry  <karl@gnu.org>
109993         * config/config.sub: update from prep.
109995 2003-06-02  Paul Eggert  <eggert@twinsun.com>
109997         [from coreutils]
109998         Fix some minor time-related bugs with POSIX time arguments.
109999         Some valid time stamps were being rejected (notably -1, and
110000         time stamps before 1900 on 64-bit hosts).  And some invalid
110001         time stamps were being accepted, e.g. September 31.
110003         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
110004         that we can return (time_t) -1 successfully.
110005         * lib/posixtm.c: Likewise.
110006         [HAVE_STDBOOL_H]: Include <stdbool.h>.
110007         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
110008         (t): Remove static var.
110009         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
110010         of static var.  All uses changed.
110011         (year): Do not reject years before 1900; they can occur with
110012         64-bit time_t.
110013         (posix_time_parse): Do not check for out-of-range components;
110014         that is now the caller's responsibility, since our checks were
110015         only approximations.
110016         (posixtime): Use mktime to check for out-of-range components,
110017         since it knows them exactly.
110018         If mktime returns (time_t) -1, check whether an error actually occurred
110019         by invoking localtime on -1.
110020         (main) [TEST_POSIXTIME]: Check for input data errors, and report
110021         posixtime failures better.
110022         Improve the test data (in comments only).
110024 2003-06-02  Karl Berry  <karl@gnu.org>
110026         * config/mkinstalldirs (version): new variable.
110027         (--version): new option.
110028         (usage): improve message.
110030 2003-05-30  Karl Berry  <karl@gnu.org>
110032         * lib/mktime.c: update from libc.
110034 2003-05-30  Bruno Haible  <bruno@clisp.org>
110036         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
110037         * config/config.rpath: Upgrade to gettext-0.12.1.
110039 2003-05-30  Bruno Haible  <bruno@clisp.org>
110041         * m4/gettext.m4: Upgrade to gettext-0.12.1.
110042         * m4/nls.m4: New file, from gettext-0.12.1.
110043         * m4/po.m4: New file, from gettext-0.12.1.
110044         * m4/progtest.m4: Upgrade to gettext-0.12.1.
110046 2003-05-30  Bruno Haible  <bruno@clisp.org>
110048         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
110049         * lib/localcharset.h: Likewise.
110050         * lib/localcharset.c: Likewise.
110052 2003-05-29  Karl Berry  <karl@gnu.org>
110054         * config/config.rpath: update from gettext.
110056 2003-05-28  Paul Eggert  <eggert@twinsun.com>
110058         Assume the headers required for C89 freestanding compilers.
110059         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
110060         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
110061         * m4/human.m4 (gl_HUMAN): Likewise.
110062         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
110063         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
110064         * m4/userspec.m4 (gl_USERSPEC): Likewise.
110065         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
110066         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
110067         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
110069 2003-05-28  Paul Eggert  <eggert@twinsun.com>
110071         Assume the headers required for C89 freestanding compilers.
110072         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
110073         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
110074         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
110075         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
110076         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
110077         define, since <limits.h> is guaranteed to do that.
110078         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
110079         * lib/exclude.c: Include <stdbool.h> unconditionally.
110080         * lib/tempname.c: Include <stddef.h> unconditionally.
110081         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
110082         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
110083         <stddef.h> does that.
110084         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
110085         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
110086         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
110087         needed.
110088         * lib/xstrtol.c: Likewise.
110089         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
110090         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
110092         * lib/addext.c (addext): Use assignment rather than cast, to avoid
110093         warnings on some platforms.
110095         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
110096         arbitrarily.
110098 2003-05-26  Jim Meyering  <jim@meyering.net>
110100         Merge in a change from coreutils:
110101         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
110102         that is guaranteed to be `no'.  Use `no_such_member' to indicate
110103         that condition, rather than `-1' which is slightly misleading.
110104         Change the name of the cache variable to have the gl_ prefix.
110105         Prompted by a patch from Richard Dawe for DJGPP.
110107 2003-05-24  Karl Berry  <karl@gnu.org>
110109         * config/config.guess: update from prep.
110111 2003-05-22  Karl Berry  <karl@gnu.org>
110113         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
110115 2003-05-20  Karl Berry  <karl@gnu.org>
110117         * config/config.guess: update from prep.
110119 2003-05-18  Karl Berry  <karl@gnu.org>
110121         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
110122         might actually be set by the user.
110124         * config/depcomp, install-sh, mdate-sh: update from automake.
110126 2003-05-17  Bruno Haible  <bruno@clisp.org>
110128         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
110129         invalid expansion for AC_EGREP_CPP.
110130         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
110131         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
110132         Suggested by Akim Demaille <akim@epita.fr> in
110133         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
110135 2003-05-12  Jim Meyering  <jim@meyering.net>
110137         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
110138         the space-padded-by-default conversion specifiers, %e, %k, %l.
110140 2003-05-12  Bruno Haible  <bruno@clisp.org>
110142         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
110143         the string is longer than 4 KB.
110145 2003-05-11  Karl Berry  <karl@gnu.org>
110147         * config/config.{guess,sub}: update from prep.
110149 2003-05-09  Bruno Haible  <bruno@clisp.org>
110151         * modules/error: Add m4/strerror_r.m4 to file list.
110153 2003-05-03  Bruno Haible  <bruno@clisp.org>
110155         Upgrade to Unicode-4.0.
110156         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
110157         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
110158         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
110159         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
110160         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
110161         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
110162         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
110163         Change width of U+E0100..U+E01EF from 1 to 0.
110165 2003-04-25  Jim Meyering  <jim@meyering.net>
110167         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
110168         of type size_t, not int.
110170 2003-04-25  Bruno Haible  <bruno@clisp.org>
110172         * lib/copy-file.c: Include <stddef.h>, for size_t.
110174 2003-04-21  Paul Eggert  <eggert@twinsun.com>
110176         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
110177         code which expansion is under static control.  Patch imported from
110178         Akim Demaille's patch to Bison; see
110179         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
110181 2003-04-14  Bruno Haible  <bruno@clisp.org>
110183         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
110185 2003-04-11  Jim Meyering  <jim@meyering.net>
110187         Merge changes from Coreutils.
110189         2003-03-22  Jim Meyering  <jim@meyering.net>
110191         * lib/strftime.c (widen): Cast alloca return value to proper type.
110193         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
110195         From GNU libc.
110196         * lib/strftime.c (my_strftime): Handle very large width
110197         specifications for numeric values correctly.  Improve checks for
110198         overflow.
110200         2003-01-19  Jim Meyering  <jim@meyering.net>
110202         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
110203         definitions.
110204         (nl_get_alt_digit) [! defined my_strftime]: Define.
110205         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
110206         _nl_get_alt_digit and _nl_get_walt_digit.
110208         * lib/strftime.c (my_strftime): Merge in locale-related changes from
110209         libc. These changes have no effect outside of _LIBC.
110211 2003-04-10  Bruno Haible  <bruno@clisp.org>
110213         * modules/findprog: New file.
110214         * MODULES.html.sh (func_all_modules): Add it.
110216 2003-04-10  Bruno Haible  <bruno@clisp.org>
110218         * m4/findprog.m4: New file.
110219         * m4/eaccess.m4: New file.
110221 2003-04-10  Bruno Haible  <bruno@clisp.org>
110223         * lib/findprog.h: New file, from GNU gettext.
110224         * lib/findprog.c: New file, from GNU gettext.
110226 2003-04-05  Jim Meyering  <jim@meyering.net>
110228         Merge changes from Coreutils.
110230         * lib/exclude.h (PARAMS): Remove definition and uses.
110231         * lib/exclude.c: Remove uses of `PARAMS'.
110233         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
110234         Add test-cases for DOS filenames. Declare program_name.
110235         (main): Set up program_name.  Patch by Rich Dawe.
110237         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
110238         error from mntctl.
110239         Use mntctl's return value to drive the entry-processing loop, since
110240         we can't rely on the value of the vmt_length member in the last
110241         entry.  On some systems doing so could result in exhausting
110242         virtual memory.  Based in part on a patch from Mike Jetzer.
110244 2003-04-04  Bruno Haible  <bruno@clisp.org>
110246         * modules/linebreak: New file.
110247         * MODULES.html.sh (func_all_modules): Add it.
110249 2003-04-04  Bruno Haible  <bruno@clisp.org>
110251         * m4/linebreak.m4: New file.
110253 2003-04-04  Bruno Haible  <bruno@clisp.org>
110255         * lib/linebreak.h: New file, from GNU gettext.
110256         * lib/linebreak.c: New file, from GNU gettext with slight
110257         modifications.
110258         * lib/lbrkprop.h: New file, from GNU gettext.
110260 2003-04-03  Bruno Haible  <bruno@clisp.org>
110262         * modules/utf8-ucs4: New file.
110263         * modules/utf16-ucs4: New file.
110264         * modules/ucs4-utf8: New file.
110265         * modules/ucs4-utf16: New file.
110266         * MODULES.html.sh (func_all_modules): Add them.
110268 2003-04-03  Bruno Haible  <bruno@clisp.org>
110270         * m4/utf-ucs4.m4: New file.
110271         * m4/ucs4-utf.m4: New file.
110273 2003-04-03  Bruno Haible  <bruno@clisp.org>
110275         * lib/utf8-ucs4.h: New file, from GNU gettext.
110276         * lib/utf16-ucs4.h: New file, from GNU gettext.
110277         * lib/ucs4-utf8.h: New file, from GNU gettext.
110278         * lib/ucs4-utf16.h: New file, from GNU gettext.
110280 2003-04-02  Bruno Haible  <bruno@clisp.org>
110282         * modules/binary-io: New file.
110283         * MODULES.html.sh (func_all_modules): Add it.
110285 2003-04-02  Bruno Haible  <bruno@clisp.org>
110287         * lib/binary-io.h: New file, from GNU gettext.
110289 2003-04-01  Bruno Haible  <bruno@clisp.org>
110291         * modules/pathname: New file.
110292         * MODULES.html.sh (func_all_modules): Add it.
110294 2003-04-01  Bruno Haible  <bruno@clisp.org>
110296         * lib/pathname.h: New file, from GNU gettext.
110297         * lib/concatpath.c: New file, from GNU gettext.
110299 2003-03-30  Bruno Haible  <bruno@clisp.org>
110301         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
110303 2003-03-30  Bruno Haible  <bruno@clisp.org>
110305         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
110306         function chown() doesn't exist.
110308 2003-03-28  Bruno Haible  <bruno@clisp.org>
110310         * modules/copy-file: New file.
110311         * MODULES.html.sh (func_all_modules): Add it.
110313 2003-03-28  Bruno Haible  <bruno@clisp.org>
110315         * m4/copy-file.m4: New file.
110317 2003-03-28  Bruno Haible  <bruno@clisp.org>
110319         * lib/copy-file.h: New file, from GNU gettext.
110320         * lib/copy-file.c: New file, from GNU gettext.
110322 2003-03-18  Jim Meyering  <jim@meyering.net>
110324         * lib/quote.c (quote_n): Fix typo in comment.
110326 2003-03-18  Bruno Haible  <bruno@clisp.org>
110328         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
110329         checking.
110330         * m4/onceonly_2_57.m4: Likewise.
110332 2003-03-17  Bruno Haible  <bruno@clisp.org>
110334         * m4/onceonly.m4: Require autoconf 2.54 or newer.
110335         (m4_quote): Remove macro.
110336         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
110338 2003-03-14  Jim Meyering  <jim@meyering.net>
110340         Merge changes from Coreutils.
110341         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
110342         to be const, in order to avoid warnings.
110343         (obstack_room): Likewise.
110344         (obstack_empty_p): Likewise.
110346 2003-03-14  Bruno Haible  <bruno@clisp.org>
110348         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
110349         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
110351 2003-03-13  Paul Eggert  <eggert@twinsun.com>
110353         Merge changes from Bison.
110354         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
110355         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
110356         when compiling Bison 1.875's `bitset bset = obstack_alloc
110357         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
110358         * lib/hash.c: Include <stdbool.h> unconditionally.
110360 2003-03-13  Paul Eggert  <eggert@twinsun.com>
110362         * m4/onceonly.m4 (m4_quote): New macro.
110363         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
110364         Quote AC_FOREACH variable-expansions properly.
110366 2003-03-13  Paul Eggert  <eggert@twinsun.com>
110368         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
110370 2003-03-09  Paul Eggert  <eggert@twinsun.com>
110372         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
110373         Reported by Bruce Becker; see:
110374         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
110376 2003-03-03  Paul Eggert  <eggert@twinsun.com>
110377             Bruno Haible  <bruno@clisp.org>
110379         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
110380         Reported by John Hughes, see
110381         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
110383 2003-02-20  Bruno Haible  <bruno@clisp.org>
110385         * MODULES.html.sh (func_all_modules): Add poll.
110387 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
110389         * modules/poll: New file.
110391 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
110393         * lib/poll_.h: New file.
110394         * lib/poll.c: New file.
110396 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
110398         * m4/poll.m4: New file.
110400 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
110402         * modules/mathl: New file.
110404 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
110406         * lib/mathl.h: New file.
110407         * lib/acosl.c: New file.
110408         * lib/asinl.c: New file.
110409         * lib/atanl.c: New file.
110410         * lib/ceill.c: New file.
110411         * lib/cosl.c: New file.
110412         * lib/expl.c: New file.
110413         * lib/floorl.c: New file.
110414         * lib/frexpl.c: New file.
110415         * lib/ldexpl.c: New file.
110416         * lib/logl.c: New file.
110417         * lib/sincosl.c: New file.
110418         * lib/sinl.c: New file.
110419         * lib/sqrtl.c: New file.
110420         * lib/tanl.c: New file.
110421         * lib/trigl.c: New file.
110422         * lib/trigl.h: New file.
110424 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
110426         * m4/mathl.m4: New file.
110428 2003-02-18  Bruno Haible  <bruno@clisp.org>
110430         * MODULES.html.sh (func_all_modules): Add mathl.
110432 2003-02-17  Bruno Haible  <bruno@clisp.org>
110434         * modules/mkdtemp: New module.
110435         * MODULES.html.sh (func_all_modules): Add it.
110437 2003-02-17  Bruno Haible  <bruno@clisp.org>
110439         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
110441 2003-02-17  Bruno Haible  <bruno@clisp.org>
110443         * lib/mkdtemp.h: New file, from GNU gettext.
110444         * lib/mkdtemp.c: New file, from GNU gettext.
110446 2003-02-02  Jim Meyering  <jim@meyering.net>
110448         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
110449         e.g. glibc-2.2.93.
110451 2003-01-31  Bruno Haible  <bruno@clisp.org>
110453         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
110454         'rpl_rename'.
110455         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
110456         'rpl_strnlen'.
110457         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
110458         'rpl_strtod'.
110459         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
110460         'rpl_utime'.
110462 2003-01-31  Bruno Haible  <bruno@clisp.org>
110464         * lib/rename.c: #undef rename before defining rpl_rename.
110465         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
110467 2003-01-30  Bruno Haible  <bruno@clisp.org>
110469         * modules/vasnprintf, modules/vasprintf: New modules.
110470         * MODULES.html.sh (func_all_modules): Add them.
110472 2003-01-30  Bruno Haible  <bruno@clisp.org>
110474         * m4/signed.m4: New file, from GNU gettext.
110475         * m4/longdouble.m4: New file, from GNU gettext.
110476         * m4/wchar_t.m4: New file, from GNU gettext.
110477         * m4/wint_t.m4: New file, from GNU gettext.
110478         * m4/vasnprintf.m4: New file.
110479         * m4/vasprintf.m4: New file.
110481 2003-01-30  Bruno Haible  <bruno@clisp.org>
110483         * lib/printf-args.h: New file, from GNU gettext.
110484         * lib/printf-args.c: New file, from GNU gettext.
110485         * lib/printf-parse.h: New file, from GNU gettext.
110486         * lib/printf-parse.c: New file, from GNU gettext.
110487         * lib/vasnprintf.h: New file, from GNU gettext.
110488         * lib/vasnprintf.c: New file, from GNU gettext.
110489         * lib/asnprintf.c: New file, from GNU gettext.
110490         * lib/vasprintf.h: New file, from GNU gettext with modifications.
110491         * lib/vasprintf.c: New file, from GNU gettext.
110492         * lib/asprintf.c: New file, from GNU gettext.
110494 2003-01-29  Bruno Haible  <bruno@clisp.org>
110496         * modules/stpncpy: New module.
110497         * MODULES.html.sh (func_all_modules): Add it.
110499 2003-01-29  Bruno Haible  <bruno@clisp.org>
110501         * m4/stpncpy.m4: New file.
110503 2003-01-29  Bruno Haible  <bruno@clisp.org>
110505         * lib/stpncpy.h: New file, from GNU gettext with modifications.
110506         * lib/stpncpy.c: New file, from GNU gettext with modifications.
110508 2003-01-28  Bruno Haible  <bruno@clisp.org>
110510         * modules/c-ctype: New module.
110511         * MODULES.html.sh (func_all_modules): Add it.
110513 2003-01-28  Bruno Haible  <bruno@clisp.org>
110515         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
110516         Paul Eggert.
110517         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
110518         Paul Eggert.
110520 2003-01-27  Bruno Haible  <bruno@clisp.org>
110522         * modules/xsetenv: New module.
110523         * MODULES.html.sh (func_all_modules): Add it.
110525 2003-01-27  Bruno Haible  <bruno@clisp.org>
110527         * lib/xsetenv.h: New file, from GNU gettext.
110528         * lib/xsetenv.c: New file, from GNU gettext.
110530 2003-01-23  Jim Meyering  <jim@meyering.net>
110532         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
110533         from working on systems without dirfd (at least Irix and OSF1/Tru64).
110535 2003-01-23  Bruno Haible  <bruno@clisp.org>
110537         * modules/minmax: New module.
110538         * MODULES.html.sh (func_all_modules): Add it.
110540 2003-01-23  Bruno Haible  <bruno@clisp.org>
110542         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
110543         Eggert.
110545 2003-01-22  Bruno Haible  <bruno@clisp.org>
110547         * modules/exit: New module.
110548         * MODULES.html.sh (func_all_modules): Add it.
110550 2003-01-22  Bruno Haible  <bruno@clisp.org>
110552         * lib/exit.h: New file, from GNU gettext.
110554 2003-01-19  Bruno Haible  <bruno@clisp.org>
110556         * gnulib-tool: Recognize option --extract-maintainer.
110557         (func_get_maintainer): New function.
110558         * modules/*: Add Maintainer entry.
110560 2003-01-16  Jim Meyering  <jim@meyering.net>
110562         * m4/regex.m4: The `regex' struct is both input and output.
110563         Initialize it before each use.  Patch by Tim Waugh.
110565 2003-01-16  Bruno Haible  <bruno@clisp.org>
110567         * MODULES.html.sh: Add a table of contents. Add the module name as
110568         leftmost column. Add hyperlinks.
110570 2003-01-15  Bruno Haible  <bruno@clisp.org>
110572         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
110574 2003-01-15  Bruno Haible  <bruno@clisp.org>
110576         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
110577         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
110578         suffix.
110580 2003-01-15  Bruno Haible  <bruno@clisp.org>
110582         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
110584 2003-01-15  Bruno Haible  <bruno@clisp.org>
110586         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
110587         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
110589 2003-01-14  Jim Meyering  <jim@meyering.net>
110591         * lib/same.c (same_name): Tweak a comment.
110593 2003-01-14  Bruno Haible  <bruno@clisp.org>
110595         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
110596         when a string comparison is sufficient.
110598 2003-01-14  Bruno Haible  <bruno@clisp.org>
110600         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
110601         'unsigned int'.
110603 2003-01-14  Bruno Haible  <bruno@clisp.org>
110605         * lib/hash-pjw.c: Add comment about low quality of this function.
110607 2003-01-13  Bruno Haible  <bruno@clisp.org>
110609         * modules/stpcpy: Distribute lib/stpcpy.h.
110610         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
110612 2003-01-13  Bruno Haible  <bruno@clisp.org>
110614         * modules/*: Add a description.
110615         * modules/strpbrk: Fix Makefile.am snippet.
110616         * modules/strtoimax: Fix dependencies.
110617         * modules/strtoumax: Likewise.
110619 2003-01-13  Bruno Haible  <bruno@clisp.org>
110621         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
110622         * modules/alloca (Makefile.am): All object files depend on alloca.h.
110623         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
110625 2003-01-13  Bruno Haible  <bruno@clisp.org>
110627         * gnulib-tool (func_create_testdir): Store config/* files in the main
110628         directory.
110629         * config.rpath: Move to ...
110630         * config/config.rpath: ... here.
110631         * modules/gettext: Contains config/config.rpath, not config.rpath.
110632         * modules/iconv: Likewise.
110634 2003-01-12  Paul Eggert  <eggert@twinsun.com>
110636         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
110637         to avoid collisions with libcurses and libreadline.
110639         * m4/getstr.m4: Remove.
110640         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
110642 2003-01-12  Paul Eggert  <eggert@twinsun.com>
110644         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
110645         to avoid collisions with libcurses and libreadline.
110647         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
110648         * lib/getstr.h, getstr.c: Remove.
110649         * lib/getline.c: Include "getline.h", to check interface.
110650         Move body of old getstr.c here: this defines MIN_CHUNK and
110651         declares getdelim2, which is renamed from getstr.
110652         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
110654         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
110655         All uses changed.
110656         * lib/linebuffer.h: Likewise.
110657         (readline): Remove backward-compatibility macro.
110659 2003-01-12  Paul Eggert  <eggert@twinsun.com>
110661         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
110662         to avoid collisions with libcurses and libreadline.
110663         * getstr: Remove.
110664         * MODULES.html.sh: Remove getstr.
110665         * modules/getline: Depend on unlocked-io, not getstr.
110667 2003-01-12  Jim Meyering  <jim@meyering.net>
110669         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
110671 2003-01-10  Bruno Haible  <bruno@clisp.org>
110673         * modules/alloca: Change Makefile.am requirements. Simplify Include
110674         requirements. Add lib/alloca_.h to file list.
110676 2003-01-10  Bruno Haible  <bruno@clisp.org>
110678         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
110680 2003-01-10  Bruno Haible  <bruno@clisp.org>
110682         * lib/alloca_.h: New file.
110683         * lib/getdate.y: Unconditionally include alloca.h.
110684         * lib/makepath.c: Likewise.
110685         * lib/setenv.c: Likewise.
110686         * lib/userspec.c: Likewise.
110688 2003-01-09  Karl Berry  <karl@gnu.org>
110690         * MODULES.html.sh: include `dirname $0` in PATH, to find
110691         gnulib-tool.
110693 2003-01-09  Bruno Haible  <bruno@clisp.org>
110695         * modules/stdbool: Change configure.ac, Makefile.am requirements.
110696         Simplify Include requirements. Add lib/stdbool.h.in to file list.
110698 2003-01-09  Bruno Haible  <bruno@clisp.org>
110700         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
110702 2003-01-09  Bruno Haible  <bruno@clisp.org>
110704         * lib/stdbool.h.in: New file.
110706 2003-01-09  Bruno Haible  <bruno@clisp.org>
110708         * gnulib-tool (func_all_modules): Ignore files ending in ~.
110709         * MODULES.html.sh: Likewise.
110711 2003-01-08  Jim Meyering  <jim@meyering.net>
110713         * lib/full-write.c: Undefine and define-away `const' after inclusion
110714         of errno.h, not before.  Suggestion from Bruno Haible.
110716 2003-01-08  Bruno Haible  <bruno@clisp.org>
110718         * modules/full-read: Depend on full-write.
110720 2003-01-08  Bruno Haible  <bruno@clisp.org>
110722         * lib/safe-read.c: Include specification header first, to ensure its
110723         selfcontainedness.
110724         * lib/full-write.c: Likewise.
110726 2003-01-07  Jim Meyering  <jim@meyering.net>
110728         * lib/full-write.c: Rework so that it may serve to define full_read,
110729         too.
110730         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
110732 2003-01-07  Bruno Haible  <bruno@clisp.org>
110734         * lib/strtoimax.c: Include <stdint.h> as an alternative to
110735         <inttypes.h>.
110736         * lib/xstrtol.h: Likewise.
110737         * lib/xstrtoimax.c: Likewise.
110738         * lib/xstrtoumax.c: Likewise.
110739         * lib/human.h: Likewise.
110741         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
110742         on systems that have <inttypes.h> but not <stdint.h>.
110744 2003-01-07  Bruno Haible  <bruno@clisp.org>
110746         * MODULES.html.sh: Add copyright notice.
110747         (missed_files): Omit CVS directory entries.
110748         (func_module): Make it work with sed-3.02.
110749         * MODULES.txt: Remove file.
110751 2003-01-06  Jim Meyering  <jim@meyering.net>
110753         * lib/version-etc.c: Update year in translatable copyright string.
110755 2003-01-03  Karl Berry  <karl@gnu.org>
110757         * config/config.{guess,sub}: update from prep.
110759 2003-01-02  Karl Berry  <karl@gnu.org>
110761         * doc/COPYING.DOC: belatedly updated to 1.2.
110763 2003-01-01  Karl Berry  <karl@gnu.org>
110765         * gnulib-tool (func_verify_module): report module name $module in
110766         error message, not $1.
110767         * gnulib-tool (create-testdir): don't complain if destdir couldn't
110768         be created, only if it doesn't exist.
110769         * gnulib-tool (last_checkin_date): don't expand the $Date here.
110771 2002-12-31  Paul Eggert  <eggert@twinsun.com>
110773         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
110775 2002-12-31  Paul Eggert  <eggert@twinsun.com>
110777         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
110778         memcmp if strcoll doesn't work.
110780 2002-12-31  Bruno Haible  <bruno@clisp.org>
110782         * lib/utime.c (utime_null): No need to call ftruncate if the file was
110783         nonempty.
110785 2002-12-31  Bruno Haible  <bruno@clisp.org>
110787         * lib/memcoll.c (STRCOLL): New macro.
110788         (memcoll): Use it.
110790 2002-12-31  Bruno Haible  <bruno@clisp.org>
110792         * lib/localcharset.h: New file.
110793         * lib/localcharset.c: Include it.
110794         * lib/unicodeio.c: Likewise.
110796 2002-12-31  Bruno Haible  <bruno@clisp.org>
110798         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
110799         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
110801 2002-12-31  Bruno Haible  <bruno@clisp.org>
110803         * lib/getline.h: Include <stddef.h>, for size_t.
110805         * lib/unicodeio.h: Include <stddef.h>, for size_t.
110806         * lib/unicodeio.c: Don't include <stddef.h>.
110808 2002-12-31  Bruno Haible  <bruno@clisp.org>
110810         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
110811         HAVE_TM_ZONE.
110813 2002-12-24  Karl Berry  <karl@gnu.org>
110815         * config/config.guess: update from prep.
110817 2002-12-24  Bruno Haible  <bruno@clisp.org>
110819         General infrasructure.
110820         * m4/README: Rewritten.
110821         * m4/onceonly.m4: New file.
110822         * m4/onceonly_2_57.m4: New file.
110824         Module atexit.
110825         * m4/atexit.m4: New file.
110827         Module strtod.
110828         * m4/strtod.m4: New file.
110830         Module strtol.
110831         * m4/strtol.m4: New file.
110833         Module strtoul.
110834         * m4/strtoul.m4: New file.
110836         Module memchr.
110837         * m4/memchr.m4: New file.
110839         Module memcmp.
110840         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
110841         (jm_FUNC_MEMCMP): Invoke it.
110843         Module memcpy.
110844         * m4/memcpy.m4: New file.
110846         Module memmove.
110847         * m4/memmove.m4: New file.
110849         Module memset.
110850         * m4/memset.m4: New file.
110852         Module strcspn.
110853         * m4/strcspn.m4: New file.
110855         Module strpbrk.
110856         * m4/strpbrk.m4: New file.
110858         Module strstr.
110859         * m4/strstr.m4: New file.
110861         Module strerror.
110862         * m4/strerror.m4: New file.
110864         Module mktime.
110865         * m4/mktime.m4: Renamed from jm-mktime.m4.
110866         (gl_PREREQ_MKTIME): New macro.
110867         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
110869         Module malloc.
110870         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
110871         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
110872         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
110874         Module realloc.
110875         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
110876         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
110877         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
110879         Module strftime.
110880         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
110881         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
110882         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
110883         gl_TM_GMTOFF.
110884         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
110886         Module xalloc.
110887         * m4/xalloc.m4: New file.
110889         Module alloca.
110890         * m4/alloca.m4: New file.
110892         Module putenv.
110893         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
110894         (jm_FUNC_PUTENV): Invoke it.
110896         Module setenv.
110897         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
110898         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
110899         when invoked twice.
110900         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
110901         gt_FUNC_SETENV.
110903         Module memrchr.
110904         * m4/memrchr.m4: New file.
110906         Module stpcpy.
110907         * m4/stpcpy.m4: New file.
110909         Module strcase.
110910         * m4/strcase.m4: New file.
110912         Module strdup.
110913         * m4/strdup.m4: New file.
110915         Module strnlen.
110916         * m4/strnlen.m4: New file.
110918         Module strndup.
110919         * m4/strndup.m4: New file.
110921         Module xstrtod.
110922         * m4/xstrtod.m4: New file.
110924         Module xstrtol.
110925         * m4/xstrtol.m4: New file.
110927         Module getdate.
110928         * m4/getdate.m4: New file.
110930         Module unlocked-io.
110931         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
110932         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
110933         * m4/jm-glibc-io.m4n: Remove file.
110935         Module long-options.
110936         * m4/long-options.m4: New file.
110938         Module md5.
110939         * m4/md5.m4: New file.
110941         Module sha.
110942         * m4/sha.m4: New file.
110944         Module getstr.
110945         * m4/getstr.m4: New file.
110947         Module getline.
110948         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
110949         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
110950         <sys/types.h>, for size_t. Use the function name gnu_getline, not
110951         simply getline. Infoke gl_PREREQ_GETLINE.
110953         Module obstack.
110954         * m4/obstack.m4: New file.
110956         Module hash.
110957         * m4/hash.m4: New file.
110959         Module readtokens.
110960         * m4/readtokens.m4: New file.
110962         Module strverscmp.
110963         * m4/strverscmp.m4: New file.
110965         Module stdbool.
110966         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
110967         OSF/1.
110969         Module strtoll.
110970         * m4/strtoll.m4: New file.
110972         Module strtoull.
110973         * m4/strtoull.m4: New file.
110975         Module strtoimax.
110976         * m4/strtoimax.m4: New file.
110978         Module strtoumax.
110979         * m4/strtoumax.m4: New file.
110981         Module xstrtoimax.
110982         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
110983         jm_AC_PREREQ_XSTRTOIMAX.
110984         Moved the strtol prerequisites to strtol.m4.
110985         Moved the strtoll prerequisites to strtoll.m4.
110986         Moved the strtoimax prerequisites to strtoimax.m4.
110988         Module xstrtoumax.
110989         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
110990         jm_AC_PREREQ_XSTRTOUMAX.
110991         Moved the strtoul prerequisites to strtoul.m4.
110992         Moved the strtoull prerequisites to strtoull.m4.
110993         Moved the strtoumax prerequisites to strtoumax.m4.
110995         Module chown.
110996         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
110997         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
110999         Module dup2.
111000         * m4/dup2.m4: New file.
111002         Module ftruncate.
111003         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
111004         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
111006         Module getgroups.
111007         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
111008         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
111010         Module gettimeofday.
111011         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
111012         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
111013         gl_PREREQ_GETTIMEOFDAY.
111015         Module mkdir.
111016         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
111017         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
111019         Module mkstemp.
111020         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
111021         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
111022         jm_AC_TYPE_UINTMAX_T.
111023         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
111025         Module stat.
111026         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
111027         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
111029         Module lstat.
111030         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
111031         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
111033         Module timespec.
111034         * m4/timespec.m4 (gl_TIMESPEC): New macro.
111035         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
111036         * m4/st_mtim.m4: Indentation.
111038         Module nanosleep.
111039         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
111040         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
111041         gl_PREREQ_NANOSLEEP.
111043         Module regex.
111044         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
111045         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
111046         (gl_REGEX): New macro.
111048         Module rename.
111049         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
111050         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
111052         Module rmdir.
111053         * m4/rmdir.m4: New file.
111055         Module utime.
111056         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
111057         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
111058         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
111060         Module dirname.
111061         * m4/dirname.m4: New file.
111063         Module getopt.
111064         * m4/getopt.m4: New file.
111066         Module unistd-safer.
111067         * m4/unistd-safer.m4: New file.
111069         Module fnmatch.
111070         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
111071         declaration.
111072         (gl_PREREQ_FNMATCH_EXTRA): New macro.
111073         (gl_FUNC_FNMATCH_POSIX): New macro.
111074         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
111075         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
111076         simply fnmatch.
111078         Module exclude.
111079         * m4/exclude.m4: New file.
111081         Module human.
111082         * m4/human.m4: New file.
111084         Module acl.
111085         * m4/acl.m4: Nop.
111087         Module backupfile.
111088         * m4/backupfile.m4: New file.
111089         * m4/d-ino.m4: Indentation.
111091         Module fsusage.
111092         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
111093         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
111094         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
111096         Module dirfd.
111097         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
111098         requirements.
111100         Module euidaccess.
111101         * m4/euidaccess.m4: New file.
111103         Module file-type.
111104         * m4/file-type.m4: New file.
111106         Module fileblocks.
111107         * m4/fileblocks.m4: New file.
111109         Module filemode.
111110         * m4/filemode.m4: New file.
111112         Module isdir.
111113         * m4/isdir.m4: New file.
111115         Module lchown.
111116         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
111117         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
111119         Module makepath.
111120         * m4/makepath.m4: New file.
111122         Module modechange.
111123         * m4/modechange.m4: New file.
111125         Module mountlist.
111126         * m4/mountlist.m4: New file.
111127         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
111128         Indentation.
111130         Module path-concat.
111131         * m4/path-concat.m4: New file.
111133         Module pathmax.
111134         * m4/pathmax.m4: New file.
111136         Module same.
111137         * m4/same.m4: New file.
111139         Module save-cwd.
111140         * m4/save-cwd.m4: New file.
111142         Module savedir.
111143         * m4/savedir.m4: New file.
111145         Module xgetcwd.
111146         * m4/xgetcwd.m4: New file.
111147         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
111149         Module xreadlink.
111150         * m4/xreadlink.m4: New file.
111152         Module safe-read.
111153         * m4/safe-read.m4: New file.
111155         Module safe-write.
111156         * m4/safe-write.m4: New file.
111158         Module closeout.
111159         * m4/closeout.m4: New file.
111161         Module stdio-safer.
111162         * m4/stdio-safer.m4: New file.
111164         Module getpass.
111165         * m4/getpass.m4: New file.
111167         Module getugroups.
111168         * m4/getugroups.m4: New file.
111170         Module group-member.
111171         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
111172         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
111174         Module idcache.
111175         * m4/idcache.m4: New file.
111177         Module userspec.
111178         * m4/userspec.m4: New file.
111180         Module gettime.
111181         * m4/clock_time.m4: New file.
111182         * m4/gettime.m4: New file.
111184         Module settime.
111185         * m4/settime.m4: New file.
111187         Module posixtm.
111188         * m4/posixtm.m4: New file.
111190         Module gethostname.
111191         * m4/gethostname.m4: New file.
111193         Module canon-host.
111194         * m4/canon-host.m4: New file.
111196         Module gettext.
111197         * m4/codeset.m4: New file, from gettext-0.11.5.
111198         * m4/gettext.m4: New file, from gettext-0.11.5.
111199         * m4/glibc21.m4: New file, from gettext-0.11.5.
111200         * m4/iconv.m4: New file, from gettext-0.11.5.
111201         * m4/intdiv0.m4: New file, from gettext-0.11.5.
111202         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
111203         * m4/inttypes.m4: New file, from gettext-0.11.5.
111204         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
111205         * m4/isc-posix.m4: New file, from gettext-0.11.5.
111206         * m4/lcmessage.m4: New file, from gettext-0.11.5.
111207         * m4/lib-ld.m4: New file, from gettext-0.11.5.
111208         * m4/lib-link.m4: New file, from gettext-0.11.5.
111209         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
111210         * m4/progtest.m4: New file, from gettext-0.11.5.
111211         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
111212         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
111213         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
111215         Module localcharset.
111216         * m4/localcharset.m4: New file.
111218         Module hard-locale.
111219         * m4/hard-locale.m4: New file.
111221         Module mbswidth.
111222         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
111223         onceonly macros.
111224         * m4/mbrtowc.m4: Add comment.
111226         Module memcasecmp.
111227         * m4/memcasecmp.m4: New file.
111229         Module memcoll.
111230         * m4/memcoll.m4: New file.
111232         Module unicodeio.
111233         * m4/unicodeio.m4: New file.
111235         Module rpmatch.
111236         * m4/rpmatch.m4: New file.
111238         Module yesno.
111239         * m4/yesno.m4: New file.
111241         Module exitfail.
111242         * m4/exitfail.m4: New file.
111244         Module c-stack.
111245         * m4/c-stack.m4 (gl_C_STACK): New macro.
111246         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
111248         Module error.
111249         * m4/error.m4 (gl_ERROR): New macro.
111250         (jm_PREREQ_ERROR): Use onceonly macros.
111252         Module fatal.
111253         * m4/fatal.m4: New file.
111255         Module getloadavg.
111256         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
111257         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
111259         Module getpagesize.
111260         * m4/getpagesize.m4: New file.
111262         Module getusershell.
111263         * m4/getusershell.m4: New file.
111265         Module physmem.
111266         * m4/physmem.m4: New file.
111268         Module posixver.
111269         * m4/posixver.m4: New file.
111271         Module quotearg.
111272         * m4/quotearg.m4: New file.
111274         Module quote.
111275         * m4/quote.m4: New file.
111277         Module readutmp.
111278         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
111280         Module sig2str.
111281         * m4/sig2str.m4: New file.
111283         Other.
111284         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
111285         ulonglong.m4.
111286         * m4/intmax_t.m4: New file.
111287         * m4/d-type.m4: Indentation.
111288         * m4/jm-macros.m4: Update.
111289         * m4/prereq.m4 (jm_PREREQ): Update.
111290         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
111291         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
111292         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
111293         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
111294         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
111295         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
111296         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
111297         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
111298         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
111299         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
111300         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
111301         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
111302         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
111303         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
111304         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
111305         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
111306         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
111307         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
111308         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
111310 2002-12-24  Bruno Haible  <bruno@clisp.org>
111312         * MODULES.txt: Update according to m4/ changes.
111314         Module gettext.
111315         * config.rpath: New file, from gettext-0.11.5.
111317         * modules/*: New module descriptions.
111318         * gnulib-tool: New file.
111319         * MODULES.html.sh: New file.
111321 2002-12-21  Karl Berry  <karl@gnu.org>
111323         * doc/fdl.texi: update to version 1.2.
111325 2002-12-19  Karl Berry  <karl@gnu.org>
111327         * config/config.guess: update from prep.
111329 2002-12-18  Bruno Haible  <bruno@clisp.org>
111331         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
111332         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
111334 2002-12-17  Bruno Haible  <bruno@clisp.org>
111336         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
111337         stdlib.h, string.h.
111339 2002-12-17  Bruno Haible  <bruno@clisp.org>
111341         * lib/canon-host.c (strdup): Remove unused declaration.
111343         * lib/fsusage.c: Include full_read.h.
111344         (get_fs_usage): Use full_read instead of safe_read.
111346         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
111348 2002-12-12  Karl Berry  <karl@gnu.org>
111350         * config/config.guess: update from prep.
111352 2002-12-11  Bruno Haible  <bruno@clisp.org>
111354         * m4/setenv.m4: New file, from gettext-0.11.5.
111356 2002-12-11  Bruno Haible  <bruno@clisp.org>
111358         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
111359         not unsetenv().
111360         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
111361         modifications:
111363         2002-12-11  Bruno Haible  <bruno@clisp.org>
111365                 * setenv.c (alloca): Fall back to malloc.
111366                 (freea): New macro.
111367                 (setenv): Use freea() to free memory allocated with alloca().
111369         2002-11-13  Bruno Haible  <bruno@clisp.org>
111371                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
111372                 function declarations.
111373                 * unsetenv.c (unsetenv): Likewise.
111375         2002-03-04  Bruno Haible  <bruno@clisp.org>
111377                 Portability to AIX 4.3.3.
111378                 * unsetenv.c: New file, extracted from setenv.c.
111379                 * setenv.c: Move the unsetenv() function to unsetenv.c.
111381         2001-12-20  Bruno Haible  <bruno@clisp.org>
111383                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
111384                 use malloc instead. For SunOS 4.
111386         2001-12-11  Bruno Haible  <bruno@clisp.org>
111388                 * setenv.c: Declare alloca.
111389                 (compar_fn_t): New typedef.
111390                 (KNOWN_VALUE, STORE_VALUE): Use it.
111392         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
111393         setenv.h.
111395 2002-12-10  Paul Eggert  <eggert@twinsun.com>
111397         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
111398         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
111399         Choose values that are less likely to collide with system fnmatch
111400         options.
111401         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
111402         defined (e.g., a pure POSIX system).
111403         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
111404         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
111406 2002-12-06  Paul Eggert  <eggert@twinsun.com>
111408         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
111409         a pain in practice to deal with generated m4 files.  This change
111410         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
111412         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
111413         and jm-glibc-io.m4, as they are no longer a special case.
111414         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
111415         kludge and the auto-generation stuff.  Check only whether the
111416         functions are declared, not whether they exist, since older hosts
111417         that don't declare the functions can't use the optimization anyway.
111419 2002-12-06  Jim Meyering  <jim@meyering.net>
111421         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
111423         Merge in changes from libc's misc/error.c, in preparation
111424         for the merge of gnulib's changes back into libc.
111426         * lib/error.c (_): Define only if not already defined.
111427         Move definition to follow all #include directives.
111428         Include unlocked-io.h only if !_LIBC.
111429         [_LIBC]: Include <libio/libioP.h>.
111430         [USE_IN_LIBIO]: Include <libio/iolibio.h>
111431         (fflush): Tweak definition to use INTUSE.
111432         (putc): Define.
111434 2002-12-05  Paul Eggert  <eggert@twinsun.com>
111436         * lib/alloca.c [defined emacs]: Include "lisp.h".
111437         (xalloc_die) [defined emacs]: New macro.
111438         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
111439         [! defined emacs]: Include <xalloc.h>.
111440         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
111441         (pointer): Typedef to POINTER_TYPE *.
111442         (malloc): Remove decl; we now always use xmalloc.
111443         (alloca): Use old-style definition, since Emacs needs this.
111444         Check for arithmetic overflow when computing combined size.
111446 2002-12-04  Paul Eggert  <eggert@twinsun.com>
111448         Do not generate unlocked-io.h automatically, since it's easier to
111449         maintain it by hand.
111451         * lib/unlocked-io.h: New file, from GNU diffutils,
111452         but with proper copyright notice and attribution.
111453         * lib/gen-uio: Remove.
111454         * lib/Makefile.am: Add copyright notice.
111455         (libfetish_a_SOURCES): Add unlocked-io.h.
111456         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
111457         (DISTCLEANFILES, io_functions): Remove macros.
111458         (EXTRA_DIST): Remove gen_uio.
111459         (unlocked-io.h): Remove rule.
111461 2002-12-04  Jim Meyering  <jim@meyering.net>
111463         Reflect the fact that stat.c and lstat.c are no longer generated.
111464         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
111465         (DISTCLEANFILES): Likewise.
111466         (EXTRA_DIST): Likewise.
111467         (all_local): Don't depend on stat.c or lstat.c.
111468         (stat.c, lstat.c): Remove rules.
111469         (EXTRA_DIST): Remove xstat.in.
111471         * lib/xstat.in: Remove file.  Contents moved into stat.c.
111472         * lib/stat.c: New file.  Contents mostly from xstat.in.
111473         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
111474         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
111476         * lib/safe-read.c: Rework so that it may serve to define safe_write,
111477         too.
111478         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
111480 2002-12-03  Jim Meyering  <jim@meyering.net>
111482         * lib/safe-read.c, safe-write.c: Change variable names and comments,
111483         but not semantics, to minimize the differences between these two files.
111484         (safe_read): Change comment to mention SAFE_READ_ERROR.
111486         * lib/safe-read.c (IS_EINTR): Define.
111487         (safe_read): Use IS_EINTR in place of in-function cpp directives.
111489 2002-12-02  Jim Meyering  <jim@meyering.net>
111491         * lib/safe-read.c (EINTR): Define.
111492         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
111493         (INT_MAX): Provide fallback.
111494         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
111496         * lib/safe-read.h (SAFE_READ_ERROR): Define.
111498 2002-12-02  Bruno Haible  <bruno@clisp.org>
111500         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
111501         Define, taken from safe-read.c.
111502         (INT_MAX): Provide fallback.
111503         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
111504         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
111506         * lib/safe-read.c (EINTR): Remove definition.
111507         (safe_read): Don't use EINTR if it is absent.
111509 2002-12-01  Jim Meyering  <jim@meyering.net>
111511         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
111512         zero.
111513         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
111515 2002-11-27  Paul Eggert  <eggert@twinsun.com>
111517         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
111518         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
111519         with `if (! (value < limit)) abort ();', for readability.
111521 2002-11-26  Karl Berry  <karl@gnu.org>
111523         * lib/strdup.c: copy from libc again, with jim's ok.
111524         * lib/.cppi-disable: re-add strdup.c
111526 2002-11-25  Karl Berry  <karl@gnu.org>
111528         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
111529         instead of "strtol.c".
111531 2002-11-25  Karl Berry  <karl@gnu.org>
111533         * config/install-sh: update from automake for variable quoting, $0 in
111534         error msgs, etc.
111536         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
111537         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
111538         entry.
111540 2002-11-25  Jim Meyering  <jim@meyering.net>
111542         * lib/mktime.c: Sync from libc, now that it has the latest fix.
111544 2002-11-24  Karl Berry  <karl@gnu.org>
111546         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
111547         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
111549 2002-11-24  Jim Meyering  <jim@meyering.net>
111551         Update from coreutils:
111553         * lib/mktime.c: Merge in changes from libc.
111555         Avoid a link-time failure on some Linux systems.
111556         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
111557         (otherwise).
111558         (__mon_yday): Declare with the STATIC attribute.
111559         (__mktime_internal): Likewise.
111560         Based on a report from Greg Schafer.
111562 2002-11-23  Jim Meyering  <jim@meyering.net>
111564         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
111565         Use `unsigned', not `int', as type of index.
111567         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
111569         * lib/fsusage.c: Remove unneeded parentheses around operands of
111570         `defined'.
111572 2002-11-22  Paul Eggert  <eggert@twinsun.com>
111574         * lib/quotearg.h: Allow multiple inclusion by surrounding with
111575         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
111576         so that we can be included first.
111577         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
111578         * lib/quotearg.c: Include quotearg.h immediately after config.h.
111579         No need to include stddef.h or sys/types.h any more.
111580         Surround local include files with "", not "<>".
111581         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
111582         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
111583         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
111584         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
111585         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
111586         (ISPRINT): Remove; no longer needed now that we assume C89.
111588         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
111589         Preserve errno.
111591         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
111592         quotearg_char): Use SIZE_MAX rather than
111593         (size_t) -1 when we are talking about "infinity".
111595         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
111597 2002-11-22  Paul Eggert  <eggert@twinsun.com>
111599         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
111600         hint that one should use `if (! x) abort ();' rather than `assert
111601         (x);', and anyway it's one less thing to worry about configuring.
111602         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
111603         hash_rehash, hash_insert): Use abort rather than assert.
111605 2002-11-22  Bruno Haible  <bruno@clisp.org>
111607         * lib/safe-read.h: Assume C89. Add comments.
111608         (safe_read): Change return type to size_t.
111609         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
111610         byte counts > SSIZE_MAX correctly.
111611         * lib/safe-write.h: New file.
111612         * lib/safe-write.c: New file.
111613         * lib/full-read.h: New file.
111614         * lib/full-read.c: New file.
111615         * lib/full-write.h: Assume C89. Add comments.
111616         * lib/full-write.c: Include safe-write.h.
111617         (full_write): Rewritten to use safe_write.
111618         Suggested by Jim Meyering and Paul Eggert.
111620 2002-11-21  Jim Meyering  <jim@meyering.net>
111622         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
111624         Merge in changes from the coreutils.
111626         2002-09-25  Paul Eggert  <eggert@twinsun.com>
111627         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
111628         <stdint.h>.
111629         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
111630         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
111631         int.  Work more efficiently if X is the same width as uintmax_t.
111632         Do not compare X to -1, to avoid bogus compiler warning.
111633         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
111634         Don't assume that f_frsize and f_bsize are the same type.
111636         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
111637         warning on FreeBSD.
111639         * lib/makepath.c (make_path): Restore umask *before* creating the final
111640         component.
111641         (make_path): Minor reformatting.
111643         * lib/xmalloc.c: Adjust to work with new autoconf macros,
111644         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
111645         HAVE_MALLOC/HAVE_REALLOC.
111647         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
111648         dummy ones.  At least on GNU/Linux systems, `auto' means something
111649         else.
111650         From Michael Stone.
111652 2002-11-21  Bruno Haible  <bruno@clisp.org>
111654         Remove case insensitive option matching.
111655         * lib/argmatch.h (argcasematch): Remove declaration.
111656         (ARGCASEMATCH): Remove macro.
111657         (__xargmatch_internal): Remove case_sensitive argument.
111658         (XARGMATCH): Update.
111659         (XARGCASEMATCH): Remove macro.
111660         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
111661         case_sensitive argument.
111662         (argcasematch): Remove function.
111663         (__xargmatch_internal): Remove case_sensitive argument.
111664         (main): Use XARGMATCH instead of XARGCASEMATCH.
111666         * lib/xmalloc.c: Change compile-time error message. Add comment about
111667         required autoconf version.
111669 2002-11-20  Paul Eggert  <eggert@twinsun.com>
111671         Merge argmatch cleanups from Bison.  Assume C89.
111673         * lib/argmatch.c: Include config.h here, not in argmatch.h.
111674         Include stdlib.h, for EXIT_FAILURE.
111675         Always include <string.h>, since we assume C89.
111676         (EXIT_FAILURE): Remove pre-C89 bug workaround.
111677         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
111678         Include <stddef.h> instead, since it's all we need for size_t.
111679         (PARAMS): Remove.  All uses removed.
111680         (ARRAY_CARDINALITY): Do not bother to #undef.
111681         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
111682         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
111683         Remove unnecessary parentheses.
111684         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
111685         Insert necessary parentheses.
111686         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
111687         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
111689 2002-11-19  Bruno Haible  <bruno@clisp.org>
111691         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
111692         * lib/mbswidth.h: Include <stddef.h>, for size_t.
111694         * lib/mbswidth.h (PARAMS): Remove macro.
111695         (mbswidth, mbsnwidth): Use ANSI C function declarations.
111696         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
111698         * lib/gcd.h (PARAMS): Remove macro.
111699         (gcd): Use ANSI C function declarations.
111700         * lib/gcd.c (gcd): Likewise.
111702 2002-11-15  Bruno Haible  <bruno@clisp.org>
111704         * lib/strcspn.c: Include <stddef.h>.
111705         (strcspn): Use ANSI C function declaration. Change return type to
111706         size_t. Use NULL.
111707         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
111708         (strpbrk): Use NULL.
111709         * lib/strpbrk.h (PARAMS): Remove macro.
111710         (strpbrk): Use ANSI C function declaration.
111711         * lib/strstr.c: Don't include <sys/types.h>.
111712         * lib/strstr.h (PARAMS): Remove macro.
111713         (strstr): Use ANSI C function declarations.
111715 2002-11-14  Karl Berry  <karl@gnu.org>
111717         * config/mkinstalldirs: `do' on separate line, instead of
111718         `for var; do'.
111720 2002-11-06  Bruno Haible  <bruno@clisp.org>
111722         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
111723         * lib/gcd.c (gcd): Likewise.
111725 2002-11-05  Bruno Haible  <bruno@clisp.org>
111727         * lib/gcd.h: New file, from gettext-0.11.5.
111728         * lib/gcd.c: New file, from gettext-0.11.5.
111730 2002-11-05  Bruno Haible  <bruno@clisp.org>
111732         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
111733         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
111734         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
111735         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
111737         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
111738         <libintl.h>.
111739         * lib/makepath.c: Include gettext.h instead of <locale.h> and
111740         <libintl.h>.
111742         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
111743         * lib/human.c: Include gettext.h instead of <libintl.h>.
111744         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
111745         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
111746         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
111747         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
111748         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
111749         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
111750         (textdomain): Remove definition.
111751         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
111753         * lib/long-options.c: Remove include of <libintl.h> and definition of
111754         _.
111755         * lib/same.c: Remove include of <libintl.h> and definition of _.
111757 2002-11-04  Owen Taylor  <otaylor@redhat.com>
111759         * lib/config.charset: A few additions for Solaris.
111761 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
111763         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
111764         * lib/localcharset.c (locale_charset): Declare as extern "C".
111766 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
111768         * lib/config.charset: msdos in uk_UA uses CP1125.
111770 2002-11-04  Bruno Haible  <bruno@clisp.org>
111772         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
111773         * lib/strcase.h: New file, from GNU gettext-0.11.5.
111774         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
111775         * lib/strstr.h: New file, from GNU gettext-0.11.5.
111776         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
111778 2002-11-04  Bruno Haible  <bruno@clisp.org>
111780         * lib/localcharset.c (locale_charset): Don't return an empty string.
111782 2002-11-04  Bruno Haible  <bruno@clisp.org>
111784         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
111785         aliases.
111787 2002-11-04  Bruno Haible  <bruno@clisp.org>
111789         * lib/config.charset: Update for newest glibc. Add canonical names
111790         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
111792 2002-11-04  Bruno Haible  <bruno@clisp.org>
111794         * lib/config.charset: Add support for NetBSD.
111796 2002-11-04  Bruno Haible  <bruno@clisp.org>
111798         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
111800 2002-11-01  Bruno Haible  <bruno@clisp.org>
111802         * configure.in: Add AC_CONFIG_AUX_DIR call.
111803         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
111804         test/Makefile.
111805         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
111807 2002-09-28  Karl Berry  <karl@gnu.org>
111809         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
111810         installed automake until the next release, since changes have been
111811         made.
111813 2002-09-25  Karl Berry  <karl@gnu.org>
111815         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
111816         * lib/getopt*: copy from libc/posix.
111817         * lib/gettext.h: copy from gettext.
111818         * lib/.cppi-disable: add strdup.c, gettext.h.
111820 2002-09-25  Karl Berry  <karl@gnu.org>
111822         * config/srclist.txt: enable gettext.h check.
111823         * config/config.{guess,sub}: update from prep.
111824         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
111825                 from automake 1.6.3.
111826         See srclist*.
111828 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
111830         * regex.c (PATFETCH): Remove the translating fetch.
111831         (PATFETCH_RAW): Rename to PATFETCH.
111832         (set_image_of_range): New fun.
111833         (SET_RANGE_TABLE_WORK_AREA): Use it.
111834         (regex_compile): Don't translate the pattern chars so eagerly.
111835         Only do it when inserting an `exactn' bytecode or when handling
111836         a char-range.
111837         (mutually_exclusive_p): Avoid empty statement.
111839 2002-07-06  Jim Meyering  <meyering@lucent.com>
111841         * m4/README: Don't mention Makefile.am.in.
111842         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
111844 2002-07-01  Jim Meyering  <meyering@lucent.com>
111846         * lib/c-stack.c: Include sys/time.h.
111847         From Volker Borchert.
111849 2002-06-26  Paul Eggert  <eggert@twinsun.com>
111851         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
111853 2002-06-26  Paul Eggert  <eggert@twinsun.com>
111855         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
111856         New macro.  Use it uniformly instead of
111857         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
111858         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
111859         reported by Vin Shelton.
111861 2002-06-22  Paul Eggert  <eggert@twinsun.com>
111863         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
111864         Do not assume SA_SIGINFO behavior.
111865         Bug reported by Jim Meyering on NetBSD 1.5.2.
111867 2002-06-22  Jim Meyering  <meyering@lucent.com>
111869         * m4/c-stack.m4: New file, from diffutils-2.8.2.
111870         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
111872         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
111873         now that configure.ac uses AC_GNU_SOURCE.
111874         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
111875         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
111877         Update to latest tools.  Suggestions from Paul Eggert.
111878         * m4/stdbool.m4: New file, from diffutils-2.8.2.
111879         * m4/gnu-source.m4: Update from diffutils-2.8.2.
111880         * m4/fnmatch.m4: Likewise.
111881         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
111882         to AC_HEADER_STDBOOL
111884 2002-06-22  Jim Meyering  <meyering@lucent.com>
111886         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
111887         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
111889 2002-06-22  Jim Meyering  <meyering@lucent.com>
111891         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
111893         * lib/exitfail.c, exitfail.h: Likewise.
111894         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
111896         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
111897         of fnmatch.h.
111898         (EXTRA_DIST): Add fnmatch_loop.c.
111899         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
111901         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
111902         * lib/fnmatch.c: Update from diffutils-2.8.2.
111903         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
111904         * lib/fnmatch.h: Remove file.
111906 2002-06-21  Jim Meyering  <meyering@lucent.com>
111908         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
111909         * m4/mbrtowc.m4: Likewise.
111911         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
111912         * m4/mbswidth.m4: Reflect name change:
111913         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
111914         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
111916         * m4/lib-link.m4: Update from gettext-0.11.2.
111917         * m4/gettext.m4: Likewise.
111919         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
111920         From Alfred M. Szmidt.
111922 2002-06-18  Paul Eggert  <eggert@twinsun.com>
111924         * lib/file-type.h: Report an error if neither S_ISREG nor
111925         S_IFREG is defined, instead of using a test specific to glibc
111926         2.2.  This should be safe, since POSIX requires S_ISREG and
111927         Unix Version 7 had S_IFREG.  We don't need to check for
111928         <sys/types.h> since we don't use any symbols that it defines.
111930 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
111932         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
111933         $@-t, so that each temporary file name is unique and valid in the first
111934         8 characters, for operation under DOS.
111936 2002-06-15  Paul Eggert  <eggert@twinsun.com>
111938         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
111940 2002-06-15  Jim Meyering  <meyering@lucent.com>
111942         Work even with DJGPP 2.03, which lacks support for symlinks.
111943         From Richard Dawe.
111944         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
111945         is defined.
111946         * lib/lchown.c (S_ISLNK): Likewise.
111948 2002-06-15  Jim Meyering  <meyering@lucent.com>
111950         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
111951         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
111952         have been included before this file.
111954 2002-06-14  Jim Meyering  <meyering@lucent.com>
111956         * lib/file-type.h: Use the version from diffutils-2.8.2.
111957         * lib/file-type.c: Likewise.
111959 2002-06-07  Jim Meyering  <meyering@lucent.com>
111961         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
111962         They're needed at least for NetBSD 1.5.2.
111963         ($statxfs_includes): Include those same headers.
111964         ($statxfs_includes): Include sys/vfs.h if available.
111965         ($statxfs_includes): Likewise for sys/statvfs.h.
111966         Check for the following members in both structs statfs and statvfs:
111967         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
111969 2002-06-01  Jim Meyering  <meyering@lucent.com>
111971         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
111972         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
111974 2002-05-28  Jim Meyering  <meyering@lucent.com>
111976         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
111977         Reported by Volker Borchert.
111979 2002-05-27  Jim Meyering  <meyering@lucent.com>
111981         Fix a problem seen only on nonconforming systems whereby ls.c's
111982         use of localtime, and then of gettimeofday would cause trouble:
111983         the localtime call used to initialize rpl_gettimeofday's save
111984         mechanism would clobber ls's current local time information so
111985         that in any long listing the first file would always be listed
111986         with date 1970-01-01.  Analysis by Volker Borchert.
111988         * lib/gettimeofday.c (localtime): Undefine.
111989         (rpl_localtime): New function.
111991 2002-05-27  Jim Meyering  <meyering@lucent.com>
111993         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
111994         localtime.
111996         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
111997         use the replacement function; it wouldn't resolve at link time.
111998         Reported by Volker Borchert.
112000 2002-05-22  Jim Meyering  <meyering@lucent.com>
112002         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
112003         file-type.h.
112004         * lib/file-type.h: New file.
112005         * lib/file-type.c (file_type): New file/function.  Extracted from
112006         diffutils.
112008 2002-04-30  Jim Meyering  <meyering@lucent.com>
112010         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
112012 2002-04-29  Paul Eggert  <eggert@twinsun.com>
112014         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
112016 2002-04-29  Paul Eggert  <eggert@twinsun.com>
112018         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
112019         Do not check for alloca.h (no longer used) or stdbool.h (was never
112020         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
112022 2002-04-29  Paul Eggert  <eggert@twinsun.com>
112024         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
112026 2002-04-29  Jim Meyering  <meyering@lucent.com>
112028         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
112029         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
112030         Use AC_FUNC_STRNLEN here instead.
112032         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
112033         With autoconf-2.53a, it's part of AC_PROG_CC.
112035 2002-04-28  Paul Eggert  <eggert@twinsun.com>
112037         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
112038         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
112040 2002-04-28  Paul Eggert  <eggert@twinsun.com>
112042         * lib/sig2str.h, lib/sig2str.c: New files.
112043         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
112045 2002-04-28  Paul Eggert  <eggert@twinsun.com>
112047         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
112048         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
112049         of 127, since 64 is the largest conceivable number for ancient
112050         nonstandard hosts.
112051         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
112053 2002-04-28  Jim Meyering  <meyering@lucent.com>
112055         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
112057 2002-04-24  Jim Meyering  <meyering@lucent.com>
112059         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
112060         (jm_PREREQ): Use it.
112062         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
112063         mach/mach.h fcntl.h.
112064         Check for this function: setlocale.
112066 2002-04-24  Jim Meyering  <meyering@lucent.com>
112068         * lib/gettext.h: New file, from Gettext.
112069         * lib/Makefile.am (INCLUDES): Remove -I../intl.
112070         (libfetish_a_SOURCES): Add gettext.h.
112072 2002-04-16  Jim Meyering  <meyering@lucent.com>
112074         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
112075         ut_pid, ut_id, ut_exit.
112077 2002-04-16  Jim Meyering  <meyering@lucent.com>
112079         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
112080         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
112081         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
112083 2002-04-12  Jim Meyering  <meyering@lucent.com>
112085         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
112086         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
112087         existence of the getmntinfo function.  Needed for Darwin 5.3.
112089         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
112090         This is necessary at least on Darwin 5.3.
112092         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
112093         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
112094         strnlen.o in the library, and that makes some versions of ranlib
112095         object.
112097 2002-04-12  Jim Meyering  <meyering@lucent.com>
112099         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
112101 2002-04-09  Jim Meyering  <meyering@lucent.com>
112103         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
112104         to be more precise.  Rather than saying we're checking whether the
112105         function `works', say what we're testing.
112106         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
112107         Reported by Bruno Haible.
112109 2002-03-10  Jim Meyering  <meyering@lucent.com>
112111         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
112112         Suggestion from Santiago Vila.
112114 2002-03-08  Jim Meyering  <meyering@lucent.com>
112116         * lib/rename.c: Mention that this wrapper is needed also on
112117         mips-dec-ultrix4.4 systems.
112119 2002-03-02  Jim Meyering  <meyering@lucent.com>
112121         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
112122         not HAVE_CLOCK_SETTIME.
112124 2002-02-27  Paul Eggert  <eggert@twinsun.com>
112126         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
112127         Check for clock_settime.
112129 2002-02-27  Paul Eggert  <eggert@twinsun.com>
112131         * lib/nanosleep.h: Rename to....
112132         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
112134         * lib/gettime.c: New file.
112135         * lib/settime.c: New file.
112136         * lib/stime.c: Remove.
112138         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
112139         timespec.h.  Remove nanosleep.h.
112141 2002-02-25  Paul Eggert  <eggert@twinsun.com>
112143         * m4/acl.m4: New file.
112144         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
112145         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
112147 2002-02-25  Paul Eggert  <eggert@twinsun.com>
112149         * lib/acl.c, lib/acl.h: New files.
112150         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
112152 2002-02-24  Jim Meyering  <meyering@lucent.com>
112154         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
112155         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
112156         cause trouble.  Reported by Nelson Beebe.
112158 2002-02-23  Paul Eggert  <eggert@twinsun.com>
112160         * lib/path-concat.c (xpath_concat): Reorder code to pacify
112161         compilers that don't know that xalloc_die never returns.
112163 2002-02-20  Jim Meyering  <meyering@lucent.com>
112165         * lib/getdate.c: Regenerate using bison-1.33.
112167 2002-02-17  Jim Meyering  <meyering@lucent.com>
112169         * config/config.guess (main): Don't use `head -1'; it's no longer
112170         portable. Use `sed 1q' instead.
112172 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
112174         * m4/codeset.m4: Upgrade to gettext-0.11.
112175         * m4/gettext.m4: Upgrade to gettext-0.11.
112176         * m4/glibc21.m4: Upgrade to gettext-0.11.
112177         * m4/iconv.m4: Upgrade to gettext-0.11.
112178         * m4/isc-posix.m4: Upgrade to gettext-0.11.
112179         * m4/lcmessage.m4: Upgrade to gettext-0.11.
112180         * m4/lib-ld.m4: New file, from gettext-0.11.
112181         * m4/lib-link.m4: New file, from gettext-0.11.
112182         * m4/lib-prefix.m4: New file, from gettext-0.11.
112183         * m4/progtest.m4: Upgrade to gettext-0.11.
112185 2002-02-15  Paul Eggert  <eggert@twinsun.com>
112187         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
112188         (jm_PREREQ): Use it.
112190 2002-02-15  Paul Eggert  <eggert@twinsun.com>
112192         * lib/posixver.c, lib/posixver.h: New files.
112193         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
112195 2002-02-02  Paul Eggert  <eggert@twinsun.com>
112196             Bruno Haible  <bruno@clisp.org>
112198         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
112199         (fwrite_success_callback): New declaration.
112200         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
112201         print_unicode_char. Call failure callback instead of error.
112202         (fwrite_success_callback): New function.
112203         (exit_failure_callback): New function.
112204         (fallback_failure_callback): New function.
112205         (print_unicode_char): Call unicode_to_mb.
112207 2002-01-26  Jim Meyering  <meyering@lucent.com>
112209         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
112210         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
112212 2002-01-26  Jim Meyering  <meyering@lucent.com>
112214         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
112216 2002-01-22  Paul Eggert  <eggert@twinsun.com>
112218         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
112220 2002-01-22  Jim Meyering  <meyering@lucent.com>
112222         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
112223         Otherwise, some versions of automake would omit the rule that makes
112224         Makefile from Makefile.in.
112226 2002-01-21  Paul Eggert  <eggert@twinsun.com>
112228         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
112229         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
112230         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
112231         (memcoll): Set errno to zero if there is no error.
112233         * lib/quotearg.c (quotearg_buffer_restyled):
112234         Fix bug with quoting buffers containing NUL when backslashing escapes.
112235         This bug was exposed by the other changes in this patch.
112236         (quotearg_n_options): New arg ARGSIZE.
112237         All callers changed.
112238         (quoting_options_from_style): New function.
112239         (quotearg_n_style): Use it.
112240         (quotearg_n_style_mem): New function.
112242         * lib/quotearg.h (quotearg_n_style_mem): New function.
112244 2002-01-19  Jim Meyering  <meyering@lucent.com>
112246         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
112247         Remove useless quotes: DF_PROG="df".
112248         * m4/strnlen.m4: New file.
112250 2002-01-16  Paul Eggert  <eggert@twinsun.com>
112252         * lib/backupfile.c (ISDIGIT): Comment fix.
112253         * lib/getdate.y (ISDIGIT): Likewise.
112254         * lib/posixtm.c (ISDIGIT, year): Likewise.
112255         * lib/strverscmp.c (ISDIGIT): Likewise.
112256         * lib/userspec.c (ISDIGIT): Likewise.
112258 2002-01-16  Jim Meyering  <meyering@lucent.com>
112260         * lib/getdate.y: Add three semicolons, each just before a closing
112261         brace. Bison (as of version 1.31) no longer papers over that mistake.
112263 2002-01-05  Jim Meyering  <meyering@lucent.com>
112265         * lib/version-etc.c (version_etc_copyright): Update copyright year.
112267 2001-12-19  Paul Eggert  <eggert@twinsun.com>
112269         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
112270         not silently exit merely because the output buffer happens to
112271         have nothing pending.
112273 2001-12-18  Paul Eggert  <eggert@twinsun.com>
112275         See the big note in ../ChangeLog.
112276         * lib/human.c (suffixes): Prefer K to k for 1024.
112277         (generate_suffix_backwards): New function.
112278         (human_readable_inexact): Use it.
112279         * lib/xstrtol.c (__xstrtol): If there is no number but there
112280         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
112281         Accept 'K' as well as 'k'.
112283 2001-12-15  Jim Meyering  <meyering@lucent.com>
112285         * lib/regex.h (__restrict_arr): Update from libc.
112287         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
112288         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
112289         (STREQ): Define.
112291 2001-12-14  Jim Meyering  <meyering@lucent.com>
112293         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
112294         Suggestion from Bruno Haible.
112296 2001-12-10  Jim Meyering  <meyering@lucent.com>
112298         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
112299         xrealloc, Instead, include "xalloc.h".
112300         (initbuffer): Don't cast xmalloc return value to char*.
112301         (readline): Reword comment.
112302         Don't cast xrealloc return value to char*
112303         Return NULL, not 0.
112305 2001-12-09  Jim Meyering  <meyering@lucent.com>
112307         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
112308         about `signed and unsigned type in conditional expression'.
112309         * lib/posixtm.c (posix_time_parse): Likewise.
112311         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
112313         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
112314         to avoid a pedantic warning.
112316         * lib/getstr.c: Don't include assert.h.
112317         (getstr): Remove warning-evoking assertions.
112318         Return -1 if offset parameter is out of bounds.
112319         Change the type of a local from int to size_t.
112321         * lib/strftime.c (my_strftime_localtime_r): Include this function
112322         definition in the `#if ! HAVE_TM_GMTOFF' block.
112324         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
112325         Include xalloc.h instead.
112327 2001-12-02  Jim Meyering  <meyering@lucent.com>
112329         * lib/tempname.c: Don't declare getenv, thus reverting the change of
112330         2001-11-18.  It's no longer necessary, now that stdlib.h is always
112331         included.
112333         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
112334         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
112336 2001-11-30  Akim Demaille  <akim@epita.fr>
112338         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
112339         before being defined.
112341 2001-11-27  Paul Eggert  <eggert@twinsun.com>
112343         * lib/quotearg.h (quotearg_n, quotearg_n_style):
112344         First arg is int, not unsigned.
112345         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
112346         (SIZE_MAX, UINT_MAX): New macros.
112347         (quotearg_n_options): Abort if N is negative.
112348         Avoid overflow check on hosts where size_t is 64 bits and int
112349         is 32 bits, as overflow is impossible there.
112350         Fix off-by-one typo that caused unnecessary reallocation.
112352 2001-11-27  Jim Meyering  <meyering@lucent.com>
112354         * lib/tempname.c: Merge with version from libc.
112355         * lib/regex.c: Likewise.
112357         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
112358         systems for which STDC_HEADERS is 0, it was not included, resulting in
112359         a warning about an integer-to-pointer conversion problem with getenv.
112360         Reported by Volker Borchert.
112362 2001-11-26  Jim Meyering  <meyering@lucent.com>
112364         * lib/gtod.h: Remove file.
112365         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
112366         * lib/gettimeofday.c: Don't include gtod.h.
112367         (GTOD_init): Remove function.
112368         (rpl_gettimeofday): Do its job here instead, rather than aborting.
112369         Suggestion from Volker Borchert.
112371 2001-11-23  Jim Meyering  <meyering@lucent.com>
112373         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
112374         it.
112375         * lib/hash.c (struct hash_table): Define it here instead.
112377 2001-11-22  Jim Meyering  <meyering@lucent.com>
112379         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
112381 2001-11-20  Jim Meyering  <meyering@lucent.com>
112383         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
112384         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
112386 2001-11-19  Jim Meyering  <meyering@lucent.com>
112388         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
112389         directory.  Use "conftestXXXXXX" as the template.
112390         Suggestion from Paul Eggert.
112392         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
112393         immediately, so the test doesn't mistakenly hit the max-open-files
112394         limit.
112396 2001-11-18  Paul Eggert  <eggert@twinsun.com>
112398         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
112399         (TEMPORARIES): New macro.
112400         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
112401         removes an artificial limitation (e.g. HP-UX 10.20, where
112402         TMP_MAX is 17576).
112404 2001-11-18  Jim Meyering  <meyering@lucent.com>
112406         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
112408 2001-11-18  Jim Meyering  <meyering@lucent.com>
112410         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
112411         on SunOS 4.
112413         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
112414         files will be created before anything else.
112416 2001-11-17  Paul Eggert  <eggert@twinsun.com>
112418         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
112419         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
112421 2001-11-17  Jim Meyering  <meyering@lucent.com>
112423         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
112424         Prompted by a report from Bob Proulx.
112426         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
112427         Instead, require UTILS_FUNC_MKSTEMP.
112429 2001-11-17  Jim Meyering  <meyering@lucent.com>
112431         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
112432         Now, that's done as part of AC_FUNC_STRTOD.
112434 2001-11-17  Jim Meyering  <meyering@lucent.com>
112436         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
112437         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
112438         rather than group writable.  Patch by Juan F. Codagnone.
112440         * lib/readtokens.c: Remove explicit declarations of xmalloc and
112441         xrealloc, Instead, include "xalloc.h".
112443         * lib/mountlist.c: Include unlocked-io.h after all system headers.
112444         Remove explicit declarations of xmalloc, xrealloc,
112445         and xstrdup.  Instead, include "xalloc.h".
112447         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
112448         unlocked-io.h.
112449         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
112450         Likewise.
112451         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
112453         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
112454         Reported by Padraig Brady.
112456         * lib/mkstemp.c: #undef mkstemp.
112457         Include config.h.
112458         (rpl_mkstemp): Rename from mkstemp.
112459         Protoize.
112461 2001-11-16  Jim Meyering  <meyering@lucent.com>
112463         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
112464         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
112465         determine the amount of total physical memory, use pstat_getstatic.
112466         HPUX-11 doesn't define _SC_PHYS_PAGES.
112467         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
112468         If sysconf couldn't be used to determine the amount of available
112469         physical memory, use both pstat_getstatic and pstat_getdynamic.
112470         Based on a patch from Bob Proulx.
112472 2001-11-10  Jim Meyering  <meyering@lucent.com>
112474         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
112475         (jm_PREREQ): Use it.
112477 2001-11-09  Jim Meyering  <meyering@lucent.com>
112479         * m4/jm-macros.m4: Require autoconf-2.52f.
112480         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
112481         Use these AC_-prefixed names, not the AM_-prefixed ones.
112483         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
112485 2001-11-05  Jim Meyering  <meyering@lucent.com>
112487         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
112489 2001-11-04  Jim Meyering  <meyering@lucent.com>
112491         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
112492         $DEFS.
112494 2001-11-03  Jim Meyering  <meyering@lucent.com>
112496         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
112497         of AC_DEFUN.
112499         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
112500         know the name of the variable in the macro definition.
112502 2001-11-03  Jim Meyering  <meyering@lucent.com>
112504         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
112505         in argmatch_to_argument call.
112507         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
112508         argument.
112510         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
112511         e.g., a fault due to an attempt to free a NULL pointer.
112513 2001-11-01  Jim Meyering  <meyering@lucent.com>
112515         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
112516         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
112518 2001-11-01  Jim Meyering  <meyering@lucent.com>
112520         * lib/dirfd.c, lib/dirfd.h: New files.
112521         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
112523         * lib/hash.c (hash_print) [TESTING]: Clean up.
112525 2001-10-22  Paul Eggert  <eggert@twinsun.com>
112527         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
112528         to avoid a warning if -Wall.
112530 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
112532         * README: New file
112533         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
112534         (per RMS's instructions, this is now the canonical source)
112535         * lgpl/, gpl/: New directories.
112537 2001-10-21  Paul Eggert  <eggert@twinsun.com>
112539         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
112541 2001-10-21  Jim Meyering  <meyering@lucent.com>
112543         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
112544         this code would end up calling gettext even in packages built
112545         with --disable-nls.
112546         * lib/getopt.c (_): Likewise.
112547         * lib/regex.c (_): Likewise.
112549 2001-10-20  Paul Eggert  <eggert@twinsun.com>
112551         * m4/error.m4 (jm_PREREQ_ERROR):
112552         Do not invoke AC_CHECK_FUNCS with strerror_r, as
112553         AC_FUNC_STRERROR_R does that.
112554         Check for strerror declaration.
112556         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
112557         are supposed to have them these days.
112558         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
112559         Merge changes from latest Autoconf CVS.
112560         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
112561         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
112562         POSIX decided to standardize on the int flavor of strerror_r.
112564 2001-10-20  Paul Eggert  <eggert@twinsun.com>
112566         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
112567         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
112568         Use strerror_r that is only a macro, even if it is not a function.
112569         (strerror): Check for HAVE_DECL_STRERROR before declaring.
112570         (private_strerror): Use prototypes, not old-style function definition.
112571         (print_errno_message): New function.
112572         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
112573         char*-flavored one.
112574         (error_tail, error, error_at_line): Use it.
112576 2001-10-11  Jim Meyering  <meyering@lucent.com>
112578         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
112579         and quote_n (1, ... to avoid clobbering a buffer.
112581 2001-10-05  Jim Meyering  <meyering@lucent.com>
112583         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
112584         hash-pjw.h.
112585         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
112586         * lib/hash-pjw.h: New file.
112588 2001-09-30  Jim Meyering  <meyering@lucent.com>
112590         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
112591         `struct fsstat' has the `f_fstypename' member.
112592         Use that to define FS_TYPE, which is now used to make
112593         the getfsstat link test tighter.
112595 2001-09-30  Jim Meyering  <meyering@lucent.com>
112597         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
112598         Include <sys/ucred.h>, for Apple Darwin.
112599         Include sys/mount.h and sys/fs_types.h only if available.
112600         (FS_TYPE): Define.
112601         (read_filesystem_list): Use FS_TYPE.
112603 2001-09-29  Paul Eggert  <eggert@twinsun.com>
112605         * lib/exclude.c (excluded_filename): 0 -> false, since it's
112606         a boolean context.
112608 2001-09-29  Jim Meyering  <meyering@lucent.com>
112610         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
112611         [one-argument getmntent function]): Include stdio.h before mntent.h.
112612         SunOS 4.1.x needs it for the declaration of `FILE'.
112613         Patch by Volker Borchert.
112615         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
112616         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
112617         sys/fs_types.h, and make the link-test for getfsstat guard #include
112618         directives with appropriate #if HAVE_*_H tests so that we can
112619         detect getfsstat on Apple Darwin1.3.7 systems.
112620         Reported by Nelson Beebe.
112621         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
112623 2001-09-28  Paul Eggert  <eggert@twinsun.com>
112625         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
112626         #defines strtoimax.  Also treat the other strto* functions
112627         like strtoimax.
112629         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
112630         Check for strtoul and strtoumax,
112631         as those declarations are made even in the signed case.
112632         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
112633         Likewise, for strtol and strtoimax.
112635 2001-09-28  Paul Eggert  <eggert@twinsun.com>
112637         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
112638         #defines strtoimax.  Also treat the other strto* functions
112639         like strtoimax.
112641         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
112642         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
112643         (strtoimax, strtoumax): Do not declare if already defined as a macro.
112645 2001-09-26  Jim Meyering  <meyering@lucent.com>
112647         Most macros in unlocked-io.h had the wrong number of arguments.
112648         * lib/gen-uio: New script.
112649         (USE_UNLOCKED_IO): Define to 1 if not already defined.
112650         * lib/unlocked-io.hin: Remove file.
112651         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
112652         rather than trying to embed it here.
112653         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
112654         Reported by Padraig Brady.
112656 2001-09-25  Volker Borchert  <bt@teknon.de>
112658         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
112659         `result'.
112661 2001-09-24  Jim Meyering  <meyering@lucent.com>
112663         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
112665 2001-09-23  Jim Meyering  <meyering@lucent.com>
112667         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
112668         instead of the mere test for existence of mntent.h.  The latter
112669         would get a false-positive on AIX 3.4 systems.
112670         In the outer getmntent if-block, don't die if neither of the getmntent
112671         tests succeeds.  Instead, just fall through and continue with the
112672         remaining tests.
112674 2001-09-23  Jim Meyering  <meyering@lucent.com>
112676         * lib/mountlist.c: Remove useless parentheses in #if directives.
112677         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
112678         the deprecated MOUNTED symbol is no longer defined in mntent.h.
112680 2001-09-22  Jim Meyering  <meyering@lucent.com>
112682         * m4/gettext.m4: New file.  From gettext.
112683         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
112684         * m4/progtest.m4: Likewise
112685         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
112686         * m4/glibc21.m4: Likewise.
112688         * m4/libintl.m4: Remove.  No longer used.
112690 2001-09-22  Jim Meyering  <meyering@lucent.com>
112692         * lib/localcharset.c: Update from latest gettext.
112693         * lib/config.charset: Likewise.
112695 2001-09-20  Jim Meyering  <meyering@lucent.com>
112697         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
112698         strtoimax.
112699         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
112700         strtoumax.
112702 2001-09-20  Jim Meyering  <meyering@lucent.com>
112704         * lib/xstrtol.c (strtoimax): Guard declaration with
112705         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
112706         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
112707         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
112708         (strtoumax): Likewise, for completeness (it wasn't necessary).
112710 2001-09-17  Paul Eggert  <eggert@twinsun.com>
112712         * lib/strtoimax.c (HAVE_LONG_LONG):
112713         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
112714         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
112715         to work around bug in IBM C compiler.
112717 2001-09-17  Jim Meyering  <meyering@lucent.com>
112719         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
112720         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
112721         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
112722         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
112723         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
112724         whenever the right hand side need not be expanded by the shell.
112726 2001-09-16  Paul Eggert  <eggert@twinsun.com>
112728         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
112729         library.  It's not correct, as some older glibcs are buggy.
112730         fnmatch wasn't fixed until glibc 2.2.
112732         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
112733         special shell magic here.
112735 2001-09-16  Jim Meyering  <meyering@lucent.com>
112737         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
112738         * m4/jm-macros.m4: Require it.
112740 2001-09-16  Jim Meyering  <meyering@lucent.com>
112742         * lib/mkdir.c: New file.
112744 2001-09-15  Jim Meyering  <meyering@lucent.com>
112746         * m4/jm-macros.m4: Check for help2man.
112748 2001-09-11  Jim Meyering  <meyering@lucent.com>
112750         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
112751         The body, by Paul Eggert, was moved here from configure.in.
112752         * m4/jm-macros.m4: Require UTILS_HOST_OS.
112754 2001-09-04  Paul Eggert  <eggert@twinsun.com>
112756         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
112757         (jm_PREREQ): Use it.
112759 2001-09-04  Paul Eggert  <eggert@twinsun.com>
112761         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
112762         Use ssize_t, not int, to store result of readlink.
112763         Check for ssize_t overflow as well as size_t overflow,
112764         as POSIX says the result of readlink is implementation-defined
112765         when ssize_t overflows.
112766         Remove unnecessary cast to char*.
112767         Use free+malloc instead of realloc, as the storage doesn't need
112768         to be preserved and it's clearer and can be more efficient that way.
112769         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
112770         * lib/xreadlink.h (xreadlink): Update prototype.
112772 2001-09-04  Paul Eggert  <eggert@twinsun.com>
112774         * lib/xgetcwd.c: Revert some of the previous change; intead,
112775         fix the HAVE_GETCWD_NULL code to behave more like the
112776         !HAVE_GETCWD_NULL code used to.
112778         Include "xalloc.h".
112779         (xgetcwd): Do not return NULL when memory is exhausted; instead,
112780         invoke xalloc_die.
112782 2001-09-03  Paul Eggert  <eggert@twinsun.com>
112784         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
112785         sys/param.h, as pathmax.h includes them.
112787 2001-09-03  Paul Eggert  <eggert@twinsun.com>
112789         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
112790         (jm_PREREQ_XGETCWD): New macro.
112792         * m4/getcwd.m4: New file.
112794 2001-09-03  Paul Eggert  <eggert@twinsun.com>
112796         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
112797         like the HAVE_GETCWD_NULL code.
112798         Include pathmax.h if not HAVE_GETCWD.
112799         Do not include xalloc.h.
112800         (INITIAL_BUFFER_SIZE): New symbol.
112801         Do not use xmalloc / xrealloc, since the caller is responsible for
112802         handling errors.  Preserve errno around `free' during failure.
112803         Do not overrun buffer when using getwd.
112805 2001-09-03  Paul Eggert  <eggert@twinsun.com>
112807         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
112808         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
112809         getcwd (NULL, 0).
112811 2001-09-03  Paul Eggert  <eggert@twinsun.com>
112813         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
112814         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
112815         spotted by Jim Meyering.
112817 2001-09-03  Jim Meyering  <meyering@lucent.com>
112819         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
112820         failure.
112822 2001-09-02  Jim Meyering  <meyering@lucent.com>
112824         * lib/error.c: Update from GNU libc.
112826 2001-09-01  Jim Meyering  <meyering@lucent.com>
112828         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
112829         Used by df.
112831 2001-09-01  Jim Meyering  <meyering@lucent.com>
112833         * lib/xreadlink.c: New file.
112834         * lib/xreadlink.h: New file.
112835         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
112836         xreadlink.h.
112838         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
112839         doesn't conflict with sparc Solaris 7's definition in
112840         /usr/include/sys/int_types.h.
112842         * lib/exclude.c: Use `""', not `<>' to #include non-system header
112843         files.
112844         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
112845         and strncasecmp as r-values.  Unixware didn't have declarations.
112847 2001-08-31  Paul Eggert  <eggert@twinsun.com>
112849         * lib/xstrtol.h: Add copyright notice.
112850         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
112851         LONGINT_INVALID_SUFFIX_CHAR.
112853 2001-08-31  Paul Eggert  <eggert@twinsun.com>
112855         * lib/xstrtol.c (strtoimax): New decl.
112857 2001-08-31  Paul Eggert  <eggert@twinsun.com>
112859         * lib/xgetcwd.c: Don't include pathmax.h.
112860         Include stdlib.h and unistd.h if available.
112861         Include xalloc.h.
112862         (xmalloc, xstrdup, free): Remove decls.
112863         (xgetcwd): Don't assume sizes fit in unsigned.
112864         Check for overflow when computing sizes.
112865         Simplify reallocation code.
112867 2001-08-31  Paul Eggert  <eggert@twinsun.com>
112869         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
112870         a directory's st_size can have an arbitrary value, so the old
112871         usage could waste an arbitrary amount of memory.  All uses
112872         changed.
112873         * lib/savedir.h: Update prototype.
112875 2001-08-31  Paul Eggert  <eggert@twinsun.com>
112877         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
112879         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
112880         old strtoimax.c.
112882         Also, make the following further changes to make this file's
112883         configuration more similar to that of strtol.c:
112884         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
112885         (strtoumax, uintmax_t, strtoull, strtol): Remove.
112886         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
112887         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
112888         changed to signed values.
112890         And make the following changes as well:
112891         Fix copyright notice, as 1999 was missing.
112892         (verify): New macro.
112893         (strtoimax): Check sizes at compile-time, not run-time.
112894         Prefer strtol to strtoll if both work.
112895         (main): Remove; it was not that useful and was a pain to maintain.
112897         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
112899 2001-08-31  Jim Meyering  <meyering@lucent.com>
112901         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
112902         Use an initial, malloc'd, buffer of length 128 rather than
112903         a statically allocated one of length 1024.
112905 2001-08-30  Paul Eggert  <eggert@twinsun.com>
112907         Simplify code, partly by assuming autoconf 2.52 semantics.
112909         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
112911         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
112912         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
112913         All uses removed.
112914         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
112915         Move AC_REQUIRE to next-to-top level, to avoid confusion.
112916         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
112917         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
112918         jm_AC_HEADER_INTTYPES_H.
112919         * m4/jm-macros.m4 (jm_MACROS): Likewise.
112921         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
112923         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
112924         Quote first arg of AC_DEFUN.
112925         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
112926         since they are needed to parse the include file even if we need
112927         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
112928         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
112929         but with opposite signedness.
112931 2001-08-30  Paul Eggert  <eggert@twinsun.com>
112933         Merge 'exclude' changes from tar 1.13.22.
112934         This fixes one or two unlikely storage allocation overflow bugs,
112935         but doesn't change user-visible behavior otherwise.
112937 2001-08-30  Paul Eggert  <eggert@twinsun.com>
112939         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
112940         (jm_PREREQ_EXCLUDE): New macro.
112942 2001-08-30  Paul Eggert  <eggert@twinsun.com>
112944         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
112945         tm to be declared.
112947 2001-08-30  Paul Eggert  <eggert@twinsun.com>
112949         * lib/hash.c: Remove '2001' from copyright notice.
112951 2001-08-30  Paul Eggert  <eggert@twinsun.com>
112953         * lib/full-write.h: New file.
112954         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
112955         * lib/full-write.c: Correct credits, as cccp.c no longer
112956         exists and anyway it was so heavily changed from the old cccp
112957         code as to be unrecognizable.  Include full-write.h.
112958         (full_write): Return size_t, with short writes meaning failure.
112959         All callers changed.  This fixes a bug with large buffers
112960         on 64-bit hosts.
112961         * lib/utime.c: Include full-write.h.
112963 2001-08-30  Paul Eggert  <eggert@twinsun.com>
112965         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
112966         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
112967         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
112968         Include if available.
112969         (<xalloc.h>): Include
112970         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
112971         (verify): New macro.  Use it to verify that EXCLUDE macros do not
112972         collide with FNM macros.
112973         (struct patopts): New struct.
112974         (struct exclude): Use it, as exclude patterns now come with options.
112975         (new_exclude): Support above changes.
112976         (new_exclude, add_exclude_file):
112977         Initial size must now be a power of two to simplify overflow checking.
112978         (free_exclude, fnmatch_no_wildcards): New function.
112979         (excluded_filename): No longer requires options arg, as the options
112980         are determined by add_exclude.  Now returns bool, not int.
112981         (excluded_filename, add_exclude):
112982         Add support for the fancy new exclusion options.
112983         (add_exclude, add_exclude_file): Now takes int options arg.
112984         Check for arithmetic overflow when computing sizes.
112985         (add_exclude_file): xrealloc might modify errno, so don't
112986         realloc until after errno might be used.
112988         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
112989         New macros.
112990         (free_exclude): New decl.
112991         (add_exclude, add_exclude_file): Now takes int options arg.
112992         (excluded_filename): No longer requires options arg, as the options
112993         are determined by add_exclude.  Now returns bool, not int.
112995 2001-08-30  Paul Eggert  <eggert@twinsun.com>
112997         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
112999 2001-08-27  Jim Meyering  <meyering@lucent.com>
113001         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
113003         * lib/version-etc.c (N_): Remove definition.
113004         Revert most of last change.
113005         Instead, simply don't mark the `Copyright...' string for translation.
113006         Based on advice from Paul Eggert.
113008         * lib/strtoxmax.c: Tweak comment.
113010 2001-08-26  Jim Meyering  <meyering@lucent.com>
113012         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
113014         * m4/xstrtoimax.m4: New file.
113015         * m4/xstrtoumax.m4: Add comments explaining why we
113016         AC_REPLACE_FUNCS(strtol).
113018 2001-08-26  Jim Meyering  <meyering@lucent.com>
113020         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
113021         of copyright with `%s' so translators don't get an untranslated
113022         message in 2002.
113023         (COPYRIGHT_YEAR): Define.
113024         (version_etc): Use fprintf rather than fputs.
113025         Suggestion from Ulrich Drepper.
113027         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
113029         * lib/strtoll.c: New file, from GNU libc.
113030         * lib/xstrtoimax.c: New file.
113032         * lib/xstrtol.h: Add xstrtoimax.
113033         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
113034         * lib/strtoimax.c: New file.  Likewise, but first define
113035         STRTOUXMAX_SIGNED.
113037         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
113038         ...
113039         * lib/strtoxmax.c: ... then renamed to this.
113041 2001-08-18  Paul Eggert  <eggert@twinsun.com>
113043         * m4/inttypes.m4: Add AC_PREREQ(2.13).
113044         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
113045         (jm_AC_TYPE_INTMAX_T): New macro.
113046         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
113048         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
113050         * m4/longlong.m4: Renamed from ulonglong.m4.
113051         * m4/inttypes.m4: Renamed from inttypes_h.m4.
113052         * m4/uintmax_t.m4: Removed.
113054 2001-08-13  Paul Eggert  <eggert@twinsun.com>
113056         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
113057         Port to Solaris 8, where 'sed' requires a space after the 'r'
113058         command, and where sh dislikes "$/".  Clean up the spacing a bit.
113059         Redirect output to $tmp just once.
113061 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
113063         * lib/addext.c (<errno.h>): Include.
113064         (errno): Declare if not defined.
113065         (addext): Work correctly when pathconf returns -1 and leaves
113066         errno alone because there is no limit.  Also, work even if
113067         pathconf returns a value greater than SIZE_MAX.
113069 2001-08-12  Jim Meyering  <meyering@lucent.com>
113071         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
113072         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
113073         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
113074         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
113075         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
113076         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
113077         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
113078         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
113079         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
113080         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
113081         utime.m4, utimes.m4, xstrtoumax.m4:
113082         Quote the first argument in each use of AC_DEFUN.
113084 2001-08-12  Jim Meyering  <meyering@lucent.com>
113086         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
113087         Simply `return getcwd (NULL, 0);'.
113088         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
113089         Use 1300 as initial value for length, not PATH_MAX.
113091         * lib/pathmax.h: Clean up cpp syntax.
113093 2001-08-12  Jim Meyering  <meyering@lucent.com>
113095         * lib/gettimeofday.c: New file.
113096         * lib/gtod.h: New file.
113097         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
113099 2001-08-05  Jim Meyering  <meyering@lucent.com>
113101         * m4/jm-macros.m4: Require autoconf-2.52.
113103 2001-08-04  Jim Meyering  <meyering@lucent.com>
113105         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
113106         stmt, to get in sync with glibc.
113108 2001-08-03  Paul Eggert  <eggert@twinsun.com>
113110         The following changes are from gettext 0.10.39 as maintained by
113111         Bruno Haible.
113113         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
113114         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
113115         with inverted sense.  All uses changed.
113117         * lib/mbswidth.c: Don't include <limits.h>.
113118         Include <stdlib.h> and <string.h> unconditionally.
113119         (iswcntrl, mbsinit, ISCNTRL): New macros.
113120         (mbsnwidth): Use K&R style function declarations.
113121         Don't bother checking for MB_LEN_MAX == 1, since the compiler
113122         can optimize it when MB_CUR_MAX == 1.
113123         The width of control characters is zero, not 1.
113125 2001-08-03  Paul Eggert  <eggert@twinsun.com>
113127         The following changes are from gettext 0.10.39 as maintained by
113128         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
113130         * m4/codeset.m4: Upgrade to serial AM1.
113131         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
113132         all uses changed.  Quote first arg of AC_DEFUN.
113133         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
113135         * m4/iconv.m4: Upgrade to serial AM2.
113136         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
113137         Add --with-libconv-prefix.
113138         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
113139         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
113140         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
113141         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
113142         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
113144         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
113145         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
113146         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
113147         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
113148         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
113149         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
113150         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
113151         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
113152         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
113154         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
113155         string.h any more.
113157         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
113158         not the default value.
113160         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
113161         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
113162         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
113163         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
113164         Also check for iswcntrl, used for wcwidth fallback.
113165         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
113166         to Autoconf 2.13.
113168 2001-08-03  Jim Meyering  <meyering@lucent.com>
113170         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
113171         as it was in the original.  Reported by Paul Eggert.
113173 2001-07-16  Jim Meyering  <meyering@lucent.com>
113175         * m4/gettimeofday.m4: New file.
113176         Prompted by a report from Bernhard Baehr.
113178 2001-07-15  Jim Meyering  <meyering@lucent.com>
113180         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
113181         stuff. Now it's in ../Makefile.cfg.
113183 2001-07-15  Jim Meyering  <meyering@lucent.com>
113185         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
113186         (BUILT_SOURCES): Add unlocked-io.h.
113187         (io_functions): Define.
113188         (unlocked-io.h): New rule.
113189         (DISTCLEANFILES): Add unlocked-io.h.
113190         (all-local): Depend on unlocked-io.h, to ensure it is created.
113192         * lib/unlocked-io.hin: New file
113194         * lib/regex.c: Update from glibc.
113196 2001-07-05  Jim Meyering  <meyering@lucent.com>
113198         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
113199         recommendation.
113200         (libfetish_a_SOURCES): Put all .h files here instead.
113201         Remove a thus-exposed (better checks in automake) duplicate and
113202         two unnecessary .h files.
113204 2001-07-04  Jim Meyering  <meyering@lucent.com>
113206         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
113207         that generates jm-glibc-io.m4 so that it doesn't trigger any make
113208         distcheck failure.
113210 2001-07-02  Jim Meyering  <meyering@lucent.com>
113212         The following changes were prompted by suggestions from Bruno Haible.
113214         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
113215         is now generated.
113216         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
113217         definition of EXTRA_DIST.
113218         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
113219         ensure that the generated file is created/updated whenever the list
113220         of $(unlocked_functions) is changed.
113221         (jm-glibc-io.m4): New rule.
113222         (unlocked-io.h): New rule -- currently unused.
113224 2001-06-24  Jim Meyering  <meyering@lucent.com>
113226         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
113227         unmatched right bracket, rather than kludging it with an extra,
113228         falsely-matching quote in a comment.  Patch by Akim Demaille.
113230 2001-06-11  Jim Meyering  <meyering@lucent.com>
113232         * lib/regex.c: Update from GNU libc.
113234 2001-05-27  Jim Meyering  <meyering@lucent.com>
113236         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
113237         Check for ut_type in struct utmp.
113239 2001-05-27  Jim Meyering  <meyering@lucent.com>
113241         * lib/readutmp.h (UT_TYPE): Define.
113243 2001-05-24  Jim Meyering  <meyering@lucent.com>
113245         * lib/argmatch.c: Include "quote.h".
113246         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
113247         quote function.  Reported by Göran Uddeborg.
113249 2001-05-22  Jim Meyering  <meyering@lucent.com>
113251         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
113252         now that we use the package-supplied version unconditionally.
113253         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
113255 2001-05-21  Jim Meyering  <meyering@lucent.com>
113257         * m4/regex.m4: Change a couple backticks to single quotes to avoid
113258         shell syntax errors.
113260 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
113262         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
113264 2001-05-20  Paul Eggert  <eggert@twinsun.com>
113266         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
113267         Don't bother to check library strftime, since
113268         we'll be using our own my_strftime function anyway.
113269         Define my_strftime instead of strftime.
113271 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
113273         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
113274         which is not yet declared.
113276 2001-05-15  Jim Meyering  <meyering@lucent.com>
113278         * m4/regex.m4: Use proper quoting so brackets appear in the test
113279         program.
113280         Reported by, and with help from, Bruno Haible.
113282 2001-05-13  Jim Meyering  <meyering@lucent.com>
113284         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
113285         undefined.
113287 2001-05-11  Paul Eggert  <eggert@twinsun.com>
113289         dirname code cleanup.  base_name now behaves more compatibly
113290         with POSIX basename when given file names that have trailing
113291         slashes, and similarly for dir_name.  Add new primitives
113292         base_len and dir_len.  Put the directory-name-related decls
113293         into dirname.h.
113295         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
113296         * lib/backupfile.c (base_name): Likewise.
113297         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
113298         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
113299         * lib/makepath.c (strip_trailing_slashes): Likewise.
113300         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
113301         ISSLASH): Likewise.
113302         * lib/rename.c (strip_trailing_slashes): Likewise.
113303         * lib/same.c (base_name): Likewise.
113304         * lib/stripslash.c (ISSLASH): Likewise.
113306         * lib/addext.c: Include <dirname.h> after size_t is defined.
113307         * lib/backupfile.c: Likewise.
113309         * lib/addext.c (addext): Use base_len to trim redundant
113310         trailing slashes instead of doing it ourselves.
113311         But do not trim the last slash if it is not redundant.
113313         * lib/backupfile.c (find_backup_file_name,
113314         max_backup_version): Use base_len instead of rolling it ourselves.
113315         Handle the case of "" and (on DOS) "C:" correctly.
113317         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
113318         needed. Include <string.h>, <dirname.h>.
113319         (base_name): Allow file names ending in slashes, other than names
113320         that are all slashes.  In this case, return the basename followed
113321         by the slashes.  This is more general, and can be used in places
113322         where the original base_name purposely had an assertion failure.
113323         (base_len): New function.
113325         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
113326         Do not include <assert.h>; no longer needed.
113327         Include xalloc.h.
113328         (memrchr): Remove decl.
113329         (dir_name_r): Remove.
113330         (dir_len): Renamed from dirlen.  All callers changed.
113331         Rewrite in terms of base_name, for simplicity and consistency.
113332         (dir_name): Never return NULL.  All callers changed.
113333         Do not include <stdlib.h> in test program; no longer needed.
113334         return 0; is fine for test program.
113336         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
113337         New macros.
113338         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
113340         * lib/path-concat.c (path_concat): Use base_len to compute
113341         base length, not strlen; this means we cannot rely on memcpy
113342         to null-terminate.
113344         * lib/same.c (STREQ): Remove.
113345         (same_name): Handle the case where the basename ends in trailing '/'.
113347         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
113348         a slash was stripped.  Do not strip the last slash after a
113349         file system prefix.
113351 2001-05-11  Paul Eggert  <eggert@twinsun.com>
113353         * lib/Makefile.am (libfetish_a_SOURCES):
113354         Add strftime.c, since we now compile it on all hosts.
113356         * lib/strftime.c (my_strftime):
113357         Define to nstrftime if emacs, but only if my_strftime is not defined.
113358         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
113359         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
113360         Add one more extra argument: a nanoseconds value.
113361         All uses changed.
113362         (ns): New macro.
113363         (my_strftime function): Add %N format.
113364         (emacs_strftimeu): Renamed from emacs_strftime,
113365         with extra ut argument.
113367 2001-05-09  Paul Eggert  <eggert@twinsun.com>
113369         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
113371 2001-04-21  Jim Meyering  <meyering@lucent.com>
113373         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
113374         doesn't interfere.
113376 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
113378         * m4/ftruncate.m4: Check for chsize.
113379         Link with ftruncate.o unconditionally if ftruncate is missing.
113380         This was required when cross-compiling to i586-mingw32msvc.
113382 2001-04-08  Jim Meyering  <meyering@lucent.com>
113384         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
113385         recomputed; that's necessary when the offset spans a DST transition.
113386         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
113388 2001-04-02  Jim Meyering  <meyering@lucent.com>
113390         * lib/regex.h, regex.c: Update from GNU libc.
113392 2001-03-24  Jim Meyering  <meyering@lucent.com>
113394         * m4/jm-macros.m4: Require autoconf-2.49d.
113396 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
113398         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
113400 2001-03-19  Paul Eggert  <eggert@twinsun.com>
113402         * lib/version-etc.c (version_etc_copyright): Update to 2001.
113404 2001-03-17  Jim Meyering  <meyering@lucent.com>
113406         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
113407         now that the version in autoconf is equivalent.
113408         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
113410         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
113411         Suggestion from Akim Demaille.
113413         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
113414         (jm_PREREQ_TEMPNAME): New function.
113416 2001-03-16  Paul Eggert  <eggert@twinsun.com>
113418         * lib/tempname.c (uint64_t): Define to uintmax_t if
113419         not defined, and if UINT64_MAX is not defined.
113420         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
113421         Reported by John David Anglin.
113423 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
113425         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
113426         resolve alias if codeset is empty.
113427         * lib/config.charset (BeOS): Use wildcard syntax.
113429 2001-03-13  Jim Meyering  <meyering@lucent.com>
113431         * lib/path-concat.c (path_concat)
113432         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
113433         concatenating e.g., `C:' and `foo'.
113434         From Bruno Haible.
113436 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
113438         * lib/localcharset.c (locale_charset): Don't use
113439         setlocale(LC_CTYPE,NULL). Don't return NULL.
113440         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
113442 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
113444         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
113445         support for DOS/DJGPP.
113447 2001-03-01  Paul Eggert  <eggert@twinsun.com>
113449         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
113450         lacks mkstemp.  Compile our own tempname.c if we compile our own
113451         mkstemp.c, as mkstemp relies on tempname.
113453 2001-03-01  Jim Meyering  <meyering@lucent.com>
113455         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
113456         AH_VERBATIM really does output its argument verbatim.
113458 2001-02-28  Paul Eggert  <eggert@twinsun.com>
113460         * lib/Makefile.am (libfetish_a_SOURCES):
113461         Add dup-safer.c, fopen-safer.c.
113462         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
113464         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
113465         * lib/unistd-safer.h: New files.
113467 2001-02-25  Paul Eggert  <eggert@twinsun.com>
113469         The mkstemp replacement is taken from glibc 2.2.2, with some
113470         portability fixes for use outside glibc, as follows:
113472         * lib/tempname.c (struct_stat64): New macro.
113473         (direxists, __gen_tempname): Use it.
113474         This avoids a portability problem with Solaris 8.
113476         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
113477         (<stddef.h>, <stdint.h>, <string.h>):
113478         Include only if STDC_HEADERS || _LIBC.
113479         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
113480         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
113481         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
113482         (__set_errno): Define this macro if <errno.h> doesn't.
113483         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
113484         Define these macros if <stdio.h> doesn't.
113485         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
113486         Define these macros if <sys/stat.h>
113487         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
113488         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
113489         __xstat64): Define if not _LIBC.
113490         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
113491         (__gen_tempname): Invoke gettimeofday only if
113492         HAVE_GETTIMEOFDAY || _LIBC;
113493         otherwise, fall back on plain "time".
113494         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
113496         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
113498         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
113500 2001-02-18  Paul Eggert  <eggert@twinsun.com>
113502         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
113504 2001-02-17  Paul Eggert  <eggert@twinsun.com>
113506         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
113507         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
113508         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
113509         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
113511 2001-02-17  Paul Eggert  <eggert@twinsun.com>
113513         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
113514         Remove workaround macros for hosts that have mbrtowc but not
113515         mbstate_t, as we now insist on proper declarations for both
113516         before using mbrtowc.
113518 2001-02-17  Jim Meyering  <meyering@lucent.com>
113520         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
113521         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
113522         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
113523         UnixWare 7.1.1.
113525         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
113526         rather than AC_CACHE_VAL.
113528 2001-02-17  Jim Meyering  <meyering@lucent.com>
113530         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
113531         around included file name.
113533         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
113535         * lib/strftime.c: Update from GNU libc (the only changes were to
113536         comments).
113538 2001-02-17  Jim Meyering  <meyering@lucent.com>
113540         * lib/regex.c: Update from libc.
113542 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
113544         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
113545         clash.
113547 2001-02-16  Paul Eggert  <eggert@twinsun.com>
113549         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
113550         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
113551         Reported by Mark Hounschell via Paul Eggert.
113553 2001-02-07  Jim Meyering  <meyering@lucent.com>
113555         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
113557 2001-02-05  Jim Meyering  <meyering@lucent.com>
113559         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
113560         it includes the patch required for `large file' support with at least
113561         HP-UX's 10.20 /bin/cc.
113563 2001-02-03  Jim Meyering  <meyering@lucent.com>
113565         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
113566         AS_IF, now that it works once again (mysteriously).
113567         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
113569 2001-01-30  Jim Meyering  <meyering@lucent.com>
113571         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
113572         * m4/chown.m4: Rename conftestchown to conftest.chown.
113573         * m4/rename.m4: s/conftestdir/conftest.d1/ and
113574         s/conftestdir2/conftest.d2/.
113575         * m4/utimes.m4: s/conftestdata/conftest.data/
113576         Inspired by Pavel Roskin's change in autoconf.
113578 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
113580         * lib/config.charset: Update for FreeBSD 4.2.
113582 2001-01-27  Jim Meyering  <meyering@lucent.com>
113584         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
113585         a use of AS_IF.
113586         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
113588 2001-01-26  Jim Meyering  <meyering@lucent.com>
113590         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
113591         quotearg.c includes it.
113593 2001-01-26  Jim Meyering  <meyering@lucent.com>
113595         * lib/quotearg.c: Include stddef.h.
113596         * lib/quote.c: Include stddef.h.
113597         Reported by Axel Kittenberger.
113599         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
113600         line in double quotes so that it evokes a better diagnostic.
113601         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
113602         Reported by Axel Kittenberger.
113604 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
113606         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
113607         as if it was a `charset'.
113609 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
113611         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
113612         has const.
113614 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
113616         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
113617         to avoid a warning.  Add back 'const' to inptr.
113619 2001-01-20  Jim Meyering  <meyering@lucent.com>
113621         Be sure that headers are checked before used in code compiled
113622         for the type checks.
113623         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
113624         In place of that, invoke jm_CHECK_ALL_TYPES.
113625         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
113626         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
113627         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
113628         The check for ssize_t was mistakenly run before the test for unistd.h.
113630         The configure-time check for stdbool.h was missing.
113631         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
113632         (jm_PREREQ_HASH): New function.
113634 2001-01-17  Jim Meyering  <meyering@lucent.com>
113636         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
113637         for autoconf-2.49c.
113638         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
113640 2001-01-16  Jim Meyering  <meyering@lucent.com>
113642         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
113643         From Bruno Haible.
113645 2001-01-14  Jim Meyering  <meyering@lucent.com>
113647         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
113648         foo and bar.  Create conftestdir/ in the script, not in the C code.
113649         Remove directories in the script, not in the C code.
113650         Remove conftestdir{,2} before trying to create the directory.
113651         Make the entire configure script fail if the mkdir fails.
113653 2001-01-14  Jim Meyering  <meyering@lucent.com>
113655         * lib/rename.c: New file.  From Volker Borchert.
113656         Include stdlib.h, string.h or strings.h, and xalloc.h.
113657         Use strip_trailing_slashes rather than open-coding it.
113659 2001-01-03  Paul Eggert  <eggert@twinsun.com>
113661         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
113663 2001-01-03  Jim Meyering  <meyering@lucent.com>
113665         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
113666         of local `inptr' to avoid warning with some system declarations of
113667         iconv.
113669 2001-01-02  Volker Borchert  <bt@teknon.de>
113671         * m4/rename.m4: New file.
113672         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
113674 2001-01-01  Jim Meyering  <meyering@lucent.com>
113676         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
113677         even on systems with utmpx.h.  It's necessary for the declaration of
113678         utmp's ut_user member.  Reported by Andreas Jaeger.
113680         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
113681         available. They are required for the declarations of getgrgid and
113682         getpwuid resp.
113683         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
113684         Reported by Andreas Jaeger.
113686 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
113688         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
113689         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
113690         so `make install' also works in VPATH builds.
113692 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
113694         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
113695         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
113696         can be used in subdirectories.
113698 2000-12-29  Paul Eggert  <eggert@twinsun.com>
113700         * lib/modechange.c: Do not assume that mode_t uses the
113701         traditional octal encoding.  E.g. "chmod 1 FOO" should set
113702         the other-execute bit of FOO even if S_IXOTH != 1.
113704         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
113705         WOTH, XOTH, ALLM): New macros.
113706         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
113707          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
113708         Use them.
113709         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
113710         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
113711         (mode_compile):
113712         No need to use uintmax_t; unsigned long is long enough.
113713         Don't bother to get suffix since we don't use it.
113715 2000-12-26  Jim Meyering  <meyering@lucent.com>
113717         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
113718         better with autoheader.
113720 2000-12-24  Jim Meyering  <meyering@lucent.com>
113722         * lib/hash.c (is_prime): Return explicit boolean values.
113723         (hash_get_first): Return NULL to appease Irix5.6's 89.
113724         Reported by Nelson Beebe.
113726 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
113728         * lib/localcharset.c (locale_charset): Add support for Win32.
113730 2000-12-18  Paul Eggert  <eggert@twinsun.com>
113732         * lib/physmem.h, lib/physmem.c: New files.
113734         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
113735         (noinst_HEADERS): Add physmem.h.
113737         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
113738         't' for compatibility with Solaris 8 sort.
113740 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
113742         * lib/config.charset: Add support for BeOS.
113744 2000-12-17  Jim Meyering  <meyering@lucent.com>
113746         * m4/dos.m4 (jm_AC_DOS): New file and macro.
113747         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
113749 2000-12-16  Jim Meyering  <meyering@lucent.com>
113751         This bug had a serious impact on chown: `chown N:M FILE' (for integer
113752         N and M) would have treated it like `chown N:N FILE'.
113754         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
113756 2000-12-16  Jim Meyering  <meyering@lucent.com>
113758         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
113759         SHELLS_FILE to a file name that's useful on djgpp systems.
113760         Include stdlib.h.
113761         (ADDITIONAL_DEFAULT_SHELLS): Define.
113762         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
113763         Based mostly on a patch from Prashant TR.
113765 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
113767         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
113768         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
113769         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
113771 2000-12-08  Andreas Schwab  <schwab@suse.de>
113773         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
113774         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
113776 2000-12-07  Jim Meyering  <meyering@lucent.com>
113778         * lib/stripslash.c (ISSLASH): Define.
113779         (strip_trailing_slashes): Use ISSLASH rather than comparing against
113780         `/'.
113781         From Prashant TR.
113783         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
113784         (dir_name_r): Declare this function as static.
113785         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
113786         manifest itself on a name containing a mix of slashes and
113787         backslashes.
113788         Make this function work with names starting with a DOS-style
113789         drive letter and colon prefix.
113790         (dir_name): Append `.' if necessary.
113791         Based mostly on patches from Prashant TR and Eli Zaretskii.
113793         * lib/dirname.h (dir_name_r): Remove prototype.
113795 2000-12-06  Paul Eggert  <eggert@twinsun.com>
113797         * m4/off_t-format.m4: Remove this file.
113798         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
113800 2000-12-06  Jim Meyering  <meyering@lucent.com>
113802         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
113803         replacement strtoull, we may well need the replacement strtoul, too.
113804         Check for declarations of strtoul and strtoull.
113805         Check for strtol.  Mainly as a cue to cause automake to include
113806         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
113807         Check for limits.h -- strtol.c needs it.
113809 2000-12-05  Jim Meyering  <meyering@lucent.com>
113811         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
113813 2000-12-04  Jim Meyering  <meyering@lucent.com>
113815         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
113816         Also include memory.h, stdlib.h, unistd.h if appropriate.
113817         Reported by Andreas Jaeger (conflicting declaration of malloc).
113819 2000-12-02  Jim Meyering  <meyering@lucent.com>
113821         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
113822         * m4/jm-macros.m4 (jm_MACROS): require it.
113824 2000-12-02  Jim Meyering  <meyering@lucent.com>
113826         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
113828 2000-12-01  Paul Eggert  <eggert@twinsun.com>
113830         * lib/memrchr.c: Include <config.h> before any system include file.
113832 2000-11-30  Jim Meyering  <meyering@lucent.com>
113834         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
113836 2000-11-30  Jim Meyering  <meyering@lucent.com>
113838         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
113840 2000-11-29  Paul Eggert  <eggert@twinsun.com>
113842         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
113844 2000-11-26  Jim Meyering  <meyering@lucent.com>
113846         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
113848 2000-11-22  Paul Eggert  <eggert@twinsun.com>
113850         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
113851         size of (size_t) -1; it's not portable.
113853 2000-11-17  Jim Meyering  <meyering@lucent.com>
113855         * lib/strstr.c: Update from GNU libc.
113857 2000-11-17  Akim Demaille  <akim@epita.fr>
113859         * lib/obstack.h: Formatting changes.
113860         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
113861         prevent type checking.
113862         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
113863         cast the value to (void *): assigning a `foo *' to a `void *'
113864         variable is valid.
113865         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
113867 2000-11-16  Jim Meyering  <meyering@lucent.com>
113869         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
113871 2000-11-11  Jim Meyering  <meyering@lucent.com>
113873         * lib/error.c: Add a couple #includes, merging from GNU libc version.
113875 2000-11-10  Jim Meyering  <meyering@lucent.com>
113877         * lib/obstack.h: Update from GNU libc.
113878         * lib/obstack.c: Likewise.
113880 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
113882         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
113884 2000-11-06  Paul Eggert  <eggert@twinsun.com>
113886         * lib/getusershell.c (setusershell): Use rewind rather than
113887         fseek/fseeko, to avoid configuration hassles with fseeko.
113888         Don't bother opening SHELLS_FILE if shellstream is NULL;
113889         it's not necessary.
113891 2000-11-05  Jim Meyering  <meyering@lucent.com>
113893         * lib/makepath.h (make_dir): Declare.
113894         * lib/makepath.c (make_dir): Remove `static' attribute.
113895         Tweak a comment.
113897 2000-11-04  Jim Meyering  <meyering@lucent.com>
113899         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
113901 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
113903         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
113904         last one in a bucket, advance to the next bucket.
113906 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
113908         * lib/fnmatch.c: Do not comment out all the code if we are using
113909         the GNU C library, because in some cases we are replacing buggy
113910         code in the GNU C library itself.
113912 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
113914         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
113915         (regex_compile): Catch bogus \(\1\).
113917 2000-10-30  Paul Eggert  <eggert@twinsun.com>
113919         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
113920         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
113921         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
113923 2000-10-30  Paul Eggert  <eggert@twinsun.com>
113925         * lib/error.h, getline.h, modechange.h:
113926         Remove "2000" from Copyright line, as the file hasn't been
113927         changed this year other than in the copyright notice.
113929         * lib/xalloc.h: Add "2000" to Copyright line, as this file
113930         was changed this year.
113932 2000-10-29  Jim Meyering  <meyering@lucent.com>
113934         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
113935         renaming.
113936         * m4/ls-mntd-fs.m4: Likewise
113938 2000-10-29  Jim Meyering  <meyering@lucent.com>
113940         * lib/xstat.in: Fix grammar in comment.
113942 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
113944         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
113945         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
113946         doesn't define __restrict_arr.
113948 2000-10-28  Jim Meyering  <meyering@lucent.com>
113950         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
113951         (jm_PREREQ_MEMCHR): New function.
113953 2000-10-28  Jim Meyering  <meyering@lucent.com>
113955         * lib/memchr.c: Update from libc.
113956         Adjust for portability:
113957         [HAVE_STDLIB_H]: Include stdlib.h.
113958         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
113959         Undef __memchr, too.
113960         [!weak_alias]: Define __memchr to memchr.
113962         * lib/regex.c: Update from libc.
113963         * lib/regex.h: Likewise.
113964         * lib/getopt1.c: Likewise.
113965         * lib/memcmp.c: Likewise.
113967         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
113968         Avoid using fseek, when possible -- it's broken by design.
113969         Patch by Ulrich Drepper.
113971 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
113973         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
113974         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
113975         Giving in to popular pressure to shut up the compiler with casts.
113977 2000-10-26  Jim Meyering  <meyering@lucent.com>
113979         * lib/strftime.c: Update from libc.
113981 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
113983         * regex.c: More `unsigned char' -> `re_char' changes.
113984         Also change several `int' into `re_wchar_t'.
113985         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
113986         (PUSH_FAILURE_POINTER): Don't cast any more.
113987         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
113988         We want GCC to complain, since this piece of code makes
113989         re_match non-reentrant, which *should* be fixed.
113990         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
113991         (EXTEND_BUFFER): Use RETALLOC.
113992         (SET_LIST_BIT): Don't cast.
113993         (re_wchar_t): New type.
113994         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
113995         that those two functions will always properly return.
113996         (IMMEDIATE_QUIT_CHECK): Cast to void.
113997         (analyse_first): Use recursion rather than an explicit stack.
113998         (re_compile_fastmap): Can't fail anymore.
113999         (re_search_2): Don't check re_compile_fastmap for failure.
114000         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
114001         Now also sets the new value (passed in a new argument).
114002         (re_match_2_internal): Use it.
114003         Also, use a new var `reg' of type size_t when looping through regs
114004         rather than reuse the inappropriate `mcnt'.
114006 2000-10-25  Jim Meyering  <meyering@lucent.com>
114008         * lib/obstack.c: Update from libc.
114010 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
114012         * regex.c (regex_compile): Change the way of handling a range from
114013         a char less than 256 to a char not less than 256.
114015 2000-10-24  Andrew Innes  <andrewi@gnu.org>
114017         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
114018         NT-Emacs only.
114019         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
114020         so that re_search functions only quit when callers expect them to.
114022 2000-10-23  Jim Meyering  <meyering@lucent.com>
114024         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
114025         wrong.  That set_locale call must not have any side effects.
114026         From Paul Eggert.
114028 2000-10-22  Jim Meyering  <meyering@lucent.com>
114030         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
114031         [CYCLIC]: Remove now-unused definition.
114033         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
114034         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
114035         Suggestion from Ulrich Drepper.
114037 2000-10-21  Jim Meyering  <meyering@lucent.com>
114039         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
114040         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
114041         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
114043 2000-10-21  Jim Meyering  <meyering@lucent.com>
114045         * lib/dirname.c (memrchr): Declare if necessary.
114046         (dir_name): Remove the restriction that there be no
114047         trailing slashes.  Now, this code skips past them, effectively
114048         ignoring them.
114049         [TEST_DIRNAME] (main): New unit tests.
114051         * lib/memrchr.c: New file from GNU libc.
114052         Undef __memrchr, too.
114053         [!weak_alias]: Define __memrchr to memrchr.
114054         Guard weak_alias use with `#ifdef weak_alias'.
114056 2000-10-21  Jim Meyering  <meyering@lucent.com>
114058         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
114059         (dir_name): Use dir_name_r.
114060         * lib/dirname.h (dir_name_r): Declare it.
114062 2000-10-17  Jim Meyering  <meyering@lucent.com>
114064         * lib/quote.h (PARAMS): Define and use.
114065         Reported by Akim Demaille.
114067         * lib/getopt.c: Update from libc.
114069 2000-10-16  Jim Meyering  <meyering@lucent.com>
114071         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
114072         setlocale.
114073         From Jan Fedak.
114075 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
114077         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
114079 2000-09-25  Jim Meyering  <meyering@lucent.com>
114081         * lib/md5.h (rol): Define (from GnuPG).
114083         * lib/sha.c: Give credit (GnuPG) where due.
114084         (M): Use rol rather than open-coding it.
114085         Add a FIXME comment.
114087 2000-09-21  Jim Meyering  <meyering@lucent.com>
114089         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
114090         Reported by Michael Stone.
114092 2000-09-20  Jim Meyering  <meyering@lucent.com>
114094         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
114095         (noinst_HEADERS): Add sha.h.
114096         Based on code from Scott G. Miller and from GnuPG.
114098 2000-09-18  Jim Meyering  <meyering@lucent.com>
114100         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
114101         LIBS. Otherwise, everyone ends up linking with -lelf for some
114102         configurations.
114103         Reported by Mike Stone.
114105 2000-09-15  Jim Meyering  <meyering@lucent.com>
114107         * lib/regex.c: Update from libc.
114109 2000-09-10  Jim Meyering  <meyering@lucent.com>
114111         * lib/getopt.c (_getopt_internal): Update from glibc.
114113 2000-09-09  Jim Meyering  <meyering@lucent.com>
114115         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
114116         think it should be used as a general replacement for isascii.
114117         * lib/fnmatch.c: Likewise.
114118         * lib/mbswidth.c: Likewise
114119         * lib/regex.c: Likewise.
114121         Don't use atoi.
114122         * lib/userspec.c: Include sys/param.h and limits.h.
114123         Include xstrtol.h.
114124         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
114125         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
114126         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
114127         UID, GID.  Check range.
114129 2000-09-06  Jim Meyering  <meyering@lucent.com>
114131         * lib/getopt.c (_getopt_internal): Update from glibc.
114133 2000-08-30  Jim Meyering  <meyering@lucent.com>
114135         * lib/strftime.c: Merge in changes from GNU libc.
114137 2000-08-26  Jim Meyering  <meyering@lucent.com>
114139         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
114140         * m4/fpending.m4: New file.
114142 2000-08-26  Jim Meyering  <meyering@lucent.com>
114144         * lib/closeout.c: Include "__fpending.h".
114145         (close_stdout_status): Return right away if there's nothing to flush.
114147         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
114148         * lib/__fpending.c: New file.
114149         * lib/__fpending.h: New file.
114151 2000-08-20  Jim Meyering  <meyering@lucent.com>
114153         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
114154         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
114155         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
114157 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
114159         Improve fileutils installation on systems where running
114160         programs (like install) can't be unlinked.
114161         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
114162         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
114164 2000-08-07  Paul Eggert  <eggert@twinsun.com>
114166         Standardize on "memory exhausted" instead of "Memory exhausted"
114167         or "virtual memory exhausted".
114168         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
114169         "virtual memory exhausted".
114170         * lib/same.c (same_name): Invoke xalloc_die instead of printing
114171         our own message.
114172         * lib/userspec.c (parse_user_spec): Likewise.
114173         * lib/bumpalloc.h: comment fix
114174         * lib/same.c, userspec.c: Include xalloc.h.
114176         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
114177         not char *const and pointing to a constant array.
114178         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
114179         (xrealloc): Comment fix.
114181         * lib/userspec.c (parse_user_spec):
114182         Don't translate a message until just before returning,
114183         to avoid unnecessary translation.
114185 2000-08-07  Jim Meyering  <meyering@lucent.com>
114187         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
114188         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
114189         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
114190         getgroups.c, gethostname.c, getopt.h, group-member.c,
114191         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
114192         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
114193         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
114194         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
114195         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
114196         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
114197         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
114198         yesno.c: Back out Copyright date changes for each file with no change
114199         this year.  This eases coordination with other programs using the same
114200         source code modules.  From Paul Eggert.
114202 2000-08-06  Paul Eggert  <eggert@twinsun.com>
114204         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
114205         not char, for compatibility with glibc 2.1.3 strftime.c.
114207 2000-08-03  Greg McGary  <greg@mcgary.org>
114209         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
114210         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
114211         (EXTEND_BUFFER): Use them.
114213 2000-08-01  Jim Meyering  <meyering@lucent.com>
114215         * lib/dirname.c (ISSLASH): Define.
114216         (BACKSLASH_IS_PATH_SEPARATOR): Define.
114217         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
114218         both `\' and `/' may be use as path separators.
114219         Based on a patch from Prashant TR.
114221 2000-07-31  Paul Eggert  <eggert@twinsun.com>
114223         * lib/quotearg.c (quotearg_n_options): Don't make the initial
114224         slot vector a constant, since it might get modified.
114226 2000-07-31  Jim Meyering  <meyering@lucent.com>
114228         * lib/xmalloc.c: Use `virtual memory exhausted', not
114229         `Memory exhausted'.
114230         * lib/obstack.c (print_and_abort): Likewise.
114232 2000-07-30  Paul Eggert  <eggert@twinsun.com>
114234         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
114235         buffer, so that the caller can always quote one small
114236         component of a "memory exhausted" message in slot 0.
114237         From a suggestion by Jim Meyering.
114239 2000-07-30  Jim Meyering  <meyering@lucent.com>
114241         * lib/makepath.c (make_path): Quote the other instance, too.
114243         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
114244         (STATIC_BUF_SIZE): Define.
114245         (quotearg_n_options): Use only statically allocated storage when
114246         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
114247         than STATIC_BUF_SIZE.
114249 2000-07-29  Jim Meyering  <meyering@lucent.com>
114251         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
114252         * lib/dirname.c (dir_name): Likewise.
114254         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
114255         `/'.
114257         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
114258         (dir_name): Assert that there are no trailing slashes.
114260 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
114262         * lib/mbswidth.h (mbswidth): Add a flags argument.
114263         (mbswidth): New declaration.
114264         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
114265         * lib/mbswidth.c (mbswidth): Add a flags argument.
114266         (mbsnwidth): New function.
114268 2000-07-24  Jim Meyering  <meyering@lucent.com>
114270         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
114272 2000-07-23  Paul Eggert  <eggert@twinsun.com>
114274         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
114276 2000-07-23  Paul Eggert  <eggert@twinsun.com>
114278         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
114279         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
114280         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
114281         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
114282         invoke multibyte primitives.
114284 2000-07-23  Paul Eggert  <eggert@twinsun.com>
114286         * lib/quotearg.c:
114287         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
114288         so that mbstate_t is always defined.
114290         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
114291         be 1 in at least one GCC installation, and this configuration
114292         error is likely to be common.  Ignoring MB_LEN_MAX hurts
114293         performance on hosts that have mbrtowc but have only unibyte
114294         locales, but I assume these hosts are rare.
114296 2000-07-23  Paul Eggert  <eggert@twinsun.com>
114298         * lib/mbswidth.c (_XOPEN_SOURCE):
114299         Don't define; this causes problems on Solaris 7.
114300         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
114302 2000-07-23  Jim Meyering  <meyering@lucent.com>
114304         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
114305         too: getgrgid, getpwuid, getuid.
114307 2000-07-23  Jim Meyering  <meyering@lucent.com>
114309         * lib/basename.c (base_name): Add an assertion.
114311 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
114313         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
114314         shadow its mbsinit function.
114316 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
114318         * lib/mbswidth.h: New file.
114319         * lib/mbswidth.c: New file.
114320         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
114321         (noinst_HEADERS): Add mbswidth.h.
114323 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
114325         * lib/config.charset: Add support for FreeBSD. Improve support for
114326         HP-UX and IRIX 6.
114328 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
114330         * m4/mbswidth.m4: New file.
114331         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
114333 2000-07-15  Jim Meyering  <meyering@lucent.com>
114335         * lib/makepath.c: Include quote.h.
114336         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
114337         corresponding argument in a `quote (...)' call.
114338         Give better diagnostics.
114340         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
114341         (noinst_HEADERS): Add quote.h.
114343         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
114344         from tar's src/misc.c.
114345         * lib/quote.h: New file.  Prototypes for same.
114347 2000-07-14  Paul Eggert  <eggert@twinsun.com>
114349         From a suggestion by Bruno Haible.
114350         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
114351         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
114352         to decide whether to define the BeOS workaround macro;
114353         this adjusts to the change to AC_MBSTATE_T.
114355 2000-07-14  Jim Meyering  <meyering@lucent.com>
114357         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
114358         jm_AC_TYPE_UINTMAX_T.
114360 2000-07-13  Paul Eggert  <eggert@twinsun.com>
114362         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
114364         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
114365         quotearg_buffer_restyled): Add support for
114366         clocale_quoting_style.  Undo previous change to
114367         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
114368         and "{RIGHT QUOTATION MARK}" msgids.
114370 2000-07-10  Paul Eggert  <eggert@twinsun.com>
114372         From a suggestion by Bruno Haible.
114373         * m4/mbstate_t.m4 (AC_MBSTATE_T):
114374         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
114375         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
114376         and mbstate_t, to a single-part test that simply defines mbstate_t.
114377         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
114378         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
114380 2000-07-10  Jim Meyering  <meyering@lucent.com>
114382         * m4/strerror_r.m4: Mirror the correction made in autoconf.
114384         * m4/gnu-source.m4: Output to confdefs.h directly.
114385         Suggestion from Akim Demaille.
114387 2000-07-09  Paul Eggert  <eggert@twinsun.com>
114389         The old behavior of quoting `like this' doesn't look good with
114390         newer, ISO-style fonts.  See:
114391         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
114393         Instead, quote "like this" by default.  Let the translator
114394         tailor the locale-specific quoting behavior by providing
114395         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
114397         * lib/quotearg.c (N_): New macro.
114398         (gettext_default): New function.
114399         (quotearg_buffer_restyled): Use
114400         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
114401         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
114403 2000-07-09  Jim Meyering  <meyering@lucent.com>
114405         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
114406         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
114408         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
114409         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
114411 2000-07-09  Jim Meyering  <meyering@lucent.com>
114413         * lib/Most files: Update copyright dates to include 2000.
114415 2000-07-08  Jim Meyering  <meyering@lucent.com>
114417         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
114418         if not defined.
114419         (xgethostname): Remove now-unnecessary #ifdef.
114420         Move declaration of `err' into loop where it's used.
114422 2000-07-05  Paul Eggert  <eggert@twinsun.com>
114423         and Bruno Haible  <haible@clisp.cons.org>
114425         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
114426         only if the test for an object-type mbstate_t fails.  This
114427         prevents us from mistakenly reporting that mbstate_t is a
114428         system object type after we "#define mbstate_t int" to work
114429         around its lack.
114431 2000-07-05  Paul Eggert  <eggert@twinsun.com>
114432         and Bruno Haible  <haible@clisp.cons.org>
114434         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
114436 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
114438         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
114439         to strerror_r.
114440         Include <ctype.h> for use of isalpha.
114442 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
114444         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
114445         by allocating a larger buffer. Test the gethostname return value for
114446         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
114447         returns an error and ENAMETOOLONG isn't defined.
114449 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
114451         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
114452         dimension.
114454 2000-07-04  Jim Meyering  <meyering@lucent.com>
114456         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
114457         of the deprecated AC_CHECKING.
114459 2000-07-04  Jim Meyering  <meyering@lucent.com>
114461         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
114462         Reported by Bruno Haible.
114464 2000-07-04  Jim Meyering  <meyering@lucent.com>
114466         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
114467         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
114468         lacks mbrtowc.
114470 2000-07-03  Paul Eggert  <eggert@twinsun.com>
114472         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
114473         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
114475 2000-07-03  Paul Eggert  <eggert@twinsun.com>
114476         and Bruno Haible  <haible@clisp.cons.org>
114478         * lib/quotearg.c (mbrtowc):
114479         Assign to *pwc, and return 1 only if result is nonzero.
114480         (iswprint): Use ISPRINT when substituting our own mbrtowc.
114482 2000-07-03  Jim Meyering  <meyering@lucent.com>
114484         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
114486 2000-07-03  Jim Meyering  <meyering@lucent.com>
114488         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
114489         This is necessary to get a definition of e.g., UTMP_FILE on
114490         HP-UX 10.20.
114491         From Bob Proulx.
114493 2000-07-02  Jim Meyering  <meyering@lucent.com>
114495         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
114497         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
114498         AC_LIBOBJ(function_name).
114499         * m4/chown.m4: Likewise.
114500         * m4/fnmatch.m4: Likewise.
114501         * m4/ftruncate.m4: Likewise.
114502         * m4/getgroups.m4: Likewise.
114503         * m4/getline.m4: Likewise.
114504         * m4/group-member.m4: Likewise.
114505         * m4/jm-macros.m4: Likewise.
114506         * m4/lstat.m4: Likewise.
114507         * m4/malloc.m4: Likewise.
114508         * m4/memcmp.m4: Likewise.
114509         * m4/nanosleep.m4: Likewise.
114510         * m4/putenv.m4: Likewise.
114511         * m4/realloc.m4: Likewise.
114512         * m4/regex.m4: Likewise.
114513         * m4/stat.m4: Likewise.
114514         * m4/strftime.m4: Likewise.
114516 2000-07-02  Jim Meyering  <meyering@lucent.com>
114518         * lib/quotearg.c (mbstate_t): Don't define here.
114520 2000-07-02  Jim Meyering  <meyering@lucent.com>
114522         * lib/nanosleep.c (SIGCONT): Define if not already defined.
114524 2000-07-01  Jim Meyering  <meyering@lucent.com>
114526         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
114528 2000-07-01  Jim Meyering  <meyering@lucent.com>
114530         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
114531         problem.
114533 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
114535         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
114536         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
114538 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
114540         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
114541         per change in ../m4/ls-mntd-fs.m4.
114542         (read_filesystem_list): Ignore symbolic links.
114544 2000-06-29  Jim Meyering  <meyering@lucent.com>
114546         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
114547         for declaration of strcmp.
114549         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
114551         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
114552         Avoid warning by casting result to `char *' to remove `const'.
114554 2000-06-28  Jim Meyering  <meyering@lucent.com>
114556         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
114557         included by quotearg.c, for which we perform this test.  From
114558         Bruno Haible.
114560 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
114562         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
114563         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
114564         <utmpx.h> exists, put readutmp.o into LIBOBJS.
114566 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
114568         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
114570 2000-06-26  Paul Eggert  <eggert@twinsun.com>
114572         savedir now sets errno on failure and invokes xmalloc to get memory.
114573         Fix a couple of other minor bugs while we're at it.
114575         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
114576         (NAMLEN): Remove macro.
114577         (malloc, realloc): Remove decls.
114578         (stpcpy): Likewise.
114579         ("xalloc.h"): Include.
114580         (NAME_SIZE_DEFAULT): New macro.
114581         (savedir): Use xmalloc / xrealloc to allocate memory.
114582         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
114583         Skip "" directory entries.
114584         Use strlen to calculate directory entry length, since the old method
114585         is rarely used these days and isn't worth supporting.
114586         Don't use a pointer after freeing it.
114587         Check for integer overflow when calculating allocation size.
114588         Use memcpy to copy entries, instead of stpcpy.
114589         Set errno properly when returning NULL.
114590         Check for readdir error.
114592 2000-06-26  Jim Meyering  <meyering@lucent.com>
114594         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
114596 2000-06-25  Jim Meyering  <meyering@lucent.com>
114598         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
114599         Linux header bug when _XOPEN_SOURCE is defined to 500.
114601 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
114603         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
114604         deficiency.
114606 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
114608         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
114609         Include xalloc.h.
114610         Don't include <stdlib.h>.  Don't declare malloc, realloc.
114612 2000-06-24  Jim Meyering  <meyering@lucent.com>
114614         * m4/strerror_r.m4: Revive this file -- to try out an experimental
114615         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
114616         for which strerror does return char*, but which lacks a conveniently
114617         accessible declaration of the function.  If the compile-test says
114618         strerror_r doesn't work, then resort to a `run'-test that works on
114619         BeOS and segfaults on DEC Unix.
114621 2000-06-24  Jim Meyering  <meyering@lucent.com>
114623         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
114625 2000-06-23  Paul Eggert  <eggert@twinsun.com>
114627         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
114628         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
114630 2000-06-23  Paul Eggert  <eggert@twinsun.com>
114632         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
114633         (mbrtowc, mbstate_t): Define substitutes if
114634         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
114635         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
114636         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
114638 2000-06-23  Jim Meyering  <meyering@lucent.com>
114640         * m4/afs.m4: Add missing AC_MSG_RESULT.
114641         Reported by Bruno Haible.
114643         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
114644         Suggestion from Bruno Haible.
114646 2000-06-23  Jim Meyering  <meyering@lucent.com>
114648         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
114650 2000-06-21  Jim Meyering  <meyering@lucent.com>
114652         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
114654 2000-06-21  Jim Meyering  <meyering@lucent.com>
114656         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
114657         (noinst_HEADERS): Add getstr.h.
114659         * lib/getline.c (getstr): Move into a separate file.
114660         * lib/getstr.c (getstr): New file, extracted from getline.c, with
114661         the following changes: new parameter, delim2; both delim[12]
114662         parameters have type `int', not `char'.  The latter would lose
114663         with 8-bit delimiters.
114664         * lib/getstr.h: New file.
114666 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
114668         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
114669         than 1024, return a memory chunk of least possible size, instead
114670         of size PATH_MAX + 2. In the loop, increment the size proportionally.
114671         Use free/xmalloc instead of xrealloc to avoid copying for very long
114672         paths.
114674 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
114676         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
114677         the empty string.
114679 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
114681         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
114682         address, not strdup.  Include <stdlib.h> and don't declare free().
114684 2000-06-19  Jim Meyering  <meyering@lucent.com>
114686         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
114688 2000-06-18  Jim Meyering  <meyering@lucent.com>
114690         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
114692         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
114693         `checking whether...' message to be consistent with that of the
114694         lstat test.
114696 2000-06-18  Jim Meyering  <meyering@lucent.com>
114698         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
114699         Besides, these days every porting target provides a mkdir function.
114701         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
114702         needed. (this snippet comes from src/system.h).
114704 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
114706         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
114708 2000-06-15  Paul Eggert  <eggert@twinsun.com>
114710         * lib/human.c (adjust_value): New function.
114711         (human_readable_inexact): Apply rounding style even when
114712         printing approximate values.
114714 2000-06-14  Paul Eggert  <eggert@twinsun.com>
114716         * lib/human.c (human_readable_inexact): Allow an input block
114717         size that is not a multiple of the output block size, and vice versa.
114718         Reported by Piergiorgio Sartor.
114720 2000-06-14  Paul Eggert  <eggert@twinsun.com>
114722         * lib/getdate.y (get_date): Apply relative times after time
114723         zone indicator, not before.  Reported by Todd A. Jacobs.
114725 2000-06-13  Jim Meyering  <meyering@lucent.com>
114727         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
114729         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
114731 2000-06-12  Paul Eggert  <eggert@twinsun.com>
114733         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
114735 2000-06-12  Jim Meyering  <meyering@lucent.com>
114737         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
114738         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
114739         optional argument.
114740         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
114741         the optional argument, `lib'.
114743 2000-06-08  Jim Meyering  <meyering@lucent.com>
114745         * m4/largefile.m4: Remove file (now that it's part of autoconf).
114747 2000-06-04  Paul Eggert  <eggert@twinsun.com>
114749         Rewrite largefile configuration so that we don't need to run
114750         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
114751         AC_CANONICAL_HOST in configure.in -- jmm]
114753         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
114754         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
114755         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
114756         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
114757         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
114758         All uses changed.
114759         Instead of inspecting the output of getconf, try to compile the
114760         test program without and with the macro definition.
114761         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
114762         for getconf.  Instead, check for the needed flags by compiling
114763         test programs.
114765 2000-06-04  Paul Eggert  <eggert@twinsun.com>
114767         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
114769 2000-06-04  Jim Meyering  <meyering@lucent.com>
114771         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
114772         SunOS 4.1.4 for which gid_t is an unsigned type.
114774 2000-06-03  Jim Meyering  <meyering@lucent.com>
114776         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
114777         now that autoconf requires that.
114779         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
114780         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
114781         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
114783 2000-06-03  Jim Meyering  <meyering@lucent.com>
114785         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
114787 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
114789         * m4/glibc21.m4: New file.
114790         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
114792 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
114794         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
114795         newer, don't install charset.alias.
114796         * lib/config.charset: Change the Linux/glibc rules so they become empty
114797         on glibc-2.1 or newer.
114799 2000-06-02  Jim Meyering  <meyering@lucent.com>
114801         * lib/mountlist.c: Back out last change.  Instead, do this...
114802         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
114803         me_dummy member using the same `ignore'-testing code.
114804         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
114805         fs_type strings.
114806         From Mark D. Roth.
114808 2000-05-29  Jim Meyering  <meyering@lucent.com>
114810         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
114811         mounts with the `ignore' attribute.  Based on a patch from
114812         Mark D. Roth.
114814 2000-05-28  Jim Meyering  <meyering@lucent.com>
114816         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
114817         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
114818         * m4/stat.m4: Likewise.
114819         * m4/lstat.m4: Likewise.
114820         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
114822         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
114823         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
114825 2000-05-26  Jim Meyering  <meyering@lucent.com>
114827         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
114829 2000-05-24  Jim Meyering  <meyering@lucent.com>
114831         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
114832         autoconf requires that.
114833         * m4/lib-check.m4: Likewise.
114834         * m4/jm-macros.m4: Likewise.
114835         * m4/strftime.m4: Likewise.
114837         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
114838         AC_CHECK_DECLS, now that autoconf requires that.
114840 2000-05-22  Jim Meyering  <meyering@lucent.com>
114842         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
114843         * m4/lstat.m4: Likewise.
114845 2000-05-22  Jim Meyering  <meyering@lucent.com>
114847         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
114849 2000-05-20  Jim Meyering  <meyering@lucent.com>
114851         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
114852         (jm_PREREQ): Use it.
114854 2000-05-18  Jim Meyering  <meyering@lucent.com>
114856         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
114857         back, too, since it may have been modified by allocate_entry.
114858         (hash_delete): Rewrite to use neither the assignment operator
114859         nor the comma operator in an if-expression.
114861 2000-05-15  Paul Eggert  <eggert@twinsun.com>
114863         * lib/closeout.c:
114864         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
114865         Remove; no longer needed.
114866         "quotearg.h": Add include.
114867         (file_name): Do not bother to explicitly initialize to NULL; it's less
114868         efficient on some hosts.
114869         (close_stdout_status): Remove test as to whether stdout was already
114870         closed; it breaks for the case "echo x | sort >&-".
114871         Quote file name colons.
114872         Do not assume that _("write error") lacks format strings.
114874 2000-05-15  Jim Meyering  <meyering@lucent.com>
114876         * lib/version-etc.c (version_etc_copyright): Update the copyright
114877         string used in all --version output.
114879 2000-05-14  Jim Meyering  <meyering@lucent.com>
114881         * lib/closeout.c (close_stdout_set_file_name): New function.
114882         (close_stdout_status): Use new file-scoped global.
114883         Return right away if fstat says the stdout file descriptor is invalid.
114884         * lib/closeout.h (close_stdout_set_file_name): Declare.
114886 2000-05-10  Jim Meyering  <meyering@lucent.com>
114888         * lib/closeout.c [default_exit_status]: New file-scoped variable.
114889         (close_stdout_set_status): New function.
114890         * lib/closeout.h (close_stdout_set_status): Declare.
114892 2000-05-09  Jim Meyering  <meyering@lucent.com>
114894         * m4/gettext.m4: Rename this...
114895         * m4/libintl.m4: ...to this.
114897 2000-05-08  Jim Meyering  <meyering@lucent.com>
114899         * lib/long-options.c: Don't include closeout.h.
114900         (parse_long_options): Don't call close_stdout for --version.
114902 2000-05-06  Paul Eggert  <eggert@twinsun.com>
114904         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
114905         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
114906         2.1.3 bug.  This avoids a clash when files like regex.c define
114907         _GNU_SOURCE.
114909 2000-05-06  Jim Meyering  <meyering@lucent.com>
114911         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
114912         (AC_REPLACE_FUNCS): Add strnlen.
114914         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
114915         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
114917         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
114918         AC_SEARCH_LIBS call for nanosleep.
114919         (LIB_NANOSLEEP): Set and AC_SUBST.
114921 2000-05-06  Jim Meyering  <meyering@lucent.com>
114923         * lib/strnlen.c: Undefine __strnlen and strnlen.
114924         [!weak_alias]: Define __strnlen to strnlen.
114926         * lib/atexit.c: New file, from libiberty.
114928 2000-05-06  Jim Meyering  <meyering@lucent.com>
114930         * lib/closeout.c (close_stdout_status): Also check for errors on the
114931         stderr stream.
114933 2000-05-05  Jim Meyering  <meyering@lucent.com>
114935         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
114936         AC_SEARCH_LIBS call for clock_gettime.
114937         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
114939         * m4/search-libs.m4: Update from autoconf.
114941         su doesn't work on Solaris 2.6.
114942         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
114943         <shadow.h>.  Reported by Dragos Harabor.
114945 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
114947         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
114948         memcpy instead of xmalloc, xrealloc, path_concat.
114949         (locale_charset): Treat empty environment variables as absent.
114950         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
114952 2000-05-04  Jim Meyering  <meyering@lucent.com>
114954         * lib/getopt.c: Update from glibc.
114955         * lib/obstack.c: Likewise.
114956         * lib/obstack.h: Likewise.
114957         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
114958         file
114960         * lib/regex.h: Likewise.
114961         * lib/strndup.c: Likewise.
114962         * lib/strnlen.c: New file, from glibc.
114964 2000-05-03  Jim Meyering  <meyering@lucent.com>
114966         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
114968 2000-05-02  Paul Eggert  <eggert@twinsun.com>
114970         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
114971         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
114972         compile-time test, rather than inspecting host and OS, to
114973         decide whether to define _LARGEFILE_SOURCE.
114975 2000-05-01  Jim Meyering  <meyering@lucent.com>
114977         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
114979         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
114980         Based on a patch from Bruno Haible.
114982 2000-05-01  Jim Meyering  <meyering@lucent.com>
114984         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
114986 2000-04-29  Jim Meyering  <meyering@lucent.com>
114988         * lib/path-concat.c: Declare strdup only if it's not defined.
114989         * lib/canon-host.c: Likewise.
114991 2000-04-28  Jim Meyering  <meyering@lucent.com>
114993         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
114994         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
114995         is included first, then limits.h is included by locale.h by libintl.h.
114996         From John David Anglin.
114998 2000-04-25  Jim Meyering  <meyering@lucent.com>
115000         * lib/makepath.c (S_IRWXUGO): Define.
115001         (make_path): Always perform explicit chmod if MODE specifies any
115002         of the `special' permission bits.  Prompted by a bug report against
115003         install from Mate Wierdl and Joost van Baal.
115005 2000-04-18  Jim Meyering  <meyering@lucent.com>
115007         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
115008         (jm_PREREQ): Use it.
115010 2000-04-18  Jim Meyering  <meyering@lucent.com>
115012         * lib/README: New file.
115014         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
115015         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
115017 2000-04-17  Jim Meyering  <meyering@lucent.com>
115019         Get it right :-)
115020         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
115021         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
115022         Suggestion from Akim Demaille.
115024 2000-04-17  Jim Meyering  <meyering@lucent.com>
115026         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
115027         the definition of it to rpl_strftime also defined-away the system's
115028         declaration.
115030 2000-04-15  Jim Meyering  <meyering@lucent.com>
115032         Use `C' to denote so-called `contiguous' files, the same way
115033         that tar does.
115034         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
115035         (ftypelet): Use S_ISCTG.
115036         From Michael Deutschmann.
115038 2000-04-14  Jim Meyering  <meyering@lucent.com>
115040         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
115041         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
115042         clobbered.
115044 2000-04-14  Jim Meyering  <meyering@lucent.com>
115046         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
115048 2000-04-13  Jim Meyering  <meyering@lucent.com>
115050         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
115051         AH_VERBATIM to insert required #ifndef into config.h.in.
115052         Suggestion from Akim Demaille.
115054 2000-04-12  Jim Meyering  <meyering@lucent.com>
115056         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
115057         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
115058         Christian Krackowizer.
115060         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
115061         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
115062         (AC_SYS_LARGEFILE): Require.
115063         (AM_C_PROTOTYPES): Require.
115065 2000-04-08  Jim Meyering  <meyering@lucent.com>
115067         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
115068         names don't conflict.  Reported by Eli Zaretskii.
115070 2000-04-07  Jim Meyering  <meyering@lucent.com>
115072         * lib/putenv.c: Move inclusion of errno.h so it follows that of
115073         sys/types.h, to work around system header problems on AIX 3.2.5.
115074         From Bruno Haible.
115076 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
115078         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
115079         bug.  Deal with the different error behavior of Irix iconv.
115081 2000-04-05  Paul Eggert  <eggert@twinsun.com>
115083         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
115084         IRIX if the installer said otherwise.
115086 2000-04-05  Jim Meyering  <meyering@lucent.com>
115088         Portability tweaks required for ultrix4.3.
115089         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
115090         (jm_CHECK_DECLS): Add getutent to the list of functions.
115091         (_jm_DECL_HEADERS): Add utmpx.h.
115092         From John David Anglin.
115094         * m4/strftime.m4: Back out the 2000-04-02 change.
115095         Instead of that change, simply undefine putenv in the test program.
115097 2000-04-05  Jim Meyering  <meyering@lucent.com>
115099         Portability tweaks required for ultrix4.3.
115100         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
115101         getutent.
115102         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
115103         * lib/canon-host.c: Declare strdup.
115104         * lib/path-concat.c: Likewise.
115105         From John David Anglin.
115107 2000-04-04  Jim Meyering  <meyering@lucent.com>
115109         Be more DOS 8.3-friendly.
115110         * lib/ref-add.sin: Renamed from ref-add.sed.in.
115111         * lib/ref-del.sin: Renamed from ref-del.sed.in.
115112         * lib/Makefile.am: Reflect renaming.
115113         Reported by Eli Zaretskii.
115115         Use a temporary file name that won't clash with `charset.alias'
115116         in the DOS 8.3 name space.
115117         * lib/Makefile.am (charset_tmp): Define.
115118         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
115119         (uninstall-local): Likewise.
115120         Reported by Eli Zaretskii.
115122 2000-04-03  Jim Meyering  <meyering@lucent.com>
115124         * m4/gettext.m4: Fix typo in comment.
115126         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
115127         textutils/configure.in).  Suggestion from Paul Eggert.
115128         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
115130 2000-04-02  Paul Eggert  <eggert@twinsun.com>
115132         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
115133         variable in the shell rather than using putenv, which isn't
115134         portable.  This avoids the configure-time inter-test dependency
115135         on the potentially-renamed putenv function.
115137 2000-03-30  Paul Eggert  <eggert@twinsun.com>
115139         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
115140         before checking struct stat.st_blksize, so that
115141         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
115143 2000-03-29  Paul Eggert  <eggert@twinsun.com>
115145         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
115146         since strftime.c uses HAVE_STRFTIME to decide whether to use
115147         the underlying strftime.
115149 2000-03-29  Paul Eggert  <eggert@twinsun.com>
115151         * lib/time/strftime.c (my_strftime): Make sure we call the system
115152         strftime, not ourselves, when invoking the underlying strftime.
115154 2000-03-24  Jim Meyering  <meyering@lucent.com>
115156         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
115157         (charset_alias): Define.
115158         (install-exec-local): Factor out common code.
115159         (uninstall-local): Split lines longer than 80.
115160         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
115161         (SUFFIXES): Define.
115162         (.sed.in.sed): New rule.  Don't redirect directly to $@.
115163         (CLEANFILES): Add ref-add.sed and ref-del.sed.
115165 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
115167         * lib/config.charset: Output a line containing "Packages using this
115168         file".
115169         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
115170         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
115171         ref-del.sed): New rules.
115173 2000-03-17  Jim Meyering  <meyering@lucent.com>
115175         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
115176         Otherwise, include <strings.h>
115178 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
115180         * lib/unicodeio.c (utf8_wctomb): New function.
115181         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
115182         format instead of in UCS-4 with platform dependent endianness.
115184 2000-03-10  Jim Meyering  <meyering@lucent.com>
115186         * m4/lib-check.m4: Look for getspnam in -lgen, too.
115187         From Marco Franzen.
115189 2000-03-07  Paul Eggert  <eggert@twinsun.com>
115191         * lib/savedir.c (savedir): Work even if directory size is
115192         negative; this can happen with some screwy NFS configurations.
115194 2000-03-06  Jim Meyering  <meyering@lucent.com>
115196         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
115197         if it's NULL (because we ran out of memory).  From Bruno Haible.
115199 2000-03-05  Jim Meyering  <meyering@lucent.com>
115201         * lib/localcharset.c ("path-concat.h"): Include.
115202         (get_charset_aliases): Use path_concat instead of ANSI string
115203         concatenation.
115205         * lib/unicodeio.h (PARAMS): Define.
115206         Use it to guard prototype.
115208 2000-03-04  Jim Meyering  <meyering@lucent.com>
115210         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
115211         for lib/localcharset.c.
115213 2000-03-04  Jim Meyering  <meyering@lucent.com>
115215         * lib/Makefile.am (install-exec-local): Create $(libdir) before
115216         installing into it.
115217         (uninstall-local): Uncomment this rule so `make distcheck' works
115218         once again.
115220         * lib/unicodeio.c (<errno.h>): Include it.
115221         (errno): Declare if not defined.
115223         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
115225         * lib/config.charset: New version, incorporating remarks from a linux
115226         i18n mailing list.  From Bruno Haible.
115228 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
115230         * m4/codeset.m4: New file.
115231         * m4/iconv.m4: New file.
115232         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
115234 2000-03-03  Jim Meyering  <meyering@lucent.com>
115236         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
115238 2000-03-02  Jim Meyering  <meyering@lucent.com>
115240         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
115241         the messages come out on separate lines.
115243         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
115244         rather than jm_CHECK_DECLARATIONS.
115245         * m4/decl.m4: Remove now-unused file.
115247         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
115248         geteuid.
115250 2000-03-02  Jim Meyering  <meyering@lucent.com>
115252         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
115254 2000-03-01  Jim Meyering  <meyering@lucent.com>
115256         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
115257         * lib/unicodeio.c: Likewise.
115259 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
115261         * lib/config.charset: New file.
115262         * lib/localcharset.c: New file.
115263         * lib/unicodeio.h, lib/unicodeio.c: New files.
115264         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
115265         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
115266         (noinst_HEADERS): Add unicodeio.h.
115267         (all-local, install-exec-local, charset.alias): New targets.
115269 2000-02-28  Paul Eggert  <eggert@twinsun.com>
115271         * lib/quotearg.c (ALERT_CHAR): New macro.
115272         (quotearg_buffer_restyled): Use it.
115274 2000-02-27  Jim Meyering  <meyering@lucent.com>
115276         * m4/check-decl.m4: Add getenv to the list.
115278 2000-02-27  Jim Meyering  <meyering@lucent.com>
115280         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
115281         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
115283         * lib/backupfile.c: Guard inclusion of stdlib.h with
115284         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
115285         Declare malloc if needed.
115287         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
115288         `#ifndef HAVE_DECL..'
115289         now that autoconf always defines the HAVE_DECL_ symbols.
115290         * lib/human.c: Likewise.
115291         * lib/same.c: Likewise.
115292         * lib/strtoumax.c: Likewise.
115294         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
115295         declaration check was not run.
115296         * lib/hash.c: Likewise.
115297         * lib/human.c: Likewise.
115298         * lib/same.c: Likewise.
115299         * lib/strtoumax.c: Likewise.
115301         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
115302         `.', then first look up the entire `.'-containing string as a login
115303         name.
115305 2000-02-23  Jim Meyering  <meyering@lucent.com>
115307         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
115308         in place of my hack.
115310 2000-02-18  Paul Eggert  <eggert@twinsun.com>
115312         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
115313         (textint): New typedef.
115314         (parser_control): Member year changed from int to textint.
115315         All uses changed.
115316         (YYSTYPE): Removed; replaced by %union with int and textint members.
115317         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
115318         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
115319         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
115320         (tSNUMBER, tUNUMBER): Now of type <textintval>.
115321         (date, number, to_year): Use width of number in digits, not its value,
115322         to determine whether it's a 2-digit year, or a 2-digit time.
115323         (yylex): Store number of digits of numeric tokens.
115324         Reported by John Kendall.
115326         (parser_control): Changed from struct parser_control to typedef (for
115327         consistency).  All uses changed.
115329         (tID): Removed; not used.
115330         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
115332 2000-02-14  Paul Eggert  <eggert@twinsun.com>
115334         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
115335         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
115337 2000-02-12  Jim Meyering  <meyering@lucent.com>
115339         * lib/userspec.c (ISDIGIT): Define it.
115340         (isdigit): Remove definition.
115341         (is_number): Use ISDIGIT, not isdigit.
115342         <libintl.h>: Include.
115343         (_ and N_): Define.
115344         (parse_user_spec): Mark translatable strings.
115346 2000-02-10  Jim Meyering  <meyering@lucent.com>
115348         With these changes, nanosleep.[ch] are finally enough like the other
115349         lib/* replacement files to compile on a few more losing systems.
115351         * lib/nanosleep.h: Don't include config.h.
115352         Remove prototype from declaration of nanosleep.
115353         (PARAMS): Remove now-unneeded definition.
115354         * lib/nanosleep.c: #undef nanosleep.
115355         (rpl_nanosleep): Rename from nanosleep.
115357 2000-02-10  Jim Meyering  <meyering@lucent.com>
115359         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
115360         gnu_nanosleep to rpl_nanosleep.
115362 2000-02-09  Jim Meyering  <meyering@lucent.com>
115364         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
115365         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
115367 2000-02-08  Akim Demaille  <akim@epita.fr>
115369         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
115370         `[' and `]' and remove uses of `changequote'.
115371         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
115372         (AC_SYS_LARGEFILE): Likewise.
115373         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
115374         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
115375         of changequote.
115376         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
115377         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
115378         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
115379         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
115381 2000-02-05  Jim Meyering  <meyering@lucent.com>
115383         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
115384         Remove explicit use of AC_HEADER_TIME.  It is required by
115385         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
115386         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
115387         in autoconf whereby the expansion of the latter ended up preceding
115388         the expansion of its prerequisite, AC_HEADER_TIME.
115389         Reported by Volker Borchert.
115391 2000-02-03  Jim Meyering  <meyering@lucent.com>
115393         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
115395 2000-02-03  Jim Meyering  <meyering@lucent.com>
115397         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
115398         rather than with `#if HAVE_UTMPNAME'.
115400 2000-02-02  Jim Meyering  <meyering@lucent.com>
115402         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
115403         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
115404         Reported by Eli Zaretskii.
115406 2000-02-01  Jim Meyering  <meyering@lucent.com>
115408         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
115410 2000-01-31  Jim Meyering  <meyering@lucent.com>
115412         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
115413         functions.  Add the time.h and sys/time.h headers along with the
115414         AC_REQUIRE'ment of AC_HEADER_TIME.
115416 2000-01-31  Jim Meyering  <meyering@lucent.com>
115418         * lib/nanosleep.h (nanosleep): Guard declaration with
115419         `#if ! HAVE_DECL_NANOSLEEP'.
115420         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
115421         the declaration in that vendor's sys/timers.h.
115422         Reported by Christian Krackowizer.
115424         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
115425         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
115426         (ISPRINT): Likewise.
115427         Reported by Tom Tromey.
115429 2000-01-30  Jim Meyering  <meyering@lucent.com>
115431         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
115433         * m4/prereq.m4 (utmp_includes): Define.
115434         Check for ut_user and ut_name members in both struct utmpx
115435         and struct utmp.
115437 2000-01-30  Jim Meyering  <meyering@lucent.com>
115439         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
115440         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
115441         header files where only utmpx.ut_user is declared.
115443         * lib/readutmp.h (UT_USER): Define.
115445 2000-01-29  Jim Meyering  <meyering@lucent.com>
115447         * m4/lib-check.m4: New file containing library-related checks from
115448         fileutils and sh-utils (textutils had none).
115450 2000-01-28  Jim Meyering  <meyering@lucent.com>
115452         * m4/perl.m4: Change format of warning message to look more like that
115453         from the missing script.  Suggestion from François Pinard.
115455 2000-01-25  Jim Meyering  <meyering@lucent.com>
115457         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
115458         well as time.h in the compile check.
115459         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
115460         Fix typo in cross-compiling case: s/yes/no/.
115462 2000-01-23  Jim Meyering  <meyering@lucent.com>
115464         * m4/jm-macros.m4: Move df-related tests here from
115465         fileutils/configure.in
115467         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
115468         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
115470         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
115471         s/space/ac_fsusage_space/.
115472         (jm_FILE_SYSTEM_USAGE): Take two parameters.
115474         * m4/ftruncate.m4: New file (derived from part of
115475         fileutils/configure.in).
115476         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
115477         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
115479         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
115480         AC_SUBST these here, rather than just in sh-util/configure.in, so
115481         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
115482         all the same.
115483         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
115484         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
115485         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
115486         (AC_SUBST(POW_LIBM)): Likewise.
115487         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
115489 2000-01-23  Jim Meyering  <meyering@lucent.com>
115491         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
115492         obstack.c.
115494 2000-01-22  Jim Meyering  <meyering@lucent.com>
115496         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
115498         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
115500         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
115501         configure.in
115502         (AC_CHECK_HEADERS): Likewise for sh-utils.
115503         (AC_CHECK_HEADERS): Likewise for textutils.
115504         Merge the three lists of headers.
115506         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
115507         from fileutils' configure.in.
115509         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
115510         code. Moved tests into their own function (_jm_DECL_HEADERS) in
115511         check-decl.m4.
115513         * m4/check-decl.m4: Use #if rather than #ifdef.
115514         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
115515         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
115516         (_jm_DECL_HEADERS): Define new function.
115517         (jm_CHECK_DECLARATIONS): Require it.
115519 2000-01-22  Jim Meyering  <meyering@lucent.com>
115521         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
115522         [! HAVE_DECL_STRTOULL]: Declare strtoull.
115523         Required for some AIX systems.  Reported by Christian Krackowizer.
115524         [TESTING] (main): New function.
115526         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
115527         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
115528         letters.
115530         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
115531         iswprint.
115533         * lib/strverscmp.c (ISDIGIT): Define.
115534         (strverscmp): Use ISDIGIT, not isdigit.
115536 2000-01-19  Jim Meyering  <meyering@lucent.com>
115538         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
115539         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
115540         defines `struct timespec' in <sys/time.h>
115542         * m4/c-bs-a.m4: Remove uses of changequote altogether.
115543         Thanks to Akim for explaining.
115545 2000-01-17  Paul Eggert  <eggert@twinsun.com>
115547         * lib/nanosleep.c (nanosleep):
115548         Don't use SA_INTERRUPT to decide whether to call sigaction, as
115549         POSIX.1 doesn't require SA_INTERRUPT and some systems
115550         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
115551         it's been part of POSIX.1 since day 1 (in 1988).
115553 2000-01-17  Jim Meyering  <meyering@lucent.com>
115555         * lib/interlock: Remove unused file.  Reported by François Pinard.
115557 2000-01-16  Paul Eggert  <eggert@twinsun.com>
115559         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
115560         alert, backslash, formfeed, and vertical tab unnecessarily in
115561         shell quoting style.
115563 2000-01-16  Jim Meyering  <meyering@lucent.com>
115565         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
115566         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
115567         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
115568         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
115570 2000-01-16  Jim Meyering  <meyering@lucent.com>
115572         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
115573         because the latter didn't work.
115575 2000-01-15  Jim Meyering  <meyering@lucent.com>
115577         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
115578         (AC_REPLACE_FUNCS): Add memcpy and memset.
115579         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
115580         Add strpbrk.
115581         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
115583 2000-01-12  Jim Meyering  <meyering@lucent.com>
115585         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
115586         (jm_PREREQ): Use it.
115587         (jm_PREREQ_READUTMP): New macro.
115588         (jm_PREREQ): Use it.
115590 2000-01-11  Paul Eggert  <eggert@twinsun.com>
115592         Quote multibyte characters correctly.
115593         * m4/c-bs-a.m4: New file.
115594         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
115595         (jm_PREREQ): Use it.
115597 2000-01-11  Paul Eggert  <eggert@twinsun.com>
115599         * m4/uintmax_t.m4: Port to autoconf 2.13.
115601 2000-01-08  Jim Meyering  <meyering@ascend.com>
115603         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
115604         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
115606 2000-01-04  Jim Meyering  <meyering@ascend.com>
115608         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
115609         jm_STRUCT_DIRENT_D_TYPE.
115610         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
115611         jm_STRUCT_DIRENT_D_INO.
115612         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
115613         jm_STRUCT_UTIMBUF.
115614         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
115615         renamings.
115616         * m4/utime.m4: Likewise.
115618         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
115619         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
115621 2000-01-03  Paul Eggert  <eggert@twinsun.com>
115623         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
115624         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
115626 2000-01-02  Jim Meyering  <meyering@ascend.com>
115628         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
115629         remember if this is necessary.
115631 1999-12-26  Jim Meyering  <meyering@ascend.com>
115633         * m4/jm-macros.m4: Use it here.
115634         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
115636 1999-12-23  Jim Meyering  <meyering@ascend.com>
115638         * m4/jm-macros.m4: Check for clock_gettime (moved from
115639         fileutils/configure.in)
115640         Check for gettimeofday.
115642 1999-12-20  Jim Meyering  <meyering@ascend.com>
115644         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
115645         autoconf-2.14a-1999-12-20.
115647 1999-12-19  Jim Meyering  <meyering@ascend.com>
115649         * m4/lstat-slash.m4: New file.
115650         * m4/jm-macros.m4: Use the new macro:
115651         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
115653 1999-12-07  Jim Meyering  <meyering@ascend.com>
115655         * m4/perl.m4: Require that File::Compare be available, too.
115656         Too many systems seem to lack it.
115658         * m4/strftime.m4: Add checks for most of the cpp macros tested in
115659         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
115661 1999-11-18  Paul Eggert  <eggert@twinsun.com>
115663         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
115664         problem with the QNX 4.25 shell, which doesn't propagate exit
115665         status of failed commands inside shell assignments.
115667 1999-11-17  Jim Meyering  <meyering@ascend.com>
115669         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
115671 1999-11-07  Jim Meyering  <meyering@ascend.com>
115673         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
115675 1999-11-06  Jim Meyering  <meyering@ascend.com>
115677         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
115678         * m4/jm-macros.m4 (jm_MACROS): Use it here.
115680 1999-11-05  Jim Meyering  <meyering@ascend.com>
115682         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
115683         configure.in of textutils, fileutils, and sh-utils into this one
115684         (shared between those packages) file.
115685         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
115686         AC_STRUCT_ST_BLKSIZE.
115688 1999-11-03  Jim Meyering  <meyering@ascend.com>
115690         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
115691         of AC_CHECK_TYPE checks includes unistd.h.
115692         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
115693         Suggestion from Akim Demaille.
115695 1999-10-30  Jim Meyering  <meyering@ascend.com>
115697         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
115698         m4-quoted string.
115699         * m4/ls-mntd-fs.m4: Likewise.
115700         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
115701         * m4/jm-winsz1.m4: Likewise.
115703         * m4/const.m4: Remove file, since the fix made it into the experimental
115704         version of autoconf.
115705         * m4/mktime.m4: Likewise.
115707         * m4/check-type.m4: Remove file, now that the latest version of
115708         AC_CHECK_TYPE takes a third arg to specify additional #includes.
115710         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
115711         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
115712         AC_CHECK_TYPE.
115714 1999-10-04  Jim Meyering  <meyering@ascend.com>
115716         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
115718 1999-09-22  Paul Eggert  <eggert@twinsun.com>
115720         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
115721         2.95.1 bug with HP-UX 10.20.
115723 1999-09-17  Jim Meyering  <meyering@ascend.com>
115725         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
115726         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
115727         due to missing strdup (against sh-utils-2.0).
115729 1999-08-29  Jim Meyering  <meyering@ascend.com>
115731         * m4/jm-macros.m4: Require jm_BISON.
115732         * m4/bison.m4: New file.
115734 1999-08-17  Paul Eggert  <eggert@twinsun.com>
115736         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
115737         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
115739 1999-08-05  Jim Meyering  <meyering@ascend.com>
115741         * m4/getline.m4: Rename test file from conftestdata to conftest.data
115742         to avoid conflicts with `conftest' on 8+3 filesystems.
115743         Suggestion from Eli Zaretskii.
115745 1999-08-04  Jim Meyering  <meyering@ascend.com>
115747         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
115748         fileutils and sh-utils (textutils's getline test was inadequate).
115749         (AM_FUNC_GETLINE): Run this test.
115750         (AC_CHECK_FUNCS): Check for getdelim.
115751         Reported by Bob Proulx.
115753 1999-08-02  Jim Meyering  <meyering@ascend.com>
115755         * m4/jm-macros.m4: Add a comment.
115757 1999-08-01  Paul Eggert  <eggert@twinsun.com>
115759         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
115760         <inttypes.h> defines strtoumax as a macro (and not as a
115761         function).
115763 1999-08-01  Paul Eggert  <eggert@twinsun.com>
115765         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
115766         that we can shift, multiply and divide unsigned long long
115767         values; Ultrix cc can't do it.
115769 1999-08-01  Paul Eggert  <eggert@twinsun.com>
115771         * m4/mktime.m4: New file, which is a preview of what should appear
115772         in the next public autoconf release.
115774 1999-08-01  Paul Eggert  <eggert@twinsun.com>
115776         * m4/lfs.m4: Remove this file.
115777         * m4/largefile.m4: New file.  It contains the old contents of
115778         lfs.m4, except that all names with prefix AC_LFS have been
115779         changed to use the prefix AC_SYS_LARGEFILE instead, to be
115780         compatible with future autoconf versions.  Also, some minor m4
115781         quoting problems have been fixed.
115783 1999-08-01  Paul Eggert  <eggert@twinsun.com>
115785         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
115786         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
115787         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
115788         and simplify the shell code.
115790 1999-08-01  Jim Meyering  <meyering@ascend.com>
115792         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
115793         m4.
115795 1999-07-20  Jim Meyering  <meyering@ascend.com>
115797         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
115799 1999-07-15  Jim Meyering  <meyering@ascend.com>
115801         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
115803 1999-05-22  Jim Meyering  <meyering@ascend.com>
115805         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
115807 1999-05-20  Jim Meyering  <meyering@ascend.com>
115809         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
115810         Add a colon after each `then' in case $4 is empty.
115812 1999-05-16  Jim Meyering  <meyering@ascend.com>
115814         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
115816 1999-05-10  Jim Meyering  <meyering@ascend.com>
115818         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
115820         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
115821         AC_FUNC_MKTIME.
115823 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
115825         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
115827 1999-05-04  Paul Eggert  <eggert@twinsun.com>
115829         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
115830         not CPPFLAGS, so that linking works correctly in IRIX.
115832 1999-04-30  Paul Eggert  <eggert@twinsun.com>
115834         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
115836 1999-04-20  Paul Eggert  <eggert@twinsun.com>
115838         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
115839         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
115840         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
115841         jm_AC_TYPE_UNSIGNED_LONG_LONG.
115842         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
115844         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
115846 1999-04-20  Jim Meyering  <meyering@ascend.com>
115848         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
115849         AC_REPLACE xstroull if necessary.  From Paul Eggert.
115850         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
115852 1999-04-18  Jim Meyering  <meyering@ascend.com>
115854         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
115855         * m4/jm-macros.m4: Use it.
115857 1999-04-06  Jim Meyering  <meyering@ascend.com>
115859         * m4/strftime.m4: Remove test for %f.
115861 1999-03-29  Jim Meyering  <meyering@ascend.com>
115863         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
115864         superset of the AC_TYPE_* checks in the textutils, fileutils,
115865         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
115866         AC_TYPE_PID_T.
115868 1999-03-28  Jim Meyering  <meyering@ascend.com>
115870         * m4/jm-macros.m4: Define GNU_PACKAGE here.
115871         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
115872         replaced e.g., in the *.sh files of the sh-utils.
115874 1999-03-20  Jim Meyering  <meyering@ascend.com>
115876         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
115877         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
115878         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
115880 1999-03-19  Jim Meyering  <meyering@ascend.com>
115882         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
115884 1999-03-12  Jim Meyering  <meyering@ascend.com>
115886         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
115888 1999-03-07  Jim Meyering  <meyering@ascend.com>
115890         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
115891         declared.
115893 1999-02-17  Jim Meyering  <meyering@ascend.com>
115895         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
115896         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
115898 1999-02-07  Jim Meyering  <meyering@ascend.com>
115900         * m4/group-member.m4: New file -- extracted from sh-utils'
115901         configure.in.
115903         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
115904         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
115906 1999-02-06  Jim Meyering  <meyering@ascend.com>
115908         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
115909         * m4/fnmatch.m4: Likewise.
115910         * m4/getgroups.m4: Likewise.
115911         * m4/lstat.m4: Likewise.
115912         * m4/malloc.m4: Likewise.
115913         * m4/putenv.m4: Likewise.
115914         * m4/realloc.m4: Likewise.
115915         * m4/regex.m4: Likewise.
115916         * m4/stat.m4: Likewise.
115917         * m4/strftime.m4: Likewise.
115918         Suggestion from Alain Magloire.
115920         * m4/chown.m4: Use `.$ac_objext', not `.o'.
115921         * m4/fnmatch.m4: Likewise.
115922         * m4/getgroups.m4: Likewise.
115923         * m4/getline.m4: Likewise.
115924         * m4/lstat.m4: Likewise.
115925         * m4/malloc.m4: Likewise.
115926         * m4/memcmp.m4: Likewise.
115927         * m4/putenv.m4: Likewise.
115928         * m4/realloc.m4: Likewise.
115929         * m4/regex.m4: Likewise.
115930         * m4/stat.m4: Likewise.
115931         * m4/strftime.m4: Likewise.
115932         Suggestion from Alain Magloire.
115934         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
115935         an argument.
115937         * m4/regex.m4: Add a run-time Test for proper operation of
115938         re_compile_pattern.
115940 1999-01-31  Jim Meyering  <meyering@ascend.com>
115942         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
115944 1999-01-30  Jim Meyering  <meyering@ascend.com>
115946         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
115948         * m4/jm-mktime.m4: Make this a wrapper around the official
115949         AM_FUNC_MKTIME rather than my private copy, now that the official one
115950         is up to date.
115951         * m4/mktime.m4: Remove file.
115953         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
115954         * m4/uptime.m4: Likewise.
115955         * m4/uintmax_t.m4: Likewise.
115957 1999-01-28  Jim Meyering  <meyering@ascend.com>
115959         * m4/jm-macros.m4: Use jm_AFS.
115960         * m4/afs.m4: New file (from fileutils' configure.in).
115962         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
115963         * m4/chown.m4: Likewise.
115964         * m4/d-ino.m4: Likewise.
115965         * m4/d-type.m4: Likewise.
115966         * m4/fnmatch.m4: Likewise.
115967         * m4/getgroups.m4: Likewise.
115968         * m4/gettext.m4: Likewise.
115969         * m4/jm-mktime.m4: Likewise.
115970         * m4/jm-winsz2.m4: Likewise.
115971         * m4/lcmessage.m4: Likewise.
115972         * m4/ls-mntd-fs.m4: Likewise.
115973         * m4/malloc.m4: Likewise.
115974         * m4/memcmp.m4: Likewise.
115975         * m4/putenv.m4: Likewise.
115976         * m4/realloc.m4: Likewise.
115977         * m4/st_mtim.m4: Likewise.
115978         * m4/strftime.m4: Likewise.
115980 1999-01-16  Jim Meyering  <meyering@ascend.com>
115982         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
115983         (ARGMATCH_DIE_DECL): Define.
115985 1999-01-12  Jim Meyering  <meyering@ascend.com>
115987         * m4/Makefile.am.in: Rewrite to avoid using fmt.
115988         Reported by Lars Hecking.
115990 1999-01-10  Jim Meyering  <meyering@ascend.com>
115992         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
115993         gross kludge.
115994         * m4/inttypes_h.m4: Likewise.
115995         * m4/lstat.m4: Likewise.
115996         * m4/malloc.m4: Likewise.
115997         * m4/readdir.m4: Likewise.
115998         * m4/realloc.m4: Likewise.
115999         * m4/st_dm_mode.m4: Likewise.
116000         * m4/stat.m4: Likewise.
116001         * m4/utimbuf.m4: Likewise.
116002         * m4/utimes.m4: Likewise.
116004         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
116005         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
116006         comments in config.h.in are meaningful.
116008         * m4/jm-macros.m4: Require autoconf-2.13 here.
116010         * m4/regex.m4: By default, don't use the included regex.c on systems
116011         with glibc 2.  Suggestion from Uli Drepper.
116013 1999-01-02  Jim Meyering  <meyering@ascend.com>
116015         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
116017 1998-12-18  Jim Meyering  <meyering@ascend.com>
116019         * m4/Makefile.am.in (Makefile.am): Simplify rule.
116020         Based on a suggestion from Lars Hecking.
116022 1998-11-16  Paul Eggert  <eggert@twinsun.com>
116024         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
116026 1998-11-16  Jim Meyering  <meyering@ascend.com>
116028         * m4/lfs.m4: Double-quote the `uname...` expression.
116030 1998-11-14  Jim Meyering  <meyering@ascend.com>
116032         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
116033         * m4/stat.m4: Likewise.
116035 1998-11-03  Jim Meyering  <meyering@ascend.com>
116037         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
116038         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
116040 1998-10-18  Jim Meyering  <meyering@ascend.com>
116042         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
116044 1998-10-17  Jim Meyering  <meyering@ascend.com>
116046         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
116047         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
116048         calls for those previously hard-coded headers.  Instead, take a new
116049         parameter.
116050         (jm_CHECK_DECLARATIONS): Reflect interface change.
116051         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
116052         (jm_CHECK_DECL_LOCALTIME_R): New macro.
116054         * m4/mktime.m4: Test for spring-forward gap before long-running test.
116056 1998-10-14  Jim Meyering  <meyering@ascend.com>
116058         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
116059         instead of "TZ=America/Vancouver".  From Paul Eggert.
116061 1998-10-11  Jim Meyering  <meyering@ascend.com>
116063         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
116064         This adds a test for a recently added compatibility fix for mktime.c.
116065         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
116067 1998-09-27  Jim Meyering  <meyering@ascend.com>
116069         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
116071         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
116072         ../configure.in, including a change from Gordon Matzigkeit to allow
116073         cross-compiling for the Hurd.
116075         * m4/glibc.m4: New file/macro to test for the GNU C Library
116076         versions 1 and 2.  From Gordon Matzigkeit.
116077         Indent.
116079 1998-09-21  Jim Meyering  <meyering@ascend.com>
116081         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
116083 1998-08-18  Paul Eggert  <eggert@twinsun.com>
116085         Port nanosecond-resolution times to UnixWare 2.1.2 and
116086         pedantic Solaris 2.6.
116088         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
116089         AC_STRUCT_ST_MTIM.
116090         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
116091         Generate name of ns member, instead of just 1 or undef.
116092         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
116094 1998-08-15  Jim Meyering  <meyering@ascend.com>
116096         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
116097         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
116098         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
116099         instead of jm_TYPE_SSIZE_T.
116101 1998-08-12  Jim Meyering  <meyering@ascend.com>
116103         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
116105 1998-08-02  Jim Meyering  <meyering@ascend.com>
116107         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
116108         in acconfig.h manually.
116110 1998-07-31  Paul Eggert  <eggert@twinsun.com>
116112         * m4/st_mtim.m4: New file.
116114 1998-07-28  Jim Meyering  <meyering@ascend.com>
116116         * m4/utimes.m4: Undef stat.
116118 1998-07-25  Jim Meyering  <meyering@ascend.com>
116120         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
116121         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
116123 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
116125         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
116126         uid and gid actually remain unchanged.
116128 1998-07-07  Jim Meyering  <meyering@ascend.com>
116130         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
116132 1998-07-04  Jim Meyering  <meyering@ascend.com>
116134         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
116135         to prove that this macro can be used in packages without regex.c.
116137 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
116139         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
116140         is to be used.
116142 1998-07-03  Jim Meyering  <meyering@ascend.com>
116144         * m4/gettext.m4: Add -lintl if it's found to be necessary.
116146         * m4/gettext.m4: New file -- from gettext-0.10.35.
116147         * m4/lcmessage.m4: Likewise.
116148         * m4/progtest.m4: Likewise.
116150         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
116151         * m4/jm-macros.m4: Require the new macro.
116153 1998-06-29  Jim Meyering  <meyering@ascend.com>
116155         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
116156         for the definition of NGROUPS (used in a system header included
116157         by sys/mount.h).
116159 1998-06-28  Jim Meyering  <meyering@ascend.com>
116161         * m4/ls-mntd-fs.m4: New file.
116162         * m4/fstypename.m4: New file.
116164         * m4/jm-macros.m4: Require the new macro.
116165         * m4/jm-glibc-io.m4: New file.
116167 1998-05-19  Jim Meyering  <meyering@ascend.com>
116169         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
116170         * m4/lchown.m4: New file.
116172         * m4/Makefile.am.in: New file.
116173         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
116175 1998-05-14  Jim Meyering  <meyering@ascend.com>
116177         * m4/Makefile.am (EXTRA_DIST): Add them.
116178         * m4/jm-macros.m4: New file.
116179         * m4/utimbuf.m4: New file.
116181 1998-05-12  Jim Meyering  <meyering@ascend.com>
116183         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
116185 1998-05-11  Jim Meyering  <meyering@ascend.com>
116187         * m4/isc-posix.m4: New file.
116189 1998-05-10  Jim Meyering  <meyering@ascend.com>
116191         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
116193 1998-05-09  Jim Meyering  <meyering@ascend.com>
116195         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
116196         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
116197         with automake.
116199         * m4/ssize_t.m4: New file.
116200         * m4/mktime.m4: Remove file -- the new automake has this now.
116202 1998-04-26  Jim Meyering  <meyering@ascend.com>
116204         * m4/assert.m4: New file.
116205         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
116207 1998-04-05  Jim Meyering  <meyering@ascend.com>
116209         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
116210         (jm_PREREQ): Use it here.
116212 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
116214         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
116215         in acconfig.h.
116217 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
116219         * m4/prereq.m4: New file.
116220         * m4/error.m4: New file.
116221         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
116223 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
116225         * m4/getline.m4: Don't set am_cv_func_working_getline before the
116226         cache-check for the same variable -- that defeated the purpose of
116227         the test; the test program was never run.  This was a problem only
116228         on systems with losing getline functions -- HP-UX 10.20 is one.
116229         Reported by Bjorn Helgaas.
116231 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
116233         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
116235 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
116237         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
116239         * m4/const.m4: New file.  Use an initializer in this declaration
116240         typedef int charset[2]; const charset x;
116241         Reported by Bob Glickstein.
116243 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
116245         * m4/chown.m4: Fix reversed types on -1 args to chown.
116246         From Kaveh Ghazi.
116248 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
116250         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
116251         Add lseek and memchr.
116253         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
116254         T.E.Dickey <dickey@clark.net> said that some older preprocessors
116255         have a 20-character limit on names.
116257 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
116259         * m4/inttypes_h.m4: New file.
116260         * m4/uintmax_t.m4: New file.
116261         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
116264         -----
116266         Local Variables:
116267         coding: utf-8
116268         End:
116270         Copyright (C) 1997-2018 Free Software Foundation, Inc.
116272         Copying and distribution of this file, with or without
116273         modification, are permitted provided the copyright notice
116274         and this notice are preserved.